Master's Written Examination and Solution
Master's Written Examination and Solution
Master's Written Examination and Solution
Full points may be obtained for correct answers to eight questions. Each
numbered question (which may have several parts) is worth the same num-
ber of points. All answers will be graded, but the score for the examination
will be the sum of the scores of your best eight solutions.
Use separate answer sheets for each question. DO NOT PUT YOUR
NAME ON YOUR ANSWER SHEETS. When you have finished,
insert all your answer sheets into the envelope provided, then seal it.
1
Problem 1 – Stat 401
Solution:
1. The joint probability mass function of (X1 , X2 ) is given by the follow.
X2 = 1 X2 = 2
1 1
X1 = 1 10 10
1 2
X1 = 2 10 10
2 3
X1 = 3 10 10
3.
1 1 1 2
Eg(X1 , X2 ) =1 × 1 × +1×2× +2×1× +2×2×
10 10 10 10
2 3
+3×1× +3×2× .
10 10
2
Problem 2 – Stat 401
Solution:
Let
3
Solution:
1. The probability density function fX (x) of X is given by
Z ∞ Z ∞
fX (x) = f (x, y)dy = 2e−x e−y dy = 2e−2x ; 0 < x < ∞.
x x
Therefore, the conditional probability density function of Y given
X = x is:
f (x, y)
fY |X (y|x) = = ex−y ; 0 < x < y < ∞.
fX (x)
2. The conditional expectation is computed by the conditional density
as follows.
Z ∞
E(Y |X = x) = y · ex−y dy = x + 1.
x
Solution:
(i) The probability mass function of Xi can be written as
exp{Xi ln θ − ln Xi − θ}, Xi = 0, 1, 2, 3, . . . ,
5
n
P (X1 = 2, ni=1 Xi )
X P
2P (X1 = 2| Xi ) = 2
P ( ni=1 Xi )
P
i=1
−θ 2
−(n−1)θ Pn
X −2
Pn
e (θ) /2 e ((n − 1)θ) i=1 i
/( i=1 Xi − 2)!
=2 Pn
e−nθ (nθ) i=1 Xi /( ni=1 Xi )!
P
Pn
(n − 1) i=1 Xi −2 ( ni=1 Xi )!
P
= Pn X Pn
n i=1 i ( i=1 Xi − 2)!2!
Pn 2 Pni=1 Xi −2
i=1 Xi 1 1
=2 1−
2 n n
6
Problem 6 – Stat 411
(i) Are ni=1 Xi and minni=1 Xi / ni=1 Xi independent? Justify your an-
P P
swer.
Pn
(ii) Compute E(minni=1 Xi / i=1 Xi ).
Solution:
(i) The pdf of X can be written as exp(−x/θ − ln θ), where Pn 0 < x < ∞.
Thus it is a regular exponential class. Consequently i=1P Xi is a com-
plete sufficient statistics. On the other hand, mini=1 Xi / ni=1 Xi is aP
n
scale invariance function and Pf (x; θ) is scale function, thus minni=1 Xi / ni=1 Xi
is ancillary statistics. Thus ni=1 Xi and minni=1 Xi / ni=1 Xi are in-
P
dependent.
(ii) First we have Z ∞
x −x/θ
E(Xi ) = e dx = θ.
0 θ
So we E( ni=1 Xi ) = nθ. The PDF of minni=1 Xi is given by
P
n − x n−1 − x n nx
f1 (x) = e θ e θ = e− θ .
θ θ
Thus Z ∞
n nx − nx θ
E(min Xi ) = e θ dx = .
i=1 0 θ n
By the conclusion in (i), we have
n
! ! n
!
n
minni=1 Xi
X mini=1 Xi X
E Xi Pn =E Xi E Pn .
i=1 i=1 X i i=1 i=1 Xi
Pn
Thus E(minni=1 Xi / i=1 Xi ) = 1
n2
7
Problem 7 – Stat 411
(a) Find a most powerful critical region of size α = 0.05 for testing H0 :
θ = 1 against H1 : θ = 3 .
For your reference, P (Y ≥ 37.652) = 0.05 if Y ∼ χ2 (25).
(b) Determine the power of the test you obtained in (a) .
Note that it’s enough to conclude something like “the power is P (Y ≥
37.652) with Y ∼ χ2 (25)”.
(c) Find a uniformly most powerful critical region of size α = 0.05 for
testing H0 : θ = 1 against H1 : θ > 1 .
(d) Is there a uniformly most powerful test of H0 : θ = 1 against H1 : θ 6=
1? Why?
Solution:
8
" 25
# " 25
#
X X
Pθ=3 Xi2 ≥ 37.652 = Pθ=3 Xi2 /3 ≥ 12.551 = P [Y ≥ 12.551]
i=1 i=1
if Y ∼ χ2 (25).
(c) Repeating the procedure in (a) for H0 : θ = 1 against H1 : θ = θ1 , we
can
P25always get the same most powerful critical region C = {(x1 , . . . , x25 )T |
2
i=1 xi ≥ 37.652}, as long as θ1 > 1. Therefore, C is a uniformly most
powerful critical region for testing H0 : θ = 1 against H1 : θ > 1 .
(d) From (c), we know that a uniformly most powerful critical region
for testing H0 : P θ = 1 against H1 : θ > 1 has to take the form of
{(x1 , . . . , x25 ) | 25
T 2
i=1 xi ≥ c} for some constant c. Similarly, we know
that a uniformly most powerful critical region for testing P H0 : θ = 1
against H1 : θ < 1 has to take the form of {(x1 , . . . , x25 ) | 25
T 2
i=1 xi ≤ d}
for some constant d. Therefore, there is no uniformly most powerful test
for H0 : θ = 1 against H1 : θ 6= 1.
Solution:
n
θ̂ = Qn .
− log i=1 (1 − xi )
9
Then ni=1 (1 − xi ) = e−n/θ̂ and the likelihood ratio statistic for testing
Q
H0 : θ = 1 against H1 : θ 6= 1 is
" n
#1−θ̂
L(1) Y
Λ= = (θ̂)−n (1 − xi ) = (θ̂)−n · e−n/θ̂ · en
L(θ̂) i=1
Qn
(c) Denote Y = i=1 (1 − xi ) ∈ (0, 1). Then θ̂ = −n/(log Y ) ∈ (0, ∞).
From (b), Λ = Λ(θ̂) = en · (θ̂)−n e−n/θ̂ . Then log Λ = n − n log θ̂ − n/θ̂ and
∂ log Λ n n n
=− + = (1 − θ̂)
∂ θ̂ θ̂ (θ̂)2 (θ̂)2
As a function of θ̂, Λ or log Λ increases before θ̂ = 1 and decreases after
θ̂ = 1. Therefore,
Λ ≤ λ ⇐⇒ θ̂ ≤ c1 or θ̂ ≥ c2 ⇐⇒ Y ≤ d1 or Y ≥ d2
with λ = Λ(c1 ) = Λ(c2 ) providing critical values d1 = e−n/c1 and d2 =
e−n/c2 for Y . That is, the critical region for the likelihood ratio test in (b)
takes the form of
n
Y n
Y
{(x1 , . . . , xn ) | (1 − xi ) ≤ d1 or (1 − xi ) ≥ d2 }.
i=1 i=1
Solution:
It is known that X̄ ∼ N µ, σ 2 /n .
10
(1). The significant level is the maximum type I error which can be reached
at the boundary point µ = 35.
X̄ − µ 36.5 − 35
α = P X̄ ≥ 36.5 µ = 35 = P √ ≥ = 1 − Φ (0.75) .
σ/ n 8/4
(2). Type I error probability at µ = 34
P X̄ ≥ 36.5 µ = 34 = 1 − Φ (1.25)
Power at µ = 36
P X̄ ≥ 36.5 µ = 36 = 1 − Φ (0.25) .
Solution:
Source S.S. DF M S F
Regression 154 2 77 21.76
Error 46 13 3.54 Total
Total 200 15
11
(2). The coefficient of the determination
SSR
R2 = = 77%
SST O
It means that there are 77% of variation of the response explained by the
linear regression model.
(3) The F -statistic in the ANOVA table F = 21.76 > F (0.05, 2, 13) =
3.80. Therefore, we will reject the null hypothesis at level 0.05, i.e. at
least one predictor contribute significantly to explain the variation in the
response.
(4). The regression coefficient β1 is the effect on mean response for a unit
increase in predictor variable X1 , while holding the other predictor X2
constant.
Use t-test for individual test H0 : β1 = 0 and the statistic is
β̂1
tβ̂1 =
s β̂1
where β̂1 and s β̂1 are the least square estimate and its standard error
of linear coefficient β1 . Under H0 : β1 = 0, the test statistic tβ̂1 ∼ t (13) .
Problem 11 – Stat 481
(1). In the context of one-way ANOVA ( fixed effect with k levels), write
down the model, the asummptions, the null hypothesis and the expression
for (I).Total Sum of Squares (SSTO), (II) Treatment Sum of Squares
(SSTR), (III) Error Sum of Squares (SSE).
(2). Establish that SST O = SST R + SSE .
(3). Under the null hypothesis show that
SSE 2 SST R
2
∼ χ (N − k) , 2
∼ χ2 (k − 1)
σ σ
and SSE is independent of SST R.
Solution:
(1). ANOVA model: Yij = µ + τi + εij , εij ∼i.i.d. N 0, σ 2 , i = 1, ..., k; j =
1, ...n. Null hypothesis H0 : τ1 = τ2 = τ3 = 0, the sum of squares
k X
n k k X
n
X 2 X 2 X 2
SST O = Yij − Ȳ·· , SST R = n Ȳi· − Ȳ·· , SSE = Yij − Ȳi· .
i=1 j=1 i=1 i=1 j=1
12
(2).
k X
X n k X
X n
Yij − Ȳi· Ȳi· − Ȳ·· = (εij − ε̄i· ) (ε̄i· − ε̄·· )
i=1 j=1 i=1 j=1
k
X n
X
= (ε̄i· − ε̄·· ) (εij − ε̄i· ) = 0
i=1 j=1
k X
n
X 2
SST O = Yij − Ȳi· + Ȳi· − Ȳ··
i=1 j=1
k k X
n
X 2 X 2
=n Ȳi· − Ȳ·· + Yij − Ȳi· = SST R + SSE
i=1 i=1 j=1
2
(3). It is know that (n − 1) s2i /σ 2 = nj=1 Yij − Ȳi· /σ 2 ∼ χ2 (n − 1) .
P
13
(a) For a fixed-effects model, complete the ANOVA table.
(No need to calculate the p-values.)
(b) What assumptions do you need for the fixed-effect model?
Briefly describe how to check your assumptions.
(c) For a random-effects model, complete the ANOVA table.
(No need to calculate the p-values.)
Solution:
(a)
Source SS df MS F
A 20.12 2 10.06 4.72
B 15.21 3 5.07 2.38
AB 15.52 6 2.59 1.21
Error 51.15 24 2.13
Total 102.00 35
(b) The random errors are assumed to be iid normal. After fitting the
regression model and obtaining the residuals, we may use the residual plot
to check the model assumption.
(c)
Source SS df MS F
A 20.12 2 10.06 3.884*
B 15.21 3 5.07 1.958*
AB 15.52 6 2.59 1.21
Error 51.15 24 2.13
Total 102.00 35
14