How to Find a Joint Moment-Generating Function
At a glance
- 1. Start with the definition
For random variables X and Y, use M(s,t) = E[exp(sX + tY)].
- 2. Use the joint distribution
Sum over joint probabilities for discrete variables, or integrate the joint density for continuous variables.
- 3. Keep dependence
Do not multiply marginal moment-generating functions unless X and Y are independent.
- 4. State where it exists
Give the values of s and t for which the expectation is finite, especially near the origin.
- 5. Check derivatives
Differentiate at (0,0) to recover moments such as E[X], E[Y], and E[XY].
A joint moment-generating function (MGF) packages information about two or more random variables. For and , it uses both variables at once, so it reflects their dependence as well as their individual distributions. The method is direct: take the expectation of an exponential involving each variable, using the joint distribution.
Definition
The joint MGF of and is
for real and where this expectation is finite. For a discrete pair with joint probability mass function ,
For a continuous pair with joint density ,
provided the integral is finite. If the density is supported only on part of the plane, you can integrate over that support instead.
The joint MGF equals at , since . It is usually most useful when it is finite in a neighborhood of the origin; this allows derivatives there to recover moments.
A step-by-step method
- Identify the joint distribution. Use the joint probability table or joint density, not just the two marginal distributions.
- Substitute into the definition. Multiply each joint probability or density by .
- Sum or integrate. Simplify the expression, retaining any restrictions on the support.
- Check the domain. Determine which make the sum or integral finite.
- Check special values or derivatives. At the origin the result should be . If needed, differentiate to obtain moments.
For example, the derivatives satisfy
when the MGF is finite in a neighborhood of the origin. Higher derivatives give higher mixed moments.
Worked example: a discrete pair
Suppose has the following three possible outcomes:
| Probability | |
|---|---|
Apply the definition by adding one term for each outcome:
This MGF is finite for every real , because it is a finite sum. At the origin it gives , as expected.
The marginals are and . Their MGFs are and . The product of these marginal MGFs is not the joint MGF. In fact, and cannot both be nonzero in this distribution, so they are dependent. The joint formula preserves that information.
As a derivative check, and . Also , because every listed outcome has at least one coordinate equal to zero. Thus .
When can you multiply the marginal MGFs?
If and are independent, then and independence gives
For instance, if and are independent exponential random variables with rates and , respectively, then
Here each factor comes from the corresponding one-variable MGF. Independence is essential to this shortcut. Conversely, if the joint MGF exists in a neighborhood of the origin and factors there as , that factorization implies independence.
Common mistakes
- Using only the marginals: Marginal distributions do not generally determine the joint distribution. Different dependence patterns can have the same marginals but different joint MGFs.
- Multiplying without independence: The expression is valid for independent variables, not for an arbitrary pair.
- Dropping the joint support: For a continuous pair, the density may be nonzero only in a restricted region. Integrating over the whole plane is harmless only if the density is correctly zero outside that region.
- Ignoring convergence: A formal integral is not a finite MGF at every . State the domain where it converges; some distributions do not have an MGF on any open neighborhood of the origin.
- Confusing an MGF with a characteristic function: An MGF uses real exponential arguments . A characteristic function instead uses imaginary arguments and exists for every probability distribution.
Once you have the joint MGF, use its partial derivatives at the origin to find moments, or compare it with a known joint MGF when identifying a distribution.
References
- A First Course in Probability — Sheldon Ross
- Introduction to Mathematical Statistics — Robert V. Hogg, Joseph W. McKean, and Allen T. Craig
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.