Statistics Graduate Level • Probability Foundations

MGF & Characteristic Functions — Moment generating functions and characteristic functions

Transforms that encode an entire distribution, enabling elegant derivations of moments, sums, and convergence results.

Graduate statistics illustration with a fitted curve, summation sign, and data table
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

Probability theory advanced rapidly in the eighteenth and nineteenth centuries, but mathematicians repeatedly encountered a fundamental challenge: how does one efficiently extract all moments of a distribution, prove that sums of independent random variables follow particular laws, or establish that a sequence of distributions converges to a limiting form? Direct integration of probability densities was often intractable, especially for sums of random variables where convolutions quickly become unwieldy. The idea of transforming a distribution into a different mathematical object — one that is easier to manipulate algebraically — provided a powerful resolution. The moment generating function (MGF) and the characteristic function (CF) are two such transforms, each encoding a distribution's complete information in a single analytic or continuous function of a real or complex parameter.

1812 • Laplace's Generating Functions

Pierre-Simon Laplace developed probability generating functions in his Théorie analytique des probabilités, laying the algebraic groundwork for encoding distributions via power series and transforms.

1894 • Characteristic Functions Formalized

Paul Lévy and others began formalizing the characteristic function φ(t) = E[eitXe^{itX}] as a Fourier–Stieltjes transform of the distribution, recognizing its universal existence for all random variables.

1920s • Lévy Continuity Theorem

Paul Lévy proved that pointwise convergence of characteristic functions implies convergence in distribution, providing the most elegant route to the Central Limit Theorem.

1930s–40s • Cramér–Wold and Uniqueness Theorems

Harald Cramér and Hermann Wold extended characteristic function methods to multivariate settings, while uniqueness and inversion theorems solidified the CF as a complete representation of a distribution.

Modern Era • Computational & Theoretical Applications

MGFs and CFs are now indispensable in mathematical statistics for deriving sampling distributions, proving limit theorems, and characterizing distributional families in areas from actuarial science to quantum mechanics.

The central question these transforms answer is deceptively simple: given a random variable X, can we construct a single function that faithfully encodes all information about its distribution — its moments, its shape, its behavior under summation — in a form that converts difficult integral operations into simple algebraic ones? The MGF and CF each provide an affirmative answer, with important differences in their domains of applicability and mathematical properties.

SECTION 2

Core Principles & Definitions

Both the moment generating function and the characteristic function belong to the broader family of distributional transforms — functions of a parameter that capture the entire probability structure of a random variable. Their utility rests on several foundational principles that govern when they exist, how they encode moments, and why they uniquely determine distributions.

1

Transform as Expectation

Both MGF and CF are defined as expectations of exponential functions of X. The MGF uses M(t) = E[etXe^{tX}] with a real parameter t, while the CF uses φ(t) = E[eitXe^{itX}] with an imaginary exponent, making it a Fourier transform of the density.
2

Moment Extraction via Differentiation

Successive derivatives of M(t) evaluated at t = 0 yield raw moments: M⁽ⁿ⁾(0) = E[Xⁿ]. For the CF, the n-th moment is extracted via φ⁽ⁿ⁾(0) = iⁿE[Xⁿ], converting integration into differentiation.
3

Uniqueness Theorem

If two distributions share the same MGF on an open interval containing 0, or the same CF everywhere, they are identical. This makes transforms definitive fingerprints of distributions.
4

Convolution Becomes Multiplication

For independent random variables X and Y, the transform of X + Y is the product of their individual transforms. This converts convolution of densities into simple multiplication, enormously simplifying sums of independent variables.
5

Existence & Domain

The CF always exists for any random variable because |eitXe^{itX}| = 1. The MGF may not exist if E[etXe^{tX}] diverges, which occurs for heavy-tailed distributions like Cauchy. This makes the CF the universally applicable tool.
✦

KEY TAKEAWAY

