01 / 22
\(M\)

MGF & Characteristic Functions

Master moment generating functions and characteristic functions: the transforms that encode every moment of a distribution into a single analytic expression.

Graduate Statistics

What is a Moment?

The \(k\)-th moment of a random variable \(X\) is defined as the expected value of its \(k\)-th power:

\(k=1\)
Mean \(\mu\): the center of mass of the distribution.
\(k=2\)
Related to variance: spread around the mean.
\(k=3,4\)
Skewness and kurtosis: shape of the tails.

The Moment Generating Function

The MGF of a random variable \(X\) is defined as:

Why "moment generating"? Because the \(k\)-th derivative at \(t=0\) gives the \(k\)-th moment:

Why Do MGFs Matter?

1
Moment extraction: Differentiate and evaluate at \(t=0\) to get \(E[X], E[X^2], \ldots\) without re-integrating.
2
Uniqueness theorem: If \(M_X(t) = M_Y(t)\) in a neighborhood of 0, then \(X\) and \(Y\) have the same distribution.
3
Sum of independents: If \(X \perp Y\), then \(M_{X+Y}(t) = M_X(t) \cdot M_Y(t)\). Convolutions become products.
4
Convergence in distribution: Pointwise convergence of MGFs implies convergence of distributions (Lévy's continuity theorem analog).

The Characteristic Function

The characteristic function of \(X\) replaces real \(t\) with imaginary \(it\):

Key advantage: the characteristic function always exists for every distribution, since \(|e^{itx}| = 1\). No convergence issues.

Recovering Moments from \(\varphi_X\)

If \(E[|X|^k] < \infty\), we can extract the \(k\)-th moment via:

Note the factor \(\frac{1}{i^k}\). For the first two moments:

Mean
\(E[X] = \frac{1}{i}\,\varphi_X'(0)\)
Second Moment
\(E[X^2] = \frac{1}{i^2}\,\varphi_X''(0) = -\varphi_X''(0)\)

Core Theorem: Uniqueness & Inversion

This is exactly the inverse Fourier transform. The CF encodes all distributional information: shape, location, scale, and tail behavior.

Visualizing MGF vs CF

MGF: Real Growth t \(M(t)\) \(M(0)=1\) Diverges for large |t| CF: Bounded Oscillation t Re 1 -1 t=0, Re=1 Always exists, bounded by 1

MGF vs CF: Key Distinctions

Property \(M_X(t)\) (MGF) \(\varphi_X(t)\) (CF)
Definition \(E[e^{tX}]\) \(E[e^{itX}]\)
Domain \(t \in \mathbb{R}\) (when exists) \(t \in \mathbb{R}\) (always)
Existence Not guaranteed Always exists
Range \((0, \infty)\), real \(|\varphi| \leq 1\), complex
Moment formula \(M^{(k)}(0)\) \(\varphi^{(k)}(0)/i^k\)
Independents Product Product
Uniqueness Yes (if exists) Yes (always)

How to Compute an MGF

1
Write the definition: \(M_X(t) = E[e^{tX}] = \int e^{tx} f(x)\,dx\) (or \(\sum e^{tx} P(X=x)\) for discrete).
2
Substitute the density/PMF and combine the exponentials into a single term.
3
Complete the square (for Gaussian) or recognize a known series/integral form.
4
State the result and verify: check \(M_X(0) = 1\) and compute \(M_X'(0) = E[X]\).

Example: Exponential \(\text{Exp}(\lambda)\)

Let \(X \sim \text{Exp}(\lambda)\) with density \(f(x) = \lambda e^{-\lambda x}\) for \(x \ge 0\).

Check: \(M(0)\)
\(\frac{\lambda}{\lambda - 0} = 1\) ✓
Mean: \(M'(0)\)
\(M'(t) = \frac{\lambda}{(\lambda-t)^2}\), so \(M'(0) = \frac{1}{\lambda}\) ✓

Example: Normal \(N(\mu, \sigma^2)\)

For \(X \sim N(\mu, \sigma^2)\), compute \(M_X(t) = E[e^{tX}]\):

Example: Cauchy CF (MGF Fails)

The Cauchy distribution has density \(f(x) = \frac{1}{\pi(1+x^2)}\). Its MGF does not exist because \(E[e^{tX}]\) diverges for \(t \neq 0\).

Sums of Independent Variables

One of the most powerful properties: for independent \(X\) and \(Y\):

Application: If \(X_1, \ldots, X_n\) are i.i.d. \(N(\mu, \sigma^2)\), then:

Lévy Continuity Theorem

This theorem is the backbone of the Central Limit Theorem proof. One shows that the CF of the standardized sum converges pointwise to \(e^{-t^2/2}\), the CF of \(N(0,1)\).

CLT via CF
Expand \(\varphi_{X_i}(t/\sqrt{n})\) via Taylor series, raise to the \(n\)-th power, and take the limit.
Why CF?
The CF always exists, making the argument valid for any distribution with finite variance.

Common Mistakes

✕ Assuming MGF Always Exists
Heavy-tailed distributions (Cauchy, some Pareto) have no MGF. Always check convergence of \(E[e^{tX}]\) near \(t=0\).
✕ Forgetting the \(i^k\) Factor
When extracting moments from the CF, you need \(E[X^k] = \varphi^{(k)}(0)/i^k\), not just \(\varphi^{(k)}(0)\).
✕ Applying Product Rule to Dependent RVs
\(M_{X+Y} = M_X \cdot M_Y\) only holds when \(X \perp Y\). For dependent variables, use the joint distribution.

Reference: Common MGFs

Distribution \(M_X(t)\) \(\varphi_X(t)\)
\(\text{Bernoulli}(p)\) \(1-p+pe^t\) \(1-p+pe^{it}\)
\(\text{Poisson}(\lambda)\) \(e^{\lambda(e^t-1)}\) \(e^{\lambda(e^{it}-1)}\)
\(\text{Exp}(\lambda)\) \(\frac{\lambda}{\lambda-t}\) \(\frac{\lambda}{\lambda-it}\)
\(N(\mu,\sigma^2)\) \(e^{\mu t+\sigma^2 t^2/2}\) \(e^{i\mu t - \sigma^2 t^2/2}\)
\(\text{Cauchy}(0,1)\) DNE \(e^{-|t|}\)

Question 1 of 5

What is the moment generating function of \(X \sim \text{Exp}(\lambda)\)?

Question 2 of 5

Which of the following is always true about the characteristic function \(\varphi_X(t)\)?

Question 3 of 5

If \(X\) and \(Y\) are independent with MGFs \(M_X(t)\) and \(M_Y(t)\), what is \(M_{X+Y}(t)\)?

Question 4 of 5

What is the characteristic function of the standard Cauchy distribution?

Question 5 of 5

To extract the \(k\)-th moment from the characteristic function, which formula is correct?