Moment Generating Functions
The transform $M_X(t) = \mathbb{E}[e^{tX}]$ that encodes every moment in one function, with its uniqueness theorem, the sums-of-independents multiplication rule, and cumulants, the additive cousins that linearise skewness and kurtosis.
Prerequisites: Expectation, Variance & Moments, Common Distributions
The moment generating function packs an entire distribution's moment structure into one function of a dummy variable , and then makes two hard operations, computing high moments, and finding the law of a sum of independent variables, into differentiation and multiplication. It is the algebraic engine behind clean proofs of the The Central Limit Theorem and the reason certain distribution families are closed under addition. Master it and a class of otherwise painful problems collapses to bookkeeping.
Definition and the "generating" property
The moment generating function (MGF) of a random variable is defined for in some neighbourhood of where the expectation is finite. The name comes from expanding the exponential and using linearity of Expectation, Variance & Moments: So is the exponential generating function of the moments: the -th moment is the -th derivative at zero, In particular , , and , so . One function, differentiated repeatedly at a point, yields every moment.
Uniqueness: the MGF determines the law
The reason the MGF is a characterisation and not just a summary: if for all in an open interval around , then and have the same distribution. This is what licenses the standard proof technique, compute an MGF, recognise it, and conclude the distribution. The caveat is existence: the MGF requires to have finite expectation near , which fails for heavy-tailed laws (lognormal, Student-, Cauchy) whose moments blow up. When the MGF does not exist, one uses the characteristic function , which always exists (), retains the uniqueness property, and is the tool serious proofs actually use. The MGF is the friendlier version that works when tails are light.
The multiplication rule for independent sums
Here is the property that makes MGFs indispensable. If and are independent, then the middle step using that independence factorises the expectation of a product. Convolution becomes multiplication. Finding the density of a sum directly requires an integral convolution; multiplying MGFs and recognising the result is far easier. This immediately explains why several distribution families are closed under addition, the Common Distributions relationships fall out mechanically:
- Two independent normals: , normal, means and variances add.
- Two independent Poissons: , Poisson with rate .
- independent Bernoulli(): , the Binomial MGF, proving the sum is Binomial.
Cumulants: the additive moments
Take logs of the MGF to get the cumulant generating function: The coefficients are the cumulants, and they are the "right" descriptors of shape because the multiplication rule becomes addition under the log: for independent , Cumulants are additive over independent sums. The low ones are interpretable: so is skewness and is excess kurtosis. The normal's signature is that all cumulants beyond the second vanish, is quadratic, nothing higher. This is the sharpest possible statement of "the normal has no skew and no excess kurtosis", and it is why cumulants are the natural language for measuring departures from normality in return data.
Worked example, CLT scaling made obvious
Cumulant additivity gives the The Central Limit Theorem's normalisation in one line. Let be i.i.d. with mean , variance , and cumulants . For the standardised sum , cumulants scale as . So stays fixed, while for , . Every cumulant above the second is killed by the scaling, leaving only the mean and variance, precisely a normal. The Edgeworth expansion formalises the leading correction: for finite the density picks up a skewness term of order , which is exactly why small samples of skewed data are noticeably non-normal and why the The Central Limit Theorem convergence is slow in the tails.
Failure modes and subtleties
- Non-existence under heavy tails. If for all (lognormal, Student-), the MGF simply does not exist; switch to the characteristic function. This is not a technicality in finance, where fat tails are the norm.
- Moments existing does not guarantee the MGF exists, and even when all moments are finite the moment sequence need not determine the law uniquely (the lognormal is the classic moment-indeterminate example, different distributions share all its moments). Uniqueness needs the MGF/CF, not the moments alone.
- Independence is required for multiplication. fails for correlated variables; the cross terms in do not factor.
- Cumulants above two are not additive under scaling, they shrink. This is a feature (it drives the CLT) but a trap if you forget the factor when combining.
In interviews
The MGF is prized as a fast route to moments: "use the MGF to find the mean and variance of a Poisson", differentiate twice at . Be ready to prove that a sum of independent Poissons (or normals) stays in the family via the multiplication rule, a clean two-line answer that signals fluency. A strong follow-up is "why might the MGF not exist, and what do you use instead?", name heavy tails and the characteristic function. The deepest point you can make is that a normal is exactly the distribution whose cumulant generating function is quadratic, which reframes both the The Central Limit Theorem and every "test for normality" as a statement about cumulants beyond the second.
Related concepts
Practice in interviews
Further reading
- Billingsley, Probability and Measure
- Casella & Berger, Statistical Inference (Ch. 2)
- Feller, An Introduction to Probability Theory and Its Applications, Vol. 2