Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Decision Analysis

Open In Colab

Decision Analysis

Qahwa House has been offered a site at a winter festival in Riyadh, for an 80-day season. It can open a big kiosk, a small kiosk, or no kiosk at all. The big kiosk earns far more if the crowds come, and loses far more if they do not, and nobody knows yet how many visitors the venue will draw. A market-research firm offers a footfall survey for 25,000 SAR. The owner has to decide whether to buy the survey, and which kiosk to open.

This reading turns that situation into a decision model and solves it four ways: with rules that ignore probabilities, with expected monetary value, with a decision tree that includes the survey, and with a utility function for an owner who dislikes big losses.

After this reading you can:

  • write a decision as a payoff table of alternatives and states of the world;

  • apply the maximax, maximin and minimax-regret criteria, and say what attitude each one encodes;

  • compute expected monetary values and test how sensitive the choice is to a probability;

  • build a decision tree in Python and fold it back;

  • update probabilities with Bayes’ rule and compute the value of perfect and of sample information;

  • use an exponential utility function, a certainty equivalent and a risk premium for a risk-averse decision maker.

The data

One small table holds two decisions; this reading uses the kiosk case (the lab uses cold_brew).

ColumnMeaning
casewhich decision: kiosk (the reading) or cold_brew (the lab)
alternativean option the decision maker can choose
statea state of the world: what may happen, which nobody controls
priorthe probability of the state, before any new information
p_positivethe probability that a study (a survey or a pilot) gives a positive result if this state is the true one
units, unit_margin_sar, fixed_cost_sarhow the profit is built: units sold × margin per unit − fixed cost
profit_sarthe payoff: profit of the alternative in this state, in SAR
Loading...

1. The payoff table

A decision under uncertainty has three ingredients: the alternatives we choose from, the states of the world that may happen (here the festival’s footfall: High, Medium or Low), and a payoff for every pair. Profit is built from the planning team’s estimates: cups sold over the season × 10 SAR of margin per cup, minus the fixed cost of the site, the fit-out and the staff (520,000 SAR for the big kiosk, 200,000 SAR for the small one). A pivot turns the long table into the classic payoff table, in thousand SAR:

Loading...

The big kiosk earns 400 thousand SAR if footfall is high but loses 260 thousand if it is low: its fixed cost is high and must be covered by many cups. The small kiosk’s results are much less spread out, from −40 to 180. Not opening is worth 0 whatever happens. No alternative is best in every state, so the choice depends on how we treat uncertainty.

2. Deciding without probabilities

Three classic rules choose without asking how likely each state is.

  • Maximax (the optimist): take each alternative’s best payoff, choose the largest.

  • Maximin (the pessimist): take each alternative’s worst payoff, choose the largest.

  • Minimax regret: the regret of a choice in a state is what we lose compared with the best choice for that state. Take each alternative’s largest regret, and choose the smallest.

Regret table (thousand SAR):
state         High  Medium    Low
alternative                      
Big            0.0     0.0  260.0
Small        220.0    40.0   40.0
No kiosk     400.0   140.0    0.0 

Loading...
maximax chooses        Big
maximin chooses        No kiosk
minimax regret chooses Small

Three rules, three different answers. The optimist opens the big kiosk, the pessimist opens nothing, and the regret-avoider opens the small kiosk (its largest regret, 220, is the smallest: 220 if footfall is high and it missed the big kiosk’s profit). Each rule encodes an attitude, and none of them uses what we know about how likely the states are. When the probabilities can be estimated, we should use them.

3. Expected monetary value

The team estimated the probabilities from the footfall of the festival’s two previous seasons and this season’s advance ticket sales: High 0.30, Medium 0.50, Low 0.20. The expected monetary value (EMV) of an alternative is its probability-weighted average payoff, EMV=∑sps payoffs\text{EMV} = \sum_s p_s \, \text{payoff}_s.

{'High': 0.3, 'Medium': 0.5, 'Low': 0.2}
alternative Big 138.0 Small 96.0 No kiosk 0.0 dtype: float64

