Skip to content

Linearity of Expectation

Proposition

For integrable random variables X1,…,XnX_1,\ldots,X_n and real constants a1,…,ana_1,\ldots,a_n, linearity of expectation states

E ⁣[∑i=1naiXi]=∑i=1naiEXi.\mathbb{E}\!\left[\sum_{i=1}^n a_iX_i\right]=\sum_{i=1}^n a_i\mathbb{E}X_i.

Independence is not required. In particular, E[aX+bY]=aEX+bEY\mathbb{E}[aX+bY]=a\mathbb{E}X+b\mathbb{E}Y.


Interpretation

The average of a finite linear combination is the same linear combination of averages. Dependence does not affect this rule.

Three number lines for X, Y and X + Y with their possible values as dots and their means 2, 4 and 6 marked by small triangles.

The independent variables shown have means 22 and 44, so their sum has mean 66. Here the sum takes the values 33, 55, 77 and 99, each with probability 1/41/4; the identity for the means itself does not require independence.

Addition and sum forms the finite weighted sum of the variables. Expectation then averages it: distributing the probability weights across its summands explains why taking this average commutes with the finite sum.


Key Results

  • For integrable X1,…,XnX_1,\ldots,X_n, E[∑iaiXi]=∑iaiEXi\displaystyle \mathbb{E}[\sum_ia_iX_i]=\sum_ia_i\mathbb{E}X_i.
  • E[a+bX]=a+bEX\mathbb{E}[a+bX]=a+b\mathbb{E}X.

Examples

  • If EX=2\mathbb{E}X=2 and EY=5\mathbb{E}Y=5, then E[3X−Y]=1\mathbb{E}[3X-Y]=1 regardless of dependence.
  • If Y=XY=X and EX=4\mathbb{E}X=4, then E[X+Y]=8\mathbb{E}[X+Y]=8 despite perfect dependence.

Prerequisites

Sources

Aliases: linearity of expected value, additivity of expectation Keywords: expectation is linear Symbols: sum

Last updated: 17 October 2026 21:53