Moment Generating Functions
Moment Generating Functions
The Importance of Moments in Probability
Moments of a probability distribution are the expected values of powers of a random variable. Formally, the n-th moment of a random variable X is defined as E[Xn]. There are infinitely many moments, and they serve as unique identifiers of a probability distribution—analogous to how the Taylor series coefficients uniquely determine an analytic function.
First moment: E[X] — the mean of the distribution.
Second moment: E[X2] — closely related to the variance: Var(X)=E[X2]−(E[X])2.
Third moment: E[X3] — measures skewness (asymmetry) of the distribution. For example, the Poisson distribution has nonzero skew.
Fourth moment: E[X4] — measures kurtosis (tail heaviness). Distributions with “fat tails” have high kurtosis.
For some distributions (e.g., the normal distribution) the first two moments completely characterize the distribution. For many others, higher-order moments are needed. Just as the derivatives at a point describe a function via its Taylor series, the moments (if they exist) uniquely determine the cumulative distribution function (CDF) of a random variable.
Key Idea: Moments are the “fingerprint” of a probability distribution. The moment generating function is a tool that efficiently extracts all moments from a single function.
Definition of the Moment Generating Function (MGF)
The moment generating function of a random variable X is defined using a new variable t (or s) and is constructed as the expected value of etX.
For Discrete Random Variables
If X is discrete with probability mass function p(x)=P(X=x), then
For Continuous Random Variables
If X is continuous with probability density function f(x), then
This integral is precisely the Laplace transform of the PDF f(x). This deep connection links probability theory to differential equations and transforms, and is historically tied to Pierre-Simon Laplace’s foundational work in probability and statistics.
Key Property: Derivatives Generate Moments
The moment generating function is named for its most useful property:
Theorem: The n-th derivative of the MGF evaluated at t=0 equals the n-th moment of X:
Thus:
First derivative at 0: MX′(0)=E[X] (mean).
Second derivative at 0: MX′′(0)=E[X2] (needed for variance).
Third derivative at 0: MX′′′(0)=E[X3] (related to skewness).
Fourth derivative at 0: MX(4)(0)=E[X4] (related to kurtosis).
This property makes computing moments much easier than direct integration or summation, especially for higher-order moments.
Uniqueness
If the MGF exists in a neighborhood of t=0, it uniquely determines the probability distribution. More precisely, the MGF uniquely determines the cumulative distribution function F(x)=P(X≤x). This is why the MGF is a powerful tool for proving limit theorems like the Central Limit Theorem.
Examples of Computing Moment Generating Functions
Example 1: Poisson Distribution
Let X∼Poisson(λ) with probability mass function
The MGF is
The sum is the Taylor series for eetλ, so
This compact function can be differentiated to obtain the mean (E[X]=λ), variance (Var(X)=λ), and higher moments.
Example 2: Standard Normal Distribution
Let X∼N(0,1) with PDF f(x)=2π1e−x2/2. Then
Complete the square in the exponent:
Thus
The integrand is a normal PDF with mean t and variance 1, so its integral is 1. Therefore
This simple exponential form is crucial for deriving the Central Limit Theorem.
Example 3: Exponential Distribution
Let X∼Exponential(λ) with PDF f(t)=λe−λt for t≥0. Use a dummy variable s (since t often denotes time) for the transform:
This integral converges only for s<λ (assuming real s). Evaluating:
The MGF for the exponential distribution is a rational function. From it, the moments can be derived: E[X]=1/λ, Var(X)=1/λ2, etc.
Why the MGF Matters: The Central Limit Theorem
One of the most important uses of the MGF is in proving the Central Limit Theorem (CLT). The CLT states that the sum of many independent and identically distributed random variables (with finite variance) converges in distribution to a normal distribution. The proof works by showing that the MGF of the standardized sum converges to the MGF of a standard normal (et2/2). Because the MGF uniquely determines the distribution, the convergence of MGFs implies convergence of distributions.
Understanding MGFs therefore builds a bridge to advanced probability theory and to many applications in statistics, engineering, and the sciences.

Ask anything
We've read this whole study set, so questions about it get the best answers.