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 . 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.
2 solved sample questions
From the free samples in the question bank, solved in full. They never rotate and they are never gated.
- Exam PMoment generating functionsCoreA random variable has . Find its variance.
Solution
- The normal MGF is , so match coefficients.
- The coefficient gives .
- The coefficient gives , so .
- The variance is 16. Recognising the shape is far faster than differentiating twice.
Trap. Reading the t² coefficient as the variance and answering 8.
- Exam PMoment generating functionsExam levelA variable has . Find .
Solution
- This MGF is a weighted sum of terms, so it describes a discrete variable taking values 0, 1 and 3 with probabilities 0.2, 0.3 and 0.5.
- Read the distribution straight off the exponents and coefficients.
- .
- . Differentiating and setting gives the same, but reading it off is faster and less error-prone.
Trap. Differentiating carelessly and dropping the factor of 3 from the e^{3t} term.
Drill this topic: Moment generating functions has 12 questions, 2 of them solved free on that page, and the full question bank has 400. The drills are part of Premium. Every free sample and today’s mixed round stay free.