The big kiosk has the highest EMV, 138 thousand SAR, against 96 for the small one. EMV is the right criterion for a decision maker who faces many similar decisions and can absorb the ups and downs, because over many decisions the average is what remains. But this season will produce one outcome: 400, 140 or −260, never 138. We come back to that in section 8.

How sensitive is the choice? The probabilities are estimates. Suppose the chance of low footfall is not 0.20 but some pp, with High and Medium sharing the rest in the same 3 : 5 ratio. For which pp is the big kiosk still the best?

the small kiosk overtakes the big one when P(Low) passes about 0.33
<Figure size 700x340 with 1 Axes>

The big kiosk stays the EMV choice as long as the probability of low footfall stays below about 0.33; above that the small kiosk wins. Our estimate, 0.20, is not far from that threshold, so the decision is only moderately robust: an analyst should tell the owner exactly this, not just “open the big kiosk”.

4. Decision trees

A decision tree draws the decision in the order things happen, from left to right:

  • a square is a decision: we choose one branch;

  • a circle is a chance node: the world chooses a branch, with the probabilities written on it;

  • each path ends in a payoff.

The tree is solved by folding back from right to left: a chance node is replaced by its expected value, and a decision node by its best branch. A tree is easy to write in Python as nested dictionaries, and folding back is a short recursive function:

values of the options: {'Big': 138.0, 'Small': 96.0, 'No kiosk': 0.0}
best option: Big, worth 138.0 thousand SAR
<Figure size 700x400 with 1 Axes>

The tree gives the same answer as the EMV table (big kiosk, 138), and for a single decision it adds nothing. Its strength is sequences: decide, observe something, then decide again. That is exactly the survey question.

5. The value of perfect information

Before pricing the survey, ask a simpler question: what would a perfect forecast of footfall be worth? With one, the owner would always choose the best alternative for the state that is coming: the big kiosk if footfall will be high or medium, no kiosk if it will be low. Before the forecast arrives we still do not know which state it will announce, so we weight those best payoffs by the probabilities:

expected value with perfect information: 190.0
best EMV without information:            138.0
EVPI = 52.0 thousand SAR

The expected value of perfect information (EVPI) is 52 thousand SAR. No survey, study or consultant can be worth more than that, because no real study is better than a perfect one. EVPI is a ceiling: the survey costs 25, under the ceiling, so it might be worth buying. To know, we need to model how good the survey actually is.

6. Updating with a survey: Bayes’ rule

The firm’s record on past venue studies shows how often its survey said “favourable” for each footfall level that then occurred: 90% of the time when footfall turned out high, 60% when medium, and 20% when low (column p_positive). These are likelihoods, P(favourable∣state)P(\text{favourable} \mid \text{state}). The owner needs the reverse: given what the survey says, how likely is each state? Bayes’ rule turns one into the other:

P(state∣result)=P(result∣state) P(state)P(result),P(result)=∑sP(result∣s) P(s).P(\text{state} \mid \text{result}) = \frac{P(\text{result} \mid \text{state})\,P(\text{state})}{P(\text{result})}, \qquad P(\text{result}) = \sum_{s} P(\text{result} \mid s)\,P(s).
P(favourable) = 0.61, P(unfavourable) = 0.39
Loading...

The survey will say “favourable” with probability 0.61. If it does, high footfall becomes more likely (from 0.30 to 0.443) and low footfall much less likely (from 0.20 to 0.066). If it says “unfavourable”, low footfall rises to 0.410. The survey moves the probabilities, but it is far from perfect: it says “favourable” for one low-footfall venue in five.

7. Is the survey worth 25,000 SAR?

Now the full tree: first decide whether to buy the survey; if we buy it, see its result, then choose the kiosk with the updated probabilities. The survey’s price is subtracted from every payoff on that branch.

