Statistics 03-3
Statistics 03-3
Frequency tables
1.0
0.8
0.8
0.6
0.6
Fn(x)
0.4
0.4
0.2
0.2
0.0
0.0
Histograms
relative frequency
density = ,
amplitude
40
20
0
Use
80
0.00020
60
Frequency
0.00015
Density
40
0.00010
0.00005
20
0.00000
Use Use
2000
1500
1500
Frequency
1000
1000
500
500
0
0
0 1 2 3 4 5 6 7 8 0 2 4 6 8
Medicine Medicine
Undersmoothing vs oversmoothing
0.00030
0.00025
0.00020
0.00015
Density
0.00010
0.00005
0.00000
4e−04
4e−04
Density
Density
2e−04
2e−04
0e+00
0e+00
0 5000 10000 15000 0 5000 10000 15000 20000
0.00010
Density
Density
0.00000
and
1500
1000
last call
500
0
20
10
0
−10
Jan Feb Mar Apr May Jun July Aug Sep Oct Nov Dec
Violin plots
15000
10000
10000
5000
5000
0
20
10
0
−10
Jan Feb Mar Apr May Jun July Aug Sep Oct Nov Dec
0.5
0.4
0.3
Density
0.2
0.1
0.0
1 2 3 4 5 6
5.0
4.5
4.5
4.0
4.0
3.5
3.5
3.0
3.0
2.5
2.5
2.0
2.0
1.5
1.5
Q-Q plots
Simulation procedure
We, typically, have no time to play a large number of card games, so we exploit a
computer. With this aim
we should generate values from a random variable having U(0, 1)
distribution: these values are called random numbers.
Starting from a U ∼ U(0, 1) distribution, we can in principle simulate any
random variable having a CDF, by means of the F −1 transformation (see
tutorial, Y = F −1 (U)).
Remark
In fact, the computer makes use of the so called generator of pseudo random
numbers: an algorithm produces a sequence of numbers which are (only) pseudo-
random. Namely, the generator yields a sequence of numbers that,
PRACTICALLY, is VERY SIMILAR to a sample drawn form U(0, 1). The way in
which this algorithm works is behind the scope of this course: let’s simply say that
you can use the statistical software to achieve the task.
10
2
1
Sample Quantiles
Sample Quantiles
5
0
0
−1
−2
−5
−3 −2 −1 0 1 2 3 −3 −2 −1 0 1 2 3
15000
Sample Quantiles
10000
5000
0
−2 −1 0 1 2
Theoretical Quantiles
More......
▶ Bee plot
http://www.cbs.dtu.dk/˜eklund/beeswarm/
▶ Gapminder
www.gapminder.org/
▶ inzight
www.stat.auckland.ac.nz/˜wild/iNZight/
index.php
▶ Worldmapper http://www.worldmapper.org/
▶ Junk charts: http://junkcharts.typepad.com/