Data Visualization
Data Visualization
50
Number of Urchins
Urchin Size (mm)
40
30
20
10
0
0
0 10 20 30 40 50 60 70
0.005
0.000
0 10 20 30 40 50 60 −20 0 20 40 60 80
14
Points:
15
Example: Categorical: Weather in Central
Park
Pie Chart Bar Graph
10
clear
8
6
partly.cloudy
4
cloudy
2
0
Cloudiness is ordinal.
16
Pie charts: wedge has area proportional to #
of individuals in category.
Histogram:
6) label y-axis.
17
Example: Personal Income for BC (ages 15+).
(For those with income.) Source: 2001 Cen-
sus.
Adult Personal Income (BC)
0.03
0.02
0.01
0.00
0 20 40 60 80 100
Income ($000s)
18
Points
19
Comparison of 1995, 2005.
1996 Income
Density
0 20 40 60 80 100
2001 Income
Density
0 20 40 60 80 100
20
Comparison of 2000, 2005.
2005
2000
0.025
0.020
Density
0.015
0.010
0.005
0.000
0 20 40 60 80 100
21
Summarizing the pictures.
Summarizing a histogram:
22
Measures of location:
24
Comparison:
Advantages of mean:
Advantages of median:
25
Measures of spread:
Standard Deviation
Interquartile Range
26
Mean absolute deviation: take absolute values
(ignore − signs) and average
24.8 + 24.8 + 5.2 + 10.2 + 17.2 + 17.2
6
= 16.6 years
2 (24.8)2 + · · · + (−17.2)2
s =
5
= 390.6 years2
27
Interquartile Range:
28
Comparison:
Seems intuitive.
30