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

  1. Expand and take expectations term by term: the coefficient of is .
  2. Differentiating times and setting therefore isolates the th moment.
  3. 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.

  1. This is the MGF of a binomial with and , by inspection of .
  2. Uniqueness of the MGF makes that identification exact — no differentiation needed.
  3. .
  4. .

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.