Exam PRandom variablesFree to read
Moment generating functions
M(t) = E[e^{tX}] encodes every moment in its derivatives at zero, and turns sums of independent variables into products.
The formulas
- Definition
- Moments
- Sum of independents
- Linear transform
- Uniqueness
Where it comes from
- Expand and take expectations term by term: the coefficient of is .
- Differentiating times and setting therefore isolates the th moment.
- For independent and , — the factorisation that makes MGFs worth using at all.
Worked example
A random variable has MGF $M(t) = \left(0.3 + 0.7e^{t}\right)^{8}$. Find its variance.
- This is the MGF of a binomial with and , by inspection of .
- Uniqueness of the MGF makes that identification exact — no differentiation needed.
- .
- .
Answer: 1.68
This answer is recomputed from the site’s own interest-theory and probability functions every time the test suite runs, so the page and the mathematics cannot drift apart.
Memory hooks
- Recognise the shape before you differentiate. Most MGF questions are really 'name this distribution'.
- M(0) = 1 always. If your MGF fails that, you have made an algebra slip.
Traps
- Forgetting that M'(0) is E[X], not the variance.
- Multiplying MGFs of variables that are not independent.
Related
Drill this: the Exam P question bank has original questions on this topic, and today’s free round is open to everyone.