6 CLT
6 CLT
Dr. Xinyue Li
Lecture 6
1 / 20
Central Limit Theorem
Theorem 1
Let X1 , X2 , . . . , Xn denote the observations of a random sample from a
distribution that has mean µ and variance σ 2 . Then we have
√ D
Yn = n(X n − µ)/σ −
→ N(0, 1)
2 / 20
Proof of the Central Limit Theorem
m(0) = 1, m′ (0) = E (X − µ) = 0
and
m′′ (ξ)t 2
m(t) = m(0) + m′ (0)t +
2
m′′ (ξ)t 2 σ2 t 2 [m′′ (ξ) − σ 2 ]t 2
= 1+ =1+ +
2 2 2
3 / 20
Proof of the Central Limit Theorem
Now consider the mgf of Yn and written as M(t; n)
P
Xi − nµ
M(t; n) = E exp t √
σ n
X1 − µ X2 − µ Xn − µ
= E exp t √ exp t √ · · · exp t √
σ n σ n σ n
X1 − µ Xn − µ
= E exp t √ · · · E exp t √
σ n n σ n
X1 − µ
= E exp t √
n σ n
t t
= m( √ ) , −h < √ < h
σ n σ n
√
Replace t by t/σ n in previous equation we have
t t2 [m′′ (ξ) − σ 2 ]t 2
m( √ ) = 1 + +
σ n 2n 2nσ 2
√
where ξ is now between 0 and t/σ n. Accordingly
n n
t2 [m′′ (ξ) − σ 2 ]t 2 t2
2
M(t; n) = 1 + + → 1+ → e t /2
2n 2nσ 2 2n
4 / 20
Large sample inference for µ
Example 2
Let X1 , X2 . . . , Xn be a random sample from a distribution with mean µ and
variance σ 2 , where µ and σ 2 are unknown. Let X and S be the sample mean
and sample standard deviation, respectively. Then we have
X −µ D
√ −→ N(0, 1)
S/ n
5 / 20
Recall the Example on Sn
Example 3
Let X1 , . . . , Xn be a sample from the distribution. Show that the variance
n
1X
Sn2 = (Xi − X )2
n i=1
is an consistent estimator of σ 2 .
n n
1X 1X 2 2
Sn2 = (Xi − X )2 = Xi − X n
n i=1 n i=1
P
−
→ E (X12 ) − µ2 = σ 2
6 / 20
Normal Approximation to the Binomial Distribution
Example 4
Let X1 , X2 . . . , Xn be a random sample from a binomial distribution b(1, p). If
Yn = X1 + X2 + . . . + Xn , then Yn had binomial distribution b(n, p). The mean
and variance of Yn are np and np(1 − p) respectively. Show that Yn can be
approximated with a normal distribution.
7 / 20
Normal Approximation to the Binomial Distribution
In practice, when n is as small as 10 and p = 0.5 (so np = 5), the
approximation can still be rather good.
A comparison between binomial b(n, p) = b(10, 0.5) and normal
N(np, np(1 − p)) = N(5, 2.5).
8 / 20
Poisson Approximation to the Binomial Distribution
Example 5
Let Yn have a distribution that is b(n, p). Suppose that the mean λ = np is
the same for every n, that is p = λ/n, where λ is a constant. The limiting
distribution of the binomial distribution is Poisson.
9 / 20
Normal Approximation to the Binomial Distribution
Example 6
Let Y follow a binomial distribution with n = 100, p = 0.5. Find
P(Y = 48, 49, 50, 51, 52)
10 / 20
Large sample inference for proportions
Example 7
Let X1 , X2 . . . , Xn be a random sample from a binomial distribution b(1, p) with
p as the probability of success. Let p̂ = X be the sample proportion of success.
Then
pb − p D
p −
→ N(0, 1)
pb(1 − pb)/n
11 / 20
Large sample inference for χ2 -Test
Example 8
Let X1 , X2 . . . , Xn be a random sample from a binomial distribution b(1, p) with
p as the probability of success. Let p̂ = X be the sample proportion of success.
Then
pb − p D
p −
→ N(0, 1)
pb(1 − pb)/n
12 / 20
χ2 , Exponential and Gamma distribution
where
Z ∞
Γ(α) = y α−1 e −y dy
0
µ = αβ, σ 2 = αβ 2
13 / 20
Gamma Distribution
Theorem 9
Let X1 , ..., Xn be idependent random
P variables. Suppose forPi = 1, ..., n, Xi has
a Γ(αi , β) distribution. Let Y = ni=1 Xi , then Y has a Γ( ni=1 αi , β)
distribution.
14 / 20
Poisson Process: A Recall
(λt)x e −λt
g (x, t) =
x!
15 / 20
Gamma distribution
Let W be the time that is needed to obtain exact k occurrences. Then
the CDF of W is
The event W > w is equivalent to the event that there are fewer than k
occurrences in a interval of length w .
Let X be the number of occurrences in an interval of length w , then
k−1 k−1
X X (λw )x e −λw
P(W > w ) = P(X = x) =
x=0 x=0
x!
16 / 20
Exponential distribution
If W is the waiting time until the first occurrence, i.e., k = 1, then the
pdf of W is
(
λe −λw 0<w <∞
g (w ) =
0 elsewhere
E (W ) = k/λ
17 / 20
Gamma Distribution
18 / 20
χ2 distribution
19 / 20
χ2 distribution
If X ∼ N(0, 1), then
X 2 ∼ χ2 (1)
W
p ∼ t(r )
V /r
U/r1
∼ F (r1 , r2 )
V /r2
20 / 20