How to Prove the Law of Total Expectation
At a glance
- 1. Identify the information
Choose the random variable or event information you are conditioning on.
- 2. Find conditional means
Compute the expected value of the target variable for each relevant condition.
- 3. Average those means
Weight each conditional mean by how likely its condition is, or integrate over the conditioning variable.
- 4. Use the definition
For the general proof, apply the defining integral property of conditional expectation to the whole sample space.
The law of total expectation says that you can calculate an overall mean by first finding conditional means and then averaging them over the conditions. It is often called the tower property of expectation.
The key identity is . Below is a proof from the definition of conditional expectation, followed by the familiar discrete calculation and a worked example.
The law and its conditions
Let be an integrable random variable, meaning . Let represent information you are conditioning on. Then
Here, is shorthand for conditioning on all the information determined by . It is itself a random variable: its value depends on the observed value of . The outer expectation averages that conditional mean across the distribution of .
The identity also applies when you condition on a partition or, more generally, on a sigma-algebra. If is nonnegative, it holds as well with expectations allowed to be infinite.
Proof from the definition
Let be the information being conditioned on, and write . The defining properties of conditional expectation say that is measurable with respect to and that, for every event in ,
Take to be the entire sample space . Since , this gives
Substituting proves
Choosing to be the information determined by gives the usual form, . The proof is short because the definition of conditional expectation already guarantees that its average over the whole sample space matches the average of .
Discrete derivation
Suppose and are discrete. For values with , the conditional mean is
Weight each such mean by and sum over :
The second line uses . This calculation makes the averaging interpretation explicit. For a continuous with an appropriate conditional density, the analogous formula is
where is the density of . The conditional mean as a function of is averaged using the density of the conditioning variable.
Worked example: two routes
A delivery takes route A with probability and route B with probability . On either route, the delivery earns \10$20.80.5Y$ be the net payoff.
First calculate the conditional expected payoff on each route:
Now average these conditional expectations using the route probabilities:
As a check, the overall probability of arriving on time is . Calculating directly gives , the same result.
Common mistakes
- Forgetting the outer expectation. The conditional expectation generally varies with . The law says to average that random variable; it does not say that each conditional mean equals the overall mean.
- Using unweighted averages. In the discrete formula, each conditional mean is weighted by the probability of its condition. Conditions with different probabilities should not receive equal weight unless they are equally likely.
- Assuming independence is needed. The law holds whether or not and are independent. Independence can make the conditional expectation simpler, but it is not required for the identity.
- Conditioning on a zero-probability value. In a discrete model, is only defined by the usual conditional-probability formula when . In continuous models, conditional values at individual points are generally specified only up to sets of probability zero; the integral formula is the relevant statement.
References
- Introduction to Probability, 2nd edition, by Joseph K. Blitzstein and Jessica Hwang
- A First Course in Probability, by Sheldon Ross
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.