Moments of Continuous Random Variables

Extends the notion of raw and central moments from the discrete case to continuous random variables. Defines the k-th moment as an integral against the pdf, introduces central moments, and uses the shortcut formula Var(X) = E[X^2] - (E[X])^2 to compute variance for continuous distributions.

Step 1 of 119%

Tutorial

Raw Moments of a Continuous Random Variable

For a discrete random variable, the kk-th moment is E[Xk]=xxkp(x).E[X^k] = \sum\limits_{x} x^k \, p(x). For a continuous random variable, we replace the sum by an integral against the probability density function (pdf).

The kk-th moment of a continuous random variable XX with pdf ff is

μk=E[Xk]=xkf(x)dx.\mu_k = E[X^k] = \int_{-\infty}^{\infty} x^k \, f(x) \, dx.

The first moment μ1=E[X]\mu_1 = E[X] is the mean. The second moment μ2=E[X2]\mu_2 = E[X^2] will turn out to be the key ingredient in computing the variance.

To illustrate, let XX have pdf f(x)=14f(x) = \dfrac{1}{4} on [0,4][0,4] (and zero elsewhere). Then

E[X2]=04x214dx=14[x33]04=14643=163.E[X^2] = \int_0^4 x^2 \cdot \dfrac{1}{4} \, dx = \dfrac{1}{4} \left[ \dfrac{x^3}{3} \right]_0^4 = \dfrac{1}{4} \cdot \dfrac{64}{3} = \dfrac{16}{3}.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle