St · Statistics & Probability

How to Find a Distribution from Its Moment Generating Function

Published By the 9to5Science editorial team

At a glance

  1. 1. Check the MGF

    Confirm the function equals 1 at zero and is finite on an open interval around zero.

  2. 2. Match a known form

    Compare it with standard MGFs, or factor it into forms that identify familiar random variables.

  3. 3. Read off parameters

    Use coefficients and standard parameterizations carefully, especially variance and rate conventions.

  4. 4. Apply uniqueness

    An MGF finite near zero determines the distribution uniquely, so a valid match identifies the law.

Advertisement

A moment generating function (MGF) can identify a probability distribution because it encodes all the moments, and—under the usual existence condition—it uniquely determines the law. The practical method is usually to recognize the formula as a standard MGF, then match its parameters.

The key condition is that the MGF is finite for all tt in some open interval around 00. If it is, two random variables with the same MGF on such an interval have the same distribution. If no familiar form matches, derivatives at zero can still reveal moments, but a list of moments does not always determine a distribution by itself.

The basic method

For a random variable XX, its MGF is

MX(t)=E[etX],M_X(t)=\mathbb{E}[e^{tX}],

for the values of tt where this expectation is finite. Start by checking that MX(0)=1M_X(0)=1. Then compare the expression with standard forms, including these:

DistributionMGFParameters
Bernoulli1−p+pet1-p+pe^tsuccess probability p∈[0,1]p\in[0,1]
Poissonexp⁡(λ(et−1))\exp(\lambda(e^t-1))rate λ≥0\lambda\ge 0
Exponentialλλ−t\frac{\lambda}{\lambda-t}, for t<λt<\lambdarate λ>0\lambda>0
Normalexp⁡(μt+σ2t2/2)\exp(\mu t+\sigma^2t^2/2)mean μ∈R\mu\in\mathbb{R}, variance σ2>0\sigma^2>0

Match the whole expression, not just one term. Pay attention to the convention used for parameters: for example, an exponential distribution may be described by its rate or its scale.

If the MGF is a product of MGFs, it often describes a sum of independent random variables. Specifically, for independent XX and YY, MX+Y(t)=MX(t)MY(t)M_{X+Y}(t)=M_X(t)M_Y(t) wherever the MGFs exist. Recognizing such a factorization can identify the distribution even when the expression is not written in a single standard form.

Worked example: a normal distribution

Suppose

MX(t)=exp⁡(3t+2t2).M_X(t)=\exp(3t+2t^2).

The MGF of a normal random variable with mean μ\mu and variance σ2\sigma^2 is

M(t)=exp⁡(μt+σ2t22).M(t)=\exp\left(\mu t+\frac{\sigma^2t^2}{2}\right).

Match coefficients in the exponent:

μ=3,σ22=2.\mu=3,\qquad \frac{\sigma^2}{2}=2.

Thus σ2=4\sigma^2=4, so XX has a normal distribution with mean 33 and variance 44 (standard deviation 22). The expression is finite for every real tt, so the MGF uniqueness theorem applies. This confirms that the identified normal distribution is the only distribution with this MGF.

As a quick discrete example, MX(t)=0.7+0.3etM_X(t)=0.7+0.3e^t matches 1−p+pet1-p+pe^t. Therefore XX is Bernoulli with success probability p=0.3p=0.3; equivalently, it takes the value 11 with probability 0.30.3 and 00 with probability 0.70.7.

When the form is not familiar

You can differentiate the MGF at zero to obtain moments, provided the relevant derivatives exist:

MX(n)(0)=E[Xn].M_X^{(n)}(0)=\mathbb{E}[X^n].

In particular, MX′(0)M_X'(0) gives the mean, and MX′′(0)M_X''(0) gives the second raw moment. The variance is MX′′(0)−[MX′(0)]2M_X''(0)-[M_X'(0)]^2. These values can help you check a proposed distribution, but a few matching moments do not prove that two distributions are identical.

If you cannot recognize the MGF, first simplify it algebraically and look for standard pieces or products. You can also derive a candidate distribution from other information and calculate its MGF to see whether it matches. If an MGF does not exist around zero, this method may not apply; characteristic functions, which always exist, are a broader tool for identifying distributions.

Common mistakes

  • Confusing variance and standard deviation. In the normal MGF, the coefficient of t2t^2 is σ2/2\sigma^2/2, not σ/2\sigma/2.
  • Treating a few moments as a full identification. The first several derivatives give only a finite list of moments. Without an applicable uniqueness result, that is not enough to establish the distribution.
  • Ignoring the domain. The MGF must be finite on an open interval around zero for the standard uniqueness theorem to apply. A formula valid only at zero does not meet this condition.
  • Forgetting to check that the expression is valid. A genuine MGF satisfies MX(0)=1M_X(0)=1 and, wherever finite, is positive. A proposed expression that violates basic requirements cannot be an MGF.

When a recognized MGF matches a valid MGF on an interval around zero, the identification is not just a guess based on moments: uniqueness makes it definitive.

References

  1. Statistical Inference, 2nd ed., George Casella and Roger L. Berger
  2. A First Course in Probability, Sheldon Ross

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.