Home › Probability › Lesson 5

Generating Functions and Characteristic Functions

Lesson 5 of 12

Key idea of this section

G(s) = E sˣ,   M(t) = E etX,   φ(t) = E eitX;   for independent X, Y:  φX+Y = φX · φY,
and φ determines the law uniquely.

Probability generating functions

For X with values in {0, 1, 2, …}, the probability generating function G(s) = E sˣ = ∑ₖ P(X = k) sᵏ is a power series with radius of convergence at least 1. It determines the law, since P(X = k) = G⁽ᵏ⁾(0)/k!, and its derivatives at 1 (taken as left limits) give the factorial moments: G′(1) = E X and G″(1) = E X(X − 1), so Var X = G″(1) + G′(1) − G′(1)². For independent X and Y, GX+Y = GX GY.

A celebrated application is the Galton–Watson branching process. Each individual independently has a random number of children with law (pₖ) and generating function G. Let Zₙ be the size of generation n, starting from Z₀ = 1. Conditioning on Z₁ shows that Zₙ has generating function Gₙ = G ∘ G ∘ ⋯ ∘ G (n-fold composition).

Theorem 5.1 (extinction). Let m = G′(1) be the mean offspring number and exclude the trivial case p₁ = 1. The extinction probability q = P(Zₙ = 0 for some n) is the smallest root of G(s) = s in [0, 1]. Consequently q = 1 if m ≤ 1, and q < 1 if m > 1.

Proof. P(Zₙ = 0) = Gₙ(0) increases to q by continuity of measure, and Gₙ₊₁(0) = G(Gₙ(0)), so continuity of G gives q = G(q). If r ∈ [0, 1] is any root, then 0 ≤ r implies Gₙ(0) ≤ Gₙ(r) = r for all n, so q ≤ r. Finally G is convex on [0, 1] with G(1) = 1; the graph crosses the diagonal below 1 exactly when the slope at 1 exceeds 1. ∎

For example, if p₀ = 1/4, p₁ = 1/4, p₂ = 1/2, then m = 5/4 and G(s) = s becomes 2s² − 3s + 1 = 0, with roots 1/2 and 1. The extinction probability is 1/2.

Moment generating functions

The moment generating function M(t) = E etX takes values in (0, ∞]. If it is finite on an open interval around 0, then M is analytic there, all moments exist, and E Xᵏ = M⁽ᵏ⁾(0). Moreover, two such laws with equal M on a neighbourhood of 0 coincide. Standard examples are:

Poisson(λ):      M(t) = exp(λ(eᵗ − 1))
Exponential(λ):  M(t) = λ/(λ − t),   t < λ
Normal(μ, σ²):   M(t) = exp(μt + σ²t²/2)
Gamma(α, λ):     M(t) = (λ/(λ − t))α,   t < λ

Multiplying generating functions proves closure properties at once. The sum of independent Poisson(λ) and Poisson(μ) variables is Poisson(λ + μ); a sum of n independent Exponential(λ) variables is Gamma(n, λ); and independent normals add to a normal with added means and variances.

Moments alone need not determine a law. The log-normal density f(x) = (2π)−1/2 x⁻¹ exp(−(log x)²/2) and its perturbation f(x)(1 + sin(2π log x)) have identical moments E Xᵏ = ek²/2 for every k (Heyde, 1963). The log-normal MGF is infinite for every t > 0, which is why the uniqueness theorem does not apply. Carleman's condition, ∑ₖ (E X²ᵏ)−1/(2k) = ∞, is a sufficient condition for a law on ℝ to be determined by its moments.

Characteristic functions

The characteristic function φX(t) = E eitX = E cos(tX) + i E sin(tX) exists for every random variable, because |eitX| = 1. Its basic properties:

φ(0) = 1,   |φ(t)| ≤ 1,   φ(−t) = conj φ(t),   φaX+b(t) = eibt φX(at)
φ is uniformly continuous on ℝ, and φX+Y = φX φY when X and Y are independent

Uniform continuity follows from |φ(t + h) − φ(t)| ≤ E|eihX − 1|, which tends to 0 as h → 0 uniformly in t by dominated convergence. The following are the central facts.

Theorem 5.2 (inversion and uniqueness). For a < b,

limT→∞ (1/2π) ∫−TT (e−ita − e−itb)/(it) · φ(t) dt = μ((a, b)) + ½ μ({a}) + ½ μ({b})

Hence φ determines μ. If ∫ |φ(t)| dt < ∞, then X has a bounded continuous density f(x) = (1/2π) ∫ e−itx φ(t) dt.

Theorem 5.3 (moments). If E|X|ⁿ < ∞, then φ is n times continuously differentiable and φ⁽ᵏ⁾(0) = iᵏ E Xᵏ for k ≤ n. In particular, if E X = 0 and E X² = σ², then φ(t) = 1 − σ²t²/2 + o(t²) as t → 0.

Two standard computations: the standard normal has φ(t) = e−t²/2 (complete the square in the integral, or verify that φ′(t) = −tφ(t)); the standard Cauchy law has φ(t) = e−|t|, which is not differentiable at 0, reflecting the absence of a mean. Consequently the average of n i.i.d. standard Cauchy variables has characteristic function (e−|t|/n)ⁿ = e−|t|, so it is again standard Cauchy: averaging does not concentrate it at all. Bochner's theorem characterises characteristic functions as exactly the continuous positive-definite functions with φ(0) = 1.

Exercise

  • (a)
    From M(t) = λ/(λ − t), compute E X and Var X for X ~ Exponential(λ).
  • (b)
    Find the extinction probability of a branching process with p₀ = 1/4 and p₂ = 3/4.
  • (c)
    Compute the characteristic function of a uniform variable on (−1, 1).
Show solution

Answers: (a) M′(t) = λ/(λ − t)², M″(t) = 2λ/(λ − t)³, so E X = 1/λ, E X² = 2/λ² and Var X = 1/λ². (b) G(s) = 1/4 + 3s²/4 = s gives 3s² − 4s + 1 = 0, with roots 1/3 and 1; since m = 3/2 > 1, q = 1/3. (c) φ(t) = (1/2)∫−11 eitx dx = sin(t)/t for t ≠ 0, and φ(0) = 1.

V.3.1