Properties of Expectation for Discrete Random Variables

Establishes the linearity of expectation E[aX+b]=aE[X]+bE[aX+b]=aE[X]+b and the Law of the Unconscious Statistician E[g(X)]=xg(x)p(x),E[g(X)]=\sum_x g(x)p(x), and combines the two to evaluate expectations of polynomial transformations of a discrete random variable.

Step 1 of 119%

Tutorial

Linearity of Expectation

Let XX be a discrete random variable with expected value E[X],E[X], and let a,bRa, b \in \mathbb{R} be constants. Expectation satisfies the following linearity properties:

  1. E[b]=bE[b] = b — the expectation of a constant is the constant itself.
  2. E[aX]=aE[X]E[aX] = aE[X] — constants pull out of the expectation.
  3. E[aX+b]=aE[X]+bE[aX + b] = aE[X] + b — the two rules combined.

Each property follows directly from the definition of expectation. For example,

E[aX+b]=x(ax+b)p(x)=axxp(x)+bxp(x)=aE[X]+b,E[aX + b] = \sum_x (ax + b)\, p(x) = a\sum_x x\, p(x) + b\sum_x p(x) = aE[X] + b,

where we used xp(x)=1.\sum_x p(x) = 1.

To illustrate, suppose XX has the distribution

x123P(X=x)0.50.30.2\begin{array}{|c|c|c|c|} \hline x & 1 & 2 & 3 \\ \hline P(X=x) & 0.5 & 0.3 & 0.2 \\ \hline \end{array}

Then E[X]=1(0.5)+2(0.3)+3(0.2)=1.7,E[X] = 1(0.5) + 2(0.3) + 3(0.2) = 1.7, so

E[2X+5]=2(1.7)+5=8.4.E[2X + 5] = 2(1.7) + 5 = 8.4.

Notice that we did not need to find the distribution of 2X+52X+5 — linearity lets us compute the new expectation directly from E[X].E[X].

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