Variance of Discrete Random Variables

Defines the variance of a discrete random variable as the expected squared deviation from the mean, develops the shortcut formula Var(X) = E[X^2] - (E[X])^2, and establishes the linear transformation property Var(aX+b) = a^2 Var(X).

Step 1 of 157%

Tutorial

Defining the Variance

The variance of a discrete random variable XX measures the average squared deviation of XX from its mean μ=E[X]\mu = E[X]. With p(x)=P(X=x),p(x) = P(X=x), it is defined as

Var(X)=E[(Xμ)2]=x(xμ)2p(x).\text{Var}(X) = E[(X-\mu)^2] = \sum\limits_x (x-\mu)^2 \, p(x).

A small variance means the values of XX cluster tightly around μ;\mu; a large variance means they spread widely. Because each term (xμ)2p(x)(x-\mu)^2 p(x) is non-negative, Var(X)0.\text{Var}(X) \geq 0.

To illustrate, suppose XX takes values 0,0, 2,2, and 4,4, each with probability 13.\dfrac{1}{3}. The mean is

μ=013+213+413=2.\mu = 0 \cdot \tfrac{1}{3} + 2 \cdot \tfrac{1}{3} + 4 \cdot \tfrac{1}{3} = 2.

The variance is then

Var(X)=(02)213+(22)213+(42)213=43+0+43=83.\begin{align*} \text{Var}(X) &= (0-2)^2 \cdot \tfrac{1}{3} + (2-2)^2 \cdot \tfrac{1}{3} + (4-2)^2 \cdot \tfrac{1}{3} \\[3pt] &= \tfrac{4}{3} + 0 + \tfrac{4}{3} \\[3pt] &= \tfrac{8}{3}. \end{align*}
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle