Expected Values of Discrete Random Variables

Introduces the expected value (mean) of a discrete random variable as a probability-weighted average. Covers the basic formula E[X]=xipiE[X]=\sum x_i p_i, the law-of-the-unconscious-statistician formula E[g(X)]=g(xi)piE[g(X)]=\sum g(x_i)p_i, applications to games and net winnings, and recovering unknown parameters from a known expected value.

Step 1 of 157%

Tutorial

Defining the Expected Value

The expected value (or mean) of a discrete random variable XX is the weighted average of its possible values, where each value is weighted by its probability.

If XX takes values x1,x2,,xnx_1, x_2, \ldots, x_n with corresponding probabilities pi=P(X=xi),p_i = P(X=x_i), then

E[X]=i=1nxipi=x1p1+x2p2++xnpn.E[X] = \sum\limits_{i=1}^n x_i\, p_i = x_1 p_1 + x_2 p_2 + \cdots + x_n p_n.

For instance, suppose XX has the PMF

xi102pi0.50.20.3\begin{array}{c|ccc} x_i & -1 & 0 & 2 \\ \hline p_i & 0.5 & 0.2 & 0.3 \end{array}

Then

E[X]=(1)(0.5)+0(0.2)+2(0.3)=0.5+0+0.6=0.1.E[X] = (-1)(0.5) + 0(0.2) + 2(0.3) = -0.5 + 0 + 0.6 = 0.1.

The probabilities must sum to 1,1, and each pi0.p_i \geq 0.

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