Think of the MGF and CF as two different types of barcode scanners for probability distributions. The MGF is like a high-resolution scanner that reveals fine details (all moments) quickly, but it can only scan certain barcodes (distributions with finite exponential moments). The CF is a universal scanner: it works on every barcode (every distribution), though extracting certain details may require more sophisticated decoding (inversion formulas). Both barcodes uniquely identify their product — knowing the transform means knowing the distribution.

SECTION 3

Visual Explanation: How Transforms Encode Distributions

The following diagram illustrates the core pipeline: a probability distribution is passed through either the MGF or CF transform, yielding a function in the transform domain. From that function, moments can be extracted by differentiation, sums of independent variables are computed by multiplication, and the original distribution can be recovered through inversion. The diagram also highlights the critical difference in existence between the two transforms.

Distribution f(x)PDF or PMFMGF: M(t)E[e^{tX}], t ∈ ℝCF: φ(t)E[e^{itX}], t ∈ ℝReal exp.FourierMomentsM⁽ⁿ⁾(0) = E[Xⁿ]d/dtSum X + YM_X(t) · M_Y(t)multiplyRecover f(x)Inversion formulainvertExistence ComparisonMGF: may NOT existCF: ALWAYS exists|(e.g., N(μ,σ²), Exp(λ),Poisson(λ), ...)Key insight: transforms convert convolution (hard) → multiplication (easy) and integration → differentiation
The transform pipeline: a distribution is mapped to either the MGF or CF domain, where moments are extracted by differentiation, sums of independent variables become products, and the original density is recoverable via inversion. The dashed box at the bottom highlights the crucial existence distinction between the two transforms.

Notice the structural symmetry: both transforms serve as algebraic encodings of the distribution, but the CF's use of complex exponentials guarantees boundedness (since |eitX| = 1 for all real X and t), whereas the MGF's real exponential etX can grow without bound, causing the expectation to diverge for heavy-tailed distributions.

SECTION 4

Mathematical Framework

Moment Generating Function

MGF DEFINITION

MX(t)=E[etX]=∫−∞∞etxf(x)dxM_X(t) = E[e^{tX}] = ∫_{−∞}^{∞} e^{tx} f(x) dx

where t ∈ ℝ, f(x) is the PDF (or replace the integral with a sum for discrete X). The MGF exists if this expectation is finite on some open interval (−h, h) with h > 0.

The power of the MGF lies in its Taylor expansion. Expanding etX and exchanging expectation with summation (justified when the MGF exists in a neighborhood of zero), we obtain MX(t) = Σ E[Xn] tⁿ / n!. This immediately shows that the n-th derivative at t = 0 yields the n-th raw moment.

MOMENT EXTRACTION

MX(n)(0)=E[Xn]M_X^{(n)}(0) = E[Xⁿ]

The n-th derivative of MXM_X(t) evaluated at t = 0 gives the n-th raw moment. In particular, M'(0) = E[X] and M''(0) = E[X²], so Var(X) = M''(0) − [M'(0)]².

Characteristic Function

CF DEFINITION

φX(t)=E[eitX]=∫−∞∞eitxf(x)dxφ_X(t) = E[e^{itX}] = ∫_{−∞}^{∞} e^{itx} f(x) dx

where i = √(−1) and t ∈ ℝ. This is the Fourier transform of f(x) (with a sign convention common in probability). Since |eitxe^{itx}| = 1 for all real x and t, the expectation is always finite — the CF exists for every random variable.

The CF is complex-valued: φX(t) = E[cos(tX)] + i E[sin(tX)]. Its real part captures even moments and its imaginary part captures odd moments. The relationship between the CF and moments is given by φ(n)X(0) = in E[Xn], provided the n-th moment exists.

INDEPENDENCE & SUMS

MX+Y(t)=MX(t)⋅MY(t)andφX+Y(t)=φX(t)⋅φY(t)M_{X+Y}(t) = M_X(t) · M_Y(t) and φ_{X+Y}(t) = φ_X(t) · φ_Y(t)

For independent random variables X and Y. This property extends to any finite collection of mutually independent variables and is the algebraic manifestation of convolution becoming multiplication under the transform.

