Mid-Term Test Solutions
Mid-Term Test Solutions
MATHEMATICAL STATISTICS
MID-TERM TEST
• The test comprises three problems and the maximum score is 50 points.
• Good luck!
1 16
2 17
3 17
Total 50
1
1. Let X1 , X2 , . . . , X10 be an independent and identically distributed sample from
a normal distribution with mean µ = 0 and variance σ 2 = 3.
X12 X22 X2
U= + + · · · + 10 ∼ χ210.
3 3 3
If we are not told that the i.i.d. sample X1 , . . . , X10 come from a nor-
mal distribution, can we say that X̄ and S 2 are statistically independent?
Explain. [4 points]
Solution It is proved in class that X̄ and S 2 are independent if the popu-
lation is normal. This is not true in general as X̄ and S 2 are both functions
of X1 , . . . , X10 .
2
2. Let X1 , X2 , . . . , Xn be an i.i.d. sample from the following probability density
function with parameter θ > 0:
(
x −x2 /(2θ2 )
θ2
e , if x > 0,
f (x|θ) =
0, otherwise.
(a) Let θ̂ denote the method of moments estimate of θ. Find θ̂. Hint: Think
of a density of a normal distribution. [5 points]
Solution
Z ∞ x2 −x2 /(2θ2 )
µ1 = E(X1 ) = 2
e dx
√0 θZ
2π ∞ x2 −x2 /(2θ2 )
= √ e dx
θ 0 2πθ
√ Z
2π ∞ x2 −x2 /(2θ2 )
= √ e dx
2θ −∞ 2πθ
√
2π 2
= θ
√2θ
πθ
= √ .
2
Thus the method of moments estimate of θ is
√ √ n
2 2 X
µ̂ = √ µ̂1 = √ Xi .
π πn i=1
(b) Let θ̃ denote the maximum likelihood estimate of θ. Find θ̃. [4 points]
Solution The loglikelihood function is
n
Y xi −x2 /(2θ2 )
l(θ) = log[ 2
e i ]
i=1 θ
n n
X X x2i
= log(xi ) − 2n log(θ) − .
i=1 i=1 2θ2
Hence n
d 2n X x2i
l(θ) = − + 3
.
dθ θ i=1 θ
3
(c) Find the asymptotic variance of θ̃. Hint: Use the Gamma function
Z ∞
Γ(z) = tz−1 e−t dt.
0
[4 points]
Solution
∂2
I(θ) = −E[ log f (X1 |θ)]
∂θ2
∂2 X2
= −E{ 2 [log(X1 ) − 2 log(θ) − 12 ]}
∂θ 2θ
2 3X12
= −E[ 2 − 4 ]
θ θ
2 3E(X12 )
= − 2+ .
θ θ4
q
Now letting y = x2/(2θ2 ) and hence x = y/(2θ2 ) and dx = (θ2 /x)dy, we
get
Z ∞ x3 −x2 /(2θ2 )
E(X12 ) = e dx
0 θ2
Z ∞ (2θ2 )3/2y 3/2 −y θ
= e √ dy
0 θ2 2y
Z ∞
= 2θ2 ye−y dy
0
= 2θ2 Γ(2)
= 2θ2 ,
since Γ(2) = 1! = 1. Thus the aymptotic variance of θ̃ is
1 θ2
= .
nI(θ) 4n
(d) Find a sufficient statistic for θ. [4 points]
Solution The joint pdf is
n Qn Pn
Y i=1 xi − x2i /(2θ2 )
f (xi |θ) = e i=1
i=1 θ2n
= g(t, θ)h(x1, . . . , xn ),
where
n
X
t = x2i ,
i+1
2
g(t, θ) = θ−2n e−t/(2θ ) ,
n
Y
h(x1, . . . , xn ) = xi .
i=1
4
Pn
It follows from the factorization theorem that T = i=1 Xi2 is sufficient for
θ.
µ̂c = c1 X1 + c2 X2 ,
c1 + c2 = 1.
(d) Find the values of c1 and c2 such that µ̂c is an unbiased estimator of µ and
has the smallest standard deviation. [5 points]
Solution Easiest way is to write c2 = 1 − c1 (from part (b)) and minimize
c1 c2 c1(1 − c1)
c21 + c22 − = c21 + (1 − c1 )2 −
2 2
with respect to c1 . This gives us c1 = c2 = 1/2.
Another way isto use the method of Lagrange multipliers.