Академический Документы
Профессиональный Документы
Культура Документы
MB+SCP
Mani Bhushan, Sachin Patwardhan
Department of Chemical Engineering,
Indian Institute of Technology Bombay
Mumbai, India- 400076
mbhushan,sachinp@iitb.ac.in
Spring 2019
Chapter 7
Parameter estimation
Maximum likelihood estimation
Point and interval estimates
Efficiency: If θ̂1 and θ̂2 are both unbiased estimators for θ, then
θ̂1 is said to be a more efficient estimator if
On simplification,
and E [p̂] = p
E [θ̂1 ] = θ, thus
MSE: MSE(θ̂1 ) = Var (θ̂1 ).
4 4 θ2 θ2
Var (θ̂1 ) = Var (Xi ) = =
n n 12 3n
θ2
MSE(θ̂1 ) =
3n
2θ2
MSE(θ̂2 ) =
(n + 1)(n + 2)
where n = 1, 2, ... is the sample size. Since
2θ2 θ2
≤
(n + 1)(n + 2) 3n
it follows that θ̂2 is “superior” to θ̂1 .
Note that θ̂2 is biased, but bias is close to zero for large n.
MB+SCP (IIT Bombay) CL202 Spring 2019 20 / 73
Maximum Likelihood Estimation: Properties
µ − kσ µ µ + kσ
0.0
−4 −2 0 2 4 6
– 3 µ – 2 – + + 2 + 3 x
0.1
68%
µ − kσ µ µ + kσ 95%
0.0
−4 −2 0 2 4 6
99.7%
σ2
P{|X̄ − µ| > ε} ≤ 2
nε
σ2
P{|X̄ − µ| < ε} ≥ 1 −
nε2
Xi ∼ N (µ, σ 2 )
σ2
X̄ − µ
X̄ ∼ N µ, √ ∼ N (0, 1)
n σ/ n
P {Z > zα } = α
X̄ − µ
P −zα/2 < √ < zα/2 = 1−α
σ/ n
X̄ − µ
specifically P −1.96 < √ < 1.96 = 0.95
σ/ n
We get
σ σ
P X̄ − 1.96 √ < µ < X̄ + 1.96 √ = 0.95
n n
√
that is 95% of the time µ will lie within 1.96σ/ n units of the
sample average.
If we now observe the sample and it turns out that X̄ = x̄, then
we say that “with 95% confidence”
σ σ
x̄ − 1.96 √ < µ < x̄ + 1.96 √
n n
The interval
MB+SCP (IIT Bombay) CL202 Spring 2019 30 / 73
Example 7.3a
Suppose that when a signal having value µ is transmitted from
location A the value received at location B is normally
distributed with mean µ and variance 4. That is, if µ is sent,
then the value received is µ + N where N, representing noise, is
normal with mean 0 and variance 4. To reduce error, suppose
the same value is sent 9 times. If the successive values received
are 5,8.5,12,15,7,9,7.5,6.5,10.5, construct a 95% confidence
interval (CI) for µ.
x̄ = 81/9 = 9. Under the assumption that the values received
are independent, a 95% CI for µ is:
σ σ
9 − 1.96 , 9 + 1.96 = (7.69, 10.31)
3 3
i.e. we are 95% confident that the true message lies between
7.69 and 10.31.
MB+SCP (IIT Bombay) CL202 Spring 2019 31 / 73
1. Normal: interval for µ when σ 2 known
| |
| |
| |
| |
| |
µ
−0.5
−3 −2 −1 0 1 2 3
value
X̄ − µ
P −zα/2 < √ < zα/2 = 1−α
σ/ n
We can also have 100(1 − α)% upper and lower one sided
confidence intervals.
σ
x̄ − zα √ , +∞
n
σ
−∞, x̄ + zα √
n
MB+SCP (IIT Bombay) CL202 Spring 2019 34 / 73
Example 7.3a: One Sided Intervals
α = 0.05
z0.05 = 1.645
z0.025 = 1.96
Point estimate : x̄ = 9
Upper : (7.903, ∞)
Lower : (−∞, 10.097)
Two sided : (7.69, 10.31)
zα/2 σ 2
n=
|x̄ − µ|
Does the dependency of n on the various terms make sense?
You need more samples if
you want x̄ to come very close to µ,
E = error = x – µ
l = x – zα /2 σ / n x µ u = x + zα /2 σ / n
– 3 µ – 2 – + + 2 + 3 x
68%
95%
99.7%
E [Tn ] = 0,
n > 1, otherwise undefined
n
Var(Tn ) = for n > 2
n−2
X̄ − µ
√ follows the tn−1 curve
S/ n
√ X̄ − µ
P −tα/2,n−1 < n < tα/2,n−1 = 1 − α
S
or,
S S
P X̄ − tα/2,n−1 √ < µ < X̄ + tα/2,n−1 √ =1−α
n n
We have
(n − 1)S 2
2
∼ χ2n−1
σ
or
σ2 2
S2 ∼ χ
n − 1 n−1
f (x)
0 5 10 15 20 25 x
MONTGOMERY:
MB+SCP (IIT Bombay) Applied Statistics, 3e CL202 Spring 2019 51 / 73
3. Normal: interval for σ 2
f (x) f (x)
α 0.05 0.05
0 2α, k x 0 0.95,
2
10
20.05, 10
= 3.94 = 18.31
(a) (b)
f (x) f (x)
α 0.05 0.05
0 2α, k x 0 0.95,
2
10
20.05, 10
= 3.94 = 18.31
(a) (b)
2
(n − 1)S
MONTGOMERY: Applied Statistics, 3e
2
Fig. 8.9∼ χn−1
W-145,146
σ2
( )
(n − 1)S 2 2 (n − 1)s 2
P < σ < =1−α
χ2α/2,n−1 χ21−α/2,n−1
(n − 1)s 2
Lower: 0, 2
χ1−α,n−1
(n − 1)s 2
Upper: ,∞
χ2α,n−1
σ12 σ22
X̄ − Ȳ ∼ N µ1 − µ2 , +
n m
x̄ = 42.8, ȳ = 55.8
α = 0.05, zα/2 = z0.025 = 1.96
n = 14, σ12 = 40; m = 12, σ22 = 100
r !
σ12 σ22
µ1 − µ2 ∈ x̄ − ȳ ± zα/2 + = (−19.6, − 6.5)
n m
Thus,
X̄ − Ȳ − (µ1 − µ2 ) q 2 2 X̄ − Ȳ − (µ1 − µ2 )
q ÷ Sp /σ = q
σ2 σ2 Sp2 (1/n + 1/m)
n
+ m
Thus,
( )
X̄ − Ȳ − (µ1 − µ2 )
P −tα/2,n+m−2 ≤ p ≤ tα/2,n+m−2 =1−α
Sp 1/n + 1/m
Therefore
X − np
p ∼ N (0, 1)
np(1 − p)
MB+SCP (IIT Bombay) CL202 Spring 2019 68 / 73
6. Binomial: interval for p
Thus,
( )
X − np
P −zα/2 < p < zα/2 ≈1−α
np(1 − p)