Quant Memo
Foundational

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 tt, 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 XX is MX(t)=E[etX],M_X(t) = \mathbb{E}\big[e^{tX}\big], defined for tt in some neighbourhood of 00 where the expectation is finite. The name comes from expanding the exponential and using linearity of Expectation, Variance & Moments: MX(t)=E ⁣[k=0(tX)kk!]=k=0tkk!E[Xk].M_X(t) = \mathbb{E}\!\left[\sum_{k=0}^\infty \frac{(tX)^k}{k!}\right] = \sum_{k=0}^\infty \frac{t^k}{k!}\,\mathbb{E}[X^k]. So MXM_X is the exponential generating function of the moments: the kk-th moment is the kk-th derivative at zero, E[Xk]=MX(k)(0).\mathbb{E}[X^k] = M_X^{(k)}(0). In particular MX(0)=1M_X(0) = 1, MX(0)=E[X]M_X'(0) = \mathbb{E}[X], and MX(0)=E[X2]M_X''(0) = \mathbb{E}[X^2], so Var(X)=MX(0)MX(0)2\operatorname{Var}(X) = M''_X(0) - M'_X(0)^2. 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 MX(t)=MY(t)M_X(t) = M_Y(t) for all tt in an open interval around 00, then XX and YY 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 etXe^{tX} to have finite expectation near 00, which fails for heavy-tailed laws (lognormal, Student-tt, Cauchy) whose moments blow up. When the MGF does not exist, one uses the characteristic function φX(t)=E[eitX]\varphi_X(t) = \mathbb{E}[e^{itX}], which always exists (eitX=1|e^{itX}| = 1), 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 XX and YY are independent, then MX+Y(t)=E[et(X+Y)]=E[etX]E[etY]=MX(t)MY(t),M_{X+Y}(t) = \mathbb{E}\big[e^{t(X+Y)}\big] = \mathbb{E}\big[e^{tX}\big]\,\mathbb{E}\big[e^{tY}\big] = M_X(t)\,M_Y(t), 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: M(t)=eμ1t+σ12t2/2eμ2t+σ22t2/2=e(μ1+μ2)t+(σ12+σ22)t2/2M(t) = e^{\mu_1 t + \sigma_1^2 t^2/2}\,e^{\mu_2 t + \sigma_2^2 t^2/2} = e^{(\mu_1+\mu_2)t + (\sigma_1^2+\sigma_2^2)t^2/2}, normal, means and variances add.
  • Two independent Poissons: eλ1(et1)eλ2(et1)=e(λ1+λ2)(et1)e^{\lambda_1(e^t-1)}\,e^{\lambda_2(e^t-1)} = e^{(\lambda_1+\lambda_2)(e^t-1)}, Poisson with rate λ1+λ2\lambda_1 + \lambda_2.
  • nn independent Bernoulli(pp): (pet+q)n(pe^t + q)^n, the Binomial MGF, proving the sum is Binomial.

Cumulants: the additive moments

Take logs of the MGF to get the cumulant generating function: KX(t)=logMX(t)=n=1κntnn!.K_X(t) = \log M_X(t) = \sum_{n=1}^\infty \kappa_n \frac{t^n}{n!}. The coefficients κn\kappa_n are the cumulants, and they are the "right" descriptors of shape because the multiplication rule becomes addition under the log: for independent X,YX, Y, KX+Y(t)=KX(t)+KY(t)    κn(X+Y)=κn(X)+κn(Y).K_{X+Y}(t) = K_X(t) + K_Y(t) \;\Longrightarrow\; \kappa_n(X+Y) = \kappa_n(X) + \kappa_n(Y). Cumulants are additive over independent sums. The low ones are interpretable: κ1=μ,κ2=σ2,κ3=E[(Xμ)3],κ4=E[(Xμ)4]3σ4,\kappa_1 = \mu, \quad \kappa_2 = \sigma^2, \quad \kappa_3 = \mathbb{E}[(X-\mu)^3], \quad \kappa_4 = \mathbb{E}[(X-\mu)^4] - 3\sigma^4, so κ3/σ3\kappa_3/\sigma^3 is skewness and κ4/σ4\kappa_4/\sigma^4 is excess kurtosis. The normal's signature is that all cumulants beyond the second vanish, K(t)=μt+12σ2t2K(t) = \mu t + \tfrac12\sigma^2 t^2 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 X1,,XnX_1,\dots,X_n be i.i.d. with mean 00, variance σ2\sigma^2, and cumulants κn\kappa_n. For the standardised sum Sn=1nXiS_n = \frac{1}{\sqrt n}\sum X_i, cumulants scale as κm(Sn)=n1m/2κm\kappa_m(S_n) = n^{1-m/2}\kappa_m. So κ2(Sn)=σ2\kappa_2(S_n) = \sigma^2 stays fixed, while for m3m \ge 3, κm(Sn)=n1m/2κm0\kappa_m(S_n) = n^{1-m/2}\kappa_m \to 0. Every cumulant above the second is killed by the n\sqrt n scaling, leaving only the mean and variance, precisely a normal. The Edgeworth expansion formalises the leading correction: for finite nn the density picks up a skewness term of order κ3/n\kappa_3/\sqrt n, 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 E[etX]=\mathbb{E}[e^{tX}] = \infty for all t>0t > 0 (lognormal, Student-tt), 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. MX+Y=MXMYM_{X+Y} = M_X M_Y fails for correlated variables; the cross terms in E[et(X+Y)]\mathbb{E}[e^{t(X+Y)}] 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 n1m/2n^{1-m/2} 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 eλ(et1)e^{\lambda(e^t-1)} twice at 00. 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
ShareTwitterLinkedIn