Probability and risk
Law of total expectation
Also called tower rule, iterated expectations, E[E[X|Y]]
The expected value of X equals the average, over Y, of the expected value of X given Y: E[X] = E[E[X|Y]].
How it works
You condition on something that makes the problem easy, find the expectation in each case, then average those answers with the probabilities of the cases. It is the standard tool for games that depend on an earlier random step, and for recursive questions such as 'expected number of tosses until two heads in a row', where you condition on the first toss and solve the resulting equation.
Worked example
Roll a fair die, then toss that many fair coins. Given the roll is n, the expected number of heads is n/2, so E[heads] = E[roll]/2 = 3.5/2 = 1.75.
Related terms
Put it to work in a timed game.
Practise with Confidence IntervalsSources
Last checked November 2026.