Statistics & Probability · Undergraduate
Moment Generating Functions
Quick answer
The moment generating function of X is M(t) = E[e^(tX)]. Its derivatives at t = 0 give the moments: M′(0) = E[X], M″(0) = E[X²], and so on, so the variance is M″(0) − M′(0)². Each common distribution has a recognizable MGF, such as e^(μt + σ²t²/2) for the normal. For independent X and Y, the MGF of X + Y is the product M_X(t)M_Y(t), which shows at once that sums of independent normals are normal.
What you'll learn
- Define the moment generating function
- Find the mean and variance from M′(0) and M″(0)
- Recognize the MGFs of common distributions
- Use products of MGFs for sums of independent variables
Expected value of an exponential
The moment generating function of a random variable is
Its derivatives at are the moments: , , and so on. So .
| Distribution | |
|---|---|
| Bernoulli() | |
| binomial(, ) | |
| Poisson() | |
| exponential, rate | for |
| normal(, ) |
Why the derivatives give moments
Expand as a Maclaurin series: . Taking expected values term by term, . The coefficient of is , and that coefficient is what the th derivative at picks out. For sums, independence gives , so MGFs multiply.
Worked examples
Common mistakes
Practice problems
-
has MGF . Find .
Answer
Full solution
.
-
For the same , find .
Answer
Full solution
.
-
has MGF . Find .
Answer
Full solution
.
-
has MGF . Find .
Answer
Full solution
, so .
-
has MGF . Find .
Answer
Full solution
It is Poisson with ; .
-
Find for any random variable .
Answer
Full solution
.
-
and are independent with MGFs and . Find .
Answer
Full solution
The product is , a normal MGF with mean .
-
A student takes for . Find .
Answer
Full solution
.
Frequently asked questions
What is a moment generating function?
M(t) = E[e^(tX)], the expected value of e^(tX) as a function of t.
How do I get the mean from the MGF?
Differentiate and set t = 0: E[X] = M′(0). In general E[Xⁿ] = M⁽ⁿ⁾(0).
What is the MGF of a normal variable?
e^(μt + σ²t²/2) for mean μ and variance σ².
What is the MGF of a sum?
If X and Y are independent, M_(X+Y)(t) = M_X(t) · M_Y(t).