Calculating Moments Using Moment-Generating Functions

Use the moment-generating property E[Xn]=MX(n)(0)E[X^n] = M_X^{(n)}(0) to compute the mean, variance, and higher moments of a random variable directly from its moment-generating function.

Step 1 of 119%

Tutorial

The Moment-Generating Property

The MGF of a random variable encodes all of its moments through its derivatives at zero.

Moment-generating property: If MX(t)=E[etX]M_X(t) = E[e^{tX}] exists in a neighborhood of t=0t=0, then the nn-th moment of XX equals the nn-th derivative of MXM_X evaluated at 00:

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

In particular, the mean of XX is just the first derivative at 00:

E[X]=MX(0).E[X] = M_X'(0).

This follows from the Taylor expansion of etXe^{tX}. Taking the expectation term-by-term,

MX(t)  =  E ⁣[n=0(tX)nn!]  =  n=0E[Xn]n!tn.M_X(t) \;=\; E\!\left[\sum_{n=0}^{\infty} \frac{(tX)^n}{n!}\right] \;=\; \sum_{n=0}^{\infty} \frac{E[X^n]}{n!}\, t^n.

Matching this with the Taylor series of MXM_X about 00, the coefficient of tnt^n is MX(n)(0)n!\dfrac{M_X^{(n)}(0)}{n!}, so E[Xn]=MX(n)(0)E[X^n] = M_X^{(n)}(0).

Quick check: if MX(t)=et2/2M_X(t) = e^{t^2/2}, then MX(t)=tet2/2M_X'(t) = t\,e^{t^2/2}, so E[X]=MX(0)=0E[X] = M_X'(0) = 0.

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