What Is the Moment-Generating Function of an Exponential Distribution?
At a glance
- 1. Choose a parameterization
Write the exponential density using its rate λ, or convert from scale θ before substituting.
- 2. Evaluate the expectation
Integrate e to the power tx against the density over all nonnegative x.
- 3. Check the domain
The integral converges only for t less than the rate, which includes a neighborhood of zero.
- 4. Differentiate for moments
Use derivatives of the MGF at zero to obtain the mean, variance, and higher moments.
Let have an exponential distribution with rate , so its density is for . Its moment-generating function (MGF) is
The condition on matters: the defining expectation is finite for every , including negative values, and diverges for . In particular, it is finite on an interval around zero, as required for the usual use of an MGF.
Deriving the MGF
By definition, . Integrate against the exponential density:
This improper integral converges when . Under that condition, its value is , so
If , the integrand in the last integral is the constant , so the integral diverges. If , the integrand grows exponentially and the integral also diverges. Thus the formula is not a finite MGF at or above .
Rate and scale forms
Some books parameterize an exponential distribution by its scale instead of its rate. The density is then , and the MGF can be written as
These are the same formula in different parameters. Check which convention is being used before substituting a number: the rate is the reciprocal of the mean, while the scale is the mean itself.
Using the MGF to find moments
The th raw moment is the th derivative of the MGF evaluated at zero, provided the MGF exists around zero. For the rate form,
Therefore,
Since , the variance is . More generally, differentiating repeatedly gives
for nonnegative integers .
Worked example: rate 2
Suppose , using the rate convention. Then
The first two derivatives are and . Evaluating at zero gives
So . These values also match the rate-based formulas and .
MGF of a sum of independent exponentials
If are independent, the MGF of their sum is the product of their MGFs:
For example, if two independent variables both have rate , then
This is the MGF of a gamma distribution with shape and rate . The restriction is shared by the product because both individual MGFs must be finite.
Common mistakes
- Dropping the domain: is valid as an MGF only for . At the defining integral diverges.
- Mixing up rate and scale: With rate , the mean is . With scale , the mean is .
- Using the MGF formula outside its domain: The algebraic expression may still produce a number for some , but that does not make it the expectation when the integral diverges.
- Confusing raw and central moments: gives , not the variance directly. Subtract the square of the mean to obtain the variance.
References
- Sheldon Ross, A First Course in Probability
- George Casella and Roger L. Berger, Statistical Inference
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.