Algorithmic Game Theory · Lecture Notes
Chapter 1: Decision Theory
Game theory studies situations in which several decision makers affect one another. But first we must understand how a single decision maker chooses among options whose outcomes depend on chance. These notes present single-person decision theory: comparing risky options by expected utility, what utility numbers mean, attitudes toward risk, criteria to use when probabilities are unknown, updating beliefs with Bayes' rule as new information arrives, and computing the monetary value of information with decision trees. All of these tools are also building blocks of the strategic and collective decisions that follow.
Learning outcomes
- Expected utility and risk
- Compute the expected value and the utility of a lottery; interpret risk attitudes through the certainty equivalent and the risk premium; apply the maximin, Laplace, and Savage criteria when the probabilities are unknown.
- Utility scale
- Explain the vNM axioms and the Allais and Ellsberg choices; show under which transformations utility numbers preserve the decision.
- Bayesian decision
- Update a prior with a test result; demonstrate base-rate neglect in a numerical example; choose the action with the smallest expected loss.
- Decision trees
- Find the best strategy by backward induction; compute the value of perfect information and of sample information.
1.1Expected utility
Every day we make decisions whose outcomes we do not know in advance: whether to take an umbrella, which topic to study first for a course, whether to buy a product or wait. What these decisions have in common is that the outcome depends not only on our choice but also on something we cannot control. Decision theory calls this "uncontrollable something" nature or chance. The basic tool for comparing options that depend on chance is expected utility.
1.1.1Starting with a game: the Bayesian Decision Lab
Let us enter the subject through a small game. In the Bayesian Decision Lab an event is being planned, and there are two options: hold it outdoors or indoors. Whether the weather will be rainy or dry is hidden. The player knows only how likely rain is; this is called the prior. She also sees a noisy signal: a weather forecast. Then she makes her choice, the state is revealed, and she receives the payoff in the table.
Figure 1.1 shows the first level of the game. The table is easy to read. Someone who chooses outdoors gets −6 if it rains and 8 if the weather stays dry. Someone who chooses indoors gets 4 in rain and 3 when dry. Outdoors offers a large gain but carries the risk of a large loss; indoors gives a reasonable result in both states.
The game begins with two questions. The first: if a 90% accurate forecast says "rain," what is the probability of rain? Most people's first answer is 90%. The correct answer is 82.9%, and the reason for the difference is the prior: rain is not very likely to begin with (0.35). How this number is found is computed step by step in 1.3.6. The second question is more philosophical: if a bad outcome occurs after a decision, was the decision bad? The answer may be "no." A good decision is the one that gives the best expectation with the information at hand. If chance goes badly, a good decision can yield a bad outcome. Decision theory judges decisions not by their outcomes but by the information available when they were made.
These two questions sum up the two main themes of the chapter. The first is how to update a belief with new information (Bayes' rule). The second is which option to choose once the belief is fixed (expected utility). The subject is built starting from the second.
1.1.2Three kinds of decision making
Decision making is the process of choosing among options by evaluating their consequences. Decisions fall into three kinds according to what determines the outcome. Table 1.1 summarizes the distinction.
| Kind | What determines the outcome | Tool | Example |
|---|---|---|---|
| Individual, under risk | Nature / chance (probabilities are known or estimated) | Expected utility, Bayes, decision tree | Investment, insurance, a medical test |
| Strategic | The choices of other rational actors | Best response, Nash equilibrium | Price competition, bargaining, sports |
| Collective | The joint choice and interaction of a group | Voting, common goods | Policy, corporate strategy |
In an individual decision the decision maker chooses only against nature. Nature is not "a clever opponent": it does not rain in order to spoil the event. Nature's behavior is described with probabilities. In a strategic decision, what determines the outcome is other intelligent decision makers, who in turn think about what we will do. This situation of mutual thinking is the actual subject of game theory. In a collective decision a group decides together through a rule such as voting or sharing a common resource.
Why does this distinction matter? Because the analysis of strategic and collective decisions also uses the tools of single-person decision theory. A player who holds a belief about what her opponent will do makes her own choice with expected utility. If she does not know what "type" her opponent is, she updates her belief with Bayes' rule by observing his moves. A game in which moves are made in turn is solved with a game tree, which resembles a decision tree. That is why the tools in this chapter are the foundation of the rest of the course.
Decision theory also draws a distinction between risk and uncertainty. In decision under risk the probabilities are known or can be estimated reliably: rolling dice, roulette, insurance statistics. In decision under uncertainty the probabilities are unknown: whether a new product will succeed in the market, the success of a new technology. Most of the chapter is about decisions under risk; decisions under uncertainty are treated in 1.2.5 and 1.2.6.
1.1.3Lotteries and expected value
The way to describe a risky option mathematically is to write it as a lottery. Here the word "lottery" does not mean only the game of chance in which a ticket is bought; it describes any option whose outcome depends on chance.
A lottery is a set of outcomes with probabilities. If the outcomes are x1, …, xk and their probabilities p1, …, pk, the lottery is written L = (p1: x1; …; pk: xk). The probabilities are nonnegative and sum to 1: p1 + … + pk = 1.
If the outcomes are numbers, the expected value of the lottery is defined as
E[X] = Σ pi xi = p1x1 + p2x2 + … + pkxk
A sure amount is also a lottery with a single outcome: its probability is 1.
The Σ (sigma) sign means "add up." Σ pi xi means multiplying each outcome by its probability and adding the products. The expected value is the average gain per play when the lottery is played many times. For example, if a game pays 10 TL on heads and nothing on tails is played 1000 times, heads comes up about 500 times; the total gain is about 5000 TL, an average of 5 TL per play. The expected value is likewise ½ · 10 + ½ · 0 = 5.
A two-option example is used often throughout the chapter:
- Lottery A: 900 TL with probability 50%, 0 TL with probability 50%.
- Sure B: 400 TL with probability 1.
Let us compare the expected values of A and B.
- A has two outcomes: 900 TL (probability ½) and 0 TL (probability ½). Each outcome is multiplied by its probability: ½ · 900 = 450 and ½ · 0 = 0.
- The products are added: E[A] = 450 + 0 = 450 TL.
- Since B is sure, its expected value is the amount itself: E[B] = 1 · 400 = 400 TL.
- Since 450 > 400, a decision maker who looks only at the expected value chooses A.
Yet when people are asked, most choose B: they prefer a sure 400 TL to an even chance of 900 TL or nothing. Is this choice irrational? No; it can be explained by a consistent criterion.
Expected value is a powerful criterion that simplifies decisions, but it overlooks one thing: the value of money is not the same for everyone or at every amount. For someone with no money at all, the relief that 400 TL brings is great. The additional relief of going from 400 TL to 900 TL is not as great. This observation leads to the concept of utility.
- Not summing the probabilities. The probabilities of a lottery must sum to 1. In a lottery written as "900 TL with probability 50%, 0 TL with probability 40%," a 10% outcome has been forgotten.
- Taking the expected value to be the "most likely outcome." The expected value of A is 450 TL, but A never pays 450 TL: it pays either 900 or 0. The expected value is an average, not an outcome that occurs.
- Leaving a percentage as a percentage in a product. In a computation, 50% is written as 0.5 or ½; writing 50 · 900 inflates the result 100-fold.
1.1.4Expected utility
Utility is a number showing how "good" an outcome is for the decision maker. A sum of money is an outcome; utility is the value of that outcome to the person. A utility function u assigns a number to each outcome. A commonly used example for money is u(x) = √x: the utility of 0 TL is 0, of 400 TL is 20, and of 900 TL is 30.
For a decision maker with utility function u, the expected utility of a lottery L = (p1: x1; …; pk: xk) is the number
E[u(L)] = Σ pi u(xi)
According to the expected utility rule, a rational decision maker chooses, among the options, the one with the largest expected utility; that is, she maximizes expected utility.
The definition is very similar to the definition of expected value. The only difference is that the probability multiplies the utility of the outcome (u(xi)) rather than the outcome itself (xi). The rule is also called "von Neumann–Morgenstern expected utility," after John von Neumann and Oskar Morgenstern, who established the theory systematically in 1944 (von Neumann and Morgenstern, 1944).
A decision maker with utility function u(x) = √x chooses between A and B.
- Find the utilities of A's outcomes: u(900) = √900 = 30 and u(0) = √0 = 0.
- Multiply the utilities by the probabilities and add: E[u(A)] = ½ · 30 + ½ · 0 = 15.
- B is sure: u(B) = √400 = 20.
- Since 20 > 15, this decision maker chooses B.
Figure 1.2 shows the decisions of the two criteria side by side. For the same two options, expected value has chosen A and expected utility has chosen B. People who choose the sure 400 TL are not behaving irrationally; their utility functions are concave, that is, each additional lira of money adds a little less utility for them.
Expected monetary value and expected utility may not give the same decision. The difference is determined by the curvature of the utility function, that is, the decision maker's risk attitude. If the function is a straight line (u(x) = x), the two criteria give the same decision. If the function bends downward (like √x), the decision maker is risk averse. This topic is treated in detail in 1.2.
Why is the expected utility rule considered "rational"? There are two answers. The first is practical: when the same kind of decision is made many times, the rule recommends the choice that brings the best result on average. The utility function also reflects the decision maker's attitude toward risk. The second is theoretical and stronger: anyone whose preferences satisfy a few reasonable conditions behaves as if she were maximizing the expected value of a utility function. These conditions are described in 1.1.6.
1.1.5The St. Petersburg paradox
The historical starting point of the idea of utility is a coin-flipping game discussed in the 18th century. A coin is flipped until heads comes up for the first time. If heads comes on the first flip the player gets 2 TL, if on the second 4 TL, on the third 8 TL; in general, if it comes on the k-th flip she gets 2k TL. What is the most that should be paid to play this game?
Let us compute the expected value. The probability that heads first comes on the k-th flip is (½)k, because the previous k − 1 flips must be tails and the k-th must be heads. The payoff is then 2k. Each term is probability times payoff:
E[X] = ½ · 2 + ¼ · 4 + ⅛ · 8 + … = 1 + 1 + 1 + …
Each term is 1 and there are infinitely many terms. The sum goes to infinity: the expected value of the game is infinite. Someone who looks only at expected value should be willing to give her entire wealth to play this game. In reality, nobody pays more than a few tens of lira for it. This contradiction is called the St. Petersburg paradox.
Daniel Bernoulli answered this paradox in 1738 as follows: people evaluate not money itself but the utility of money, and as wealth grows the utility of each additional lira diminishes (Bernoulli, 1738). Gabriel Cramer had proposed a similar idea in 1728. Bernoulli used a logarithmic utility. The logarithm is a very slowly growing function: log2 x says to what power 2 must be raised to give x (log2 8 = 3, log2 1024 = 10).
Let the utility be u(x) = log2 x. If heads comes on the k-th flip, the payoff is 2k and its utility is log2 2k = k.
- Expected utility: E[u] = ½ · 1 + ¼ · 2 + ⅛ · 3 + 1/16 · 4 + …
- The first terms are 0.5, 0.5, 0.375, 0.25, 0.156, …, shrinking quickly. The sum does not go to infinity; it approaches 2.
- The sure amount with utility 2 comes from the equation log2 x = 2: x = 4 TL.
This decision maker values the game at a sure 4 TL. Even though the expected value is infinite, the amount she is willing to pay is small. The paradox disappears with the concept of utility.
The St. Petersburg example teaches two things. First, very large payoffs with very small probabilities can inflate the expected value but hardly affect people's decisions. Second, diminishing marginal utility (each additional lira adding less utility) is the mathematical explanation of risk aversion.
1.1.6The von Neumann–Morgenstern axioms
The expected utility rule is not an arbitrary formula. Von Neumann and Morgenstern showed that for every decision maker whose preferences satisfy four reasonable conditions there is a utility function, and that this person behaves as if maximizing expected utility. These conditions are called the von Neumann–Morgenstern axioms. An axiom is a basic assumption accepted without proof.
A notation is needed to state the axioms. A ≻ B means "A is preferred to B." A ∼ B means "the decision maker is indifferent between A and B"; both are equally good for her.
A preference relation over lotteries satisfies the following four axioms:
- Completeness: Any two options are comparable. For every A and B, either A ≻ B, or B ≻ A, or A ∼ B.
- Transitivity: If A ≻ B and B ≻ C, then A ≻ C.
- Continuity: If A ≻ B ≻ C, the intermediate B can be matched with a mixture of the two ends: for some probability p, B ∼ (p: A; 1 − p: C).
- Independence: Mixing the same common component with the same probability into two lotteries does not change the ranking. If A ≻ B, then for every C and every 0 < p ≤ 1, (p: A; 1 − p: C) ≻ (p: B; 1 − p: C).
If a preference relation satisfies the four axioms, there is a utility function u such that, for any two lotteries, A ≻ B if and only if E[u(A)] > E[u(B)]. That is, the decision maker maximizes expected utility.
The proof of the theorem is beyond the scope of these notes. Still, it is easy to see why each axiom is reasonable and what happens when it is violated.
Completeness says the decision maker has an opinion in every case. A decision maker who says "I cannot compare them" cannot decide. If transitivity is violated, the decision maker can be exploited. Suppose someone prefers apple to pear, pear to cherry, and cherry to apple. Holding a cherry, she is told "give me a little money and I will swap your cherry for a pear"; she agrees. Then she swaps the pear for the apple, and the apple again for the cherry, each time for a little money. At the end of the cycle she again has the cherry but has less money. This cycle is called a money pump; transitivity is the protection against such exploitation.
Continuity means the following: let A be very good, C very bad, and B an outcome in between. For example A = 1000 TL, B = 500 TL, C = 0 TL. A lottery that gives A with high probability and C with low probability is better than B; a lottery that gives A with low probability is worse than B. Somewhere in between there is a value of p at which the decision maker is indifferent between B and the lottery. This probability of indifference actually yields the utility function itself: if we choose u(A) = 1 and u(C) = 0, then u(B) = p. This is the justification of why utility numbers are "measurable."
Independence is the most debated axiom. What it says is this: if two options have a common component, the decision should not depend on that common component. Let a coin be flipped; if it shows heads, a choice will be made between A and B, and if tails, C will be received in either case. If it shows tails, the choice does not matter. If it shows heads, A is preferred. Then even before the coin is flipped, the option "A on heads" should be preferred. People's actual choices sometimes violate this axiom.
1.1.7The Allais paradox
In 1953 the French economist Maurice Allais asked people to make two separate choices (Allais, 1953). The amounts are in millions of lira. Table 1.2 shows the four options.
| Choice | Option | 1 million | 5 million | 0 |
|---|---|---|---|---|
| Choice 1 | A | 100% | — | — |
| B | 89% | 10% | 1% | |
| Choice 2 | C | 11% | — | 89% |
| D | — | 10% | 90% |
In the first choice most people pick A. A gives a sure 1 million; B can bring more, but with 1% probability it gives nothing. Giving up a sure million and taking on the risk of zero feels bad to people. In the second choice most people pick D. Here, in both options one most probably wins nothing; the difference between 10% and 11% looks small, while 5 million is much larger than 1 million. Each choice is understandable on its own. The problem is that together they contradict expected utility theory.
First let us see the relation between the options. A and B have a common component: both give 1 million with probability 89% (89% of A's 100%, and B's 89%). If this common 89% "1 million" component is replaced by 89% "0" in both options, C is obtained from A and D from B. A turns into 1 million with probability 11% and 0 with probability 89%; this is C. B turns into 5 million with probability 10% and 0 with probability 1% + 89% = 90%; this is D. By the independence axiom, replacing the common component should not change the ranking.
For any utility function u, let us compute the two differences. For brevity, u(1), u(5), and u(0) are the utilities of 1 million, 5 million, and 0, respectively.
- E[u(A)] = u(1), because A is sure.
- E[u(B)] = 0.89 · u(1) + 0.10 · u(5) + 0.01 · u(0).
- Difference: E[u(A)] − E[u(B)] = (1 − 0.89) · u(1) − 0.10 · u(5) − 0.01 · u(0) = 0.11 · u(1) − 0.10 · u(5) − 0.01 · u(0).
- E[u(C)] = 0.11 · u(1) + 0.89 · u(0) and E[u(D)] = 0.10 · u(5) + 0.90 · u(0).
- Difference: E[u(C)] − E[u(D)] = 0.11 · u(1) − 0.10 · u(5) + (0.89 − 0.90) · u(0) = 0.11 · u(1) − 0.10 · u(5) − 0.01 · u(0).
The two differences are exactly the same expression. If this expression is positive, both A ≻ B and C ≻ D must hold. If it is negative, both B ≻ A and D ≻ C must hold. The choice "A and D" would require the difference to be both positive and negative at once. This is impossible; that is, no utility function in the expected utility model explains the choice "A and D" (A ≻ B and D ≻ C).
The computation was done without choosing any utility function. Whether u(x) = x, u(x) = √x, or any other function is taken, the result does not change. For example, with u(x) = x both differences are 0.11 − 0.50 = −0.39; this person chooses B and D. The expected values of the four options are also different from one another: A is 1 million, B 1.39 million, C 0.11 million, D 0.5 million. So the choices are not "arbitrary because everything is equal" either.
Which axiom do Allais's choices violate? Not transitivity but independence. People give certainty more weight than probability calculus says they should. The difference between 100% and 99% feels much larger than the difference between 11% and 10%. This phenomenon is called the certainty effect. The certainty effect is one of the starting points of prospect theory, which tries to explain people's actual choices. Prospect theory uses probabilities not directly but after passing them through a weighting function; it inflates small probabilities and shrinks probabilities close to certainty.
The Allais paradox does not invalidate expected utility theory. The theory is used for two different purposes. Descriptively, it tries to describe how people decide; here deviations such as Allais's matter. Normatively, it says how a consistent decision maker ought to decide. For algorithms and artificial agents the second use is usually the important one: a software agent's preferences are required to be consistent.
1.1.8What do utility numbers measure?
Numbers such as u(400) = 20 are used in expected utility computations. Do these numbers have a unit? Is it meaningful to say "20 units of happiness"? The answer is that the utility scale is like a thermometer. The Celsius and Fahrenheit scales use different zero points and different units; the freezing point of water is 0 on one and 32 on the other. But both scales order temperatures the same way, and one is obtained from the other by the formula F = 1.8 · C + 32. Utility is like this: its zero point and unit are arbitrary.
A transformation of the form v = a · u + b (a > 0) is called a positive affine transformation. The transformation stretches the scale by a factor of a and shifts it by b.
If u is a decision maker's vNM utility function, every positive affine transformation v = a · u + b represents the same preferences: it changes no lottery decision. Conversely, every vNM utility function representing the same preferences is of this form; in this sense the utility scale is unique. Non-affine transformations, even increasing ones, can change lottery decisions.
The first half of the theorem is shown with a short computation. The expected utility of a lottery under v is
E[v(L)] = Σ pi (a · u(xi) + b) = a · Σ pi u(xi) + b · Σ pi = a · E[u(L)] + b
The first equality is the definition. The second splits the sum in two and takes the constants outside. The third comes from the probabilities summing to 1. So the new expected utility of every lottery is the old one multiplied by a with b added. Since a > 0, the larger stays larger; the ranking does not change. If a < 0, the ranking would be reversed. That is why the condition is a > 0.
| Utility | Lottery A | Sure B | Choice |
|---|---|---|---|
| u = √x | 15 | 20 | B |
| v = 10√x + 5 | 155 | 205 | B |
| w = (√x)2 = x | 450 | 400 | A |
The numbers in Table 1.3 are found as follows.
- v = 10√x + 5 is an affine transformation (a = 10, b = 5). v(900) = 305, v(0) = 5; E[v(A)] = ½ · 305 + ½ · 5 = 155. By the formula as well: 10 · 15 + 5 = 155. For sure B, v(400) = 10 · 20 + 5 = 205. 205 > 155, so the choice is again B.
- w = (√x)2 is also an increasing transformation: as √x grows, its square grows too. But it is not affine. Since w(x) = x, E[w(A)] = 450 and w(B) = 400; the choice goes back to A.
Every increasing transformation preserves the ranking among sure outcomes (400 TL is always better than 0 TL). The ranking among lotteries is preserved only by affine transformations. That is why vNM utility is called cardinal utility: not only the order but also the ratios of differences are meaningful.
This result has a direct counterpart in game theory. Multiplying all the numbers in a player's payoff table by 2 and adding 5 changes none of that player's decisions. When studying a game, it is therefore permissible to convert payoffs into numbers that are easier to compute with. But a non-affine transformation, such as squaring the payoffs, can change risky choices.
- "u(B) − u(A) = 5 units of happiness." The size of the difference depends on the choice of scale: on the scale v the same difference is 50. What is meaningful is the ranking among the same person's options.
- "Ayşe's utility is 20 and Bora's is 15; Ayşe is happier." Each person's scale can be shifted and stretched arbitrarily and separately. vNM theory makes no comparisons of utility between persons.
- "Every increasing transformation preserves the decision." This holds for sure outcomes; for lotteries only positive affine transformations preserve the decision.
1.2Risk attitudes
Different people react differently to the same lottery. Some prefer the sure amount, others try their luck. This difference is explained by the shape of the utility function. Risk attitude is measured with two numbers: the certainty equivalent and the risk premium. These two numbers also explain why insurance exists. When the probabilities are not known at all, other criteria are needed.
1.2.1Concave utility and diminishing marginal utility
Let us look at the values of the function u(x) = √x: u(0) = 0, u(100) = 10, u(400) = 20, u(900) = 30. The first 100 TL raises utility by 10. Going from 100 to 400, that is, adding 300 TL more, again raises utility by only 10. Going from 400 to 900 takes 500 TL. The money needed for each additional 10 units of utility keeps growing. In other words, each additional lira adds less utility than the one before. This is called diminishing marginal utility. "Marginal" means "when one more unit is added."
The graph of a function with diminishing marginal utility bends downward; such a function is called concave. Concavity has a geometric definition: the line segment joining two points on the curve (the chord) lies below the curve. Conversely, a function that bends upward is called convex; its chord lies above the curve. The chord of a straight line is the line itself.
The chord lets us see the expected utility of a lottery. Lottery A gives one of the two ends with equal probability. Its expected utility is the average of the utilities of the two ends: ½ · 0 + ½ · 30 = 15. This is the height of the point exactly in the middle of the chord, which falls at x = 450 on the horizontal axis, because the expected value is also the average of the two ends. At the same position in Figure 1.3 the height of the curve is √450 ≈ 21.2. The curve is above the chord: receiving 450 TL for sure gives more utility than a lottery whose average is 450 TL.
If u is concave, then E[u(X)] ≤ u(E[X]) for every lottery X. If u is convex, the inequality goes the other way: E[u(X)] ≥ u(E[X]). If u is linear, the two sides are equal.
Jensen's inequality is the general form of the chord observation. The left side is the expected utility of the lottery (the point on the chord). The right side is the utility of receiving the expected value for sure (the point on the curve). For someone with concave utility, the lottery itself is worse than receiving its average for sure. This is the mathematical definition of risk aversion.
1.2.2Certainty equivalent and risk premium
The way to express a risk attitude with a number is to ask: for what sure amount is this person willing to sell the lottery?
The certainty equivalent (CE) of a lottery X is the sure amount whose utility equals the lottery's expected utility:
u(CE) = E[u(X)], that is, CE = u−1(E[u(X)]).
The risk premium is the difference between the expected value and the certainty equivalent: Risk premium = E[X] − CE.
u−1 means undoing u: finding the amount whose utility is given. For u(x) = √x, the amount whose utility is 15 is the solution of the equation √x = 15. Squaring both sides: x = 152 = 225. So for √x, u−1(y) = y2.
For lottery A (½: 900 TL; ½: 0 TL) and u(x) = √x, let us find the certainty equivalent and the risk premium step by step. Figure 1.4 shows each step.
- Utility of the ends. u(0) = 0, u(900) = 30. These are the two end points of the curve.
- Expected utility. E[u] = ½ · 0 + ½ · 30 = 15. This is the middle of the chord.
- Comparison. The expected value is E[X] = 450 TL. The utility of a sure 450 TL is √450 ≈ 21.2 > 15. The person prefers receiving the expected value for sure to the lottery.
- Certainty equivalent. The sure amount with utility 15: √CE = 15 ⇒ CE = 225 TL. This person is willing to sell the lottery for 225 TL.
- Risk premium. 450 − 225 = 225 TL. To avoid bearing the risk, the person is willing to give up 225 TL of the expected value.
- Decision. The utility of a sure 400 TL is 20, which is greater than 15. This person chooses B. The same conclusion is reached another way: 400 TL is greater than CE = 225 TL.
The second route in the last step is an important shortcut. To compare a lottery with a sure amount, instead of comparing utilities it suffices to compare the CE with the sure amount. If the CE is larger than the sure amount, the lottery is chosen; if smaller, the sure amount. The shortcut works because u is increasing: a larger amount also has a larger utility.
Because the certainty equivalent is a sum of money, unlike utility numbers it can be compared across persons. It is meaningful to say "Ayşe would sell this lottery for 225 TL and Bora for 300 TL," and this shows that Bora is less risk averse. The CE is also independent of the choice of scale: even if v = 10√x + 5 is used, the sure amount whose utility is E[v] = 155 again comes out as 225 TL (10√x + 5 = 155 ⇒ √x = 15).
1.2.3Three risk attitudes
The shape of the utility function defines three kinds of risk attitude. Table 1.4 compares the decisions of three utility functions for the same lottery A and sure B.
| Attitude | Utility | E[u(A)] | u(400) | Choice | CE (TL) | Risk premium |
|---|---|---|---|---|---|---|
| Risk-averse | √x (concave) | 15 | 20 | B | 225 | 225 |
| Risk-neutral | x (linear) | 450 | 400 | A | 450 | 0 |
| Risk-loving | x2/900 (convex) | 450 | 177.8 | A | 636.4 | −186.4 |
The second and third rows of Table 1.4 are computed as follows.
- Risk-neutral, u(x) = x. Utility is the money itself. E[u(A)] = ½ · 900 + ½ · 0 = 450, u(400) = 400. 450 > 400, so the choice is A. The amount whose utility is 450 is 450: CE = 450, risk premium 450 − 450 = 0.
- Risk-loving, u(x) = x2/900. The ends: u(0) = 0, u(900) = 9002/900 = 900. E[u(A)] = ½ · 0 + ½ · 900 = 450.
- The utility of a sure 400: 4002/900 = 160000/900 ≈ 177.8. 450 > 177.8, so the choice is A.
- CE: x2/900 = 450 ⇒ x2 = 405000 ⇒ x = √405000 ≈ 636.4 TL.
- Risk premium: 450 − 636.4 = −186.4 TL. The premium is negative.
What does a negative risk premium mean? A risk-loving person will not sell a lottery whose average is 450 TL for less than 636.4 TL. That is, she is willing to pay a price above the expected value to bear the risk. The three attitudes can be summarized as follows:
- Concave → risk-averse. CE < E[X], premium > 0. She wants a reward for taking on risk. Most people behave this way, especially with large amounts.
- Linear → risk-neutral. CE = E[X], premium = 0. She looks only at the expected value. Large firms behave approximately this way in decisions involving small amounts.
- Convex → risk-loving. CE > E[X], premium < 0. She pays for risk. A person who buys a lottery ticket whose expected value is below the ticket price is an example.
These three cases follow directly from Jensen's inequality. For concave u, E[u(X)] < u(E[X]). The utility of the CE equals the left side and the utility of the expected value is the right side. Since u is increasing, the amount with the smaller utility is also smaller: CE < E[X]. For convex u everything goes the other way.
- Confusing the CE with the expected utility. E[u] = 15 is a utility number; CE = 225 is a sum of money. To find the CE one must convert the utility back into money (u−1).
- Writing the risk premium as CE − E[X]. The definition is E[X] − CE. If written the other way, the premium of a risk-averse person comes out negative and the interpretation is reversed.
- "A risk-loving person always chooses the lottery." A risk-loving person chooses the lottery when the expected values are equal. If the expected value of the lottery is far below the sure amount, she too may choose the sure amount.
1.2.4Why does insurance exist?
One of the most important applications of risk attitude is insurance. The insured pays a premium higher than her expected loss. The insurer profits from this premium. How is an agreement possible in which both sides come out ahead? The answer is that the two sides have different risk attitudes.
Let a person's wealth be 900 (thousand TL). With probability 10% a fire breaks out and causes a loss of 800, leaving 100. The utility is u(x) = √x. What is the most she will pay for insurance that covers the entire loss?
- Expected utility without insurance. With probability 90% wealth is 900, with probability 10% it is 100. E[u] = 0.9 · √900 + 0.1 · √100 = 0.9 · 30 + 0.1 · 10 = 27 + 1 = 28.
- Certainty equivalent. √CE = 28 ⇒ CE = 282 = 784. She is willing to accept a sure 784 in place of a risky 900.
- The highest premium. Insured wealth is 900 − premium and is certain. This amount must not be less than 784: 900 − premium ≥ 784 ⇒ premium ≤ 116.
- Expected loss. 0.1 · 800 = 80. Expected wealth is 900 − 80 = 820.
- The insurer's lower bound. The insurer sells a large number of independent policies. Some of the fires occur, but the total payout stays close to the sum of the expected losses. The insurer is therefore approximately risk-neutral, and every premium above 80 brings her an expected profit.
Result: every premium between 80 and 116 is profitable for both sides. For example, at a premium of 100 the insured's wealth is a sure 800; its utility is √800 ≈ 28.3 > 28. The insurer earns an average profit of 20 per policy.
Figure 1.5 shows this range on a number line. The width of the zone of agreement, 116 − 80 = 36, is exactly the insured's risk premium: the difference between the expected wealth 820 and the certainty equivalent 784. The larger the risk premium, that is, the more the person avoids risk, the larger the gain that insurance can create.
The economic function of insurance is clear from this: risk is transferred to the party that can bear it most easily. For an individual a large loss can be a catastrophe; for the insurer it is one of thousands of policies. The same logic explains why large firms can behave as risk-neutral in small decisions: the outcome of a single decision is a small part of their total wealth.
1.2.5The Ellsberg urn: ambiguity aversion
So far we have assumed that the probabilities are known. When rolling a die we know that each face comes up with probability 1/6. But nobody knows the probability of success of a new product. Under risk the probabilities are known; under uncertainty they are not. People do not behave the same way in these two situations. Daniel Ellsberg showed this in 1961 with a simple experiment (Ellsberg, 1961).
An urn contains 90 balls. 30 of them are red. The remaining 60 balls are black or yellow, but how many are black is not known. Let s be the number of black balls in the urn; s can be any number from 0 to 60. A ball is drawn, and 100 TL is paid if the color that wins is drawn. Two bets are offered.
| Bet | Option | Number of winning balls |
|---|---|---|
| 1 | red | 30 (known) |
| black | s (unknown) | |
| 2 | red or yellow | 30 + (60 − s) |
| black or yellow | 60 (known) |
The typical preferences are these: in the first bet most people choose "red," and in the second bet "black or yellow." What the two preferences have in common is that the probability of winning of the chosen option is known. In the first bet the probability of red is 30/90. In the second bet the probability of black or yellow is 60/90. The probabilities of the other options depend on s and are unknown.
Is there a value of s that explains these two preferences? The prize is the same in both bets (100 TL), so the option with more winning balls should be preferred.
- If the first preference is "red ≻ black," there must be more red balls than black: 30 > s.
- If the second preference is "black or yellow ≻ red or yellow," we must have 60 > 30 + (60 − s) = 90 − s.
- Rearrange the second inequality: 60 > 90 − s ⇒ s > 30.
- The first preference requires s < 30, the second s > 30. Both cannot hold at the same time.
No assignment of probabilities explains the two preferences together. The person's behavior cannot be explained by a consistent belief about the number of black balls in the urn.
This result cannot be rescued by the shape of the utility function either. In every option the prize is the same (100 TL or 0), so the curvature of utility merely scales two numbers; it does not change the perception of which option is more probable. The tendency to stay away from an option whose probability is unknown is called ambiguity aversion. It differs from risk aversion: risk aversion is the response to the distribution of outcomes with known probabilities, whereas ambiguity aversion is the response to the probabilities not being known.
The extreme form of ambiguity aversion is, when the probabilities are not known at all, to consider the worst case for each option and choose the option whose worst case is best. This rule is called maximin. In the Ellsberg urn maximin thinks as follows: in the bet on "black" the worst case is s = 0 and the probability of winning is zero; the probability of winning on "red" is always 30/90. So red is chosen. In the second bet the worst case for "red or yellow" is s = 60, where the probability falls to 30/90; "black or yellow" always gives 60/90. Maximin explains both typical preferences.
1.2.6When probabilities are unknown: criteria under uncertainty
An investor will choose one of three actions: a big investment, a small investment, or no investment at all. The result depends on the state of the economy: good, fair, or bad. The investor does not know the probabilities of these states. Table 1.6 shows the payoff of each action in each state. Rows are actions, columns are states.
| Action \ state | Good | Fair | Bad |
|---|---|---|---|
| Big investment | 200 | 50 | −120 |
| Small investment | 90 | 40 | −20 |
| No investment | 0 | 0 | 0 |
Since the probabilities are unknown, expected utility cannot be computed. Instead, criteria with different degrees of "pessimism" are used. All of these criteria look only at the numbers in the table. Such a problem is called a decision problem under uncertainty.
Let U[a][d] be the payoff of action a in state d. The four basic criteria are:
- Maximin (Wald): Find the worst outcome of each action; choose the action whose worst outcome is largest. maxa mind U[a][d].
- Maximax: Find the best outcome of each action; choose the one whose best outcome is largest. maxa maxd U[a][d].
- Laplace criterion: All states are treated as equally likely; the action with the largest average is chosen.
- Minimax regret (Savage): In each state, the difference between the best attainable outcome and the outcome obtained is called the regret. Find the largest regret of each action; choose the action whose largest regret is smallest.
Behind each criterion is a point of view. Maximin is pessimistic: it acts on the assumption that "whatever I choose, nature will do the worst to me." Maximax is optimistic: it thinks "whatever I choose, the best will happen." Laplace says "if I know nothing, I should give every state equal probability"; it therefore represents ignorance with equal probabilities. Savage's criterion looks not at the outcome itself but at the regret one will feel afterwards (Savage, 1951).
Let us apply the four criteria to Table 1.6.
- Maximin. Row minima: Big −120, Small −20, None 0. The largest is 0. Decision: No investment.
- Maximax. Row maxima: Big 200, Small 90, None 0. The largest is 200. Decision: Big investment.
- Laplace. Row averages: Big (200 + 50 − 120)/3 = 130/3 ≈ 43.3; Small (90 + 40 − 20)/3 = 110/3 ≈ 36.7; None 0. The largest is 43.3. Decision: Big investment.
- Regret table. First find the best attainable outcome in each state (column maxima): Good 200, Fair 50, Bad 0. Regret = best − obtained. Big: (200 − 200, 50 − 50, 0 − (−120)) = (0, 0, 120). Small: (110, 10, 20). None: (200, 50, 0).
- Savage. The largest regret per row: Big 120, Small 110, None 200. The smallest is 110. Decision: Small investment.
The same table has produced three different decisions: maximin "None," maximax and Laplace "Big," Savage "Small."
Figure 1.6 collects all the intermediate results in one table. A common mistake in the regret computation is to compute the regret relative to the best of the row. Regret, however, is computed relative to the best of the column: "If I had known this state would occur, what would I have chosen and what did I lose?" In the bad state the best is not to invest at all (0). A person who invests big gets −120 in the bad state and feels a regret of 120.
A fifth criterion can be added to these four. The Hurwicz criterion stands between the two extremes. An optimism coefficient α (between 0 and 1) is chosen and each action is scored by
α · (row max) + (1 − α) · (row min)
α = 0 is maximin and α = 1 is maximax. Scoring with α = 0.5: Big 0.5 · 200 + 0.5 · (−120) = 40, Small 0.5 · 90 + 0.5 · (−20) = 35, None 0. The decision is the big investment.
How does the decision of the Hurwicz criterion change as α changes?
- Write the scores in terms of α: Big 200α − 120(1 − α) = 320α − 120; Small 90α − 20(1 − α) = 110α − 20; None 0.
- Small is better than None when 110α − 20 > 0 ⇒ α > 2/11 ≈ 0.18.
- Big is better than Small when 320α − 120 > 110α − 20 ⇒ 210α > 100 ⇒ α > 10/21 ≈ 0.48.
Result: for α < 0.18 None is chosen, for 0.18 < α < 0.48 Small, and for α > 0.48 the big investment. The more optimistic one is, the greater the risk taken.
Which criterion is correct? This question has no single answer. If the probabilities can be estimated, the best thing is to estimate them and return to expected utility. If they cannot, the choice of criterion reflects the decision maker's attitude. Where the risk of catastrophe is unacceptable (the design of a bridge, the treatment of a patient), maximin can be reasonable. For small decisions repeated often, Laplace or expected utility is more appropriate. In game theory maximin holds a special place: in two-person zero-sum games the opponent really is someone who wants to do the worst to you, and maximin becomes a natural criterion.
- Computing regret within a row. Regret is compared with the best outcome in the same state (column).
- Choosing the largest regret in Savage. First the largest regret of each row is found, then the smallest of these is chosen. That is where the name comes from: minimax regret.
- Confusing maximin with minimax. In a payoff table maximin is used (raising the worst payoff). In a cost or loss table the counterpart is minimax (lowering the largest loss).
1.2.7Code trace: criteria()
The four criteria can be computed with a short Python function. The function takes the payoff table as a nested list: U[i][j] is the payoff of action i in state j. It returns the indices of the actions chosen by the four criteria.
def criteria(U):
A, m = range(len(U)), len(U[0])
mm = max(A, key=lambda i: min(U[i])) # maximin
mx = max(A, key=lambda i: max(U[i])) # maximax
lp = max(A, key=lambda i: sum(U[i]) / m) # Laplace
best = [max(r[j] for r in U) for j in range(m)]
reg = [max(best[j] - r[j] for j in range(m))
for r in U] # max regret
sv = reg.index(min(reg)) # Savage
return mm, mx, lp, svThe code works line by line as follows:
Ais the range of action indices (0, 1, 2);mis the number of states (3).max(A, key=…)returns, among the indices inA, the one that makes the value of thekeyfunction largest.lambda i: min(U[i])is a small anonymous function: it takes the indexiand gives the smallest value in that row. This line is a one-to-one counterpart of the maximin rule.mxbuilds the same structure with row maxima, andlpwith row averages.- The list
bestholds the largest value in each column:r[j] for r in Uruns over thej-th element of all the rows. - The list
regholds the largest regret of each row: in each columnbest[j] - r[j]is computed and the largest of these is taken. svis the index of the smallest value in the listreg.
| Step | Computed | Value |
|---|---|---|
| 1 | A, m | range(3), 3 |
| 2 | row min. −120, −20, 0 | mm = 2 (None) |
| 3 | row max. 200, 90, 0 | mx = 0 (Big) |
| 4 | average 43.3, 36.7, 0.0 | lp = 0 (Big) |
| 5 | column max. | best = [200, 50, 0] |
| 6 | largest regret | reg = [120, 110, 200] |
| 7 | index of the smallest regret | sv = 1 (Small) |
| 8 | return | (2, 0, 0, 1) |
The function returns (2, 0, 0, 1). This quadruple is the same as the results found by hand: maximin None, maximax and Laplace Big, Savage Small. One detail is important: on a tie, max returns the first index it finds. If two actions had equal worst outcomes, the code would choose the one that comes first in the list. In a hand computation, too, one has to decide in advance how ties will be broken.
In the Laplace line the sum is divided by m. Since all rows are divided by the same number, the division does not change the ranking; the code would give the same decision by looking only at the sums. The division is there to make the result interpretable as an "average payoff." This is a small instance of the affine transformation result in 1.1.8: multiplying all the scores by a positive number preserves the ranking.
1.3Bayesian decision
The expected utility computation uses probabilities. But how do the probabilities change when new information arrives? What is the probability of disease when a test comes out positive? What is the probability of rain when a weather forecast says "rain"? The rule for updating a belief with evidence is Bayes' rule. The updated probability goes directly into the expected utility computation.
1.3.1Conditional probability
To understand Bayes' rule we first need conditional probability. P(A) is the probability of event A. P(A | B) means "the probability of A when B is known to have occurred" and is read "the probability of A given B." The right of the vertical bar is the known information, the left is the event asked about.
When P(B) > 0, the conditional probability is defined as
P(A | B) = P(A and B) / P(B)
From this the product rule follows: P(A and B) = P(B | A) · P(A).
The definition is easy to think about with a counting example. Suppose a class has 40 students; 10 wear glasses, and 4 of those who wear glasses are girls. Given that a randomly chosen student wears glasses, the probability that she is a girl is 4/10 = 0.4. By the formula: P(girl and glasses) = 4/40, P(glasses) = 10/40; the ratio is (4/40)/(10/40) = 4/10. The condition narrows the population being counted: now we look only at those who wear glasses.
The most important point is this: P(A | B) and P(B | A) are generally different. The probability that a student with glasses is a girl is 0.4. The probability that a girl wears glasses depends on the number of girls in the class; if there are 20 girls it is 4/20 = 0.2. The two probabilities divide the same "girl and glasses" group by different populations. Confusing these two probabilities is the source of the most common mistake in Bayesian reasoning.
Three terms recur in the language of Bayesian decision:
- Prior: the belief before the evidence is seen. For example, the prevalence of a disease in the population, P(sick).
- Likelihood: the probability of the observed evidence when the true state is known. For example, P(+ | sick), the probability that a sick person's test comes out positive.
- Posterior: the updated belief after the evidence has been seen. For example, P(sick | +).
1.3.2Medical tests and natural frequencies
A disease has a prevalence of 1% in the population. There is a test for the disease. The test's sensitivity is 90%: the test is positive in 90% of the sick. The test's false-positive rate is 9%: the test is also positive in 9% of the healthy. A person's test came out positive. What is the probability that this person is really sick?
Most people, even most physicians, answer this question "about 90%." The correct answer is about 9%. The easiest way to see the large gap is to think in terms of numbers of people instead of probabilities. Converting probabilities into numbers of people in a population is called the method of natural frequencies. Gigerenzer and Hoffrage showed that many more people solve the problem correctly when the same problem is posed with natural frequencies (Gigerenzer and Hoffrage, 1995).
Consider a population of 10,000 people. Figure 1.7 shows the numbers at each step.
- Prior. The prevalence is 1%: 10,000 · 0.01 = 100 sick, 9,900 healthy.
- Test on the sick. Sensitivity 90%: of the 100 sick, 100 · 0.9 = 90 test positive and 10 test negative.
- Test on the healthy. False-positive rate 9%: of the 9,900 healthy, 9,900 · 0.09 = 891 also test positive. Because the healthy are so numerous, a small rate gives a large number.
- Everyone who tests positive. 90 + 891 = 981 people.
- Posterior. Of these 981 people only 90 are really sick: P(sick | +) = 90/981 ≈ 0.092, that is, about 9.2%.
Even though the test is 90% sensitive, a positive result is mostly a false alarm. Of every 11 people who test positive, about 10 are healthy.
This result does not mean the test is useless. Before the test the probability of disease was 1%; after the positive result it rose to 9.2%. The probability grew more than ninefold. But because the starting point was so low, the posterior is still below 10%. That is why in medicine a second, more definitive test is usually performed after a positive screening test.
1.3.3Bayes' rule and base-rate neglect
The computation with natural frequencies is a special case of a general formula.
Let H be a hypothesis (e.g., "sick") and E a piece of evidence (e.g., "test positive"). ¬H means that H does not hold ("healthy"). If P(E) > 0, then
P(H | E) = P(E | H) · P(H) / [ P(E | H) · P(H) + P(E | ¬H) · P(¬H) ]
The denominator is the total probability of the evidence, P(E).
The formula follows from the definition of conditional probability in two steps. First step: by the definition, P(H | E) = P(H and E) / P(E). By the product rule the numerator is written P(E | H) · P(H). Second step: E can occur in two ways, either together with H or together with ¬H. Adding the probabilities of these two ways gives P(E) = P(E | H) · P(H) + P(E | ¬H) · P(¬H). Putting the two steps together gives the formula.
In the medical test, P(H) = 0.01, P(E | H) = 0.9, P(E | ¬H) = 0.09. The numerator is 0.9 · 0.01 = 0.009, the denominator 0.009 + 0.09 · 0.99 = 0.009 + 0.0891 = 0.0981. The ratio is 0.009 / 0.0981 ≈ 0.0917. This is the same as 90/981 in the natural frequencies; the only difference is that every number has been divided by 10,000. Natural frequencies are in fact Bayes' rule written with numbers of people.
Base-rate neglect is substituting the likelihood for the posterior without taking the prior (the base rate, the prevalence) into account. Its typical form is to take P(+ | sick) to be P(sick | +).
Base-rate neglect is a real problem. In a classic study, physicians and medical students were asked the following question: a test with a false-positive rate of 5% for a disease of prevalence 1/1000 has come out positive; what is the probability that the person is sick? Only 11 of 60 people reached the correct answer (about 2%). The most common answer was 95% (Casscells, Schoenberger, and Graboys, 1978).
Let us solve the Casscells question with natural frequencies. The test's sensitivity is not given; let us assume that the test comes out positive for all the sick.
- Take 100,000 people. Prevalence 1/1000: 100 sick, 99,900 healthy.
- All 100 of the sick test positive.
- 5% of the healthy test positive: 99,900 · 0.05 = 4,995.
- Everyone who tests positive: 100 + 4,995 = 5,095. Of these, 100 are sick: 100/5,095 ≈ 0.0196.
The correct answer is about 2%. The answer "95%" comes from taking the complement of the false-positive rate (1 − 0.05) to be the posterior.
The importance of the base rate is clear when the prevalence changes. Let the test in 1.3.2 (sensitivity 90%, false-positive 9%) now be used in a population where the prevalence is 10%. Of 10,000 people, 1,000 are sick and 900 of them test positive; of the 9,000 healthy, 810 test positive. P(sick | +) = 900/1,710 = 10/19 ≈ 52.6%. The same test gives a much more meaningful result in a population where the disease is more common. That is why screening tests are usually applied to people in a risk group.
- Taking P(E | H) to be P(H | E). "The test catches 90% of the sick" and "90% of those who test positive are sick" are different sentences.
- Writing the denominator incompletely. The denominator contains not only the true positives but also the false positives. If the false positives are forgotten, the posterior comes out as 1.
- Computing the false positives from the whole population instead of from the healthy. The 9% applies to the 9,900 healthy, not to the 10,000.
1.3.4Code trace: bayes()
If one test result alone is not enough, a second test is done. For the second test the prior is no longer 1%; it is the posterior of the first test. Each new piece of evidence uses the previous posterior as its prior. This is called sequential updating. The function below does this with a loop. The tests are assumed to give results independent of one another once the person's true state is known.
def bayes(p, sens, fp, tests):
for res in tests:
if res == "+":
num = sens * p
den = num + fp * (1 - p)
elif res == "-":
num = (1 - sens) * p
den = num + (1 - fp) * (1 - p)
else:
raise ValueError("result must be + or -")
if den == 0:
raise ValueError("impossible result")
p = num / den
print(res, round(p, 4))
return pThe parameters of the function are: p, the initial prior; sens, P(+ | sick); fp, the false-positive rate P(+ | healthy); and tests, a list made of the results "+" and "-". For each result the loop does the following:
- If the result is "+", the likelihoods of a positive result are used:
sensfor the sick,fpfor the healthy. - If the result is "-", the likelihoods of a negative result are used:
1 - sensfor the sick,1 - fpfor the healthy. numis the numerator of Bayes' rule;denis the total probability of the evidence.- If any other sign arrives, or if
denis 0 (the observation is impossible in both states according to the model), the function raises an error; in this case the posterior is undefined. - The assignment
p = num / dencomputes the posterior and writes it into the same variable. In the next round this value becomes the prior.
| Round | res | prior p | num | den | new p |
|---|---|---|---|---|---|
| 1 | + | 0.0100 | 0.9 · 0.0100 = 0.0090 | 0.0090 + 0.09 · 0.9900 = 0.0981 | 0.0917 |
| 2 | + | 0.0917 | 0.9 · 0.0917 = 0.0826 | 0.0826 + 0.09 · 0.9083 = 0.1643 | 0.5025 |
| 3 | − | 0.5025 | 0.1 · 0.5025 = 0.0503 | 0.0503 + 0.91 · 0.4975 = 0.5030 | 0.0999 |
The function prints the new probability in every round and finally returns 0.0999. Figure 1.8 shows the course of the probability. The first positive raises the probability from 1% to 9.2%. The second positive (if the tests are independent given the disease status) carries it to about 50%. When the third test comes out negative, the probability falls back to 10%. A negative result is strong evidence, because the test comes out negative in only 10% of the sick, but in 91% of the healthy.
Sequential updating has two important properties. First, order does not matter: even if the same three results ("+", "-", "+") are processed in that order, the final probability is again 0.0999. Second, processing two positive results together in a single step gives the same result: the likelihood of two conditionally independent positives is 0.9 · 0.9 = 0.81 for the sick and 0.09 · 0.09 = 0.0081 for the healthy. The numerator is 0.81 · 0.01 = 0.0081, the denominator 0.0081 + 0.0081 · 0.99 ≈ 0.0161; the ratio is again about 0.5025. But evaluating each test from scratch with the 1% prior is wrong: then the accumulated evidence of the two positives is lost.
1.3.5The Bayesian decision rule: treat or wait?
Finding the posterior is half the job. The real question is what to do with this probability. After a positive test, should a physician treat the patient or wait? This decision depends both on the probability and on the cost of the two kinds of error. Treating a healthy person unnecessarily has a cost (side effects, expense). Not treating a sick person has a much larger cost.
The Bayesian decision rule: the prior is updated with the evidence; then the expected loss of each action is computed with the posterior. The action with the smallest expected loss is chosen.
Loss can be thought of as the opposite of utility: smaller is better. Working with losses is more natural in medicine and engineering, because the cost of errors is measured directly. Minimizing the expected loss is the same as treating the negative of the loss as utility and maximizing expected utility.
Let the losses be: unnecessary treatment of a healthy person 30, failing to treat a sick person 200. The loss of a correct decision is 0. If the probability of disease is p:
- If treated, a loss arises only if the person is healthy: E[loss | treat] = (1 − p) · 30.
- If we wait, a loss arises only if the person is sick: E[loss | wait] = p · 200.
- Threshold. Treatment is chosen if it has the smaller loss: (1 − p) · 30 < p · 200 ⇒ 30 − 30p < 200p ⇒ 30 < 230p ⇒ p > 30/230 = 3/23 ≈ 13.0%.
- After one positive, p ≈ 0.0917: treat 0.9083 · 30 ≈ 27.2, wait 0.0917 · 200 ≈ 18.3. Waiting has the smaller loss; the test is repeated.
- After two positives, p ≈ 0.5025: treat 0.4975 · 30 ≈ 14.9, wait 0.5025 · 200 ≈ 100.5. Treatment is chosen.
| Case | p | E[loss | treat] | E[loss | wait] | Decision |
|---|---|---|---|---|
| 1 positive | 0.092 | 27.2 | 18.3 | wait, retest |
| 2 positives | 0.503 | 14.9 | 100.5 | treat |
The threshold formula can be written in general. If the loss of unnecessary treatment is c and the loss of an untreated sick person is k, treatment is chosen when (1 − p)c < pk, that is, when p > c/(c + k). The interpretation of the formula is clear: the more expensive it is to miss the disease (the larger k), the lower the threshold. For a deadly disease even a low probability is enough for treatment. If the treatment itself is dangerous (c large), the threshold rises. The decision depends not only on the probability but also on the ratio of the losses.
- "If the probability is below 50%, do not treat." This rule is right only if the costs of the two errors are equal. Here the threshold is 13%.
- Multiplying the losses by the wrong probability. The loss of treatment is multiplied by the probability that the person is healthy (1 − p), because treatment does harm only when applied to a healthy person.
1.3.6Back to the lab: the rain forecast
The first question of the game in 1.1.1 can now be answered. The prior probability of rain is 0.35 and the accuracy of the forecast is 90%. "Accuracy 90%" means this: if it is going to rain, the forecast says "rain" with probability 90%; if the weather is going to stay dry, it says "dry" with probability 90%. That is, P("rain" | rain) = 0.9 and P("rain" | dry) = 0.1.
- Posterior. P(rain | "rain") = 0.9 · 0.35 / (0.9 · 0.35 + 0.1 · 0.65) = 0.315 / 0.38 ≈ 0.829. When the forecast says "rain," the probability of rain is not 90% but 82.9%.
- The expected utility (EU) of the actions, when the probability of rain is p: outdoors −6p + 8(1 − p) = 8 − 14p; indoors 4p + 3(1 − p) = 3 + p.
- Threshold. Outdoors is better when 8 − 14p > 3 + p ⇒ 5 > 15p ⇒ p < 1/3.
- With the prior alone (p = 0.35): outdoors 3.10, indoors 3.35. Since 0.35 > 1/3, indoors is chosen; but the difference is small.
- With the "rain" signal (p ≈ 0.829): outdoors −3.61, indoors 3.83. Indoors is chosen.
- With the "dry" signal: P(rain | "dry") = 0.1 · 0.35 / (0.1 · 0.35 + 0.9 · 0.65) = 0.035 / 0.62 ≈ 0.056. Outdoors 7.21, indoors 3.06. Outdoors is chosen.
| Information | P(rain) | EU(outdoors) | EU(indoors) | Decision |
|---|---|---|---|---|
| prior only | 0.35 | 3.10 | 3.35 | indoors |
| "rain" | 0.829 | −3.61 | 3.83 | indoors |
| "dry" | 0.056 | 7.21 | 3.06 | outdoors |
Table 1.10 shows why information is valuable. Without a signal, indoors is chosen. If the signal says "dry," the decision turns to outdoors and the expected utility rises from 3.35 to 7.21. Information is useful only where it can change the decision; the "rain" signal does not change the decision, but the "dry" signal does.
At the third level of the game the accuracy of the signal is 78% and the signal can be seen only by paying 1 unit. Is it worth buying? To answer this, the value of the signal is computed: the expected payoff when the decision is made after the signal, minus the expected payoff when the decision is made with the prior alone.
- The probability of a "rain" signal. 0.78 · 0.35 + 0.22 · 0.65 = 0.273 + 0.143 = 0.416. The probability of a "dry" signal is 0.584.
- If "rain" arrives. P(rain) = 0.273/0.416 ≈ 0.656. Indoors is chosen: 3 + 0.656 ≈ 3.656.
- If "dry" arrives. P(rain) = 0.22 · 0.35 / 0.584 = 0.077/0.584 ≈ 0.132. Outdoors is chosen: 8 − 14 · 0.132 ≈ 6.154.
- The expected payoff with the signal. 0.416 · 3.656 + 0.584 · 6.154 ≈ 5.115.
- The value of the signal. The best payoff without the signal is 3.35. The value is 5.115 − 3.35 = 1.765.
The information value of the signal is 1.765 and its price is 1. Since the value exceeds the price, the signal is worth buying.
The game has an "EU-optimal" counter. This counter counts not lucky outcomes but decisions that maximize expected utility given the information at hand. For example, someone who chooses outdoors after the "dry" signal is caught in rain with probability 5.6% and gets −6. That is a bad outcome, but the decision was good. Someone who in the same situation chooses indoors and by luck gets 4 has made a bad decision but received a good outcome. In the long run good decisions bring good results on average; a single outcome does not show the quality of the decision.
1.3.7Updating beliefs about an opponent's type
Bayes' rule is a bridge from single-person decisions to games. In a game of incomplete information the unknown "state" is often the opponent himself: the cards in the opponent's hand, what kind of player the opponent is. This hidden characteristic of the opponent is called his type. The belief about the type is the prior; the opponent's move is the evidence.
In a poker-like game the opponent is a bluffer with probability 20% and honest with probability 80%. The bluffer raises with probability 90% regardless of her hand. The honest player raises only when she has a strong hand; since a strong hand comes with probability 30%, the honest player raises with probability 30%. The opponent has raised. Let calling bring +30 against a bluffer and −30 against an honest player; let folding bring 0.
- Posterior. P(bluffer | raise) = 0.2 · 0.9 / (0.2 · 0.9 + 0.8 · 0.3) = 0.18 / 0.42 ≈ 0.429.
- The expected value of calling. E[call] = 0.429 · 30 − 0.571 · 30 ≈ −4.3 < 0. Folding is better.
- A second raise (in another hand). The prior is now 0.429: 0.429 · 0.9 / (0.429 · 0.9 + 0.571 · 0.3) ≈ 0.692.
- E[call] = 0.692 · 30 − 0.308 · 30 ≈ +11.5 > 0. Now calling is profitable.
| Observation | P(bluffer) | E[call] | Decision |
|---|---|---|---|
| prior only | 0.200 | −18.0 | fold |
| 1 raise | 0.429 | −4.3 | fold |
| 2 raises | 0.692 | +11.5 | call |
Since the gain and the loss are equal in size (30), calling is profitable only when P(bluffer) > 0.5. A single raise lifts the belief from 0.2 to 0.429 but does not bring it to the threshold. The second raise passes the threshold. The decision changes as evidence accumulates.
The common mistake in this example is to take P(raise | bluffer) = 0.9 to be P(bluffer | raise). This is the same as the base-rate neglect in the medical test. Because honest players are more numerous, most of the raises come from them: of the total raise probability 0.42, 0.24 comes from honest players, that is, about 57% of the raises belong to honest players.
This view explains behavior in card games. In poker and Hokm, bets and trump choices are evidence from which opponents update their beliefs. A bluff is an attempt to steer the opponent's updating: the bluffer pulls the opponent's posterior in the wrong direction by making the move an honest player would make. A smart opponent knows this and adjusts the likelihoods accordingly. This mutual thinking is exactly the point at which single-person decision theory passes into game theory.
1.4Decision trees and the value of information
Real decisions are often not made in a single step. First some information is gathered, then a decision is made according to that information, then nature determines the outcome. The tool for organizing such sequential decisions is the decision tree. A product launch problem shows both how a tree is solved and how the monetary value of information is computed.
1.4.1The elements of a decision tree
A decision tree consists of three kinds of elements:
- Decision node (□): The decision maker chooses. Its value is the largest value among its branches.
- Chance node (○): Nature chooses. Its value is the probability-weighted average of its branches.
- Leaf: The net outcome of a path.
A decision tree is a game tree in which nature also moves. The only difference is that nature does not think of its own payoff like a player; it acts only through probabilities. The tree is solved by backward induction: start from the leaves and work toward the root. The value of each node can be computed once the values of its children are known. At a chance node the average is taken, at a decision node the largest value.
Why backward? Because to make the right choice at a decision node, one needs to know the value of each branch. The value of a branch, in turn, depends on the decisions to be made later along that branch and on the chance events that will occur. Starting from the end keeps the needed information ready at every step. This method is also used on the trees of games such as chess.
1.4.2The product launch problem
A firm will decide whether to launch a new product. If the market goes well (probability 2/5) it earns +500, if badly (probability 3/5) it loses 200 thousand TL. If the product is not launched the payoff is 0. Before deciding, the firm can commission a market survey for 20 thousand TL. The survey report is imperfect:
- If the market is really good, the report says "positive" with probability 80%: P(positive | good) = 0.8.
- If the market is bad, the report still says "positive" with probability 10%: P(positive | bad) = 0.1.
To solve the tree we need the probabilities at the chance nodes. If the survey is done, the first chance event is the report itself. After the report, the probability that the market is good must be updated according to the report. These are found with Bayes' rule.
- The probability of a positive report. P(positive) = 0.4 · 0.8 + 0.6 · 0.1 = 0.32 + 0.06 = 0.38. The probability of a negative report is 0.62.
- The market is good given a positive report. P(good | positive) = 0.32/0.38 = 16/19 ≈ 0.842.
- The market is good given a negative report. In a good market the probability of a negative report is 0.2: 0.4 · 0.2 = 0.08. P(good | negative) = 0.08/0.62 = 4/31 ≈ 0.129.
A positive report raises the probability of a good market from 0.4 to 0.842; a negative report lowers it to 0.129.
The net payoffs of the leaves must also be computed. On the paths where the survey is done, 20 thousand TL is deducted: launching in a good market gives 500 − 20 = 480, launching in a bad market −200 − 20 = −220, and not launching 0 − 20 = −20. On the paths without the survey the leaves are 500, −200, and 0.
1.4.3Backward induction step by step
Figure 1.9 shows the whole tree. Let us work from the leaves to the root.
- Launch without the survey (chance). 2/5 · 500 + 3/5 · (−200) = 200 − 120 = 80.
- The decision without the survey. max(Launch 80, Skip 0) = 80 ⇒ Launch. The Skip branch is pruned.
- Launch after a positive report (chance). 16/19 · 480 + 3/19 · (−220) = (7680 − 660)/19 = 7020/19 ≈ 369.5.
- The decision after a positive report. max(369.5, −20) = 369.5 ⇒ Launch.
- Launch after a negative report (chance). 4/31 · 480 + 27/31 · (−220) = (1920 − 5940)/31 = −4020/31 ≈ −129.7.
- The decision after a negative report. max(−129.7, −20) = −20 ⇒ Skip. Only the cost of the survey is lost.
- The report (chance). 0.38 · 369.5 + 0.62 · (−20) = 140.4 − 12.4 = 128.
- The root (decision). max(Research 128, Direct 80) = 128 ⇒ Research.
The best strategy: commission the survey; launch the product if the report is positive and do not launch if it is negative. The expected value of this strategy is 128 thousand TL.
The word "strategy" matters here. The result is not just "research"; it is a complete plan that says what to do against each possible report. In game theory, too, a strategy is defined this way: a complete plan that determines in advance what the player will do in every situation she may encounter.
The computation in the seventh step contains a small shortcut: 0.38 · 7020/19 = 0.02 · 7020 = 140.4. Keeping the fractions to the end avoids rounding errors. Even if the rounded value 369.5 is used, the result comes out very close to 128 (140.41 − 12.4 = 128.01).
- Reversing the rules. Taking the average at a decision node and the maximum at a chance node is wrong. We cannot control nature, so at a chance node the average is taken. We do control our own decision, so we choose the best.
- Letting nature choose in our favor. Taking the largest branch at every node is overly optimistic: as if the market would always go well.
- Following only the most probable branch. Branches with low probability but large outcomes (like −220) must enter the average.
- Deducting the survey cost twice. The cost is either deducted from the leaves or at the very end from the root; if both are done, 20 is counted twice.
1.4.4Code trace: value()
Backward induction is written briefly as a recursive (self-calling) function. In Python each node of the tree is represented by a tuple and each leaf by a number. A chance node has the form ("C", [(probability, child), …]) and a decision node ("D", [(name, child), …]).
def value(n):
if not isinstance(n, tuple): # leaf
return n
kind, branches = n
if kind == "C": # chance node
return sum(p * value(c) for p, c in branches)
return max(value(c) for name, c in branches) # decisionThe code works line by line as follows:
- If
nis not a tuple it is a leaf; its value is the number itself and is returned directly. This is the stopping condition of the recursion. - If it is a tuple, it is split into two parts:
kind("C" or "D") and the listbranches. - At a chance node the value of each branch is found recursively with
value(c), multiplied by its probability, and added. - At a decision node the largest of the values of the branches is returned. The name of the branch (
name) is not used in the computation; it is only for readability.
The launch tree is written in this form as follows:
tree = ("D", [
("Research", ("C", [
(0.38, ("D", [("Launch", ("C", [(16/19, 480), (3/19, -220)])),
("Skip", -20)])),
(0.62, ("D", [("Launch", ("C", [(4/31, 480), (27/31, -220)])),
("Skip", -20)]))])),
("Direct", ("D", [("Launch", ("C", [(0.4, 500), (0.6, -200)])),
("Skip", 0)]))])The call value(tree) traverses the tree depth-first: it enters a branch, descends to the deepest point of that branch, computes the value and returns, and then moves on to the next branch. Table 1.12 shows the order of the calls and the returned values. The "Stack" column shows the calls open at that moment; each new call is added on top of the stack and each return removes the top call.
| Step | Call / return | Computation | Stack depth |
|---|---|---|---|
| 1 | value(root) — decision | children in turn | 1 |
| 2 | value(Research) — chance | children in turn | 2 |
| 3 | value(positive) — decision | children in turn | 3 |
| 4 | value(positive·Launch) — chance | 0.842 · 480 + 0.158 · (−220) = 369.5 | 4 |
| 5 | positive returns | max(369.5, −20) = 369.5 → Launch | 3 |
| 6 | value(negative·Launch) — chance | 0.129 · 480 + 0.871 · (−220) = −129.7 | 4 |
| 7 | negative returns | max(−129.7, −20) = −20 → Skip | 3 |
| 8 | Research returns | 0.38 · 369.5 + 0.62 · (−20) = 128.0 | 2 |
| 9 | value(Direct·Launch) — chance | 0.4 · 500 + 0.6 · (−200) = 80.0 | 3 |
| 10 | Direct returns | max(80, 0) = 80 → Launch | 2 |
| 11 | root returns | max(128.0, 80.0) = 128.0 → Research | 1 |
The function returns 128.0, the same as the value found by hand. The code returns only the value, not which branch was chosen. To obtain the strategy as well, the name of the branch must be stored along with the max at a decision node. The running time of the function is proportional to the number of nodes in the tree, because each node is visited exactly once. This tree has 17 nodes: 4 decision nodes (root, positive, negative, Direct), 4 chance nodes, and 9 leaves.
1.4.5The value of perfect information (EVPI)
Doing the survey raised the expected value from 80, the value without the survey, to 128. Two concepts are used to measure systematically how valuable information is. The first is the value of an information source with no defects at all.
The expected value of perfect information (EVPI) is the difference between the expected value we would obtain if we knew the state for certain in advance and the best expected value obtained without information:
EVPI = E[value with perfect information] − E[best value without information]
It is easy to think of perfect information as an oracle. The oracle tells in advance whether the market will be good or bad. But what the oracle will say is not known in advance either: she says "good" with probability 40% and "bad" with probability 60%. So the value with perfect information is also an expected value.
- No information. The best action is to launch: 0.4 · 500 + 0.6 · (−200) = 80.
- If the oracle says "good," the product is launched and 500 is earned. If she says "bad," it is not launched and 0 is earned.
- The expected value with perfect information. 0.4 · 500 + 0.6 · 0 = 200.
- EVPI. 200 − 80 = 120.
No information source is worth paying more than 120 thousand TL for. An imperfect report cannot be more valuable than the oracle.
It is instructive to look at where the EVPI comes from. Without information the product is launched in every case. The oracle changes the decision only in the bad market: instead of launching she makes us choose not to launch and avoids the loss of −200. This gain occurs with probability 60%: 0.6 · 200 = 120. The EVPI is exactly the expected gain from the cases in which the decision changes.
1.4.6The value of sample information (EVSI)
Real information sources are imperfect. A market survey is sometimes wrong. The value of imperfect information is smaller than the EVPI and must be computed separately.
The expected value of sample information (EVSI) is the difference between the expected value that would be obtained if an imperfect information source were free and the best expected value without information. An information source should be used only if its cost is less than the EVSI. We always have 0 ≤ EVSI ≤ EVPI.
- The value of the tree with the survey is 128, but the cost of the survey (20) has already been deducted from this value.
- The value of a free survey. Add the cost back: 128 + 20 = 148. This is the expected value that would be obtained if the survey were free.
- EVSI. 148 − 80 = 68.
- Decision. EVSI = 68 > cost 20 ⇒ the survey should be done. The net gain is 68 − 20 = 48; this also equals 128 − 80.
- Efficiency. EVSI / EVPI = 68/120 ≈ 57%. The imperfect report captures a little more than half of the value of perfect information.
| Case | Computation | Value |
|---|---|---|
| No information (decide now) | Launch: 0.4 · 500 + 0.6 · (−200) | 80 |
| Perfect information (oracle) | good → launch 500, bad → skip 0: 0.4 · 500 + 0.6 · 0 | 200 |
| EVPI | 200 − 80 | 120 |
| Sample information (survey, free) | 128 from the tree + survey cost 20 | 148 |
| EVSI | 148 − 80 | 68 |
The EVSI acts as a threshold. If the cost of the survey is below 68 the survey is done; if above, it is not. For example, if the survey cost 70 thousand TL, we would have EVSI = 68 < 70. The value of the survey path falls to 148 − 70 = 78, which is less than 80, the value of launching directly. The best strategy would be to launch directly without a survey (expected 80).
Why is information valuable? Because it can change the decision. In this example a negative report leads to the decision "skip"; that is why the value of the survey is positive. If even a negative report still made launching look better, the same decision would be made whatever the report said, and the value of the survey would be zero. This principle is the general rule of gathering information: a test that cannot change any decision, however accurate it may be, is worth nothing.
- Computing the EVSI without adding the cost back. 128 − 80 = 48 is the net gain, not the EVSI. The EVSI is computed with the value of the free survey: 148 − 80 = 68.
- Deciding about the survey with the EVPI. The EVPI is only an upper bound. If the cost is below the EVPI but above the EVSI, the survey is not done.
- Taking the value without information to be zero. The comparison is made not with "doing nothing" but with the best decision without information (here 80).
1.5Discussion: better decisions under risk and uncertainty
The tools of the chapter together form a method of decision making. The method can be summed up in four principles.
- The value of information is computed. Up-to-date data improves the decision, but gathering information is not free. Gathering information pays only if the EVSI exceeds its cost. The EVPI is an upper bound on the highest price that could be paid.
- Scenarios and the decision tree are written down explicitly. Once the possible states and their probabilities are written, the tree can be solved backward. Drawing the tree makes overlooked options (e.g., "research first") visible.
- The prior is taken into account. Base rates enter the posterior through Bayes' rule. Thinking in natural frequencies ("out of 10,000 people, how many?") reduces base-rate neglect.
- Opponents and diversification are considered. If other decision makers, not nature, determine the outcome, game theory and simulation model the opponents' behavior. Spreading across mutually independent risks (portfolio diversification) reduces total risk; this is also why an insurer can behave as approximately risk-neutral.
All of these principles rest on one distinction: the quality of the decision and the quality of the outcome are different things. A decision that maximizes expected utility can produce a bad outcome if chance goes badly. Judging decisions by their outcomes means mistaking the share of chance for the share of the decision. A decision should be evaluated with the information available at the moment it was made.
1.5.1A checklist for decision problems
When facing a decision problem, the following questions can be asked in order:
- What are the options (actions)? What are the states that determine the outcome?
- Are the probabilities of the states known? If so, the problem is a decision under risk (expected utility); if not, it is a decision under uncertainty (maximin, Laplace, Savage, Hurwicz).
- If the outcomes are money, is the decision maker risk-neutral? If not, a utility function or the certainty equivalent is used.
- Is there a piece of evidence (a test, a report, a signal)? If so, the prior is updated with Bayes' rule; the likelihood is not confused with the posterior.
- Are the decisions sequential? If so, a decision tree is drawn and solved backward.
- Can additional information be bought? The EVSI is computed and compared with the cost.
1.5.2Four short problems
Four problems repeat the four main computations of the chapter. Each was obtained by changing the numbers of an example in the chapter.
A lottery: 2,500 TL with probability 20%, otherwise 100 TL. Utility u(x) = √x. What are the expected value, the certainty equivalent, and the risk premium?
- E[X] = 0.2 · 2,500 + 0.8 · 100 = 500 + 80 = 580 TL.
- E[u] = 0.2 · √2,500 + 0.8 · √100 = 0.2 · 50 + 0.8 · 10 = 10 + 8 = 18.
- CE = 182 = 324 TL.
- Risk premium = 580 − 324 = 256 TL.
If in the insurance example the probability of loss were 20% instead of 10%, what would the highest premium be?
- E[u] = 0.8 · 30 + 0.2 · 10 = 24 + 2 = 26.
- CE = 262 = 676.
- The highest premium is 900 − 676 = 224. The expected loss is 0.2 · 800 = 160.
The zone of agreement is between 160 and 224 and its width has grown to 64. As the probability of loss rises, the risk rises, and the risk premium grows.
If the prevalence in the medical test were 10% (sensitivity 90%, false-positive 9%), what would P(sick | +) be?
- Numerator: 0.9 · 0.1 = 0.09. Denominator: 0.09 + 0.09 · 0.9 = 0.09 + 0.081 = 0.171.
- P = 0.09/0.171 = 10/19 ≈ 52.6%.
When the base rate rises, a positive result becomes much more meaningful: 52.6% instead of 9.2%.
If the survey in the decision tree cost 70 thousand TL, what would the best strategy be?
- The EVSI is independent of the cost: 68.
- 68 < 70: the expected contribution of the survey does not cover its cost.
- The best strategy is to launch directly; the expected value is 80.
1.5.3Decisions in games
The concepts of the chapter find direct counterparts in many games: in Blackjack the decision to draw or stand rests on the probability of busting and on basic strategy; in Minesweeper the probability that each cell holds a mine is updated from the revealed numbers; in Pişti and Poker one reasons about the opponent's hidden cards from the cards played and the bets made; Hokm is a team card game of incomplete information in which trump choice and signaling matter; and in Backgammon, moves in a dice game are scored with a heuristic evaluation function.
All of these games share the same loop: a belief is held, updated with each new observation, and the move with the largest expected payoff under the current belief is chosen. In games with chance nodes such as Backgammon, choosing a move is a decision-tree search that averages over the possible outcomes of the dice.
1.6Summary
- Expected utility: E[u] = Σ pi u(xi). For lottery A (½: 900; ½: 0), E[X] = 450, but with √x, E[u] = 15 < u(400) = 20; expected value chooses A and expected utility chooses B. The St. Petersburg paradox shows that expected value alone is not enough.
- If the vNM axioms (completeness, transitivity, continuity, independence) hold, the decision maker maximizes expected utility. The Allais choices violate independence; the Ellsberg choices violate a consistent probability belief.
- The utility scale: the transformation a · u + b (a > 0) changes no lottery decision; increasing non-affine transformations can. The size of utility differences and interpersonal comparisons of utility are not meaningful.
- Risk attitude: concave → averse (CE 225, premium 225); linear → neutral (premium 0); convex → loving (negative premium). Jensen's inequality underlies this classification. In insurance, premiums between 80 and 116 benefit both sides.
- Criteria under uncertainty: on the same table, maximin chooses No investment, maximax and Laplace choose Big, and Savage chooses Small. The Hurwicz criterion moves between the two extremes with the optimism coefficient.
- Bayesian decision: prevalence 1%, sensitivity 90%, false-positive 9% ⇒ P(sick | +) ≈ 9.2%. In sequential tests the posterior is the prior of the next test. Treatment is chosen when its expected loss is smaller, that is, when p > 3/23.
- Decision tree: the average is taken at a chance node and the largest value at a decision node. Research (128) > no research (80); EVPI = 120, EVSI = 68. Information is valuable only if it can change the decision.
| Concept | What it says | How it is computed |
|---|---|---|
| Expected utility | The value of risky options | Σ pi u(xi) |
| Certainty equivalent | The sure amount equivalent to a lottery | u−1(E[u]) |
| Risk premium | The price of getting rid of risk | E[X] − CE |
| Maximin / Savage | Decision without probabilities | Raise the worst case / lower the largest regret |
| Bayes' rule | Updating a belief with evidence | Numerator / (numerator + false alarms) |
| Bayesian decision rule | The best action under the posterior | Smallest expected loss |
| Backward induction | The best strategy in sequential decisions | Average at chance, maximum at decision |
| EVPI / EVSI | The monetary value of information | Value with information − value without |
1.7Key terms
- decision making
- decision under risk
- decision under uncertainty
- lottery
- utility function
- expected utility
- St. Petersburg paradox
- von Neumann–Morgenstern axioms
- completeness / continuity / independence axioms
- Allais paradox
- certainty effect
- affine transformation
- cardinal utility
- diminishing marginal utility
- concave
- convex
- Jensen's inequality
- risk attitude
- risk-averse
- risk-neutral
- risk-loving
- certainty equivalent (CE)
- risk premium
- Ellsberg paradox
- ambiguity aversion
- maximin
- maximax
- Laplace criterion
- minimax regret
- Hurwicz criterion
- coefficient of optimism
- conditional probability
- prior
- likelihood
- posterior
- Bayes' rule
- sensitivity
- natural frequencies
- base-rate neglect
- evidence
- Bayesian decision rule
- expected loss
- type
- bluffing
- decision tree
- decision node
- chance node
- backward induction
- expected value of perfect information (EVPI)
- expected value of sample information (EVSI)
1.8Test Yourself
Lottery M: 1,600 TL with probability 40%, 100 TL with probability 60%. Utility u(x) = √x. What are the expected value, the expected utility, the certainty equivalent, and the risk premium? Between M and a sure 500 TL, which does this person choose?
Answer
E[M] = 0.4 · 1,600 + 0.6 · 100 = 640 + 60 = 700 TL. E[u] = 0.4 · 40 + 0.6 · 10 = 16 + 6 = 22. CE = 222 = 484 TL; risk premium 700 − 484 = 216 TL. A sure 500 TL is greater than the CE (√500 ≈ 22.4 > 22); the person chooses the sure 500 TL. A risk-neutral person would choose M, because 700 > 500.
A decision maker's utility function is u. Which of the following preserve all of her lottery preferences exactly: v1 = 4u + 7, v2 = u2 (when u ≥ 0), v3 = −2u + 1, v4 = u/3 − 10?
Answer
v1 and v4 preserve them: both are of the form a · u + b with a positive (4 and 1/3). v3 is affine but a = −2 < 0; it reverses the whole ranking. v2 is increasing but not affine; it preserves the order of sure outcomes but can change the order among lotteries (the square of √x is x, and this reverses the decision between A and B).
Wealth is 2,500 (thousand TL); with probability 4% a loss of 2,400 occurs, leaving 100. Utility u(x) = √x. What is the highest premium the person is willing to pay for full insurance, and the lowest premium a risk-neutral insurer would ask?
Answer
Without insurance E[u] = 0.96 · 50 + 0.04 · 10 = 48 + 0.4 = 48.4. CE = 48.42 = 2,342.56. The highest premium is 2,500 − 2,342.56 = 157.44. The expected loss is 0.04 · 2,400 = 96; the insurer asks at least this. Premiums between 96 and 157.44 benefit both sides. The 61.44 in between is the person's risk premium (expected wealth 2,404 − CE 2,342.56). Although the probability is small, because the loss is large the highest premium the person is willing to pay is about 1.64 times the expected loss.
The probabilities are unknown. Payoffs: A (Good 60, Fair 30, Bad −40), B (40, 20, 0), C (100, −10, −60). Which action do maximin, maximax, Laplace, Savage, and Hurwicz with α = 0.6 choose?
Answer
Row minima −40, 0, −60 ⇒ maximin B. Maxima 60, 40, 100 ⇒ maximax C. Averages 16.7, 20, 10 ⇒ Laplace B. Column bests 100, 30, 0; regrets A (40, 0, 40), B (60, 10, 0), C (0, 40, 60); the largest are 40, 60, 60 ⇒ Savage A. Hurwicz: A 0.6 · 60 + 0.4 · (−40) = 20, B 0.6 · 40 + 0 = 24, C 0.6 · 100 + 0.4 · (−60) = 36 ⇒ C. The five criteria choose three different actions.
A disease has a prevalence of 2%, the test's sensitivity is 95%, and its false-positive rate is 5%. With natural frequencies in a population of 10,000, what is P(sick | +)? What is the probability that someone whose test is negative is sick?
Answer
200 sick: 190 positive, 10 negative. 9,800 healthy: 490 positive, 9,310 negative. P(sick | +) = 190/(190 + 490) = 190/680 ≈ 27.9%. P(sick | −) = 10/(10 + 9,310) = 10/9,320 ≈ 0.11%. A negative result nearly rules out the disease; a positive result is still mostly a false alarm.
After the positive test in the previous question, the physician decides. The loss of unnecessary treatment of a healthy person is 40, and the loss of failing to treat a sick person is 160. What is the treatment threshold and what is the decision?
Answer
Treatment is chosen when (1 − p) · 40 < p · 160: 40 < 200p ⇒ p > 0.2. Since p ≈ 0.279 > 0.2, treatment is chosen. The expected losses: treat (490/680) · 40 ≈ 28.8, wait (190/680) · 160 ≈ 44.7.
A firm's new product brings +300 in a good market (probability 0.5) and −250 thousand TL in a bad market (0.5); if not launched, 0. (a) What are the best decision without information and the EVPI? (b) For a free survey, P(positive | good) = 0.8 and P(positive | bad) = 0.3. What is the EVSI?
Answer
(a) Launch: 0.5 · 300 + 0.5 · (−250) = 25 > 0 ⇒ launch, 25. With the oracle, 0.5 · 300 + 0.5 · 0 = 150; EVPI = 150 − 25 = 125. (b) P(positive) = 0.4 + 0.15 = 0.55. P(good | positive) = 0.4/0.55 = 8/11; launching gives 8/11 · 300 + 3/11 · (−250) = 1650/11 = 150 ⇒ launch. P(good | negative) = 0.1/0.45 = 2/9; launching gives 2/9 · 300 + 7/9 · (−250) ≈ −127.8 ⇒ skip (0). The value with the survey is 0.55 · 150 + 0.45 · 0 = 82.5; EVSI = 82.5 − 25 = 57.5 ≤ EVPI = 125.
The opponent is a bluffer with probability 25%. In a hand, the bluffer raises with probability 60% and the honest player with probability 20%. What is the probability that the opponent is a bluffer after one raise, and (in another hand) after a second raise? If calling brings +20 against a bluffer and −40 against an honest player, after which observation is calling profitable?
Answer
First raise: 0.25 · 0.6 / (0.15 + 0.75 · 0.2) = 0.15/0.30 = 0.5. Second raise: 0.5 · 0.6 / (0.3 + 0.5 · 0.2) = 0.3/0.4 = 0.75. Calling is profitable when 20p − 40(1 − p) > 0 ⇒ p > 2/3. After the first raise, since 0.5 < 2/3, folding is better; after the second raise, 0.75 > 2/3, so she calls (E[call] = 15 − 10 = 5).
1.9Further reading
- S. Russell and P. Norvig, Artificial Intelligence: A Modern Approach (2020), Chapters 12–16: treats probability, Bayes' rule, utility theory, decision trees, and the value of information step by step from the point of view of artificial agents.
- H. Raiffa, Decision Analysis (1968): a classic introduction that presents decision trees and the value of sample information through business decisions.
- G. Gigerenzer and U. Hoffrage, "How to improve Bayesian reasoning without instruction: Frequency formats" (1995): shows with experiments why natural frequencies make Bayesian computation easier.
- D. Easley and J. Kleinberg, Networks, Crowds, and Markets (2010), Chapter 16: describes how Bayes' rule is used in information cascades, where people decide by observing one another.
1.10References
- M. Allais, "Le comportement de l'homme rationnel devant le risque: critique des postulats et axiomes de l'école américaine", Econometrica 21(4), 503–546, 1953.
- D. Bernoulli, "Specimen theoriae novae de mensura sortis", Commentarii Academiae Scientiarum Imperialis Petropolitanae 5, 1738.
- W. Casscells, A. Schoenberger, T. B. Graboys, "Interpretation by physicians of clinical laboratory results", New England Journal of Medicine 299, 999–1001, 1978.
- D. Easley, J. Kleinberg, Networks, Crowds, and Markets, Cambridge University Press, 2010 (Chapter 16: information cascades and Bayes' rule).
- D. Ellsberg, "Risk, ambiguity, and the Savage axioms", Quarterly Journal of Economics 75(4), 643–669, 1961.
- G. Gigerenzer, U. Hoffrage, "How to improve Bayesian reasoning without instruction: Frequency formats", Psychological Review 102(4), 684–704, 1995.
- H. Raiffa, Decision Analysis: Introductory Lectures on Choices under Uncertainty, Addison-Wesley, 1968.
- S. Russell, P. Norvig, Artificial Intelligence: A Modern Approach, 4th ed., Pearson, 2020 (Chapters 12–16: uncertainty, Bayes, decision theory).
- L. J. Savage, "The theory of statistical decision", Journal of the American Statistical Association 46, 55–67, 1951.
- J. von Neumann, O. Morgenstern, Theory of Games and Economic Behavior, Princeton University Press, 1944.
Tools: Gambit (draws trees with chance nodes and solves them backward) · the online edition of Networks, Crowds, and Markets · Chapter 1 slides · © Sercan Külcü. All rights reserved.