Moment Generating Functions

DefinitionMoment Generating Function

The moment generating function (MGF) of a random variable XX is a function that provides a way to compute all moments of the distribution.

MX(t)=E[etX]M_X(t) = \mathbb{E}[e^{tX}]

For discrete random variables: MX(t)=xetxpX(x)M_X(t) = \sum_{x} e^{tx} \cdot p_X(x)

For continuous random variables: MX(t)=etxfX(x)dxM_X(t) = \int_{-\infty}^{\infty} e^{tx} \cdot f_X(x) dx

Properties

Moment Generation

The nn-th moment of XX can be obtained by differentiating the MGF nn times and evaluating at t=0t=0:

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

Key Properties

  1. Uniqueness: If two random variables have the same MGF, they have the same distribution
  2. Linear Transformations: For Y=aX+bY = aX + b, MY(t)=ebtMX(at)M_Y(t) = e^{bt} M_X(at)
  3. Independence: If XX and YY are independent, MX+Y(t)=MX(t)MY(t)M_{X+Y}(t) = M_X(t) \cdot M_Y(t)

Common MGFs

DistributionMGFDomain
Bernoulli(p)1p+pet1 - p + pe^tAll tt
Binomial(n,p)(1p+pet)n(1 - p + pe^t)^nAll tt
Poisson(λ)eλ(et1)e^{\lambda(e^t - 1)}All tt
Normal(μ,σ²)eμt+12σ2t2e^{\mu t + \frac{1}{2}\sigma^2 t^2}All tt
Exponential(λ)λλt\frac{\lambda}{\lambda - t}t<λt < \lambda
Uniform(a,b)etbetat(ba)\frac{e^{tb} - e^{ta}}{t(b-a)}t0t \neq 0

Applications

  1. Finding moments: Easy computation of expected values, variances, and higher moments
  2. Characterizing distributions: Unique identification of probability distributions
  3. Sum of random variables: Simplifying analysis of sums of independent variables
  4. Limit theorems: Proving convergence in distribution

For more details on expectation and variance, see Expectation and Variance.