4.9.5 · D3Probability Theory & Statistics

Worked examples — Moment generating function (MGF) — definition, use

2,432 words11 min readBack to topic

This page is the drill hall for the MGF. We are not re-teaching the theory — we are walking every kind of problem an exam can throw at you, one cell at a time.

Before you compute anything, remember the two machines you already own:

  • Extraction: — differentiate times, then set the dial to .
  • Combination: if and are independent, .

Everything below is one of those two machines, plus care about where the MGF is allowed to live (its convergence interval).


The scenario matrix

Every MGF problem falls into one of these case classes. The whole point of this page is that after reading it you have seen every row filled in with a full solution.

Cell Case class What makes it tricky Covered by
A Discrete, finite support just sum — no calculus to build it Ex 1
B Discrete, infinite support it's a geometric series — needs a convergence condition Ex 2
C Continuous, one-sided domain integral converges only for some — sign of exponent matters Ex 3
D Degenerate variable ( constant) "no randomness" — does the MGF still work? Ex 4
E Shift & scale (), sign of negative flips the convergence interval Ex 5
F Sum of independents multiply MGFs, then recognise the answer Ex 6
G Limiting behaviour () MGF → a known MGF ⇒ distribution converges Ex 7
H Real-world word problem translate words → distribution → MGF → number Ex 8
I Exam twist (given MGF, work backwards) no distribution named — read it off the MGF Ex 9

Example 1 — Cell A: discrete, finite support


Example 2 — Cell B: discrete, infinite support (geometric series)


Example 3 — Cell C: continuous, one-sided domain (sign of the exponent)

Figure — Moment generating function (MGF) — definition, use

The red curve above is for : notice it is finite and smooth around but shoots to infinity as (the dashed black wall). That vertical wall is the edge of the convergence interval.


Example 4 — Cell D: degenerate variable (zero randomness)


Example 5 — Cell E: shift & scale, and the sign of


Example 6 — Cell F: sum of independents (multiply, then recognise)


Example 7 — Cell G: limiting behaviour (MGF convergence ⇒ distribution convergence)


Example 8 — Cell H: real-world word problem


Example 9 — Cell I: exam twist (given only the MGF, work backwards)


Recall One-line recap of the matrix

Discrete finite (sum) ::: Ex 1 — just , valid for all . Discrete infinite (geometric) ::: Ex 2 — series converges only where . Continuous one-sided (sign) ::: Ex 3 — exponent must be negative at . Degenerate constant ::: Ex 4 — , variance . Negative scale ::: Ex 5 — , interval flips sign. Sum of independents ::: Ex 6 — multiply, then recognise (Poissons add). Limit ::: Ex 7 — Binomial Poisson via . Word problem ::: Ex 8 — three exp waits, total mean . Reverse-engineer ::: Ex 9 — .

Related tools worth a click: Cumulant Generating Function (take of these MGFs), Characteristic Function (the always-exists cousin from cell C's failures), and Probability Distributions for the families we recognised.