ℹ

Inversion Theorem

The CF uniquely determines the distribution through Lévy's inversion formula: f(x) = (1/2π) ∫_{−∞}^{∞} e−itxe^{−itx} φ_X(t) dt, valid when φ_X is integrable. Even when this integral form is not directly applicable, the uniqueness theorem guarantees that two distributions with the same CF must be identical.

SECTION 5

Transforms of Common Distributions

To build fluency with transforms, it is essential to know the MGFs and CFs of standard distributions. The following table provides a reference for the most important families. Notice how the functional form of the transform often reveals structural properties: the normal distribution's MGF is itself an exponential of a quadratic in t, the Poisson's is an exponential of a shifted exponential, and the Cauchy distribution — notably — has no MGF at all.

DistributionMGF M(t)CF φ(t)Domain of MGF
N(μ, σ²)exp(μt + σ²t²/2)exp(iμt − σ²t²/2)All t ∈ ℝ
Exp(λ)λ / (λ − t)λ / (λ − it)t < λ
Poisson(λ)exp(λ(ete^t − 1))exp(λ(eite^{it} − 1))All t ∈ ℝ
Gamma(α, β)(1−t/β)−α(1 − t/β)^{−α}(1−it/β)−α(1 − it/β)^{−α}t < β
Bernoulli(p)1 − p + petpe^t1 − p + peitpe^{it}All t ∈ ℝ
Cauchy(0,1)Does not existe−∣t∣e^{−|t|}—

MGFs and CFs of standard distributions

Characteristic Functions: Real Part Re[φ(t)] for Three DistributionstRe[φ(t)]1.00.0−1.0−606N(0,1)Cauchy(0,1)Uniform(−1,1)φ(0)=1Gaussian (rapid decay)Cauchy (exponential decay)Uniform (oscillatory sinc)
The real part of the characteristic function for three distributions. The standard normal CF (cyan) is a Gaussian e−t²/2 that decays smoothly, the Cauchy CF (violet) is e−|t| with a cusp at the origin, and the Uniform CF (amber) exhibits the oscillatory sinc-like pattern sin(t)/t. All CFs satisfy φ(0) = 1.

The visual behavior of the CF is deeply tied to the tail properties of the distribution. Distributions with lighter tails (like the normal) produce CFs that decay rapidly, while heavy-tailed distributions (like the Cauchy) have CFs that decay slowly. The smoothness of the CF at the origin directly reflects how many moments the distribution possesses: a CF that is n-times differentiable at zero corresponds to a distribution with finite n-th moment.

SECTION 6

Worked Example: Deriving the Distribution of a Sum

One of the most powerful applications of the MGF is proving that the sum of independent normal random variables is itself normal. Let X ~ N(μ₁, σ₁²) and Y ~ N(μ₂, σ₂²) be independent. We wish to find the distribution of S = X + Y.

