Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.A barcode for a distribution
A supermarket barcode packs everything about a product into one stripe pattern. The moment-generating function does the same for a random variable. It’s a single curve, , and from it you can read the average, the spread, the lopsidedness, and every other moment. Two different distributions never share the same curve, so the curve identifies the distribution.
Its best trick is with sums. Adding independent random numbers is messy for densities (you have to convolve them). With MGFs, you just multiply.
How likely is it that 60 bits out of 2000 get corrupted on a telemetry link? How much total delay do 50 network hops add? MGFs answer questions about sums and give the sharpest simple tail bounds (Chernoff bounds), which are used in communication design, reliability analysis and the theory of machine learning.
- 1. For independent X and Y, the MGF of X + Y is…
- 2. Can two different distributions have the same MGF (near 0)?
- 3. The MGF's slope at t = 0 is…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.The moment-generating function
so whenever is finite near 0. It always satisfies .
| Distribution | |
|---|---|
| Bernoulli(p) | |
| Binomial(n, p) | |
| Poisson(λ) | |
| Exponential(λ) | |
| Gamma(k, λ) | |
| Normal(μ, σ²) |
Two key properties
- Affine maps: .
- Independent sums: , because .
So the sum of independent Poissons is Poisson, the sum of Exp(λ) variables is Gamma(k, λ), and the sum of independent normals is normal, with means and variances adding.
- 1. M(0) equals…
- 2. Poisson(2) + Poisson(3) (independent) is…
- 3. The MGF of Exp(λ) is finite for…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.When MGFs fail: characteristic functions
Heavy-tailed variables (Cauchy, Student-t, log-normal) have for all . The characteristic function
always exists, since . It has , , and it is uniformly continuous. It’s the Fourier transform of the density. For example, the normal has and the Cauchy has . If , then .
Uniqueness and inversion. determines the distribution. If , the density is
Cumulants
The cumulant generating function has , , and . Because log turns products into sums, cumulants of independent sums add: . Every Poisson cumulant equals . A normal has for . The skewness of an average falls like , a first glimpse of the CLT.
- 1. Which always exists?
- 2. The Cauchy's characteristic function is…
- 3. For a sum of n iid variables, κ₃ is…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proof that MGFs give moments
Suppose for . Then is integrable, so has finite expectation.
- Swap sum and expectation. By dominated convergence (A4.3-1), . All moments are finite.
- Read off the moments. A power series can be differentiated term by term inside its radius, so . ∎
Lévy’s continuity theorem
in distribution if and only if for every (A4.3-8). This turns limit theorems into calculus. For example, for the CLT you show (A4.3-5).
Moments don’t always determine a distribution
The log-normal has all moments finite, yet other distributions share every one of them (Heyde, 1963). Its MGF is infinite for , so the uniqueness theorem doesn’t apply. The rule: if is finite in a neighbourhood of 0, the distribution is determined. Characteristic functions always determine it.
Exercise 3.1: Show the mean of n iid Cauchy variables is standard Cauchy
. By uniqueness, has the same distribution as one sample. Averaging doesn’t help: there’s no law of large numbers without a mean.
- 1. Lévy's continuity theorem links convergence in distribution with…
- 2. Do equal moments of all orders guarantee the same distribution?
- 3. The average of 100 standard Cauchys is…
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.Chernoff bounds and large deviations
For any , Markov’s inequality applied to gives . Optimizing over gives the Chernoff bound. For the optimum is
The exponent is exact: (Cramér’s theorem). Chebyshev’s bound only decays polynomially. Bit-error and packet-loss budgets for deep-space links, false-alarm rates of detectors, and generalization bounds in learning theory all come from this one calculation.
MGFs and characteristic functions in AI, robotics and aerospace
- Learning theory. Hoeffding, Bernstein and the PAC-Bayes bounds are all Chernoff arguments that bound an MGF (A4.3-6, A4.3-7).
- Communications. Error exponents for channel coding (Gallager, 1965) and link budgets for deep-space networks rest on MGF bounds of noise and decoding errors.
- Risk-sensitive control. Minimizing (an MGF of the cost) trades mean against variance and higher cumulants (Jacobson, 1973; Whittle, 1981). This is used for conservative spacecraft and robot planning.
- Random features. Random Fourier features approximate a shift-invariant kernel as the characteristic function of a spectral distribution, (Rahimi and Recht, 2007).
- Phase noise and estimation. Averages of are characteristic functions. Circular statistics for headings and phase uses them directly.
References
- W. Feller (1971). An Introduction to Probability Theory and Its Applications, Vol. II, Ch. XV. Wiley.
- P. Billingsley (1995). Probability and Measure, 3rd ed., Sec. 21 and 26. Wiley.
- H. Chernoff (1952). “A measure of asymptotic efficiency for tests of a hypothesis based on the sum of observations.” Annals of Mathematical Statistics, 23(4).
- H. Cramér (1938). “Sur un nouveau théorème-limite de la théorie des probabilités.” Actualités Scientifiques et Industrielles, 736.
- A. Dembo, O. Zeitouni (1998). Large Deviations Techniques and Applications, 2nd ed. Springer.
- C. C. Heyde (1963). “On a property of the lognormal distribution.” JRSS B, 25(2).
- R. Gallager (1965). “A simple derivation of the coding theorem and some applications.” IEEE Transactions on Information Theory, 11(1).
- D. Jacobson (1973). “Optimal stochastic linear systems with exponential performance criteria.” IEEE Transactions on Automatic Control, 18(2).
- A. Rahimi, B. Recht (2007). “Random features for large-scale kernel machines.” NeurIPS.
- P. Lévy (1925). Calcul des probabilités. Gauthier-Villars.