Linearity of Expectation

E[aX + bY] = a E[X] + b E[Y] — no independence needed.

The idea

Theorem (Linearity of expectation).

For any random variables $X$ and $Y$ and any constants $a, b, c$, $\mathbb{E}[aX + bY + c] = a\,\mathbb{E}[X] + b\,\mathbb{E}[Y] + c.$

The identity assumes nothing about how $X$ and $Y$ relate: they may be independent, or one may determine the other, and it holds either way.

The corresponding statement for products, $\mathbb{E}[XY] = \mathbb{E}[X]\,\mathbb{E}[Y]$, is false in general; it does require independence.

In practice, linearity computes the mean of a complicated random quantity by cutting the quantity into simple pieces, taking each piece's mean, and adding — even when the pieces depend on one another.

Ways to work on it

Not sure where to start? Take the ten-question placement test.