No survey: 138.0   Survey (after paying 25): 133.6
best first move: No survey
if favourable: Big (228.9 before the survey's price)
if unfavourable: Small (48.7 before the survey's price)

With the survey, the owner’s policy would be: big kiosk if favourable, small kiosk if unfavourable. That flexibility is the only reason the survey has any value: information is worth something only when it can change the decision. The expected value of sample information (EVSI) measures it, comparing the tree’s value with the survey (before its price) and without:

EV with the survey, before its price: 158.6
EVSI = 20.6   price = 25   EVPI = 52.0
efficiency of the survey: EVSI / EVPI = 40%

The survey is worth 20.6 thousand SAR to the owner, less than its 25 thousand price: do not buy it, open the big kiosk directly. The two benchmarks bracket the price the wrong way round: EVPI (52) said the survey could be worth buying, EVSI (20.6) says this survey is not. Its efficiency is only 40%, mainly because it too often says “favourable” for a venue that will be quiet, and a quiet venue is exactly where the big kiosk loses money. Note what the tree compares: 133.6 with the survey (after paying for it) against 138 without; the difference, 4.4, is the price minus the EVSI.

8. Risk attitude: when the EMV is not enough

The owner is not a large company running hundreds of kiosks. A loss of 260 thousand SAR in one bad season would wipe out the expansion budget for two years. Many people, rightly, would accept a lower average to avoid that. Utility puts a number on that attitude: a utility function U(x)U(x) gives the value of a payoff xx to this decision maker, and a risk-averse one maximises expected utility instead of the EMV.

A common choice is the exponential utility U(x)=1−e−x/RU(x) = 1 - e^{-x/R}, with one parameter, the risk tolerance RR: the smaller RR, the more the decision maker fears losses. A quick way to estimate RR: it is roughly the largest amount for which you would accept a 50-50 gamble to win RR or lose R/2R/2. The owner says 300 thousand SAR.

The certainty equivalent (CE) of a risky alternative is the sure amount the decision maker values as much as the gamble: CE=−Rln⁡(1−E[U])\text{CE} = -R \ln(1 - E[U]). The risk premium is EMV−CE\text{EMV} - \text{CE}, what they would give up to remove the risk.

Loading...

For this owner, the big kiosk is worth only 42.3 thousand SAR for sure, the small kiosk 85.7: the risk-averse choice is the small kiosk, the opposite of the EMV choice. The big kiosk’s risk premium (95.7) is two thirds of its EMV, because its one bad outcome is so bad. How risk-tolerant would the owner need to be for the big kiosk to win again?

the big kiosk becomes the preferred choice once R is above about 592 thousand SAR
<Figure size 700x340 with 1 Axes>

As RR grows, each certainty equivalent rises towards its EMV: a decision maker with unlimited tolerance is risk-neutral and simply maximises the EMV. The owner would need a risk tolerance of about 592 thousand SAR, twice the stated 300, before the big kiosk became the better choice for them.

What to tell the owner. On expected value, the big kiosk is best (138 thousand SAR) as long as low footfall stays below about one chance in three, and the survey is not worth its price. But the big kiosk loses 260 thousand in a quiet season; for an owner who could not absorb that, the small kiosk (EMV 96, worst case −40) is the better choice. The analysis does not decide for the owner. It makes the trade-off explicit: about 42 thousand SAR of expected profit, the price of avoiding a 260-thousand-SAR loss.

Summary

IdeaWhat it doesKiosk result
Payoff tablealternatives × states of the world → payoffBig: 400, 140, −260; Small: 180, 100, −40
Maximax, maximin, minimax regretchoose without probabilitiesBig, No kiosk, Small: three different answers
EMVprobability-weighted average payoffBig 138, Small 96; Big stays best while P(Low) < 0.33
Decision treedecisions and chance events in time order, folded backthe same choice, and room for sequences
EVPIthe most any information can be worth52
Bayes’ ruleturns a survey’s hit rates into updated probabilitiesfavourable: P(High) 0.30 → 0.443
EVSIwhat this survey is worth20.6 < 25: do not buy it
Utility, CEdecide as a risk-averse ownerR = 300: CE Big 42.3, Small 85.7 → Small

Next week, Monte Carlo simulation replaces the three footfall states with whole probability distributions and simulates thousands of seasons, so the owner can see the full range of outcomes instead of three.