HW3: Moment Functions - Solutions: Problem 1. Let X Be A Real-Valued Random Variable On A Probability Space
HW3: Moment Functions - Solutions: Problem 1. Let X Be A Real-Valued Random Variable On A Probability Space
h i
MaX+b (t) = E et(aX+b)
= etb E eta X
= etb MX (ta)
1
(a) Show that MX (t) the moment generating function of X is given by :
1
MX (t) =
(1 − t)2
Answer.
Z ∞
tX
MX (t) = E[e ]= etx fX (x) dx
−∞
Z ∞
= etx xe−x dx
0
Z ∞
= xe−(1−t)x dx
0
0 2
MX (t) =
(1 − t)3
Thus,
0 2
E[X] = MX (0) = =2
(1 − 0)3
(c) Compute Var(X) using MX (t).
00
Answer. The second derivative MX (t) is given by : for t < 1,
00 6
MX (t) =
(1 − t)4
Therefore, the second moment of X is :
00 6
E[X 2 ] = MX (0) = =6
(1 − 0)4
Finally,
00 0
Var(X) = MX (0) − MX (0)2 = 6 − 22 = 2.
2
Problem 3. Let X be a continuous random variable with probability density
function fX and moment generating function MX defined on a neighborhood
(−h, h) of zero, for some h > 0. Show that1
Hint. Start from the right-hand side of the inequality and split the integral
defining MX (t) into the intervals (−∞, a) and (a, ∞).
Answer.
Z ∞
MX (t) = E[etX ] = etx fX (x) dx
−∞
Z a Z ∞
= etx fX (x) dx + etx fX (x) dx
−∞ a
Ra
Noting that −∞
etx fX (x) dx ≥ 0 since etx ≥ 0 and fX (x) ≥ 0, we have
Z ∞
MX (t) ≥ etx fX (x) dx
a
Z ∞
≥ eat fX (x) dx
a
tx at
since e ≥e for all x ≥ a. Therefore,
Z ∞
at
MX (t) ≥ e fX (x) dx = eat P(X ≥ a).
a
KX (t) = ln MX (t)
Answer.
0
0 MX (t)
KX (t) =
MX (t)
Thus,
0
0 MX (0)
KX (0) = = E[X]
MX (0)
0
since MX (0) = E[X] and MX (0) = 1.
1 Actually, this property also holds for discrete random variables.
3
(b) and that
00
KX (0) = Var(X)
Answer.
00 0
00 MX (t)MX (t) − MX (t)2
KX (t) =
MX (t)2
Hence,
00 0
00 MX (0)MX (0) − MX (0)2
KX (0) = 2
MX (0)
E[X 2 ] · 1 − (E[X])2
=
12
= Var(X)
1−1
We recognize a geometric series with first term [(1 − p)et ] = 1 and com-
mon ratio (1 − p)et . This series converges if and only if −1 < (1 − p)et < 1,
that is if and only if t < − ln(1 − p). In this case, the moment generating
function is defined and is given by :
pet
MX (t) =
1 − (1 − p)et
4
(e) Compute E[X] using KX (t).
0
Answer. The first derivative KX (t) is given by :
0 (1 − p)et
KX (t) = 1 +
1 − (1 − p)et
Therefore,
0
E[X] = KX (0)
(1 − p) · 1
=1+
1 − (1 − p) · 1
1
=
p
Therefore,
00
Var(X) = KX (0)
(1 − p) · 1
= 2
(1 − (1 − p) · 1)
1−p
=
p2