Sum of Independent Normals via MGF

  1. 1

    Step 1 — Write the MGFs of X and Y

    From the table of standard MGFs, we have MXM_X(t) = exp(μ₁t + σ₁²t²/2) and MYM_Y(t) = exp(μ₂t + σ₂²t²/2). Both exist for all t ∈ ℝ.
    MXM_X(t) = exp(μ₁t + σ₁²t²/2), MYM_Y(t) = exp(μ₂t + σ₂²t²/2)
  2. 2

    Step 2 — Apply the multiplication property for independent sums

    Since X and Y are independent, the MGF of S = X + Y is the product MSM_S(t) = MXM_X(t) · MYM_Y(t). We multiply the two exponentials by adding their exponents.
    MSM_S(t) = exp(μ₁t + σ₁²t²/2) · exp(μ₂t + σ₂²t²/2)
  3. 3

    Step 3 — Combine exponents

    Adding the exponents: (μ₁t + σ₁²t²/2) + (μ₂t + σ₂²t²/2) = (μ₁ + μ₂)t + (σ₁² + σ₂²)t²/2. This produces a single exponential whose exponent has the same functional form as a normal MGF.
    MSM_S(t) = exp((μ₁ + μ₂)t + (σ₁² + σ₂²)t²/2)
  4. 4

    Step 4 — Identify the distribution by uniqueness

    By the uniqueness theorem, the MGF exp((μ₁ + μ₂)t + (σ₁² + σ₂²)t²/2) is exactly the MGF of a N(μ₁ + μ₂, σ₁² + σ₂²) random variable. Since the MGF determines the distribution, we conclude S follows this normal distribution.
    S = X + Y ~ N(μ₁ + μ₂, σ₁² + σ₂²)
  5. 5

    Step 5 — Numerical verification

    If X ~ N(3, 4) and Y ~ N(−1, 9), then S ~ N(3 + (−1), 4 + 9) = N(2, 13). The mean of S is 2 and the variance is 13, so the standard deviation is √13 ≈ 3.606. We can verify: E[S] = E[X] + E[Y] = 3 + (−1) = 2 ✓, and Var(S) = Var(X) + Var(Y) = 4 + 9 = 13 ✓ (using independence).
    S ~ N(2, 13) with σ_S ≈ 3.606
💡

Why Not Convolution?

To find the distribution of S = X + Y by direct methods, we would need to compute the convolution integral fSf_S(s) = ∫ fXf_X(x) fYf_Y(s − x) dx, which for normal densities involves completing the square inside a product of exponentials — a calculation requiring considerable care. The MGF method accomplishes the same result in four lines of algebra.

SECTION 7

MGF vs. Characteristic Function: Strengths & Limitations

While the MGF and CF share the same algebraic structure — both are expectations of exponential functions — their domains, existence conditions, and analytical properties differ substantially. The choice between them depends on the problem at hand: if the MGF exists, it is often more convenient for moment calculations and identifying distributions; if it does not, the CF is the indispensable alternative.

PropertyMGF M(t)CF φ(t)
ExistenceMay not exist (requires E[etXe^{tX}] < ∞ near t = 0)Always exists for every random variable
RangeReal-valued, M(t) ≥ 1 near t = 0Complex-valued, |φ(t)| ≤ 1 with φ(0) = 1
Moment extractionM⁽ⁿ⁾(0) = E[Xⁿ] directlyφ⁽ⁿ⁾(0) = iⁿE[Xⁿ] (factor of iⁿ)
UniquenessYes, if it exists in a neighborhood of 0Yes, always (by inversion theorem)
Convergence theoremsIf MnM_n(t) → M(t) for t in neighborhood of 0, and M is an MGF, then convergence in distributionLévy continuity theorem: pointwise convergence of CFs ↔ convergence in distribution (to a proper distribution if limit is continuous at 0)
Heavy-tailed distributionsFails (e.g., Cauchy, log-normal in general)Works perfectly for all distributions
Connection to transformsTwo-sided Laplace transform of f(x)Fourier transform of f(x)

Comparison of MGF and CF properties

✦

KEY TAKEAWAY

In applied work, the MGF is your preferred tool when it exists — it gives moments directly without complex arithmetic and makes algebraic manipulations transparent. But in theoretical work — particularly proving limit theorems like the CLT — the characteristic function is indispensable because it always exists and because the Lévy continuity theorem provides a clean equivalence between pointwise convergence of CFs and convergence in distribution. Think of the MGF as a specialized high-performance wrench and the CF as a universal adjustable wrench: the former is faster when it fits, but the latter works on every bolt.

SECTION 8

Connections to Advanced Theory

The MGF and CF are not isolated constructs; they are embedded in a rich network of related transforms and advanced theorems that underpin modern probability theory and mathematical statistics. Understanding these connections elevates one's ability to apply transform methods in research-level problems.

