Moment Generating Function — Definition, Formula & Examples
A moment generating function (MGF) is a function that encodes all the moments (mean, variance, and higher) of a random variable into a single expression. You obtain the th moment by taking the th derivative of the MGF and evaluating it at zero.
For a random variable , the moment generating function is defined as , provided this expectation exists for in some open interval containing zero. When it exists, uniquely determines the probability distribution of , and the th moment is given by .
Key Formula
Where:
- = Moment generating function of random variable X, as a function of t
- = Expected value operator
- = Real-valued parameter near zero
- = Random variable
How It Works
To use an MGF, first compute using the distribution's PMF or PDF. Once you have a closed-form expression for , differentiate it times with respect to and set to extract the th moment. The first derivative at zero gives the mean , and combining the first two derivatives gives the variance via . MGFs are also powerful for proving that sums of independent random variables follow known distributions, since when and are independent.
Worked Example
Problem: Find the MGF of an exponential random variable with rate λ = 3, then use it to find the mean.
Step 1: Write the MGF using the PDF for .
Step 2: Evaluate the integral (valid for ).
Step 3: Differentiate and evaluate at to find the mean.
Answer: The MGF is for , and the mean is .
Why It Matters
MGFs appear throughout mathematical statistics whenever you need to derive the distribution of a sum of independent random variables or prove convergence results like the Central Limit Theorem. In actuarial science and reliability engineering, MGFs provide a compact way to characterize risk distributions and compute tail probabilities.
Common Mistakes
Mistake: Forgetting that the MGF does not exist for all distributions (e.g., the Cauchy distribution has no MGF).
Correction: Always verify that is finite in an open interval around before using the MGF. If it does not exist, use the characteristic function instead.
