代表値

統計学入門

George Boorman

Curriculum Manager, DataCamp

代表値はなぜ有用なのか?

  • 月間平均受注件数
  • 一般的な住宅価格
  • 最も一般的な髪の色

shop_window_with_sale_written_on_it.jpg

aerial_shot_of_houses.jpg

brown_hair.jpg

1 画像クレジット: https://unsplash.com/@arnosenoner; https://unsplash.com/@brenoassis;
統計学入門

犯罪データ

侵入窃盗 強盗 窃盗 車両犯罪 合計
バーキング・アンド・ダゲナム 2318 1265 6300 4668 14551
バーネット 5067 1369 9875 9841 26152
ベクスリー 1583 444 4500 4216 10743
ブレント 3893 1650 10026 7739 23308
ブロムリー 3053 844 8635 6966 19498
... ... ... ... ... ...
統計学入門

犯罪データ

侵入窃盗 強盗 窃盗 車両犯罪 合計
バーキング・アンド・ダゲナム 2318 1265 6300 4668 14551
バーネット 5067 1369 9875 9841 26152
ベクスリー 1583 444 4500 4216 10743
ブレント 3893 1650 10026 7739 23308
ブロムリー 3053 844 8635 6966 19498
... ... ... ... ... ...
統計学入門

ヒストグラム

histogram_of_vehicle_offenses.png

統計学入門

ロンドンでの車両犯罪の一般的な件数

データの中心は?

  • 平均値
  • 中央値
  • 最頻値

annotated_vehicle_offenses_histogram_asking_where_the_center_is.png

統計学入門

代表値: 平均

$$\text{平均} = \frac{\text{すべての値の合計}}{\text{すべての値の個数}} $$

  • ロンドン各自治区の平均侵入窃盗件数:

$$\text{平均(侵入窃盗)} =\frac{(2,318\ + 5,067\ + 1,583\ + 3,893\ +...)}{32} \ = \ 3,462.8125 $$

統計学入門

代表値: 平均

犯罪の種類 平均
侵入窃盗 3358.06
強盗 1450.85
窃盗 10642.21
車両犯罪 6227.27
全体 47671.62
統計学入門

代表値: 中央値

  • 中央値 - ある変数の中間の値

sorted_bar_plot_showing_burglary_values_by_borough_from_smallest_to_largest.png

統計学入門

代表値: 中央値

sorted_bar_plot_showing_burglary_values_by_borough_from_smallest_to_largest_with_values_stated_for_the_two_middle_bars.png

統計学入門

代表値: 中央値

$\text{中央値(侵入窃盗)} =\frac{(3,304\ + 3,529)}{2}$

$\text{中央値(侵入窃盗)} = 3,416.5 $

統計学入門

代表値: 最頻値

  • 最頻値 - 最も多く出現する値
犯罪の種類 件数
侵入窃盗 110,810
強盗 47,877
窃盗 350,025
車両犯罪 205,337
統計学入門

どの値を使うべきか?

histogram_of_vehicle_crimes_with_mean_and_median_displayed_as_black_and_red_vertical_dotted_lines.png

統計学入門

どの値を使うべきか?

robbery_histogram_with_black_dotted_line_for_mean_and_red_dotted_line_for_median.png

統計学入門

練習しましょう!

統計学入門

Preparing Video For Download...