Moment-Generating Functions

Introduces the moment-generating function (MGF) of a random variable, shows how to compute it via the expectation of etXe^{tX}, and uses derivatives of the MGF at t=0t=0 to recover moments such as E[X]E[X], E[X2]E[X^2], and Var(X)\text{Var}(X).

Step 1 of 119%

Tutorial

Defining the Moment-Generating Function

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

MX(t)=E ⁣[etX],M_X(t) = E\!\left[e^{tX}\right],

defined for all values of tt in some open interval around 00 where this expectation is finite.

For a continuous random variable XX with density f(x)f(x), this becomes

MX(t)=etxf(x)dx.M_X(t) = \int_{-\infty}^{\infty} e^{tx} f(x)\, dx.

As a small example, let XX be uniformly distributed on [0,1][0,1], so f(x)=1f(x) = 1 for 0x10 \le x \le 1. Then for t0t \neq 0,

MX(t)=01etxdx=[etxt]01=et1t.\begin{align*} M_X(t) &= \int_0^1 e^{tx}\, dx \\[3pt] &= \left[\frac{e^{tx}}{t}\right]_0^1 \\[3pt] &= \frac{e^t - 1}{t}. \end{align*}

Notice also that MX(0)=E[e0]=1M_X(0) = E[e^{0}] = 1 for any random variable XX.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle