Centrummått

Introduktion till statistik

George Boorman

Curriculum Manager, DataCamp

Varför är centrummått användbara?

  • Genomsnittligt antal försäljningsorder per månad

 

 

  • Typisk kostnad för ett hus

 

 

  • Vanligaste hårfärgen

shop_window_with_sale_written_on_it.jpg

aerial_shot_of_houses.jpg

brown_hair.jpg

1 Image credits: https://unsplash.com/@arnosenoner; https://unsplash.com/@brenoassis;
Introduktion till statistik

Brottsdata

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
... ... ... ... ... ...
Introduktion till statistik

Brottsdata

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
... ... ... ... ... ...
Introduktion till statistik

Histogram

histogram_of_vehicle_offenses.png

Introduktion till statistik

Hur vanlig är fordonsrelaterad brottslighet i London?

Var ligger datats centrum?

  • Medelvärde
  • Median
  • Typvärde

annotated_vehicle_offenses_histogram_asking_where_the_center_is.png

Introduktion till statistik

Centrummått: medelvärde

 

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

 

  • Medelvärde för inbrott per Londondistrikt:

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

Introduktion till statistik

Centrummått: medelvärde

Type of Crime Mean
Burglary 3358.06
Robbery 1450.85
Theft 10642.21
Vehicle Offenses 6227.27
Overall 47671.62
Introduktion till statistik

Centrummått: median

  • Median – mittenvärdet för en given variabel

sorted_bar_plot_showing_burglary_values_by_borough_from_smallest_to_largest.png

Introduktion till statistik

Centrummått: median

 

sorted_bar_plot_showing_burglary_values_by_borough_from_smallest_to_largest_with_values_stated_for_the_two_middle_bars.png

Introduktion till statistik

Centrummått: median

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

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

Introduktion till statistik

Centrummått: typvärde

  • Typvärde – det vanligaste värdet
Type of Crime Count
Burglary 110,810
Robbery 47,877
Theft 350,025
Vehicle Offenses 205,337
Introduktion till statistik

Vilket mått ska man använda?

histogram_of_vehicle_crimes_with_mean_and_median_displayed_as_black_and_red_vertical_dotted_lines.png

Introduktion till statistik

Vilket mått ska man använda?

robbery_histogram_with_black_dotted_line_for_mean_and_red_dotted_line_for_median.png

Introduktion till statistik

Nu kör vi en övning!

Introduktion till statistik

Preparing Video For Download...