You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
The moment generating function (MGF) is a powerful tool that encodes all the moments of a distribution in a single function. It can be used to find means and variances, prove distributional results, and identify distributions. This topic is part of the AQA Further Mathematics specification.
The moment generating function of a random variable X is defined as:
MX(t)=E(etX)
For a discrete random variable:
MX(t)=∑xetxP(X=x)
For a continuous random variable:
MX(t)=∫−∞∞etxf(x)dx
The MGF exists (is finite) for all t in some interval containing 0.
Expanding etX as a Taylor series:
etX=1+tX+2!(tX)2+3!(tX)3+⋯
Taking expectations:
MX(t)=1+tE(X)+2!t2E(X2)+3!t3E(X3)+⋯
So the n-th moment is obtained by differentiating n times and evaluating at t=0:
E(Xn)=MX(n)(0)
| Derivative | At t=0 | Gives |
|---|---|---|
| MX′(0) | E(X) | Mean |
| MX′′(0) | E(X2) | Second moment |
| MX′′′(0) | E(X3) | Third moment |
And Var(X)=MX′′(0)−(MX′(0))2.
Exam Tip: The MGF provides a systematic way to find all moments. Even if you could compute E(X) directly, the MGF method is valuable because it gives E(X2) (and hence variance) with minimal extra work.
Let X∼Po(λ).
MX(t)=∑r=0∞etrr!e−λλr=e−λ∑r=0∞r!(λet)r=e−λ⋅eλet=eλ(et−1)
Finding the mean:
MX′(t)=λet⋅eλ(et−1)
MX′(0)=λ⋅1⋅e0=λ
So E(X)=λ.
Finding the second moment:
MX′′(t)=(λet+λ2e2t)eλ(et−1)
MX′′(0)=(λ+λ2)⋅1=λ+λ2
So E(X2)=λ+λ2 and Var(X)=λ+λ2−λ2=λ.
Let X∼Exp(λ), so f(x)=λe−λx for x≥0.
MX(t)=∫0∞etxλe−λxdx=λ∫0∞e−(λ−t)xdx=λ−tλfor t<λ
Mean:
MX′(t)=(λ−t)2λ⟹MX′(0)=λ2λ=λ1
Second moment:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.