Notes 10
Notes 10
A ● ●● ● ●● ● ●
B ● ● ● ● ● ●●●
IL10
A ● ● ● ● ●● ● ●
B ● ● ● ●● ●●
●
2
Parameters
Sample data
4
Parameters, estimators, estimates
−→ X 1, X 2, . . . , X 10 −→ X̄
σ
µ
0 10 20 30 40 50 60
3.8 8.0 9.9 13.1 15.5 16.6 22.3 25.4 31.0 40.0 −→ 18.6
6.0 10.6 13.8 17.1 20.2 22.5 22.9 28.6 33.1 36.7 −→ 21.2
8.1 9.0 9.5 12.2 13.3 20.5 20.8 30.3 31.6 34.6 −→ 19.0
4.2 10.3 11.0 13.9 16.5 18.2 18.9 20.4 28.4 34.4 −→ 17.6
8.4 15.2 17.1 17.2 21.2 23.0 26.7 28.2 32.8 38.0 −→ 22.8
6
Sampling distribution
Distribution of X̄
Population distribution
n=5
10 15 20 25 30 35 40
n = 10
σ
µ
0 10 20 30 40 50 60 10 15 20 25 30 35 40
n = 25
σ
µ
0 10 20 30 40 50 60
5 10 15
8
Example: heights of students
14
12 mean = 67.1
10 SD = 3.9
Frequency
8
6
4
2
0
60 65 70 75
Height (inches)
60 65 70 75 60 65 70 75
60 65 70 75 60 65 70 75
10
The sample mean
σ
µ
Mean of X̄ = E(X̄ ) = µ.
0 10 20 30 40 50 60
Bias = E(X̄ ) − µ = 0.
√
SE of X̄ = SD(X̄ ) = σ/ n.
RMS error of X̄ =
p √
(bias)2 + (SE)2 = σ/ n.
11
Population distribution
If X 1, X 2, . . . , X n are iid
normal(µ,σ), then σ
√ µ
X̄ ∼ normal(µ, σ/ n).
Distribution of X
σ n
12
Example
Suppose X 1, X 2, . . . , X 10 are iid normal(mean=10,SD=4)
Then X̄ ∼ normal(mean=10, SD ≈ 1.26); let Z = (X̄ – 10)/1.26.
1.26 ≈ 1 ≈ 5.7%
10 12 −1.58 0
≈ ≈ 31%
10 0
9.5 10.5 −0.40 0.40
≈ ≈ 43%
9 10 11 −0.80 0 0.80
13
14
Example 1
Distribution of X̄
Population distribution
n=5
10 15 20 25 30 35 40
n = 10
σ
µ
0 10 20 30 40 50 60 10 15 20 25 30 35 40
n = 25
10 15 20 25 30 35 40
n = 100
10 15 20 25 30 35 40
15
Example 2
Distribution of X̄
Population distribution n = 10
50 100 150
n = 25
n = 100
50 100 150
n = 500
50 100 150
16
Example 2 (rescaled)
Distribution of X̄
Population distribution n = 10
50 100 150
n = 25
n = 100
20 25 30 35 40 45 50 55
n = 500
30 35 40
17
Example 3
Population distribution Distribution of X̄
n = 10
n = 25
0 1
{X i} iid n = 100
Pr(X i = 0) = 90%
Pr(X i = 1) = 10%
0 0.05 0.1 0.15 0.2
P
X i ∼ binomial(n, p)
0.06 0.07 0.08 0.09 0.1 0.11 0.12 0.13 0.14
X̄ = proportion of 1’s
18
The sample SD
In other words:
Bias(s2) = 0
but Bias( n−1 2
n s ) =
n−1 2
n σ − σ 2 = − n1 σ 2
19
χ2 distributions
df=9
df=19
df=29
0 10 20 30 40 50
20
Distribution of sample SD
(based on normal data)
n=25
n=10
n=5
n=3
0 5 10 15 20 25 30
21
A non-normal example
Distribution of sample SD
Population distribution
n=3
0 5 10 15 20 25 30
n=5
σ
µ
0 10 20 30 40 50 60
0 5 10 15 20 25 30
n = 10
0 5 10 15 20 25 30
n = 25
0 5 10 15 20 25 30
22