Skip to content
p.mba

Type to search tools, guides, glossary terms, frameworks, formula sheets and pages.

Menu

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

Loading your saved inputs…

Back up all tools

Tree
Start at the first decision. Payoffs go on end points; a branch cost is subtracted from every end point below it. Probabilities at each chance node must sum to 100%.

11 of 30 characters

decision · chance · end point. The optimal branch at each decision is marked “Optimal”.

EV 390CE 350.54
  • EV 320CE 200.78(off the optimal path)

    Probabilities sum to 100.00%

    • Net of costs 600(off the optimal path)
    • Net of costs -100(off the optimal path)
  • Optimal
    EV 390CE 350.54

    Probabilities sum to 100.00%

    • EV 550CE 550
      • Optimal
        Net of costs 550
      • Net of costs 350(off the optimal path)
    • Net of costs 150
  • EV 300CE 284.65(off the optimal path)

    Probabilities sum to 100.00%

    • Value 400(off the optimal path)
    • Value 150(off the optimal path)

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%)
Risk profile of the optimal policy ($ thousands)Probability of each net outcome when you follow the optimal policy.
0%10%20%30%40%50%60%150550
Data table
Risk profile of the optimal policy ($ thousands): data
CategoryProbability
15040%
55060%
Risk profile: outcome distribution
Net value ($ thousands)ProbabilityCumulative
15040.00%40.00%
55060.00%100.00%
390100.00%—

Footer: the probability-weighted mean, which equals the expected value.

End points on the optimal path
End points reached under the optimal policy
End pointPathNet value ($ thousands)Probability
Expanded, strong demandBuild small plant → Strong → Expand55060.00%
Small plant, weak demandBuild small plant → Weak15040.00%
Risk attitude
Exponential utility u(x) = 1 − e^(−x/R). A smaller risk tolerance R means more risk aversion.
Roughly the largest 50/50 gamble (win R or lose R/2) you would just accept.

Certainty equivalent ($ thousands)

350.54

Sure amount worth the same as the best risky policy

EV of that policy ($ thousands)

390

Risk premium ($ thousands)

39.46

EV given up for certainty

The first move stays “Build small plant” under this risk tolerance.

Value of perfect information
What it would be worth to learn the outcome of one uncertainty before every decision.
Treat chance nodes with the same outcome names and probabilities (on different decision branches) as one uncertainty.

Grouped: Demand (large plant), Demand (small plant), Demand (outsourcing).

EV without information ($ thousands)

390

EV with perfect information ($ thousands)

420

EVPI ($ thousands)

30 (favourable)

The most you should pay for any forecast or test

If you knew the outcome in advance
Outcome revealedProbabilityBest EV ($ thousands)First move
Strong60.0%600Build large plant
Weak40.0%150Build small plant
One-way sensitivity
Vary one outcome probability from 0% to 100%; the other outcomes at that node are rescaled in proportion so the total stays 100%.

Varied together: Demand (large plant), Demand (small plant), Demand (outsourcing).

Expected value vs. P(Strong)
EV ($ thousands)1002003004005006000%20%40%60%80%100%Probability of StrongCurrentSwitch 83.3%
Data table
Expected value vs. P(Strong): data
Probability of StrongBest EV
0%150
1%154
2%158
3%162
4%166
5%170
6%174
7%178
8%182
9%186
10%190
11%194
12%198
13%202
14%206
15%210
16%214
17%218
18%222
19%226
20%230
21%234
22%238
23%242
24%246
25%250
26%254
27%258
28%262
29%266
30%270
31%274
32%278
33%282
34%286
35%290
36%294
37%298
38%302
39%306
40%310
41%314
42%318
43%322
44%326
45%330
46%334
47%338
48%342
49%346
50%350
51%354
52%358
53%362
54%366
55%370
56%374
57%378
58%382
59%386
60%390
61%394
62%398
63%402
64%406
65%410
66%414
67%418
68%422
69%426
70%430
71%434
72%438
73%442
74%446
75%450
76%454
77%458
78%462
79%466
80%470
81%474
82%478
83%482
84%488
85%495
86%502
87%509
88%516
89%523
90%530
91%537
92%544
93%551
94%558
95%565
96%572
97%579
98%586
99%593
100%600
Crossover points (where the optimal policy changes)
ProbabilityEV ($ thousands)Change
83.33%483.33First move: Build small plant → Build large plant
EV at selected probabilities
ProbabilityBest EV ($ thousands)First move
0%150Build small plant
10%190Build small plant
20%230Build small plant
30%270Build small plant
40%310Build small plant
50%350Build small plant
60%390Build small plant
70%430Build small plant
80%470Build small plant
90%530Build large plant
100%600Build large plant

How this works

Formulas

Net value of an end point. The payoff minus every branch cost on the path from the root:

xt=payofft−∑b ∈ path(t)costbx_t = \text{payoff}_t - \sum_{b \,\in\, \text{path}(t)} \text{cost}_b

Rollback (expected value). Work from the end points back to the root:

V(chance)=∑kpk V(childk),V(decision)=max⁡kV(childk)V(\text{chance}) = \sum_k p_k\, V(\text{child}_k), \qquad V(\text{decision}) = \max_k V(\text{child}_k)

The optimal policy picks the maximizing branch at every decision node. The risk profile is the probability distribution of xtx_t 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 k=1,…,Kk = 1, \dots, K. Let VkV_k be the best expected value when outcome kk is known before any decision is made:

EV with PI=∑kpk Vk,EVPI=EV with PI−V(root)\text{EV with PI} = \sum_k p_k\, V_k, \qquad \text{EVPI} = \text{EV with PI} - V(\text{root})

One-way sensitivity. Set one branch probability to pp. Its siblings are rescaled proportionally, so they keep their relative sizes and sum to 1−p1 - p:

pk′=pk⋅1−p∑j≠bpj(k≠b)p'_k = p_k \cdot \frac{1 - p}{\sum_{j \ne b} p_j} \qquad (k \ne b)

Under a fixed policy, the root expected value is linear in pp. 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 R>0R \gt 0:

u(x)=1−e−x/R,CE=−R ln⁡ ⁣(∑kpk e−xk/R),risk premium=EV−CEu(x) = 1 - e^{-x/R}, \qquad \text{CE} = -R \,\ln\!\Big(\sum_k p_k\, e^{-x_k/R}\Big), \qquad \text{risk premium} = \text{EV} - \text{CE}

The certainty equivalent (CE) is the sure amount you would trade the gamble for. A larger RR means more tolerance for risk. As RR 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.
  1. 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.
  2. Expand decision: max(550, 350) = 550, so expand.
  3. 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.
  4. Root: max(320, 390, 300) = 390. Build the small plant, and expand if demand is strong.
  5. 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.
  6. 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.
  7. 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.
  8. 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

QuantityFormula (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 .