MGF & Characteristic Functions
Master moment generating functions and characteristic functions: the transforms that encode every moment of a distribution into a single analytic expression.
What is a Moment?
The \(k\)-th moment of a random variable \(X\) is defined as the expected value of its \(k\)-th power:
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?
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:
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 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
Example: Exponential \(\text{Exp}(\lambda)\)
Let \(X \sim \text{Exp}(\lambda)\) with density \(f(x) = \lambda e^{-\lambda x}\) for \(x \ge 0\).
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)\).
Common Mistakes
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?