Conditioning: the tower property
PROB · Chapter 311 min readAsked at Jane Street, SIG, Citadel, Optiver
Assumes Linearity of expectation.
After this lesson you should be able to
- Apply the law of total expectation by conditioning on the right variable.
- Use the law of total variance and interpret both of its terms.
- Recognise when conditioning is the technique a problem is built around.
When a quantity is hard to average directly, average it in two stages: first within each scenario, then across scenarios. Choosing what to condition on is the entire skill, and the usual right answer is "the first step", "the hidden parameter", or "which case we are in".
Equation 3.18
Law of total expectation
The inner expectation is a function of , so it is itself a random variable. The outer expectation averages it over .
- The quantity you want the average of.
- What you condition on — the thing that, once known, makes easy.
Equation 3.19
The form you will actually write
A weighted average of the conditional answers, weighted by how likely each case is.
What conditioning buys you. It converts one hard problem into several easy ones plus some bookkeeping. If you cannot see the distribution of , ask what single piece of information would make it obvious. Learning the first coin flip, the hidden bias, or which branch you took usually collapses the problem to something you can write down in a line.
Equation 3.20
Law of total variance
Total variability splits into the average spread inside each scenario, plus the spread of the scenario averages.
Proposition 3.21
Reading the two terms
The first term is the noise you would still face even if someone told you . The second is the variability that knowing would remove. So the second term is exactly the value of the information in — which is why this decomposition shows up whenever a question is about how much an observation tells you.
Holds when
- Both terms are non-negative, so conditioning can never increase the average conditional variance above the total.
- If determines , the first term is zero and all variance is between-group.
Example 3.22
A coin of unknown bias
A coin is drawn at random from a bag: with probability it is fair, and with probability it lands heads with probability . You flip the chosen coin times. What are the mean and variance of the number of heads?
Show the worked solutionHide the worked solution
Worked solution
- Formula
- Substitute
- SolveConditional means are and ; average them.
- Within-group: the binomial noise you face once the coin is known.
- Between-group: a two-point variable takes value or with equal probability, so its variance is the square of half the gap.
- Answer
Sanity check. A single binomial with would have variance . The mixture is more variable, as it must be: not knowing which coin you hold adds uncertainty rather than removing it.
The rest of this lesson is in Premium
You have read the opening. 11 more sections follow, including 5 worked examples and 3 quick checks.
Nothing is charged for 7 days, and you can cancel before then. Or read Arithmetic that survives a clock in full, free.