MA204 FinalTest 2022
MA204 FinalTest 2022
1.1 Let the discrete random variable (r.v.) X ∼ Bernoulli(p) with p ∈ (0, 1)
and r be a positive integer, what is the distribution of X r ? [2 ms]
1.2 Let the probability density function (pdf) of the continuous r.v. X ∼
Exponential(β) be f (x; β) = βe−βx , where x > 0 and β > 0, then the
median of X, med(X) = . [2 ms]
iid
1.3 Let X1 , . . . , Xn ∼ U (0, 1), what is the distribution of the smallest order
statistic X(1) = min(X1 , . . . , Xn )? [2 ms]
1.4 The moment generating function (mgf) of the Poisson r.v. X ∼ Poisson(λ)
is . [Hint: The probability mass function (pmf) of X ∼ Poisson(λ)
x −λ
is λ e /x!, x = 0, 1, . . . , ∞] [2 ms]
1.5 Let E(X) = µ and Var(X) = σ 2 , then the correlation coefficient of X
and −X is . [2 ms]
iid
1.6 Let X1 , . . . , Xn ∼ Bernoulli(θ) with θ > 0, and the prior distribution of θ
be Beta(α, β) with α, β > 0, then the posterior distribution of θ is
and the Bayesian estimator of θ is . [4 ms]
1.7 Let X ∼ F (ν1 , ν2 ) (i.e., F distribution with ν1 and ν2 degrees of freedom),
then the distribution of X −1 is . [2 ms]
1.8 An efficient estimator of the parameter θ is the uniformly minimum vari-
ance unbiased estimator (UMVUE) of θ, is it true? [2 ms]
2
iid
1.9 Let X1 , . . . , Xn ∼ N (µ, σ02 ) with known σ02 > 0, then the Fisher informa-
tion In (µ) = and the UMVUE of µ is . [4 ms]
1.10 State the definition of a sufficient statistic of the parameter θ. [2 ms]
iid n
ˆ (X1 , . . . , Xn )> and T (x) =
P
1.11 Let X1 , . . . , Xn ∼ Poisson(θ), x = ˆ i=1 Xi ,
then the conditional distribution
[Total: 40 ms]
where the (i, j) element of A is aij = Pr(X = xi |Y = yj ) and the (i, j) element
of B is bij = Pr(Y = yj |X = xi ).
[Total: 9 ms]
iid
3. Let X1 , . . . , Xn ∼ Beta(θ, 1) with pdf f (x; θ) = θxθ−1 I(0 < x < 1), where
θ > 0.
[Total: 21 ms]
iid
4. Let X1 , . . . , Xn ∼ N (µ0 , σ 2 ), where µ0 is known and σ 2 is unknown.
4.1 Using the Neyman–Pearson lemma, to find a most powerful test (MPT)
of size α for testing the simple null hypothesis H0 : σ 2 = σ02 against the
simple alternative hypothesis H1 : σ 2 = σ12 , where σ12 > σ02 . [10 ms]
4.2 Find a uniformly most powerful test (UMPT) of size α for testing the null
hypothesis H0 : σ 2 6 σ02 against H1 : σ 2 > σ02 . [10 ms]
4
[Total: 20 ms]
5. In the 98 year period from 1900 to 1997, there were 159 U.S. land falling
hurricanes. The numbers of hurricanes per year are summarized as follows:
Does the number of land falling hurricanes per year follow a Poisson distribution
when the approximate significance level is taken to be 0.05? [χ2 (0.05, 3) = 7.81,
χ2 (0.05, 4) = 9.49, χ2 (0.05, 5) = 11.07, where χ2 (α, ν) denotes the upper α-th
quantile of χ2 (ν)]
[Total: 10 ms]
1. Suggested Solutions.
d
1.1 X r = X ∼ Bernoulli(p).
1.3 X(1) ∼ Beta(1, n) with pdf n(1 − x)n−1 · I(0 < x < 1).
Solution: Let X ∼ U (0, 1), then the pdf and cdf of X are given by
f (x) = 1 · I(0 < x < 1)
and
F (x) = 0 · I(x 6 0) + x · I(0 < x < 1) + 1 · I(x > 1).
So the pdf of X(1) is
g1 (x) = nf (x){1 − F (x)}n−1 = n(1 − x)n−1 · I(0 < x < 1). k
iid
1.12 Assume that X1 , . . . , Xn ∼ f (x; θ) and T = T (X1 , . . . , Xn ) is a sufficient
statistic of θ. Let P = P (T, θ) be a function of T and θ. If the distribution of
P does not depend on θ, then P is called a pivotal quantity or pivot. k
7
Pn
1.13 T (x) =
ˆ i=1 (Xi − µ0 )2 is a sufficient statistic of σ 2 . Then
n 2
X Xi − µ0
P = ∼ χ2 (n)
i=1
σ
is a pivotal quantity of σ 2 . k
= Pr(x ∈ C|θ ∈ Θ0 ),
1.15 If αT1 (θ), αT2 (θ) 6 α∗ and βT1 (θ) 6 βT2 (θ), then T1 is better than T2 ,
where α∗ (0 < α∗ < 1) is a preassigned (small) level.
Alternatively, if pT1 (θ) > pT2 (θ), then T1 is better than T2 . k
1.17 The p-value (or probability value) is defined as the probability, under
the null hypothesis H0 , the test statistic T is equal to or more extreme than
the observed value tobs ; i.e.,
Pr(T is equal to or more extreme than the observed value tobs |H0 ). k
8
X x1 x2 x3
pi = Pr{X = xi } 0.24 0.28 0.48
Y y1 y2 y3 y4
qj = Pr{Y = yj } 0.28 0.16 0.28 0.28
3. Solution.
n n
!θ n
!−1
Y Y Y
f (x1 , . . . , xn ; θ) = θxθ−1
i = θn xi × xi .
i=1 i=1 i=1
ˆ ni=1 Xi is a sufficient s-
Q
From the factorization theorem, we know that S =
ˆ − log(S) = − ni=1 log Xi is also a sufficient statistic
P
tatistic of θ. Thus, T =
of θ.
3.2 [see Example 3.29 on the page 152 of the Textbook] The likelihood
function of θ is L(θ) = ni=1 θxiθ−1 , so that the log-likelihood function is
Q
n
X
`(θ) = n log θ + (θ − 1) log xi .
i=1
Pn
Let 0 = `0 (θ) = n/θ + i=1 log xi , the MLE of θ is given by
n n
θ̂ = Pn = .
− i=1 log Xi T
3.5 Let X ∼ f (x; θ) = θxθ−1 , x ∈ (0, 1). Then, from (3.24) in the Textbook,
we have
2 2
d log f (X; θ) 1
I(θ) = E =E + log X = E [− log X1 − τ (θ)]2
dθ θ
(5) (5) 1
= Var(− log X1 ) =
θ2
while the method on page 152 of the Textbook is much easier; and hence
n
In (θ) = nI(θ) = .
θ2
{τ 0 (θ)}2
T (4) 1
Var = = ,
n nθ2 In (θ)
11
i.e., the variance attains the CR lower bound. Then T /n is an efficient estimator
of τ (θ), and hence T /n is the unique UMVUE for τ (θ).
3.7 From (2), we know that 2θT ∼ χ2 (2n) is a pivotal quantity. Thus, using
the equal-probability (or equal-tail) method, we have
n o
1 − α = Pr χ2 (1 − α/2, 2n) 6 2θT 6 χ2 (α/2, 2n)
2
χ2 (α/2, 2n)
χ (1 − α/2, 2n)
= Pr 6θ6 ;
2T 2T
that is,
χ2 (1 − α/2, 2n) χ2 (α/2, 2n)
[Lp , Up ] = ,
2T 2T
is a 100(1 − α)% CI for θ. k
12
4. Solution.
4.1 First we consider to test
i.e., c = σ02 χ2 (α, n). Therefore, by the Neyman–Pearson lemma, a test ϕ with
critical region
Pn
C = {x : i=1 (xi − µ0 )2 > σ02 χ2 (α, n)}
13
4.2 Since the critical region C depends only on n, σ02 , α and the fact σ12 > σ02 ,
but not on the value of σ12 , the test ϕ is also a UMPT of size α for testing
where the fact that Pr{χ2 (n) < c/σ 2 } is a decreasing function of σ 2 is utilized.
Then, the test ϕ is also a UMPT of size α for testing H0 : σ 2 6 σ02 against
H1 : σ 2 > σ02 . k
14
j 0 1 2 3 4 5 6(≥ 6)
Nj 18 34 24 16 3 1 2
p̂j0 0.1974 0.3203 0.2598 0.1405 0.0570 0.0185 0.0064
np̂j0 19.3466 31.3889 25.4635 13.7711 5.5857 1.8125 0.6317
Those classes with expected frequencies less than 5 should be combined with
the adjacent class. Therefore, we combine the last 3 classes, and the revised
table is
j 0 1 2 3 4(≥ 4)
Nj 18 34 24 16 6
p̂j0 0.1974 0.3203 0.2598 0.1405 0.0819
np̂j0 19.3466 31.3889 25.4635 13.7711 8.0299
So we have
4
X (Nj − np̂j0 )2
Q̂98 = = 1.2690 < χ2 (0.05, 5 − 1 − 1) = 7.81.
j=0
np̂ j0