Probability trees, conditional expectations and conditional variance
Draw the first uncertainty as branches, then the outcomes within each branch. The forecast inside a branch is a conditional expectation, E[X | S]; its spread is the conditional variance. Weight each E[X | S] by its branch probability and add: the total probability rule gives the unconditional forecast.
Watch the lesson 22 min
This lesson's video is for Plus members. The written lesson below is free, as always.
Before this: Unconditional expected value, variance and standard deviation, Discrete distributions: uniform, binomial and Poisson
On the exam
- Calculate, interpret, and evaluate conditional expectations, variances, and covariances
Calculate, interpret and evaluate conditional expectations, variances and covariances, and combine them into an unconditional forecast with the total probability rule. Expect a two-scenario tree where averaging the branch forecasts without their probabilities is an answer option, and a two-period price tree where one of the middle paths is forgotten.
How deeply to learn each part
- Know the idea
- Understand it in general. It frames other topics, but you will not calculate with it.
- Use it
- Understand it well enough to solve a question with it. Recognize when it applies.
- Memorize
- Learn it by heart. The exam will not give it to you.
You know this one. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still do.
You tested strong here. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still know it.
How do you lay a forecast out as a tree?
A probability tree (also called a decision tree) shows an uncertainty that plays out in stages. Each point where the uncertainty resolves is a node . Branches leave the node, each labeled with its probability, and the probabilities leaving one node add to 1. Probabilities in the second stage are conditional probability values: the chance of an outcome given the branch you are on.
- Node Know the idea a point where uncertainty resolves
- Branch probabilities from one node they add to 1
-
- End-branch (joint) probability Use it multiply along the path
- All end branches add to 1
-
- Conditional expected value Memorize the forecast within one first-stage branch
- Unconditional E[X] weight each by its branch probability and add
-
The two formulas are the same relationship read in opposite directions. Going down a tree you multiply; coming back, you divide by the probability of the branch you are on. For example, P(growth 9% | expand) = 0.4875 ÷ 0.65 = 0.75.
What is a conditional expected value?
A conditional expected value is the expected value of a variable if one particular scenario happens. You compute it exactly like an ordinary expected value, but with the probabilities inside that branch.
How do you combine the branches into one forecast?
Weight each conditional expected value by the probability of its scenario and add. This is the total probability rule for expected value , and the result is the unconditional expected value, the overall forecast before you know which scenario happens. It works when the scenarios are mutually exclusive (only one happens) and exhaustive (together they cover everything).
Scenario 1 has probability 0.65 and an expected outcome of 8.00%. Scenario 2 is the only other scenario and has an expected outcome of -1.00%. The overall expected outcome is closest to:
8 × 0.65 + (−1) × 0.35 = 4.85%
Unconditional expected value, E[X]4.85%
- 0.65×8+(0.35×1+|-)=
+|- change sign
- 0.65ENTER8×0.35ENTER1CHS×+
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Try this 0 of 3
- Cut the chance of expansion to 0.25 and watch the unconditional forecast
- Push the unconditional forecast to 6% or more
- Show the unweighted-average trap
If the economy expands (probability 0.65) growth is expected at 8.00%; if it slows (0.35), at −1.00%. Weighting each by its probability gives an unconditional forecast of 4.85%.
- Next year, E = 4.85%, weighted by scenario, (matches)
- p = 0.65: Economy expands, P = 0.65, E = 8.00%
- p = 0.75: High growth, 9%, joint 0.4875
- p = 0.25: Low growth, 5%, joint 0.1625
- p = 0.35: Economy slows, P = 0.35, E = −1.00%
- p = 0.50: High growth, 3%, joint 0.175
- p = 0.50: Low growth, −5%, joint 0.175
- p = 0.65: Economy expands, P = 0.65, E = 8.00%
Hover over or tap a box to follow its path.
Show working
E[g | expand] = 0.75 × 9 + 0.25 × 5 = 8.00%
E[g | slow] = 0.50 × 3 + 0.50 × (−5) = −1.00%
Total probability rule: E[g] = 0.65 × 8.00 + 0.35 × (−1.00) = 4.85%
Check from the end branches: 0.4875 × 9 + 0.1625 × 5 + 0.175 × 3 + 0.175 × (−5) = 4.85% (joint probabilities sum to 1.00)
Var(g | expand) = E[g² | expand] − (E[g | expand])² = 0.75 × 9² + 0.25 × 5² − 8.00² = 67 − 64 = 3.00 (%²)
Var(g | slow) = 17 − (−1.00)² = 16.00 (%²)
Unconditional variance over the four end branches, with their joint probabilities: 25.98 (%²), σ = 5.10%.
- 0.75×9+(0.25×5)=STO1E[g | expand] = 8.00
- 0.5×3+(0.5×5+|-)=STO2E[g | slow] = −1.00
- 0.65×RCL1+(0.35×RCL2)=E[g] = 4.85
STO store · +|- change sign · RCL recall a stored number
- 0.75ENTER9×0.25ENTER5×+STO1E[g | expand] = 8.00
- 0.5ENTER3×0.5ENTER5CHS×+STO2E[g | slow] = −1.00
- 0.65RCL1×0.35RCL2×+E[g] = 4.85
ENTER enter (on the HP, puts the number on the stack) · STO store · CHS change sign · RCL recall a stored number
Display: 4.85%
On the Scenarios tab, move the first-stage probability and watch the two conditional expected values stay put while the overall forecast slides between them. The overall figure always lies between the branch forecasts. The Price tree tab belongs to the price-tree section further down.
The practical advantage is that an analyst can revise one branch, say a higher chance of a slowdown, without rebuilding the forecast. Only that probability and the weighted sum change.
Exam tip If your overall forecast lies outside the range of the branch forecasts, you have mis-weighted something.
What about the variance in a tree?
Variance also has a conditional version. A conditional variance measures spread inside one scenario, around that scenario’s expected value. As with the unconditional variance, there is a shortcut: the conditional mean of the squares minus the square of the conditional mean.
What about the covariance in a tree?
Know the idea
A conditional covariance measures how two variables move together inside one scenario, around that scenario’s expected values.
How do forecasts change as prices arrive?
Use it
Conditional expectations matter most in a multi-period price tree. A share starts at 50 and moves up 5 (probability 0.65) or down 5 (probability 0.35) in each of three periods, independently. This is the binomial tree of Lesson 3 with additive moves. Different paths reach the same price, so count them: three paths reach 55 (up-up-down, up-down-up and down-up-up) and three reach 45.
| Price at time 3 | Paths | Probability |
|---|---|---|
| 65 | 1 | 0.65³ = 0.2746 |
| 55 | 3 | 3 × 0.65² × 0.35 = 0.4436 |
| 45 | 3 | 3 × 0.65 × 0.35² = 0.2389 |
| 35 | 1 | 0.35³ = 0.0429 |
The same tree is the start of the binomial option model in Derivatives.
Go deeper Why the overall variance exceeds the conditional ones
Not stated in the curriculum; for intuition only. The overall variance splits into two parts: the probability-weighted average of the conditional variances, plus the probability-weighted squared gaps between each conditional expected value and the overall expected value. For the retailer: 0.65 × 3.00 + 0.35 × 16.00 = 7.55, and 0.65 × (8.0 − 4.85)² + 0.35 × (−1.0 − 4.85)² = 6.45 + 11.98 = 18.43. Together they give 25.98. A tree that separates good and bad scenarios clearly has a large second part.
Go deeper Why each price-tree step adds the same amount
Not required for the exam. Each step of the price tree adds 0.65 × 5 − 0.35 × 5 = 1.5 to the expected price and 25 − 1.5² = 22.75 to the variance. After three steps that gives 50 + 4.5 = 54.5 and 3 × 22.75 = 68.25, the same figures as the table. Each observed move removes one step of risk.
Go deeper More than two stages
Trees can run for as many stages as the problem needs: each end node becomes a new node with its own branches, and you fold the tree back from the right. The price-tree section above is a three-stage example, and the binomial option model has the same shape.
Memorize this
MemorizeTree rules
| Item | Rule |
|---|---|
| Branches from one node | probabilities add to 1 |
| End-branch (joint) probability | product along the path: P(S) × P(x | S) |
| All end branches | add to 1 |
| Conditional E[X | S] | weight outcomes by P(x | S) inside branch S |
| Unconditional E[X] | Σ E[X | Sᵢ] × P(Sᵢ) |
Memory hook Fold the tree from the right: each first-stage node becomes one number, then weight those numbers by the first-stage probabilities.
Know it cold Total probability rule needs scenarios that are mutually exclusive and exhaustive, not equally likely.
- Node Know the idea a point where uncertainty resolves
- Branch probabilities from one node they add to 1
-
- End-branch (joint) probability Use it multiply along the path
- All end branches add to 1
-
- Conditional expected value Memorize the forecast within one first-stage branch
- Unconditional E[X] weight each by its branch probability and add
-
Quick example
A scenario has probability 0.65, and an outcome within it has conditional probability 0.75. The joint probability is 0.65 × 0.75 = 0.4875.
- 0.65×0.75= 0.4875
- 0.65ENTER0.75× 0.4875
ENTER enter (on the HP, puts the number on the stack)
Quick example
Joint probability 0.4875, P(B) = 0.65. P(A | B) = 0.4875 ÷ 0.65 = 0.75.
- 0.4875÷0.65= 0.75
- 0.4875ENTER0.65÷ 0.75
ENTER enter (on the HP, puts the number on the stack)
Quick example
Given scenario S, an outcome of 15 has probability 0.9 and an outcome of 5 has 0.1. E[X | S] = 13.5 + 0.5 = 14.0.
- 0.9×15+(0.1×5)= 14
- 0.9ENTER15×0.1ENTER5×+ 14
ENTER enter (on the HP, puts the number on the stack)
Quick example
E[X | S₁] = 5.0 with P(S₁) = 0.65, and E[X | S₂] = −2.0 with P(S₂) = 0.35. E[X] = 3.25 − 0.70 = 2.55.
- 0.65×5+(0.35×2+|-)= 2.55
+|- change sign
- 0.65ENTER5×0.35ENTER2CHS×+ 2.55
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Given S, outcomes 5 and −1 each have probability 0.5, so E[X | S] = 2. Variance = 0.5 × 9 + 0.5 × 9 = 9. Shortcut: E[X² | S] = 13, and 13 − 2² = 9.
- (5−2)x²×0.5+((1+|-−2)x²×0.5)= 9
x² square · +|- change sign
- 5ENTER2−ENTER×0.5×1CHSENTER2−ENTER×0.5×+ 9
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Given S, X is 9 and Y is 11 with probability 0.75; X is 5 and Y is 3 with probability 0.25. E[X | S] = 8, E[Y | S] = 9. Cov = 0.75 × (1)(2) + 0.25 × (−3)(−6) = 6.0.
- 0.75×1×2+(0.25×3+|-×6+|-)= 6
+|- change sign
- 0.75ENTER1×2×0.25ENTER3CHS×6CHS×+ 6
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
How it is asked
-
Unconditional expected value from two branches
Oil rises (0.35): E[r] = 9.0. Oil falls (0.65): E[r] = 2.0. Expected return?
0.35 × 9.0 + 0.65 × 2.0 = 3.15 + 1.30 = 4.45%. Trap: 5.50% (equal weights).
-
Read one branch
Oil falls: 3% (0.9) or −7% (0.1). Expected return given that oil falls?
Use only the "falls" branch: 0.9 × 3 + 0.1 × (−7) = 2.0%. Trap: the overall 4.45%.
-
Two-period price tree
S₀ 120; up 12% (0.65) or down 5% (0.35) each period. Expected price after two periods?
Up-up 150.53 (0.4225), one up one down 127.68 (2 × 0.2275 = 0.455), down-down 108.30 (0.1225): 134.96. Shortcut: 120 × (0.65 × 1.12 + 0.35 × 0.95)² = 120 × 1.0605². Traps: 105.91 (one middle path), 128.84 (equal weights).
-
Joint probability of an end branch
Oil rises (0.35), then the return is 14% (0.75 given rises). P(rises and 14%)?
0.35 × 0.75 = 0.2625. Trap: 0.75 (the conditional probability alone).
Exam traps
- Averaging the conditional expected values without weighting them by the branch probabilities.
- Working from the end branches and multiplying by the second-stage probability only, forgetting the first-stage probability.
- Branch probabilities from one node that do not add to 1. Check every node.
- Reading a conditional expected value as the overall forecast. E[X | S] is the forecast if S happens.
- Counting one path to a middle node of a price tree when several lead there (two in a two-period tree, three in a three-period tree).
Checkpoint
6 exam-style questions. About 90 seconds each.
1A company's growth depends on interest rates. Rates fall with probability 0.55 or rise with probability 0.45. If rates fall, growth is 12% (probability 0.8) or 4% (probability 0.2). If rates rise, growth is 6% (probability 0.3) or 0% (probability 0.7). The expected growth rate is closest to:
2In the same tree, the conditional expected growth rate given that interest rates rise is closest to:
3The total probability rule for expected value requires the scenarios to be:
4In the same tree, the probability that interest rates fall and growth is 12% is closest to:
5A share priced at EUR 80 rises 10% (probability 0.6) or falls 8% (probability 0.4) in each of the next two periods, independently. The expected price after two periods is closest to:
6Given a recession, an analyst forecasts a fund return of −10% with probability 0.4 and 2% with probability 0.6. The conditional variance of the return given a recession (in %²) is closest to:
Key takeaways
- Tree: the first uncertainty as branches, then the outcomes within each branch.
- A conditional expected value is the forecast inside one branch.
- Unconditional E[X] = Σ E[X | Sᵢ] × P(Sᵢ), with Sᵢ mutually exclusive and exhaustive.
- End-branch probabilities multiply along the path and add to 1.
- Each observed price narrows the forecast: the conditional variance falls as more moves become known.
Quick example
A scenario has probability 0.65, and an outcome within it has conditional probability 0.75. The joint probability is 0.65 × 0.75 = 0.4875.
- 0.65×0.75= 0.4875
- 0.65ENTER0.75× 0.4875
ENTER enter (on the HP, puts the number on the stack)
Quick example
Joint probability 0.4875, P(B) = 0.65. P(A | B) = 0.4875 ÷ 0.65 = 0.75.
- 0.4875÷0.65= 0.75
- 0.4875ENTER0.65÷ 0.75
ENTER enter (on the HP, puts the number on the stack)
Quick example
Given scenario S, an outcome of 15 has probability 0.9 and an outcome of 5 has 0.1. E[X | S] = 13.5 + 0.5 = 14.0.
- 0.9×15+(0.1×5)= 14
- 0.9ENTER15×0.1ENTER5×+ 14
ENTER enter (on the HP, puts the number on the stack)
Quick example
E[X | S₁] = 5.0 with P(S₁) = 0.65, and E[X | S₂] = −2.0 with P(S₂) = 0.35. E[X] = 3.25 − 0.70 = 2.55.
- 0.65×5+(0.35×2+|-)= 2.55
+|- change sign
- 0.65ENTER5×0.35ENTER2CHS×+ 2.55
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Given S, outcomes 5 and −1 each have probability 0.5, so E[X | S] = 2. Variance = 0.5 × 9 + 0.5 × 9 = 9. Shortcut: E[X² | S] = 13, and 13 − 2² = 9.
- (5−2)x²×0.5+((1+|-−2)x²×0.5)= 9
x² square · +|- change sign
- 5ENTER2−ENTER×0.5×1CHSENTER2−ENTER×0.5×+ 9
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Given S, X is 9 and Y is 11 with probability 0.75; X is 5 and Y is 3 with probability 0.25. E[X | S] = 8, E[Y | S] = 9. Cov = 0.75 × (1)(2) + 0.25 × (−3)(−6) = 6.0.
- 0.75×1×2+(0.25×3+|-×6+|-)= 6
+|- change sign
- 0.75ENTER1×2×0.25ENTER3CHS×6CHS×+ 6
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Questions about this lesson?
Where this comes back
- The One-Period Binomial Model Derivatives
- Financial Statement Forecasting Equities
- Credit Risk Fixed Income
Questions candidates ask
What is a conditional expected value?
It is the expected value of a variable given that a particular scenario occurs, calculated with the probabilities of the outcomes inside that scenario only. E[growth | rates fall] is the forecast if rates fall, not the overall forecast.
What is the total probability rule for expected value?
The overall expected value equals each conditional expected value times the probability of its scenario, added up: E[X] = ΣE[X | Sᵢ] × P(Sᵢ). The scenarios must be mutually exclusive and exhaustive, so their probabilities add to 1.
What is a conditional variance?
The variance of a variable given that a scenario has happened, computed with the probabilities inside that scenario: Var(X | S) = E[X² | S] − (E[X | S])². In a price tree it shrinks as more prices are observed.
How do you draw a probability tree for an investment problem?
Put the first uncertainty on the left as branches, each with its probability. From the end of each branch draw the next set of outcomes with their conditional probabilities. Multiply along each path for the joint probability, and check that probabilities from each node add to 1.
Spotted an error? Tell us and we will fix it.