Related ConceptConnection to MGF / CFKey Application
Cumulant Generating Function (CGF)K(t) = log M(t). Cumulants κₙ = K⁽ⁿ⁾(0); κ₁ = mean, κ₂ = variance, κ₃ = related to skewness.Saddlepoint approximations, Edgeworth expansions, exponential family theory.
Probability Generating Function (PGF)G(z) = E[zXz^X] for non-negative integer-valued X. Related to MGF by G(z) = M(log z).Branching processes, queueing theory, discrete distribution families.
Central Limit Theorem via CFThe CF of the standardized sample mean converges pointwise to e−t2/2e^{−t²/2}, the CF of N(0,1), establishing the CLT via Lévy continuity.The most elegant proof of the CLT; generalizations to non-identically distributed summands.
Large Deviations (Cramér's Theorem)The rate function I(x) = sup_t {tx − log M(t)} is the Legendre–Fenchel transform of the CGF.Quantifying exponentially rare events, insurance risk theory, information theory.
Multivariate ExtensionsM(t₁,...,tₖ) = E[exp(t₁X₁ + ··· + tₖXₖ)] and φ(t₁,...,tₖ) = E[exp(i(t₁X₁ + ··· + tₖXₖ))].Joint distributions, Cramér–Wold theorem, multivariate CLT, copula characterization.

Advanced connections from MGF and CF theory

Looking forward, the cumulant generating function K(t) = log M(t) deserves special mention because cumulants have an additive property for independent variables (κₙ(X + Y) = κₙ(X) + κₙ(Y)), which makes them natural parameters for exponential families and central objects in saddlepoint approximation theory. The Cramér–Wold theorem extends CF methods to multivariate settings by asserting that a random vector's distribution is determined by the CFs of all its one-dimensional projections. These tools collectively form the analytical backbone of modern mathematical statistics.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain why the Cauchy distribution has a well-defined characteristic function but no moment generating function. What property of the Cauchy distribution's tails causes this discrepancy, and what does this imply about the existence of moments?
Show answer
The Cauchy distribution has density f(x) = 1/(π(1 + x²)), whose tails decay as 1/x² — too slowly for E[etXe^{tX}] to converge for any t ≠ 0, since etxe^{tx} grows exponentially while the tails only decay polynomially. In contrast, the CF integral involves eitxe^{itx}, and |eitxe^{itx}| = 1, so the integrand is bounded by f(x), which is integrable. The CF exists as φ(t) = e−∣t∣e^{−|t|}. The Cauchy distribution has no finite moments of any positive order (not even a mean), which is reflected in the fact that its CF is not differentiable at the origin — confirming the general principle that differentiability of the CF at 0 requires the corresponding moment to exist.

Question 2: BASIC CALCULATION

Let X ~ Poisson(λ). Derive E[X] and E[X²] using the MGF M(t) = exp(λ(ete^t − 1)). Then compute Var(X).
Show answer
Starting with M(t) = exp(λ(ete^t − 1)), compute M'(t) = λete^t · exp(λ(ete^t − 1)). At t = 0: M'(0) = λ · 1 = λ, so E[X] = λ. For the second derivative, M''(t) = (λetλe^t + λ2e2tλ²e^{2t}) · exp(λ(ete^t − 1)). At t = 0: M''(0) = λ + λ². Therefore E[X²] = λ + λ². The variance is Var(X) = E[X²] − (E[X])² = λ + λ² − λ² = λ. This confirms the well-known result that a Poisson distribution has equal mean and variance.

Question 3: INTERMEDIATE

Let X₁, X₂, ..., Xₙ be i.i.d. Exponential(λ) random variables. Use the MGF to prove that S = X₁ + X₂ + ··· + Xₙ follows a Gamma(n, λ) distribution. State clearly where you use independence and the uniqueness theorem.
Show answer
The MGF of a single Exp(λ) variable is MXiM_{X_i}(t) = λ/(λ − t) for t < λ. By independence, the MGF of S = Σ Xᵢ is MSM_S(t) = ∏ᵢ MXiM_{X_i}(t) = [λ/(λ − t)]ⁿ for t < λ. Here we use independence to factor the joint expectation E[exp(t Σ Xᵢ)] = ∏ E[exp(tXᵢ)]. The expression [λ/(λ − t)]ⁿ = (1−t/λ)−n(1 − t/λ)^{−n} is precisely the MGF of a Gamma(α = n, β = λ) distribution (using the rate parameterization). By the uniqueness theorem, since two distributions sharing the same MGF on an open interval containing zero must be identical, we conclude S ~ Gamma(n, λ). This is a much cleaner route than computing the n-fold convolution of exponential densities.

Question 4: APPLIED

An insurance company models individual claim sizes as i.i.d. N(500, 100²) random variables. If 25 independent claims arrive in a month, use the MGF to determine the exact distribution of the total claim amount T. What is P(T > 13,000)? Express your answer in terms of the standard normal CDF Φ.
Show answer
Each claim Xᵢ ~ N(500, 10000). The MGF of Xᵢ is exp(500t + 10000t²/2). For the sum T = Σᵢ₌₁²⁵ Xᵢ of 25 independent normals, MTM_T(t) = [exp(500t + 5000t²)]²⁵ = exp(12500t + 125000t²). Recognizing this as the MGF of N(12500, 250000), we conclude T ~ N(12500, 250000), i.e., mean 12500 and standard deviation 500. To find P(T > 13000): standardize Z = (13000 − 12500)/500 = 1.0, so P(T > 13000) = P(Z > 1) = 1 − Φ(1) ≈ 0.1587. The MGF method immediately yields the exact distribution without any appeal to the CLT approximation — the result is exact because sums of normals are exactly normal.

Question 5: CRITICAL THINKING

Outline the proof of the Central Limit Theorem using characteristic functions. Specifically, for i.i.d. random variables X₁, X₂, ... with mean μ and variance σ², define Zₙ = (Σ Xᵢ − nμ)/(σ√n). Show that φ_{Zₙ}(t) → e−t2/2e^{−t²/2} as n → ∞, and explain how the Lévy continuity theorem completes the argument.
Show answer
Let Yᵢ = (Xᵢ − μ)/σ so that E[Yᵢ] = 0, Var(Yᵢ) = 1, and Zₙ = (1/√n) Σ Yᵢ. The CF of Yᵢ is φ_Y(t) with φ_Y(0) = 1, φ_Y'(0) = 0, φ_Y''(0) = −1 (since E[Y²] = 1). By independence, φ_{Zₙ}(t) = [φ_Y(t/√n)]ⁿ. Expanding φ_Y(t/√n) around 0 using Taylor's theorem: φ_Y(t/√n) = 1 + 0 − t²/(2n) + o(t²/n) = 1 − t²/(2n) + o(1/n). Therefore [φ_Y(t/√n)]ⁿ = [1 − t²/(2n) + o(1/n)]ⁿ → e−t2/2e^{−t²/2} as n → ∞, by the standard limit (1 + a/n)ⁿ → eᵃ. Since e−t2/2e^{−t²/2} is the CF of N(0,1) and is continuous at t = 0, the Lévy continuity theorem guarantees that Zₙ converges in distribution to N(0,1). The continuity at zero ensures the limit corresponds to a proper probability distribution (total mass 1), which is essential — without this condition, mass could escape to infinity.

SUMMARY

Summary & Review

Summary

The moment generating function M(t) = E[etX] and the characteristic function φ(t) = E[eitX] are distributional transforms that convert probability distributions into functions of a single parameter. Both encode all moments (extractable by differentiation at zero), convert convolution of independent sums into multiplication, and uniquely determine their distributions. The critical distinction is that the MGF may fail to exist for heavy-tailed distributions, while the CF always exists because |eitX| = 1.

Key applications include proving that sums of independent normals are normal (via MGF multiplication), deriving the Central Limit Theorem (via CF convergence and the Lévy continuity theorem), and computing rate functions in large deviations theory through the cumulant generating function K(t) = log M(t). Mastery of these transforms provides the analytical foundation for virtually all of modern probability theory and mathematical statistics.

Varsity Tutors • Statistics Graduate Level • MGF & Characteristic Functions