Professional Documents
Culture Documents
(b) Using (a), or otherwise, show that the mean and the variance of X are,
respectively
k kq
µ= and σ 2 = 2 .
p p
2. If X has the discrete uniform distribution with probability mass function
1
f (x) = , for x = 1, 2, . . . , k,
k
(a) show that the moment-generating function of X is
et 1 − ekt
MX (t) = ;
k (1 − et )
then,
lim f (x) /g (x) = lim f ′ (x) /g ′ (x).
x→c x→c
1
STAT2602B TST23/24 Assignment 1
(b) Show that the rth derivative of MX−µ (t) with respect to t at t = 0 gives
the rth moment about the mean of X.
(c) Given that the moment-generating function of a normal random variable
X with mean µ and variance σ 2 is
1 22
MX (t) = exp µt + σ t .
2
Using (a) and (b), find the skewness and the kurtosis of X, which are
respectively,
E (X − µ)3 E (X − µ)4
α3 = and α4 = .
σ3 σ4
4. Given a random sample of size n from a Pareto population that its probability
density function is α
xα+1
, x > 1,
f (x) =
0, otherwise,
where α > 0. Let α̂ be the maximum likelihood estimator of α. Find α̂.
2
The University of Hong Kong
Department of Statistics and Actuarial Science
STAT2602B Probability and Statistics II
Semester 2 2023/2024
Assignment 1 Suggested Solution
1. (a) The moment-generating function of X is
X ∞
X ∞
X
tx tx x−1 k x−k k x−1 tx x −k
MX (t) = e f (x) = e Ck−1 p q =p Ck−1 e q q
x x=k x=k
∞
X
x−1
x −k
= pk Ck−1 qet qet ekt
x=k
∞ ∞
t k t x t −k t k
X
x−1
X
x−1
x−k
qet
= pe Ck−1 qe qe = pe Ck−1
x=k x=k
t k t −k
= pe 1 − qe
arising from
X ∞
X ∞
X
f (x) = 1 ⇒ x−1 k x−k
Ck−1 p q =1⇒p k x−1
Ck−1 (1 − p)x−k = 1.
x x=k x=k
(b) Evaluate the first-order and second-order derivatives of MX (t) with re-
spect to t
k−1 −k −k−1 k
MX′ (t) = kpet pet 1 − qet − k −qet 1 − qet pet
k −k−1
= pet 1 − qet k 1 − qet + kqet
k −k−1
= k pet 1 − qet
k −k−1
MX′′ (t) = k pet 1 − qet
k−1 −k−1
= k 2 pet pet 1 − qet
−k−2 k
+ (−k − 1) −qet 1 − qet k pet
k −k−2 2
= pet 1 − qet k 1 − qet + k (k + 1) qet
k −k−2 2
= pet 1 − qet k + kqet
= pk p−k−2 k 2 + kq = k 2 + kq p−2 .
3
STAT2602B TST23/24 Assignment 1 Suggested Solution
Hence, we have
µ = E (X) = kp−1 ,
σ 2 = E X 2 − µ2 = k 2 + kq p−2 − k 2 p−2 = kqp−2 .
S = et + e2t + . . . + ekt
et S = e2t + e3t + . . . + ekt + e(k+1)t
⇒ 1 − et S = et − e(k+1)t = et 1 − ekt
et − (k + 1) e(k+1)t + ke(k+2)t
lim MX′ (t) = lim
t→0 t→0 k (1 − et )2
et − (k + 1)2 e(k+1)t + k (k + 2) e(k+2)t
= lim
t→0 −2ket (1 − et )
et − (k + 1)3 e(k+1)t + k (k + 2)2 e(k+2)t
= lim
t→0 −2ket + 4ke2t
1 − (k + 1) + k (k + 2)2
3
=
−2k + 4k
k+1
=
2
Hence,
k+1
µ = E (X) = lim MX′ (t) = .
t→0 2
3. (a) Consider
4
STAT2602B TST23/24 Assignment 1 Suggested Solution
In general,
dr
r
MX−µ (t) = E ((X − µ)r ) + sum of terms in t.
dt
Substituting t = 0, we can obtain, for example
d d2
= E (X − µ)2 .
MX−µ (t) = E (X − µ) , MX−µ (t)
dt t=0 dt2 t=0
In general, we have
d
MX−µ (t) = E ((X − µ)r ) .
dtr t=0
5
STAT2602B TST23/24 Assignment 1 Suggested Solution
The skewness of X is
(3)
E (X − µ)3
µ3 MX−µ (0)
α3 = 3 = = = 0.
σ σ3 σ3
The kurtosis of X is
(4)
E (X − µ)4
µ4 MX−µ (0)
α4 = 4 = = = 3.
σ σ4 σ4