Calculating Variance and Standard Deviation Using Moment-Generating Functions

Use the moment-generating function (MGF) of a random variable to compute its variance and standard deviation via the formulas Var(X)=MX(0)[MX(0)]2\text{Var}(X) = M''_X(0) - [M'_X(0)]^2 and σX=Var(X)\sigma_X = \sqrt{\text{Var}(X)}.

Step 1 of 119%

Tutorial

Variance from the Moment-Generating Function

The variance of a random variable XX measures the spread of its distribution about the mean. We can compute it directly from the moment-generating function (MGF) using

Var(X)=E[X2](E[X])2=MX(0)[MX(0)]2.\text{Var}(X) = E[X^2] - (E[X])^2 = M''_X(0) - \left[M'_X(0)\right]^2.

This follows because E[X]=MX(0)E[X] = M'_X(0) and E[X2]=MX(0)E[X^2] = M''_X(0).

For example, consider the MGF

MX(t)=12et+12e3t.M_X(t) = \tfrac{1}{2}e^t + \tfrac{1}{2}e^{3t}.

Differentiating twice, we get

MX(t)=12et+32e3t,MX(0)=2,MX(t)=12et+92e3t,MX(0)=5.\begin{align*} M'_X(t) &= \tfrac{1}{2}e^t + \tfrac{3}{2}e^{3t}, & M'_X(0) &= 2, \\[3pt] M''_X(t) &= \tfrac{1}{2}e^t + \tfrac{9}{2}e^{3t}, & M''_X(0) &= 5. \end{align*}

Therefore,

Var(X)=522=1.\text{Var}(X) = 5 - 2^2 = 1.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle