Probability and risk

Linearity of expectation

Also called additivity of expectation, E[X+Y] = E[X] + E[Y]

The expected value of a sum equals the sum of the expected values, whether or not the variables are independent.

How it works

E[X + Y] = E[X] + E[Y] and E[cX] = cE[X] hold for any random variables with finite means, dependent or not. Interviewers test it with counting questions that look hard because the pieces are dependent: you break the count into simple indicator pieces, find the probability of each, and add. Candidates often try to find the whole distribution when only the mean is asked. Variance is not linear in general: Var(X + Y) needs the covariance term.

Worked example

A random shuffle of n hats returns each person their own hat with probability 1/n, so the expected number of people with their own hat is n x 1/n = 1, for any n. Among 30 people, the expected number of pairs sharing a birthday (ignoring leap years) is C(30, 2) / 365 = 435 / 365 = 1.19.

Put it to work in a timed game.

Practise with Confidence Intervals

Sources

  1. math.dartmouth.edu/~prob/prob/prob.pdf

Last checked November 2026.

← All 281 glossary terms

Was this definition clear?