集中量數

統計學入門

George Boorman

Curriculum Manager, DataCamp

為何要用集中量數?

  • 每月平均訂單數

 

 

  • 房屋的典型價格

 

 

  • 最常見的髮色

櫥窗上寫著特賣的店面

俯瞰住宅區

棕色頭髮

1 Image credits: https://unsplash.com/@arnosenoner; https://unsplash.com/@brenoassis;
統計學入門

犯罪資料

Borough Burglary Robbery Theft Vehicle Crime Total
Barking and Dagenham 2318 1265 6300 4668 14551
Barnet 5067 1369 9875 9841 26152
Bexley 1583 444 4500 4216 10743
Brent 3893 1650 10026 7739 23308
Bromley 3053 844 8635 6966 19498
... ... ... ... ... ...
統計學入門

犯罪資料

Borough Burglary Robbery Theft Vehicle Crime Total
Barking and Dagenham 2318 1265 6300 4668 14551
Barnet 5067 1369 9875 9841 26152
Bexley 1583 444 4500 4216 10743
Brent 3893 1650 10026 7739 23308
Bromley 3053 844 8635 6966 19498
... ... ... ... ... ...
統計學入門

直方圖

車輛犯罪的直方圖

統計學入門

倫敦車輛犯罪的典型水準是什麼?

資料的中心在哪裡?

  • 平均數
  • 中位數
  • 眾數

標註中心位置的車輛犯罪直方圖

統計學入門

集中量數:平均數

 

$${mean} = \frac{Sum\ of\ all\ values}{Count\ of\ all\ values} $$

 

  • 每個倫敦行政區的平均入室竊盜數:

$${Mean(Burglary)} =\frac{(2,318\ + 5,067\ + 1,583\ + 3,893\ +...)}{32} \ = \ 3,462.8125 $$

統計學入門

集中量數:平均數

Type of Crime Mean
Burglary 3358.06
Robbery 1450.85
Theft 10642.21
Vehicle Offenses 6227.27
Overall 47671.62
統計學入門

集中量數:中位數

  • 中位數-變數排序後的中間值

依入室竊盜值由小到大排序的長條圖

統計學入門

集中量數:中位數

 

標出中間兩筆的入室竊盜排序長條圖

統計學入門

集中量數:中位數

${Median(Burglary)} =\frac{(3,304\ + 3,529)}{2}$

${Median(Burglary)} = 3,416.5 $

統計學入門

集中量數:眾數

  • 眾數-最常出現的值
Type of Crime Count
Burglary 110,810
Robbery 47,877
Theft 350,025
Vehicle Offenses 205,337
統計學入門

該用哪一種?

顯示平均與中位數的車輛犯罪直方圖

統計學入門

該用哪一種?

搶劫直方圖,黑色虛線為平均,紅色虛線為中位數

統計學入門

一起來練習吧!

統計學入門

Preparing Video For Download...