Decision tree & expected value
Build decision trees with costs and probabilities, roll back expected value, see the risk profile, EVPI, probability crossovers and certainty equivalents.
When you’ll use this
- Decision analysis / data models core, weeks 2–4: rolling back decision trees and computing EVPI for problem sets
- Strategy cases on capacity, launch or litigation choices: testing how sensitive the recommendation is to one probability
- Corporate finance, real-options week: valuing the option to expand or abandon with a simple tree
- Personal choices during the program, such as which internship path to pursue, framed as risky bets with a stated risk tolerance
Decision tree & expected value tool
Expected value of the best policy ($ thousands)
390
First move: Build small plant
Standard deviation ($ thousands)
195.96
Spread of outcomes under the policy
Probability of a loss
0.0%
Net value below zero
Range ($ thousands)
150 to 550
Worst and best outcome
Optimal policy
- At Capacity decision: Build small plant (EV 390)
- At Expand the small plant?: Expand (EV 550, reached with probability 60.0%)
Data table
| Category | Probability |
|---|---|
| 150 | 40% |
| 550 | 60% |
| Net value ($ thousands) | Probability | Cumulative |
|---|---|---|
| 150 | 40.00% | 40.00% |
| 550 | 60.00% | 100.00% |
| 390 | 100.00% | — |
Footer: the probability-weighted mean, which equals the expected value.
End points on the optimal path
| End point | Path | Net value ($ thousands) | Probability |
|---|---|---|---|
| Expanded, strong demand | Build small plant → Strong → Expand | 550 | 60.00% |
| Small plant, weak demand | Build small plant → Weak | 150 | 40.00% |
How this works
Formulas
Net value of an end point. The payoff minus every branch cost on the path from the root:
Rollback (expected value). Work from the end points back to the root:
The optimal policy picks the maximizing branch at every decision node. The risk profile is the probability distribution of over the end points that policy can reach. Each end point’s probability is the product of the chance probabilities along its path.
Expected value of perfect information (EVPI) for an uncertainty with outcomes . Let be the best expected value when outcome is known before any decision is made:
One-way sensitivity. Set one branch probability to . Its siblings are rescaled proportionally, so they keep their relative sizes and sum to :
Under a fixed policy, the root expected value is linear in . A crossover is the probability at which two policies have equal expected value. The tool finds where the optimal policy changes on a grid, then solves that linear equation exactly.
Exponential utility with risk tolerance :
The certainty equivalent (CE) is the sure amount you would trade the gamble for. A larger means more tolerance for risk. As grows, the CE approaches the expected value.
Conventions & assumptions
- Node kinds. Decision nodes are squares (your choice). Chance nodes are circles (nature’s move). End points carry payoffs.
- Branch costs are subtracted. Every value in the tree is net of all costs on the path from the root, including costs paid before reaching that node. A negative cost counts as a cash inflow.
- Probabilities. Each chance node’s probabilities must lie between 0 and 1 and sum to 1, within a tolerance of 0.000001. Chance-node probabilities are conditional on the path that leads to them.
- Maximize, and ties. The objective is to maximize. When two branches tie exactly, the first one listed is chosen and the tie is flagged.
- No discounting. All payoffs are in comparable units at one point in time. Discount future cash flows yourself first, for example with the time value of money calculator.
- Defining EVPI.
- EVPI is defined for one uncertainty. If the same uncertainty appears on several branches (demand after each choice, for example), select all of those chance nodes together. They must have the same outcomes and probabilities.
- Conditional probabilities, such as demand after a test result, describe a different uncertainty and cannot be grouped.
- Perfect information means the outcome is revealed before every decision in the tree.
- Utility. Exponential utility assumes constant risk aversion. The utility-optimal policy can differ from the EV-optimal one, and the tool reports both.
Worked example
A company must choose its production capacity. Amounts are in $ thousands.
- Build large plant (cost 400). Demand is Strong with probability 0.6 (payoff 1,000) or Weak with probability 0.4 (payoff 300).
- Build small plant (cost 150).
- If demand is Strong (0.6), decide whether to Expand (cost 300, payoff 1,000) or Stay small (payoff 500).
- If demand is Weak (0.4), the payoff is 300.
- Outsource production (no cost). Strong demand (0.6) pays 400 and Weak demand (0.4) pays 150.
- Net end-point values. Large: 600 and −100. Small: expand 1,000 − 150 − 300 = 550, stay 500 − 150 = 350, weak 150. Outsource: 400 and 150.
- Expand decision: max(550, 350) = 550, so expand.
- Chance nodes.
- Large: 0.6×600 + 0.4×(−100) = 320.
- Small: 0.6×550 + 0.4×150 = 390.
- Outsource: 0.6×400 + 0.4×150 = 300.
- Root: max(320, 390, 300) = 390. Build the small plant, and expand if demand is strong.
- Risk profile: 550 with probability 0.6 and 150 with probability 0.4. The standard deviation is about 196, and there is no chance of a loss.
- EVPI on demand (all three demand nodes together).
- Knowing demand is Strong, the best choice is the large plant (600).
- Knowing demand is Weak, the best value is 150. The small plant and outsourcing tie, and the small plant is listed first.
- EV with PI = 0.6×600 + 0.4×150 = 420, so EVPI = 420 − 390 = 30. No forecast of demand is worth more than $30 thousand.
- Sensitivity to P(Strong). The small plant is worth 400p + 150 and the large plant 700p − 100. They cross at 300p = 250, so p = 5/6 ≈ 0.833, where the expected value is about 483.3. Above that probability, build large.
- Risk tolerance R = 500.
- The certainty equivalents are about 200.8 (large), 350.5 (small) and 284.6 (outsource), so the small plant is still best.
- Its risk premium is 390 − 350.5 ≈ 39.5.
Limitations
- Every input is your estimate, and the expected value hides the spread of outcomes. Read the risk profile alongside it.
- Trees grow quickly, so the tool caps them at 200 nodes and 40 levels. It doesn’t support continuous distributions or Monte Carlo simulation.
- Proportional re-normalization is one convention among several. Varying one probability while holding a specific sibling fixed can give different crossovers.
- EVPI assumes the information is perfect and arrives before every decision. Imperfect information (a test with errors) needs its own chance node with conditional probabilities.
- Exponential utility is a modelling choice. Your real attitude to risk may not be constant across stakes.
Excel/Sheets equivalents
| Quantity | Formula (worked example) |
|---|---|
| Chance node EV | =SUMPRODUCT({0.6,0.4},{550,150}) gives 390 |
| Decision node | =MAX(320, 390, 300) gives 390 |
| EVPI | =0.6*MAX(600,550,400)+0.4*MAX(-100,150,150)-390 gives 30 |
| Crossover (two linear policies) | =(150-(-100))/(700-400) gives 0.8333 |
| Certainty equivalent | =-500*LN(0.6*EXP(-550/500)+0.4*EXP(-150/500)) gives 350.54 |
| Expected utility | =1-EXP(-350.54/500) gives 0.504 |
Runs entirely in your browser; inputs are saved only on this device. Last updated .