Professional Documents
Culture Documents
Spring 2014
Assignment 8
Section 9.7
72. Suppose that Yi P ois().
for .
a. Find the MLE
L() = L(|y1 , y2 , ..., yn )
n
Y
=
f (yi |)
=
i=1
n
Y
i=1
n
P
yi e
I[yi =1,2,...,n]
yi !
y
i
n
i=1 en Y
= Q
I[yi =1,2,...,n]
n
yi ! i=1
i=1
ln[L()] =
n
X
i=1
n
P
dln[L()]
=
d
Let
dln[L()]
d
yi ln() n ln(
n
Y
yi !)
i=1
yi
i=1
yi
i=1
n
n
d ln[L()]
1 X
= 2
yi .
d2
i=1
2
n
P
Then substitute =
i=1
yi
, we have
d2 ln[L()]
|
d2
n
P
= i=1
n
yi
n2
= P
< 0.
n
yi
i=1
n
P
Thus, we have =
i=1
yi
n
P
M LE =
is the maximum. Therefore,
i=1
Yi
= Y .
and V ar()
b. Find E()
n
P
M LE ) = E(
E(
yi
i=1
n
n
= E( )
n
=
n
P
M LE ) = V ar(
V ar(
yi
i=1
)
n
n
X
1
= 2 V ar(
yi )
n
i=1
=
.
n
P (Y = 0) = e = eY .
74. Let Y1 , Y2 , ..., Yn denote a random sample from the density function given by
yr
1
f (y|) = ( )ry r1 e I[>0,y>0] ,
i=1
n
P
1
yi r Y
1
= n rn e i=1
yir1 I[>0,yi >0]
i=1
Let g(
Thus,
n
P
i=1
n
P
yir )
1
1 n
r
e
n
n
P
yi r
i=1
n
Q
i=1
i=1
Let
dln[L()]
d
=
n
d2 ln[L()]
= 2
2
d
n
P
Then substitute =
yir
i=1
yir
i=1
n
n
P
2 yir
i=1
3
, we have
d2 ln[L()]
|
d2
n
P
= i=1n
yr
i
n3
2 < 0.
n
P
r
yi
i=1
n
P
Thus, we have =
i=1
yir
n
P
i=1
Yir
= Y r.
= P (Yi y r )
1
= FYi (y r )
d
fYir (y) = FYir (y)
dy
1
d
= FYi (y r )
dy
1
d 1
= fYi (y r ) y r
dy
( 1 )r
y r
1
1
1 1
= ( )ry ( r )(r1) e ( )y r 1
r
1 y
= e .
n
P
i=1
Yir Gam( = n, = )
i=1
n
P
E(M LE ) = E(
Yir
i=1
n
n
= E( )
n
= .
n
P
i=1
Yir
= Y r is an MVUE for .
79. A random sample of 100 voters selected from a large population revealed 30 favoring
candidate A, 38 favoring candidate B, and 32 favoring candidate C. Find MLEs for the
proportions of voters in the population favoring candidates A, B, and C, respectively.
Estimate the difference between the fractions favoring A and B and place a 2-standarddeviation bound on the error of estimation.
3
3
P
P
We have
pi = 1,
ni = n, and p3 = 1 p1 p2
i=1
i=1
n!
pn1 1 pn2 2 (1 p1 p2 )n3
n1 !n2 !n3 !
n!
ln[f (p1 , p2 , p3 |n1 , n2 , n3 )] = ln(
) + n1 ln(p1 ) + n2 ln(p2 ) + n3 ln(1 p1 p2 )
n1 !n2 !n3 !
f (p1 , p2 , p3 |n1 , n2 , n3 ) =
n1
n3
p1
1 p1 p2
n2
n3
p2
1 p1 p2
(1)
(2)
(3)
(4)
n1 + n2
n
(5)
n1
,
n
n2
n3
, p3 = .
n
n
To show p1 , p2 , p3 are the maximum likelihood, we take the second derivative and
evaluate at P1 = nn1 :
2
n1
n1
ln[f (p1 , p2 , p3 |n1 , n2 , n3 )]|P1 = nn1 = 2
<0
2
p1
p1
(1 p1 p2 )2
n2
n3
=
<0
n1
n1 (1 n p2 )2
Thus, p1 is the maximum. Similarly, p2 and p3 are also maximum. Finally, we have
p1 =
N2
N3
N1
, p2 =
, p3 =
.
n
n
n
5
Given that p1 = 0.30, p2 = 0.38, p3 = 0.32, and since p1 , p2 , p3 are MLEs, we can use
p1 p2 to estimate the population proportion p1 p2 .
V ar(p1 p2 ) = V ar(p1 ) + V ar(p2 ) 2Cov(p1 , p2 )
n1
n2
= V ar( ) + V ar( ) 2Cov(p1 , p2 )
n
n
1
1
1
= 2 V ar(n1 ) + 2 V ar(n2 ) 2 2 Cov(n1 , n2 )
n
n
n
np1 q1 np2 q2
2
+
+ 2 np1 p2
n2
n2
n
p1 q1 p2 q2 2
+
+ p1 p2
n
n
n
0.30 0.70 0.38 0.62 2 0.3 0.38
+
+
100
100
100
0.006736.
Thus, two standard derivation bound is
t() 2
] = 42
[
1 y
f (y|) = e
y
ln[f (y|)] = ln()
ln[f (y|)]
1
y
= + 2
2 ln[f (y|)]
1
2y
= 2 3
2
2
ln[f (y|)]
1
E(
)= 2
2
In addition, we can easily find that M LE is Y by maximizing the log likelihood of the
exponential distribution as following:
L() = L(|y1 , y2 , ..., yn )
n
P
1 1 yi
= n e i=1
1X
yi
ln[L()] = nln()
i=1
n
ln[L()]
n
1 X
= + 2
yi
i=1
Let
ln[L()]
=
n
P
i=1
yi
yi
i=1
= Y .
2 2
2 2
r
=
Z
2
2
42
n( 12 )
2 2
2
2
Z in probability and Wn =
2
2
n
2
2
converges to 1 in
probability.
Thus, we have
2 2
2
2
n
2
2
n
2
2
Z.
2
n
7
Supplementary Exercise
100. Let Yi P ois() with mean and define
Y
Wn = q .
Y
n
Y
n
converges to 1 in probability.
Finally, by Theorem 9.3, we have
Y
Un
= q n Z.
Wn
Y
n
q
b. Use Wn and the result in part(a) to derive the formula for an approximate 95%
confidence interval for .
to calculate the confidence interval.
We have Wn Z, so we can substitute by
Thus, the confidence interval is
s
M LE 1.96 M LE .