Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
y
1
X 1
. Therefore
=
2
x
2
Xi , V ,
(Xi X)
Denote X ,
n i=1
n i=1
1 + 2 = X
2 2
2 = V
V
1 =
X
2 = V /
n
X
V , 2 = V / respectively.
!)
xi n1
1{1 x(1) }
i=1
xi n1
1 = X(1) . On the other hand, note that ln L(1 , 2 ) = n ln n ln 2
2 i=1
for 1 x(1) . Differentiate the log-likelihood with respect to 2 and evaluate at 1 = x(1) , we
have
!
!
n
n
X
1
1X
ln L
n
n
= + 2
xi nx(1) = 2
xi x(1) 2
2 1 =x(1)
2 2 i=1
2 n i=1
x x(1) )/
> 0 if 0 < 2 < (
= 0 if
2 = (
x x(1) )/
< 0 if
2 > (
x x(1) )/
X(1) )/.
Therefore the MLE of 2 , 2 = (X
2. (a) The density of X is
f (x) =
x1
if 0 x
otherwise
n
n Y 1
)
(
xi ) 1{X(n) }1{X(1) 0}
i=1
because the likelihood function is decreasing with respect to , X(n) is the MLE of .
1
n
X
ln L
n
= n ln x(n) +
ln xi = 0
=x(n)
i=1
=
=
Since
n
P
n ln x(n) ni=1 ln xi
2 ln L
n
=
<0
2
2
is the MLE of .
P
(b) x(n) = 25.0 , ni=1 ln xi = 43.95, from (a),
MLE = 12.59 , MLE = 25.0.
(c)
0.05 = P (X(n) / c) = P (allXi c) =
0 n
= c 0 n
2n
x
].
(2n)
1/2
2
b
(n 1)S 2
a
(r
)
r
2
2
2
(n 1)S 2
(n
1)S
(n
1)S
(n
1)S
= Pr
2
= Pr
b
a
b
a
2
2
(n
1)S
(n
1)S
So a confidence interval for 2 is in the form of
,
and a confidence
b #
a
"r
r
(n 1)S 2
(n 1)S 2
interval for is in the form of
,
.
b
a
r
r
(n 1)s2
(n 1)s2 p
1
1
2
The length of the latter interval is k =
= (n 1)s
a
b
a
b
n1
u
1
(b) Method 1: Note that the pdf of 2 (n 1) is g(u) = n1 n1 u 2 1 e 2 , u > 0
( 2 )2 2
Differentiate both sides of the constraint with respect to a, we have
ab
b
b
g(a) a n3
2
g(b)
g(a) = 0
=
=
e 2
a
a
g(b)
b
1 b
3 +
3
2a 2
2b 2 a
=
p
b
(n 1)s2 e 2
n
2b 2 a 2
n
2
a2
a e
n
2
2b
b e
Therefore for any local minimum, it must satisfy the condition for critical point:
a
b
n
n
k
= 0 a 2 e 2 b 2 e 2 = 0
a
1 1
a b
and thus
b
n+1
b
1
k
(n 1)s2 e 2 n+1 a
1 b
2
= (n 1)s 2 + 2
=
(a 2 e 2 b 2 e 2 ) = 0
n+1
a
a
b a
b 2 a2
As a result, any local minimum (a, b) must satisfy
n+1
n+1
a
b
k
= 0 a 2 e 2 b 2 e 2 = 0
a
Therefore, by substituting g(a) and g(b) by the p.d.f of 2 (n 1) and substracting the first
equation by the second one above, we have a,b should satisfy
a
n+1
2
e 2 b
n+1
2
e 2 = 0.
k
= 0 in (0, 21 (n 1)). For the uniqueness of the
a
n
x
solution, consider the function f (x) = x 2 e 2 , n = 2, 3, 4, .... Then
2
2
2
< 0 if
x>n
i.e. f (a) < f (b) when a < b n and f (a) > f (b) when n a < b. From the above result,
there exists a0 < b0 such that f (a0 ) = f (b0 ). Then it must satisfy a0 < n < b0 . Suppose there
b
> 0, we also have b > b0 . If a (a0 , n], then
is another solution (a, b) with a > a0 . Since
a
f (a) > f (a0 ) = f (b0 ) > f (b); if a (n, +), then a < b f (a) > f (b). So it is impossible to
have such a solution. Similarly it is also impossible to have another solution with a < a0 . As a
result, the solution (a0 , b0 ) is unique.
h
i
5. Note that x z0.05 sn , x + z0.05 sn is an approximate 90% confidence interval for . Therefore,
[
x , x + ] is an approximate 90% confidence for if and only if = z0.05 sn . Since z0.05 1.645,
s = 36, = 6, we have the required sample size n 97.417. As n is an integer, the minimal
required sample size is 98.
6. (a)
A two-sided 95% confidence interval for p1 p2 is
q
q
p1 )
p2 (1
p2 )
p1 (1
p1 )
+
,
p
+
z
+
p1 p2 z0.025 p1 (1
1
2
0.025
n1
n2
n1
p2 (1
p2 )
n2
[0.14069, 0.22637].
(b)
Since n = 2000, y = y1 + y2 = 1100, p = y/n = 0.55, a two-sided confidence interval for p is
q
q
p(1
p)
p)
p z0.025
, p + z0.025 p(1
[0.5282, 0.5718]
n
n