Skip to content

Moment Generating Function

Definition

The moment generating function (MGF) of a random variable XX is

MX(t)=E[etX].\begin{aligned} M_X(t)=\mathbb{E}[\mathrm{e}^{tX}]. \end{aligned}

The course assumes it is finite on a neighbourhood of t=0t=0: there is δ>0\delta>0 with E[etX]<∞\mathbb{E}[\mathrm{e}^{tX}]<\infty for every ∣t∣<δ|t|<\delta. Finiteness only at t=0t=0, where MX(0)=1M_X(0)=1 always, is not enough for the moment and uniqueness theorems.

The Exponential Function supplies the transform x↦etxx\mapsto \mathrm{e}^{tx}. Applying LOTUS computes its expectation by a sum or integral against the law of XX.


Interpretation

An MGF encodes a distribution through exponential averages: for each real tt, MX(t)M_X(t) is the expectation of etX\mathrm{e}^{tX}. One function of tt then carries the whole distribution, and when it is finite near zero it can generate moments and identify distributions.

MGFs of a Bernoulli(1/2) and an Exponential(1) variable, both equal to 1 at t = 0; the exponential MGF grows without bound as t approaches 1.

Both curves pass through (0,1)(0,1), since MX(0)=E[1]=1M_X(0)=\mathbb{E}[1]=1 for every XX. The Bern⁡(12)\operatorname{Bern}(\tfrac{1}{2}) MGF 12(1+et)\tfrac{1}{2}(1+\mathrm{e}^t) is finite for every tt, because XX takes only the values 00 and 11. The exponential MGF 1/(1−t)1/(1-t) is finite only for t<1t<1 and grows without bound as tt approaches 11: for t≥1t\ge1 the factor etx\mathrm{e}^{tx} outweighs the density e−x\mathrm{e}^{-x} and the integral diverges. It is finite on (−∞,1)(-\infty,1), which contains a neighbourhood of 00, and that is all the definition asks for.

Move tt along the curve MX(t)=E[etX]M_X(t)=\mathbb{E}[\mathrm{e}^{tX}]. Every MGF passes through (0,1)(0,1); for Exp⁡(λ)\operatorname{Exp}(\lambda) it is finite only for t<λt<\lambda.

The parameter tt sets the weighting. For t>0t>0, etX\mathrm{e}^{tX} gives the largest values of XX the most weight, so a heavy right tail makes MX(t)M_X(t) large or infinite; for t<0t<0 the left tail matters. Finiteness at t=0t=0 alone says nothing, as MX(0)=1M_X(0)=1 always. Near t=0t=0, etX≈1+tX+t2X2/2\mathrm{e}^{tX}\approx1+tX+t^2X^2/2, which is why the derivatives at zero give the moments.

Two further rules make the MGF practical: independent sums multiply MGFs, and equal MGFs near zero mean equal distributions. Together they identify sums such as merged Poisson counts without summing over all the ways in which each total can arise.


Key Results

  • MX(0)=1M_X(0)=1.
  • Discrete variables use MX(t)=∑xetxpX(x)\displaystyle M_X(t)=\sum_x\mathrm{e}^{tx}p_X(x); density models use MX(t)=∫etxfX(x) dxM_X(t)=\int \mathrm{e}^{tx}f_X(x)\,\mathrm{d}x.

Examples

  • For Bern⁡(p)\operatorname{Bern}(p), MX(t)=1−p+petM_X(t)=1-p+p\mathrm{e}^t.
  • For Exp⁡(λ)\operatorname{Exp}(\lambda), MX(t)=λ/(λ−t)M_X(t)=\lambda/(\lambda-t) for t<λt<\lambda; it is infinite for t≥λt\ge\lambda.

Prerequisites

Sources

Aliases: MGF, m.g.f. Symbols: delta, infinity, integral, lambda, sum

Last updated: 20 October 2026 03:02