PPhilosophy, Built

Act VII · Value

Part 33 of 42

Rational Choice

decision theory

Introductorystarts at this level57 min of film17 chaptersprerequisites: Part 13, Part 14, Part 32

What is it to choose well when the outcome is uncertain?

Act VII opens with Daniel Bernoulli in 1738: the value of an item is the utility it yields, not its price. Preferences come first, with a money pump that takes fifteen cents in fifteen trades, and the St Petersburg game is played a million times before Bernoulli's logarithm tames it. The von Neumann-Morgenstern theorem turns four axioms into a utility function whose indifference lines in the Marschak-Machina triangle are parallel. Then the theory is tested: Allais's common choices fit none of 201 utilities, and Ellsberg's fit no probability for any of 61 urns, which is half of the Wall's thirty-third brick. Risk-weighted utility and prospect theory are the rivals; the Kelly criterion shows a thousand simulated fortunes growing at the rate g(f) and ruined beyond it; the Pasadena game has an expectation that depends on the order of adding. The part turns on Newcomb's problem, where evidential and causal decision theory part ways and each has a counterexample: the other half of the brick. It ends with policies, Ulysses at the mast, Good's theorem on free information and the two envelopes.

What you need. School algebra, logarithms and expected values. Credences and conditioning are those of Parts 13 and 14.

The calculation
vNM, Savage, Jeffrey
The wall
Allais; Ellsberg; Newcomb
Built toy
Marschak–Machina triangle; Kelly; Newcomb predictor

What you will be able to do

Introductory

  • Compute the expected value and expected utility of a lottery, and explain why the St Petersburg game has no finite expected value.
  • State Allais's two choices and Newcomb's problem, and say why each is a puzzle for expected utility.

Advanced

  • State the von Neumann-Morgenstern axioms and show that expected utility's indifference lines in the triangle are parallel.
  • Prove that no utility function yields Allais's common choices, and derive the Kelly fraction by maximizing g(f).
  • Compute evidential and causal expected utilities in Newcomb's problem and the smoking lesion.

Research

  • Explain why the Pasadena game has no expectation and what weak and relative expectations offer in its place.
  • Set out the cases that separate evidential, causal and functional decision theory, and the counterexample each one faces.

Applied

  • Size a repeated bet by the Kelly criterion, and explain why practitioners stake a fraction of it.
  • Recognise the fourfold pattern and a framing effect in a described choice, and say what prospect theory predicts.

Contents

Each chapter has a home level. Choose a track to see what to read and watch: Introductory 22 min · Advanced 50 min · Research 57 min · Applied 32 min.

  1. 0What is it to choose well?Introductory2 min
  2. 1PreferencesIntroductory4 min
  3. 2St PetersburgIntroductory2 min
  4. 3Expected utilityAdvanced2 min
  5. 4AllaisIntroductory3 min
  6. 5SavageAdvanced2 min
  7. 6EllsbergAdvanced2 min
  8. 7Risk and its rivalsApplied5 min
  9. 8The Kelly criterionApplied5 min
  10. 9PasadenaResearch3 min
  11. 10Newcomb's problemIntroductory5 min
  12. 11Evidence or causation?Advanced5 min
  13. 12PoliciesResearch5 min
  14. 13Ulysses and the sirensIntroductory4 min
  15. 14The value of informationAdvanced4 min
  16. 15Two envelopesAdvanced3 min
  17. Recap, problems, and where this comes backAll tracks2 min

Also on this page: Lecture · Key results · Try it · Lab · Problems · Notes and sources · Build the film.

Lecture

The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film.

What is it to choose well?Introductory2 min

Part 32 asked whether our choices are free. This part asks what it is to choose well, the theory of rational choice. It begins in 1738, with Daniel Bernoulli: the value of an item must not be based on its price, but on the utility it yields. From that sentence grew expected utility theory, the most successful formal theory in the social sciences, and a set of puzzles it has never fully absorbed.

Four questions run through it. What should a rational agent maximize: money, utility, or something that also cares about risk itself? How should it choose when probabilities are unknown, or when expectations do not exist at all? How much should it bet over time, and how should it deal with a future self who will want something else? And when a reliable predictor is involved, does a choice count for what it causes, or for what it is evidence of? Two of these puzzles, Allais's and Newcomb's, are this part's brick in the Wall.

The plan. Preferences, with a money pump built, and the St Petersburg game simulated. The von Neumann–Morgenstern theorem, and the geometry of its indifference lines. Allais's paradox, checked against every possible utility, and Savage's foundations. Ellsberg's urn, risk-weighted utility and prospect theory. The Kelly criterion, with a thousand simulated fortunes, and a game whose expectation depends on the order you add it up. Newcomb's problem, with a predictor of any accuracy, and its Price List. Evidential against causal decision theory, on the smoking lesion and death in Damascus. And choosing policies, Ulysses at the mast, the value of information, checked on two thousand problems, and the two envelopes.

What it establishes: Bernoulli (1738); four questions; the plan.

1PreferencesIntroductory4 min

Decision theory starts from preferences between options. Completeness: for any two options, you weakly prefer one to the other. Transitivity: if you weakly prefer A to B, and B to C, you weakly prefer A to C. The symbol means at least as good as, and economists read it off choices. Completeness can fail when options are incommensurable, a career against a family, and some philosophers think rationality does not require it. Transitivity is the one almost everyone defends, for a reason the next section builds.

Consider completeness first. Suppose you must choose between a career in law and a career as a clarinettist, and on reflection neither seems better than the other. Now improve the second slightly: the same musical career, with a thousand dollars more a year. It is better than the original, but it still does not seem better than the law. If the two careers had been exactly equal in value, the small improvement should have tipped the balance. It does not, so they were not equal. Neither better, nor worse, nor equal: Ronald de Sousa called such options incomparable, and Ruth Chang argues that they are on a par, a fourth relation. Robert Aumann showed in 1962 that expected utility can be rebuilt without completeness, at the cost of a set of utility functions rather than one, and a rule that only says which options are not beaten.

Here is the argument for transitivity, in its classic form. An agent strictly prefers A to B, B to C, and C to A: a cycle. It holds A. Offer it C for A and a cent: it prefers C, so it pays. Offer B for C and a cent: it pays again. Offer A for B and a cent: it pays, and holds A once more. The Reasoner runs the pump five times round: fifteen trades, fifteen cents, and the agent is back where it started, poorer. An agent with cyclic preferences can be exploited without limit. Whether that shows such preferences irrational, or only imprudent in markets, is itself debated.

Preferences that are complete and transitive can be represented by numbers. Over finitely many options there is a utility function u such that you weakly prefer A to B exactly when u of A is at least u of B. But it is only ordinal: it records the order and nothing else, so any increasing transformation of it would serve as well. To say how much better one option is than another, and to choose under risk, we need preferences over gambles.

Economists turned these axioms into tests on data. Paul Samuelson's idea of 1938 was revealed preference: if you chose one bundle when another was affordable, you revealed that you like the first at least as much. Here is a shopper the Reasoner made up, over two weeks and two goods. In week one, prices are one and two, and she spends six dollars on bundle one; bundle two would have cost five fifty, so she reveals bundle one at least as good. In week two, prices are two and one, and she spends eight dollars on bundle two, when bundle one would have cost only six. So she reveals bundle two strictly better. That is a violation of the generalized axiom of revealed preference. Sydney Afriat proved in 1967 that a finite set of choices passes that test exactly when some increasing, concave utility function explains them all: a complete test of rationality for a consumer. And Afriat's efficiency index says how bad a violation is: shrink every budget to ninety one point seven percent, and these choices pass. Experimental economists compute it for thousands of subjects; most come close to one.

What it establishes: completeness, transitivity; de Sousa (1974), Chang (2002), Aumann (1962); Samuelson (1938), Afriat (1967).; Computed on screen: a money pump; GARP and the efficiency index

2St PetersburgIntroductory2 min

Nicolaus Bernoulli posed a puzzle in 1713, and his cousin Daniel published an answer in St Petersburg in 1738. Toss a fair coin until it lands heads. If the first heads comes on toss k, you win two to the k ducats: two, four, eight, sixteen. Each row contributes its probability times its prize, and every one of those contributions is one ducat. So the expected prize is one plus one plus one, for ever: infinite. If you should maximize expected money, you should pay any finite price to play. Almost no one would pay more than a few ducats.

The Reasoner plays a million games. After ten, the average prize is six point four ducats; after a thousand, twelve and a half; after a million, about twenty five. It never settles. It creeps upward, roughly with the logarithm of the number of games, and one rare run of tails can double it at a stroke. The largest prize in a million games was two to the twenty second: four million ducats. An infinite expectation is made of enormous prizes that almost never come.

Daniel Bernoulli's answer was that money is not what we value. Utility grows with the logarithm of wealth: each doubling adds the same amount. Then the expected utility of the game is the sum of k over two to the k, which is exactly two, the utility of four ducats. So, from nothing, the game is worth four ducats to you, about what people say. The idea behind it is diminishing marginal utility: a ducat matters less to someone who already has many. But Karl Menger pointed out in 1934 that prizes of two to the two to the k make the expected logarithm infinite again, one plus one plus one. So either utility is bounded, or such games must be excluded: a choice the theory has never quite settled.

What it establishes: N. and D. Bernoulli (1713, 1738); Menger (1934).; Computed on screen: a million games; log utility

3Expected utilityAdvanced2 min

In 1944 John von Neumann and Oskar Morgenstern found the conditions. Options are now lotteries: probability mixtures of outcomes. Preferences between lotteries must be complete and transitive, as before. Continuity: if A is better than B and B better than C, some mixture of A and C is exactly as good as B. Independence: mixing both of two lotteries with the same third one, in the same proportion, does not change which you prefer; a common part does not matter. The theorem: preferences satisfy these axioms exactly when there is a utility function whose expectation ranks the lotteries, and that function is unique up to a choice of zero and unit, like a temperature scale.

The construction behind the theorem is simple. Fix the best and the worst outcomes, and give them utilities one and zero. For any outcome x, find the gamble between best and worst that you find exactly as good as x for sure; continuity guarantees there is one. Its probability p of the best outcome is x's utility. Independence then lets every lottery be rewritten as a gamble between best and worst, and its chance of the best is its expected utility.

The theory has a picture, due to Jacob Marschak and Mark Machina. With three outcomes, worst, middle and best, every lottery is a point in a triangle: its chance of the worst across, its chance of the best up, and the rest on the middle. Expected utility is linear in the probabilities, so its indifference curves are straight lines, and they are all parallel. Their slope depends only on the utility of the middle outcome: one point five when it is point six of the way from worst to best. Preference rises toward the top left. Independence is exactly the requirement that the lines be parallel, and the next chapter shows people who violate it.

What it establishes: von Neumann and Morgenstern (1944); Marschak; Machina.; Computed on screen: parallel lines in the triangle

4AllaisIntroductory3 min

In 1953 Maurice Allais, later a Nobel laureate in economics, posed two choices. In the first, 1A is a million dollars for certain; 1B is a ten percent chance of five million, an eighty nine percent chance of one million, and a one percent chance of nothing. Most people take the certain million. In the second, 2A is an eleven percent chance of a million, and 2B a ten percent chance of five million. Here most people take 2B: the extra four million seems worth one more percent of risk. Daniel Kahneman and Amos Tversky found the same pattern in 1979. It seems entirely reasonable. It is inconsistent with expected utility.

Why inconsistent? Set the utility of nothing to zero and of five million to one. Then the expected utility of 1A minus 1B is point one one times the utility of a million, minus point one. And the expected utility of 2A minus 2B is exactly the same expression. The two choices differ only by an eighty nine percent chance of a million, common to both options in the first pair and removed from both in the second: independence says that should not matter. The Reasoner tries two hundred and one values for the utility of a million. Below point nine one, both preferences go to the risky option; above it, both go to the safe one. None gives the common pair of choices. No utility function, however shaped, makes Allais's subjects expected utility maximizers.

The triangle shows what goes wrong. Plot the four lotteries over nothing, a million and five million. The segment from 1A to 1B and the segment from 2A to 2B are parallel. Parallel indifference lines must therefore rank both pairs the same way. To prefer 1A but 2B, the lines must be steep near the corner of certainty, where a little risk is felt sharply, and flatter near the corner of nothing: indifference curves that fan out, as Mark Machina described them in 1982. The axiom that fails is independence. That makes Allais's choices one half of this part's brick in the Wall.

What it establishes: Allais (1953); Kahneman and Tversky (1979); Machina (1982).; Computed on screen: 201 utilities; the fanning-out, zoomed

5SavageAdvanced2 min

Von Neumann and Morgenstern took probabilities as given. In 1954 Leonard Savage derived them, together with utilities, from preferences alone. There are states of the world, none of them up to you; consequences, what you get; and acts, which are functions from states to consequences. If your preferences over acts satisfy his postulates, there is a unique probability and a utility, unique up to scale, such that you prefer one act to another exactly when its expected utility is greater. Your probabilities, like the Ramsey and de Finetti betting rates of Part 13, are written in your choices.

Savage's central postulate is the sure-thing principle. In his words: if the person would not prefer f to g, either knowing that the event B obtained, or knowing that B did not obtain, then he does not prefer f to g. His example was a businessman deciding whether to buy a house before an election. He would buy if the Republican won, and he would buy if the Democrat won, so he should buy now. For lotteries it says what independence said: outcomes the two acts share should not affect the choice between them.

Savage rewrote Allais's choices as lottery tickets. A ticket is drawn from a hundred. 1A pays a million whatever the ticket. 1B pays nothing on ticket one, five million on tickets two to eleven, and a million on the rest. 2A and 2B are the same, except that tickets twelve to a hundred pay nothing. Within each pair, tickets twelve to a hundred pay the same, so by the sure-thing principle they should not matter. And on tickets one to eleven, the two pairs are identical. So whoever prefers 1A must prefer 2A. Savage confessed that when he first met the problem he chose as Allais's subjects do. Seeing the tickets, he changed his second choice, and concluded that it was his first reaction, not the principle, that was in error. Many decision theorists have not been persuaded.

What it establishes: Savage (1954): the sure-thing principle; the tickets.

6EllsbergAdvanced2 min

In 1961 Daniel Ellsberg found a second violation. An urn holds ninety balls: thirty red, and sixty black or yellow in a proportion you are not told. Bet one pays a hundred dollars if the ball drawn is red; bet two if it is black. Most people prefer bet one. Bet three pays on red or yellow; bet four on black or yellow. Most people prefer bet four. In both pairs they choose the bet whose chance they know: a third in the first pair, two thirds in the second.

No assignment of probabilities fits. With equal payoffs, preferring bet one to two means judging red more likely than black. Preferring four to three means judging black or yellow more likely than red or yellow, that is, black more likely than red. The Reasoner tries all sixty one possible urns, from no black balls to sixty, and none gives both preferences. The sure-thing principle fails again: yellow pays the same within each pair, yet changes the choice. What people avoid here is not risk but ambiguity: not knowing the chances at all.

Itzhak Gilboa and David Schmeidler gave ambiguity aversion a theory in 1989. Instead of one probability, consider the whole set of distributions consistent with what you know, every possible urn, and value each act by its worst expected utility over the set. Bet one wins with a third, in every urn. Bet two could win with nothing. Bet four wins with two thirds in every urn; bet three could win with only a third. So the rule prefers one to two and four to three: exactly Ellsberg's subjects. Allais and Ellsberg together make the case against expected utility as a description of how people choose; whether they refute it as an account of how one ought to choose is the next chapter's question.

What it establishes: Ellsberg (1961); Gilboa and Schmeidler (1989).; Computed on screen: 61 urns; maxmin expected utility

7Risk and its rivalsApplied5 min

Lara Buchak argued in 2013 that Allais's subjects need not be confused. They may care about risk itself. Expected utility can be written as a staircase: start from the utility of the worst outcome, then add each step up, weighted by the probability of getting at least that much. Risk-weighted expected utility puts a function r on those probabilities. If r of p is p, it is expected utility. If r of p is p squared, a ninety percent chance of an improvement counts for only eighty one percent of it: the agent gives more weight to how things go if they go badly. Utility says how much you value outcomes; r says how much a chance is worth to you, a separate attitude that Buchak argues reason leaves open.

The Reasoner tests it on Allais's lotteries. Give a million dollars utility point eight, between nothing at zero and five million at one. Expected utility ranks 1B above 1A, point eight one two against point eight, and 2B above 2A: the risky option both times, as it must for any utility below point nine one. With r of p equal to p squared, 1A scores point eight and 1B only point seven eight six, because 1B's improvements are discounted for being uncertain. In the second pair 2B edges 2A, point zero one against point zero zero nine seven. That is exactly the common pattern. Allais's subjects maximize risk-weighted expected utility, and Buchak defends them as rational. Her critics answer that such agents violate the sure-thing principle, and can be led to refuse free information; chapter fourteen builds that case.

Kahneman and Tversky's prospect theory, of 1979, and its cumulative form of 1992, set out to describe how people actually choose. Outcomes are gains and losses from a reference point, not final wealth. The value function is concave for gains and convex for losses, and steeper for losses: in their estimates a loss counts two and a quarter times as much as an equal gain. That is loss aversion. Probabilities are replaced by decision weights. Small probabilities are overweighted and large ones underweighted: the curve lies above the diagonal near zero, and below it for most of the rest. The weights are applied, as in Buchak's theory, to cumulative probabilities: the formal core of prospect theory and of risk-weighted utility is the same, rank-dependent utility, first proposed by John Quiggin in 1982.

From these two curves follows a famous pattern. A five percent chance of a hundred dollars has expected value five, but in the theory it is worth ten dollars for sure: people overpay for long shots, which is why lotteries sell. A ninety five percent chance of a hundred is worth only seventy seven: people accept settlements below the expected award. A five percent chance of losing a hundred is as bad as a sure loss of eight: people insure. A ninety five percent chance of losing a hundred is only as bad as a sure loss of eighty three: facing likely losses, people gamble to escape them. Risk attitudes flip between gains and losses, and between small and large chances. Insurers, regulators and anyone designing a default pension scheme now rely on this.

Prospect theory's most famous prediction is the framing effect. In 1981 Tversky and Kahneman told subjects that six hundred people face a disease, and offered two programs. Framed in lives saved: program A saves two hundred for sure; program B saves all six hundred with probability one third. Seventy two percent of a hundred and fifty two subjects chose A. Framed in deaths: under C four hundred die for sure; under D, with probability two thirds all six hundred die. Seventy eight percent of another group chose D. But A is C and B is D, described differently. The Reasoner values all four with prospect theory's parameters. In the frame of gains the sure thing is worth more, a hundred and six against ninety four; in the frame of losses the gamble is less bad, minus three hundred and fifty three against minus four hundred and thirty nine. The theory predicts the flip. For a theory of how one ought to choose, this is the clearest mistake in the catalogue: a choice should not depend on how the same options are described. Kenneth Arrow called that principle extensionality.

What it establishes: Buchak (2013); Kahneman and Tversky (1979, 1992); Quiggin (1982); Tversky and Kahneman (1981).; Computed on screen: risk-weighted utility; the fourfold pattern; the Asian disease

8The Kelly criterionApplied5 min

In 1956 John Kelly, an engineer at Bell Labs, asked how a gambler with an edge should size his bets. Bet a fixed fraction f of your wealth, at even money, on a coin that wins with probability p. After n bets with S wins, your wealth has been multiplied by one plus f, S times, and by one minus f, the other times. Wealth compounds, so take logarithms. By the law of large numbers the growth rate per bet tends to g of f: p times the log of one plus f, plus one minus p times the log of one minus f. Set its derivative to zero, and the best fraction is two p minus one. With a sixty percent coin, bet twenty percent of what you have, every time. Maximizing growth is maximizing the expectation of log wealth: Bernoulli's utility from chapter two, reached by a different road.

Here is the growth rate for the sixty percent coin. It rises from zero, peaks at f equal to point two, where wealth grows by about two percent per bet in the long run, and falls. At about twice the Kelly fraction the growth rate crosses zero: at point four it is already negative. At point six it is minus eight percent per bet. Every one of these bets has positive expected value: the coin favours you. Yet betting too much of your wealth on it makes you poorer, in the long run, with probability one. Near the top the curve is flat: betting half the Kelly fraction keeps three quarters of the growth with far smaller swings, which is why practitioners prefer fractions of Kelly.

The Reasoner gives a thousand gamblers the sixty percent coin and a thousand bets each, at four fractions. Five paths of each are drawn, on a log scale. Betting a tenth, the median fortune grows about three million fold, and no one is ruined. Betting the Kelly fifth, the median grows by a factor of about four hundred million. Betting four tenths, the paths swing wildly and the median ends below where it began; four hundred and fifty seven of the thousand gamblers are left with less than one percent of their stake. Betting six tenths, every one of the thousand is ruined: the median is ten to the minus thirty seven.

Why not just maximize expected wealth? Each bet multiplies expected wealth by one plus f times the edge, so expected wealth after a thousand bets rises with f all the way: ten to the forty nine times the stake at six tenths. Yet the median, the fortune of the typical gambler, is ten to the minus thirty seven, and all thousand simulated gamblers are ruined. The expectation is carried by extremely rare histories with many more wins than a typical gambler sees. An agent who maximizes expected money in repeated bets is ruined almost surely. Paul Samuelson objected that Kelly is only right for log utility, and he was correct as a matter of theory. In practice, what one cares about over a lifetime of bets is the typical outcome, and that is what Kelly maximizes.

Kelly's rule left the casino quickly. Edward Thorp used it to size bets when he showed that blackjack could be beaten by counting cards, in 1962, and later to size the positions of a hedge fund. For many assets, the rule picks the portfolio that maximizes expected log return, the growth optimal portfolio. Because the probabilities are only estimated, and because the curve punishes over-betting far more than under-betting, practitioners bet a half or a quarter of the Kelly amount. And the title of Kelly's paper explains its origin: the best achievable growth rate equals the information that a gambler's private tip carries, in Claude Shannon's sense. Decision theory and information theory meet here.

What it establishes: Kelly (1956); Samuelson; Thorp (1962); Shannon.; Computed on screen: the growth curve; 1000 fortunes at four fractions

9PasadenaResearch3 min

In 2004 Harris Nover and Alan Hájek designed a game to break expected utility in a new way. Toss a coin until it lands heads. If that happens on toss n, and n is odd, you win two to the n divided by n dollars; if n is even, you pay that much. Two dollars, then minus two, then eight thirds, then minus four, then six point four. The contributions to the expectation are one, minus a half, a third, minus a quarter: the alternating harmonic series, which adds up to the natural logarithm of two, about point six nine. So the game is worth sixty nine cents. Or is it?

The trouble is the order. Add the contributions in the order of the tosses, and the running total settles on the logarithm of two. The Reasoner's two hundred thousand terms give point six nine three one four. Now add the same terms in a different order: two positive terms, then one negative. Every term is still used exactly once. The total now settles on three halves of the logarithm of two, one point zero three nine seven. This is Riemann's rearrangement theorem: because the absolute values add up to infinity, the series can be rearranged to converge to any number at all, or to diverge. Nothing in the game picks the order. The outcomes are just outcomes; listing them by toss is our choice. So the expectation of the Pasadena game is undefined, and expected utility theory says nothing about whether to play it for a dollar, or for a cent.

Philosophers have offered repairs. Kenny Easwaran proposed the weak expectation: the value the average of many plays tends to, in probability. For the Pasadena game it is the logarithm of two. Mark Colyvan proposed comparing two games by the expectation of their difference, which can exist when neither game's expectation does. Or utility is bounded, as Menger's game already suggested, and such games cannot be built from utilities at all; the price is that some very large stakes stop mattering. The lesson is general. Expected utility theory assumes the expectation exists. With infinitely many possible outcomes, as in Pascal's wager of Part 23, it may not, and the theory falls silent.

What it establishes: Nover and Hájek (2004); Riemann; Easwaran (2008); Colyvan (2006).; Computed on screen: two orders of the same series

10Newcomb's problemIntroductory5 min

In 1969 Robert Nozick published a puzzle devised by the physicist William Newcomb. In front of you are two boxes. The clear one holds a thousand dollars. The opaque one holds either a million dollars or nothing. Yesterday a predictor filled the opaque box: with the million if it predicted that you would take only the opaque box, with nothing if it predicted you would take both. It has predicted the choices of many people before you, and has almost always been right. You may take the opaque box alone, or both boxes. Nozick wrote that almost everyone finds the answer perfectly obvious; the difficulty is that they divide almost evenly about what it is.

Two arguments, each of which looks decisive. The first is dominance. The money is already in the box or it is not; your choice cannot change that now. If the million is there, two boxes give you a million and a thousand rather than a million. If it is not, two boxes give a thousand rather than nothing. Whatever the state, two boxes are better by a thousand dollars. The second is expected value. If the predictor is right ninety nine times in a hundred, then those who take one box nearly always find a million, an expectation of nine hundred and ninety thousand dollars; those who take both nearly always find the opaque box empty, an expectation of eleven thousand. Dominance says take both. Expected value says take one. Both are principles of chapter three's theory; here they disagree.

The Reasoner builds the predictor with any accuracy p. With a predictor no better than a coin, the expected values are five hundred thousand for one box and five hundred and one thousand for two: take both. The tie comes at an accuracy of point five zero zero five. Above it, by expected value, one box is better, and the gap grows to nine hundred and ninety thousand against eleven thousand at ninety nine percent. The predictor need not be supernatural. A psychologist who is right sixty percent of the time, or a program that has read your messages, would do. Dominance, meanwhile, says two boxes at every accuracy.

The Reasoner seats ten thousand players in front of a predictor that is right ninety percent of the time. Half of them, five thousand and one, take one box. The one-boxers average nine hundred and six thousand dollars. The two-boxers average a hundred and three thousand. One-boxers ask the two-boxer: if you're so smart, why ain't you rich? David Lewis took that question as the title of a paper in 1981, and answered it: the riches were reserved for those the predictor expected to choose irrationally. Every two-boxer, he says, did better than he would have done by taking one box, given what was in front of him.

Four claims cannot all be true. If an act is better whatever the state, choose it. Choose the act with the greatest expected value, given that you perform it. The predictor is reliable. And the contents of the boxes are fixed before you choose. The first and fourth say take both; the second and third say take one. Causal decision theorists, Allan Gibbard and William Harper, Lewis and James Joyce, reject the second as stated: expected value must be computed from what your act causes, not from what it indicates. They take both boxes, with thirty nine percent of philosophers in the 2020 survey. Evidential decision theorists, after Richard Jeffrey, and Arif Ahmed today, reject dominance where acts are evidence about states. They take one, with thirty one percent. Isaac Levi and Wolfgang Spohn doubted that a deliberating agent can treat its own choice as something to be predicted. And functional decision theory, in chapter twelve, says that what the predictor responds to is your decision procedure, which you do choose. The next chapter asks which kind of expectation is right.

What it establishes: Nozick (1969); Lewis (1981); the Price List.; Computed on screen: any accuracy; 10 000 players

11Evidence or causation?Advanced5 min

Newcomb's problem divides two ways of computing expected utility. Richard Jeffrey's evidential decision theory, of 1965, weights each state by its probability given the act: the act's news value, how glad you would be to learn you had done it. Causal decision theory, from Allan Gibbard and William Harper in 1978, David Lewis in 1981 and James Joyce in 1999, weights each state by the probability that it would obtain if you did the act: in Judea Pearl's terms from Part 17, conditioning on doing the act, not on observing it. Joyce computes it by imaging, an idea of Lewis's: moving each world's probability to the nearest worlds where the act is done. The two agree whenever your acts carry no evidence about states they do not cause. They come apart when acts are symptoms.

The standard case against evidential decision theory is the smoking lesion. Suppose a lesion causes both a taste for smoking and cancer, and smoking itself is harmless. Thirty percent of people have the lesion; smoking is worth ten units of pleasure, cancer minus a hundred. Given that you smoke, the chance you have the lesion is sixty six percent; given that you abstain, five. So evidential expected utility is minus forty four for smoking and minus nine for abstaining. Evidential decision theory says abstain: smoking would be bad news. Causal decision theory intervenes. Doing the act leaves the lesion alone, so the chance of cancer is twenty seven and a half percent either way, and smoking adds its pleasure: smoke. Most people judge causal decision theory right here: abstaining manages the news, not the cancer. Ellery Eells replied for evidentialists with the tickle defence: if you can feel the urge that the lesion causes, then the act itself adds no further evidence, and the two theories agree.

In 2007 Andy Egan turned the tables. Paul can press a button that will kill every psychopath. He would like that done, unless he is a psychopath himself. He is fairly sure he is not: five percent. But he is also sure that only a psychopath would press such a button. Causal decision theory uses his unconditional credence: pressing has expected utility plus four and a half. Press. Evidential decision theory conditions on pressing: ninety percent that he is a psychopath, minus eighty nine. Refrain. Almost everyone agrees with refraining. And once Paul has decided to press, his credence changes, and causal decision theory now says not to: its verdict is unstable. Here evidential decision theory gets it right, and the causal theory needs repair.

Causal decision theory has an older instability problem. A man meets Death in Damascus. Death says: I am coming for you tomorrow. The man thinks of fleeing to Aleppo. But Death is a reliable predictor, and will be wherever he predicts the man will be. If the man plans to stay in Damascus, then Death is probably waiting in Damascus, and going to Aleppo would save him with probability ninety nine percent. If he plans Aleppo, Death is probably in Aleppo, and Damascus is the place to be. Jeffrey called a choice ratifiable if it is still best once you have chosen it. Neither city is ratifiable: each plan, once made, recommends the other. Brian Skyrms and Frank Arntzenius modelled deliberation as a process that settles on a mixed state of mind, and Joyce proposed choosing at the equilibrium. Whether that rescues the theory is open.

This is the thirty third brick in the Wall. The dream was one theory of rational choice: expected utility, with probabilities and utilities read off preferences. Allais and Ellsberg showed common, defensible preferences that no expected utility represents. Newcomb's problem split the theory into two, evidential and causal, and each has cases it gets wrong. What it forces is a choice: keep expected utility and call those preferences mistakes, adopt one of its rivals, or accept that rational choice needs more than one theory.

What it establishes: Jeffrey (1965); Gibbard and Harper (1978); Lewis (1981); Joyce (1999); Eells (1982); Egan (2007); the Wall's thirty-third brick.; Computed on screen: the lesion; the button; Damascus

12PoliciesResearch5 min

Derek Parfit described this case in 1984. You are dying of thirst in the desert. A driver stops. He will take you to town only if he predicts that, once there, you will pay him a thousand dollars. He reads faces well: he is right ninety nine times in a hundred. Once you are in town, paying is a pure loss. You are safe; nothing you do now can undo the rescue. Causal decision theory says do not pay, and so does evidential decision theory, since you already know you were rescued. So the driver, reading you correctly, predicts that you will not pay, and leaves you to die. Compare the policies. Paying once rescued has an expected value of minus eleven thousand, counting death as minus a million; refusing has minus nine hundred and ninety thousand. An agent who reasons act by act does worse than one who can commit.

David Lewis showed in 1979 that a famous game hides a Newcomb problem. In the prisoner's dilemma, each player cooperates or defects. Mutual cooperation pays three each; mutual defection one; a defector against a cooperator gets five, and the cooperator nothing. Whatever the other does, defecting pays more: two more against a cooperator, one more against a defector. That is dominance, and the causal theory defects. Now let the other player be your near-copy, whose move matches yours with probability r. Evidentially, cooperating is worth three r, and defecting r plus five times one minus r. The lines cross at five sevenths: above that, the evidential theory cooperates. Functional decision theory cooperates with an exact copy, since you and it compute one function. Whether real strangers ever resemble each other enough is the next part's question: Part 34 begins with this game.

Eliezer Yudkowsky and Nate Soares, working on the foundations of artificial agents, proposed functional decision theory in 2017. Treat your decision as the output of a procedure, a function, and ask which output would be best if you intervened on it, everywhere that function is computed: in your head, and in the predictor's model of you. In Newcomb's problem the predictor computes your procedure, so its output fixes both your choice and the box: take one. In the smoking lesion nothing computes your procedure except you; smoking does not change the lesion: smoke, as the causal theory says. In the desert, the driver's prediction is a model of your procedure, so the policy of paying gets you rescued: pay. And in transparent Newcomb, where you can see the million already in the box, it still says take only one box, since a procedure that would take both is predicted, and never sees the million. The predictor, the driver and a twin copy of you all run a model of your procedure; for an artificial agent that can be copied and simulated, that is no fantasy.

Philosophers have pressed hard. First, the theory needs counterfactuals about logic: what would happen if a given mathematical function had a different output. When does a brain, or a predictor's model, compute my function? There is no settled account. William MacAskill's bomb case, of 2019: a predictor who errs once in a trillion trillion times leaves a note saying it predicted you would take the right box, and so put a bomb in the left. Taking the left box costs a hundred dollars less, and functional decision theory takes it: a policy of taking left makes such notes almost never appear, and so you burn. Wolfgang Schwarz argued in 2018 that its verdicts in some cases look arbitrary, and that it is not yet a formal theory. Its defenders answer that decision theories should be judged by how their agents fare across all the problems they might meet, not by what looks best in one problem after the fact. That disagreement, over what a theory of choice is for, is where the debate now stands.

What it establishes: Parfit (1984); Lewis (1979); Yudkowsky and Soares (2017); Schwarz (2018); MacAskill (2019).; Computed on screen: acts against policies; the twin's dilemma

13Ulysses and the sirensIntroductory4 min

Choices are spread over time, and the chooser can change. Ulysses must sail past the sirens, whose song makes sailors steer onto the rocks. Now, he can stay home, sail bound to the mast, or sail free. Ranked by his present preferences: sailing past free is best, three; past but bound, two and a half, since the ropes hurt; home, one. If he sails free, a second choice comes later, when he hears the song: sail on, or steer to the sirens. Now he ranks the wreck lowest. But he knows that when he hears the song he will prefer it.

Decision theorists distinguish three choosers. The naive chooser plans the best path, sailing free and sailing on, then hears the song, chooses again with his new preferences, and is wrecked. The sophisticated chooser predicts what his later self will do, and plans by backward induction: sailing free leads to the rocks, so he has himself bound, and gets two and a half. Edward McClennen defended a third, the resolute chooser, in 1990: adopt the best plan and carry it out, even when the moment comes and you would rather not. He sails free and sails on, and gets three. Is resoluteness rational, or something we can only wish for? The sophisticated chooser's ropes are precommitment: the device behind savings plans that lock money away, and behind the Ulysses contracts of psychiatry, in which a patient asks in advance to be treated despite a later refusal.

One source of such changes is the way we discount the future. Choose between a hundred dollars on some day, and a hundred and fifty five days later. Discount hyperbolically, dividing by one plus the delay in days, as experiments by George Ainslie and others suggest people do. From more than nine days away the later hundred and fifty is worth more. But as the day approaches the two curves cross: at nine days they tie, and up close the hundred dollars now wins. The plan made a month ahead is abandoned. Exponential discounting, multiplying by point nine for each day, ranks the pair the same way from every distance; Robert Strotz showed in 1956 that it is the only discounting that never reverses. A hyperbolic discounter is a sequence of selves with different preferences, and faces Ulysses's problem every day.

Dynamic choice turns into an argument about expected utility itself. Peter Hammond proved in 1988 that an agent who judges each choice only by its consequences from that point on, and never plans what it will not carry out, must satisfy independence. So Allais's and Buchak's agents face a dilemma: be sophisticated, and sometimes pay to avoid information or to bind themselves; be resolute; or abandon plans. Mark Machina replied in 1989 that such agents need not be consequentialist: what might have happened, the risk already borne, can rationally matter. Independence, the sure-thing principle and consistency over time stand or fall together. The next chapter shows the price in one of them: information that hurts.

What it establishes: McClennen (1990); Strotz (1956); Ainslie (1975); Hammond (1988); Machina (1989).; Computed on screen: three choosers; a preference reversal

14The value of informationAdvanced4 min

In 1967 I. J. Good proved that free information never hurts. The proof is a picture. Two states, rain or dry, and three acts: take an umbrella, go without, or stay in. Each act's expected utility is a straight line in the probability of rain. If you choose the best act, your expected utility is the upper envelope of the lines, and an upper envelope of lines is always convex. Now your probability of rain is point four, and the best act is to go without the umbrella, point six. A forecast that is right eighty percent of the time will move your probability either down to point one four or up to point seven three, and the average of those posteriors, weighted by how likely each forecast is, is exactly the prior. After looking, you choose the best act at whichever posterior you get. The average of the envelope at the two posteriors lies on the chord, and because the envelope is convex, the chord lies above it: point seven two two against point six. The gap is the value of the information, and convexity guarantees it is never negative.

In symbols it is one line. The value of choosing now is the maximum, over acts, of the expected utility, which can be split up by the evidence you might see. The value of looking first is the average, over the evidence, of the best act given that evidence. A maximum of averages is never more than the average of the maxima. The two are equal exactly when no possible evidence would change your choice. The theorem assumes three things: that you maximize expected utility, that the information is free, and that your choosing to look does not change the evidence.

The Reasoner checks the theorem on two thousand random problems: random utilities for three acts in two states, a random prior, and a test of random accuracy. In five hundred and sixty nine, looking strictly helps. In the other one thousand four hundred and thirty one, no result of the test could change the best act, so the value of looking is exactly zero. In none does looking hurt.

Each assumption can fail. Lara Buchak showed in 2010 that risk-weighted agents sometimes do better by not looking. The Reasoner finds such a case: with a prior of point two and a test that is ninety five percent accurate, the agent's risk-weighted utility is point four five seven now, and only point four zero five if it plans to look first. A risk-avoidant agent can rationally refuse free evidence; to her critics, that is a reason to doubt the theory. In Newcomb-like cases, if the predictor reacts to whether you will look, then looking changes the states themselves. In games, knowledge can be a liability: once others know that you know, a threat can no longer be ignored. And Good's theorem appears in the design of artificial agents. In the off-switch game of Dylan Hadfield-Menell and colleagues, a robot uncertain of what its human wants treats the human's decision to switch it off as information, and so, by Good's reasoning, lets itself be switched off. The more certain it is, the weaker that reason becomes.

What it establishes: Good (1967); Buchak (2010); Hadfield-Menell et al. (2017).; Computed on screen: the envelope; 2000 problems; a counterexample

15Two envelopesAdvanced3 min

The last puzzle goes back to Maurice Kraitchik in 1953. Two envelopes hold money, one twice as much as the other. You pick one at random and find a dollars in it. Should you switch? The other envelope holds either twice a or half a, with equal chances, so its expected value is five quarters of a, more than you have. Switch. But the same argument, applied to the other envelope, tells you to switch back. And since it works for any amount a, you should switch without even looking, and keep switching for ever. Something is wrong; the question is exactly what.

The argument assumed that, whatever you see, the other envelope is equally likely to be larger or smaller. Give the Reasoner a real prior: the smaller amount is two to the k dollars, with probability proportional to point four to the k. If you see one dollar, you certainly hold the smaller, and switching gains a dollar. If you see any larger amount, the chance that you hold the smaller is not a half but point two eight six, and switching loses on average: point one four at two dollars, point two nine at four, and so on, doubling. Averaged over everything you might see, the expected gain from switching is exactly zero, as symmetry demands. No prior over amounts can make every amount equally likely to be the smaller; the argument's premise is a prior that does not exist.

John Broome found a prior that brings the paradox back. Make the smaller amount two to the k with probability proportional to two thirds to the k. Then, for every amount you could see above one dollar, the chance that you hold the smaller is point four, and switching gains a tenth of what you see: twenty cents at two dollars, forty cents at four, and growing. Switching is better whatever you see, and yet the situation is symmetric. The way out is the expected amount in an envelope: a sum of four thirds to the k, which is infinite. This is St Petersburg again, from chapter two. When the unconditional expectation is infinite, or the prior is improper, reasoning by conditional expectations can lead anywhere. Infinity, in this part, has broken expected utility three times.

What it establishes: Kraitchik (1953); Nalebuff (1989); Broome (1995).; Computed on screen: a proper prior; Broome's prior

Recap, problems, and where this comes backAll tracks2 min

Let's gather what we built. Completeness and transitivity, and a money pump that took fifteen cents in fifteen trades. The St Petersburg game, played a million times; Bernoulli's logarithm, and Menger's reply. The von Neumann–Morgenstern theorem, and its parallel lines in the triangle. Allais's choices, which no utility fits, and Ellsberg's, which no probability fits: half of this part's brick in the Wall. Risk-weighted expected utility, and prospect theory's fourfold pattern. The Kelly fraction, a thousand simulated fortunes, and the Pasadena game's sum that depends on the order of adding. Newcomb's problem at every accuracy, its Price List, and the cases that split evidential from causal decision theory: the other half of the brick. Choosing policies, Ulysses and our hyperbolic selves, Good's theorem drawn and checked, and the two envelopes.

The Reasoner has a new module, decision. It computes expected and risk-weighted utility, draws the Machina triangle, checks Allais and Ellsberg against every utility and every urn, evaluates prospects, simulates Kelly bettors and Newcomb players, compares evidential and causal expected utility on small causal models, evaluates policies over time, and checks the value of information. And the Wall has its thirty third brick.

Six problems, with full solutions in this part's notes. The money pump without completeness; the shape of the Kelly growth curve; the utilities for which risk-weighted utility gives Allais's pattern; Newcomb's break-even accuracy; a test worth exactly nothing; and why no proper prior can rescue the two-envelope argument. Pause here, and try them.

Where this comes back. Many choosers at once: games, backward induction and the social contract, in Part 34. Harsanyi's theorem, expected utility for a whole society, in Part 35. Tiny chances of vast stakes, fanaticism and the far future, in Part 36. Aggregating preferences, and Arrow's theorem, in Part 39. And agents that predict and are predicted, and the off-switch, in Part 42. Next, Part 34: games and the social contract.

The books and papers this part follows are on screen, and in the notes. Thanks for watching.

Where it goes next. Many choosers at once are Part 34's games; Harsanyi's theorem applies expected utility to a whole society in Part 35; tiny chances of vast stakes return as fanaticism in Part 36. Aggregating preferences leads to Arrow's theorem in Part 39, and predicted agents and the off-switch game return in Part 42.

Key results

The part's results in one place, for revision.

St Petersburg\(\displaystyle \sum_{k\ge1}2^{-k}\cdot 2^{k}=\infty,\qquad\allowbreak \sum_{k\ge1}2^{-k}\log_2 2^{k}=2\ \ (\text{a }\allowbreak \text{certainty }\allowbreak \text{equivalent }\allowbreak \text{of }4\text{ ducats})\)
Von Neumann-Morgenstern\(\displaystyle \succsim\text{ complete, }\allowbreak \text{transitive, }\allowbreak \text{continuous, }\allowbreak \text{independent}\iff\exists u:\ L\succsim M\Leftrightarrow\sum_i p_i\,u(x_i)\ge\sum_i q_i\,u(x_i),\quad\allowbreak u\text{ unique }\allowbreak \text{up }\allowbreak \text{to }au+b,\ a>0\)
Allais's identity\(\displaystyle EU(1A)-EU(1B)=EU(2A)-EU(2B)=0.11\,u(1)-0.10\,u(5)-0.01\,u(0)\)
The Kelly criterion\(\displaystyle g(f)=p\ln(1+f)+(1-p)\ln(1-f),\qquad\allowbreak f^{*}=2p-1\)
Newcomb's problem, evidentially\(\displaystyle V(\text{one }\allowbreak \text{box})=10^{6}p,\qquad\allowbreak V(\text{two }\allowbreak \text{boxes})=10^{6}(1-p)+10^{3},\qquad\allowbreak \text{equal }\allowbreak \text{at }p=0.5005\)
Good's theorem\(\displaystyle \mathbb{E}_e\Bigl[\max_a\mathbb{E}\bigl[u(a)\mid e\bigr]\Bigr]\ \ge\ \max_a\mathbb{E}\bigl[u(a)\bigr]\)

Try it

Lab 33 · Kelly's fraction, Allais's choices and Good's theorem

Simulate a thousand bettors staking a fixed fraction of their wealth on a 60% coin and compare the median fortune with the growth rate g(f); then check that no utility of a million makes expected utility pick Allais's common choices, and that free information never hurts an expected-utility maximizer.

Figure produced by Lab 33: Kelly's fraction, Allais's choices and Good's theorem
Produced by the lab below, seed 0, in 0.2 s.
python -m videos.philosophy.labs 33 needs numpy, scipy, matplotlib · download lab33.py · source on GitHub
Kelly fraction f* = 2p - 1                           0.2
f = 0.1: median log10 wealth                         +6.45   (1000 g(f) / ln 10 = +6.53; log10 of the mean +8.6; below 1% of the stake: 0)
f = 0.2: median log10 wealth                         +8.57   (1000 g(f) / ln 10 = +8.74; log10 of the mean +17.0; below 1% of the stake: 0)
f = 0.4: median log10 wealth                         -1.43   (1000 g(f) / ln 10 = -1.06; log10 of the mean +33.4; below 1% of the stake: 457)
f = 0.6: median log10 wealth                         -37.31   (1000 g(f) / ln 10 = -36.70; log10 of the mean +49.2; below 1% of the stake: 1000)
utilities of a million that give 1A and 2B under EU  0 of 201
risk-weighted utility, r(p) = p^2, u(1M) = 0.8       1A 0.8000  1B 0.7861  2A 0.0097  2B 0.0100
value of a free test in 1000 random problems         negative in 0, positive in 282, smallest 0.000000

Maximizing expected wealth says stake everything; the typical bettor is governed by the growth rate g(f), which peaks at 2p - 1 and turns negative past about twice that. Allais's common choices contradict expected utility for every utility function, not for some.
The code (83 lines; it asserts its own result)
"""Lab 33: bet a thousand fortunes at four Kelly fractions, and test Allais's choices against every utility."""

import math

import numpy as np

from videos.coursekit import labs
from explainer.philosophy.reasoner import decision as dec

TITLE = "Kelly's fraction, Allais's choices and Good's theorem"
GOAL = ("Simulate a thousand bettors staking a fixed fraction of their wealth on a 60% coin and compare the median "
        "fortune with the growth rate g(f); then check that no utility of a million makes expected utility pick "
        "Allais's common choices, and that free information never hurts an expected-utility maximizer.")
TASKS = [
    "Bet half the Kelly fraction (f = 0.1) and twice it (f = 0.4). Compare the growth rates and the spread of the "
    "final fortunes, and say why practitioners bet a fraction of Kelly.",
    "In dec.reu, replace r(p) = p**2 by r(p) = p. Does the risk-weighted agent still show Allais's pattern, and "
    "why not?",
    "Change the coin to p = 0.52. What is the Kelly fraction now, and how many bets does the median bettor need "
    "to double her money?",
]


def run(seed=0):
    lab = labs.Lab()
    p, bets, paths = 0.6, 1000, 1000
    fractions = (0.1, 0.2, 0.4, 0.6)
    k = dec.kelly(p=p, bets=bets, paths=paths, fractions=fractions, seed=1956 + seed)
    g = lambda f: p * math.log1p(f) + (1 - p) * math.log1p(-f)  # noqa: E731
    lab.row("Kelly fraction f* = 2p - 1", f"{k['f_star']}")
    medians = {}
    for f in fractions:
        r = k["by_f"][str(f)]
        theory = bets * g(f) / math.log(10)
        step_sd = math.sqrt(p * (1 - p)) * (math.log1p(f) - math.log1p(-f))
        se = 1.2533 * step_sd * math.sqrt(bets) / math.sqrt(paths) / math.log(10)   # s.e. of a median, in log10
        medians[f] = r["median_log10"]
        lab.row(f"f = {f}: median log10 wealth", f"{r['median_log10']:+.2f}   (1000 g(f) / ln 10 = {theory:+.2f}; "
                f"log10 of the mean {r['mean_log10_of_mean']:+.1f}; below 1% of the stake: {r['ruined']})")
        assert abs(r["median_log10"] - theory) < 4 * se + 0.05, "the typical fortune grows at the rate g(f)"
    assert medians[0.2] == max(medians.values()), "the Kelly fraction has the best typical outcome"
    assert k["by_f"]["0.6"]["ruined"] > 0.95 * paths and k["by_f"]["0.6"]["mean_log10_of_mean"] > 40, \
        "at three times Kelly nearly everyone is ruined while expected wealth explodes"
    assert g(0.4) < g(0.2) / 4 and g(0.6) < 0, "growth is about zero near twice Kelly and negative beyond"

    al = dec.allais()
    lab.row("utilities of a million that give 1A and 2B under EU", f"{al['both_ok']} of {al['grid']}")
    lab.row("risk-weighted utility, r(p) = p^2, u(1M) = 0.8", "  ".join(f"{n} {v:.4f}" for n, v in al["reu"].items()))
    assert al["both_ok"] == 0, "EU(1A) - EU(1B) = EU(2A) - EU(2B) for every utility"
    for u1 in np.linspace(0, 1, 11):
        u = {0: 0.0, 1: float(u1), 5: 1.0}.get
        d1 = dec.eu(dec.ALLAIS["1A"], u) - dec.eu(dec.ALLAIS["1B"], u)
        d2 = dec.eu(dec.ALLAIS["2A"], u) - dec.eu(dec.ALLAIS["2B"], u)
        assert abs(d1 - d2) < 1e-12 and abs(d1 - (0.11 * u1 - 0.10)) < 1e-12
    assert al["reu_pattern"], "risk-weighted utility does represent the common choices"

    good = dec.good_theorem(problems=1000, seed=1967 + seed)
    lab.row("value of a free test in 1000 random problems", f"negative in {good['negative']}, positive in "
            f"{good['positive']}, smallest {round(good['min_voi'], 6) + 0.0:.6f}")
    assert good["negative"] == 0 and good["positive"] > 100, "Good's theorem"
    lab.note = ("Maximizing expected wealth says stake everything; the typical bettor is governed by the growth "
                "rate g(f), which peaks at 2p - 1 and turns negative past about twice that. Allais's common "
                "choices contradict expected utility for every utility function, not for some.")

    fig, ax = labs.figure(2, size=(11.5, 4.4))
    fs = np.array([c[0] for c in k["g_curve"]])
    ax[0].plot(fs, [bets * c[1] / math.log(10) for c in k["g_curve"]], color=labs.BLUE,
               label="theory: 1000 g(f) / ln 10")
    ax[0].plot(fractions, [medians[f] for f in fractions], "o", color=labs.GOLD, label="median of 1000 bettors")
    ax[0].axvline(k["f_star"], color=labs.GREEN, ls="--", label="f* = 2p - 1")
    ax[0].axhline(0, color=labs.MUTED, lw=1)
    ax[0].set(title="Typical growth against the fraction staked", xlabel="fraction of wealth staked, f",
              ylabel="log10 of median wealth after 1000 bets")
    ax[0].legend(loc="lower left")
    t = np.arange(0, bets, 20)
    for f, color in zip(fractions, (labs.BLUE, labs.GREEN, labs.ORANGE, labs.RED)):
        for j, path in enumerate(k["by_f"][str(f)]["sample"][:3]):
            ax[1].plot(t, path, color=color, lw=1, alpha=0.85, label=f"f = {f}" if j == 0 else None)
    ax[1].axhline(0, color=labs.MUTED, lw=1)
    ax[1].set(title="Three fortunes at each fraction", xlabel="bets placed", ylabel="log10 wealth")
    ax[1].legend(loc="lower left")
    lab.fig = fig
    return lab

Now change it

  1. Bet half the Kelly fraction (f = 0.1) and twice it (f = 0.4). Compare the growth rates and the spread of the final fortunes, and say why practitioners bet a fraction of Kelly.
  2. In dec.reu, replace r(p) = p**2 by r(p) = p. Does the risk-weighted agent still show Allais's pattern, and why not?
  3. Change the coin to p = 0.52. What is the Kelly fraction now, and how many bets does the median bettor need to double her money?

Problems, with solutions

Try each problem before opening its solution.

  1. Show that the money pump needs only strict cyclic preference, not completeness.

    Solution

    Suppose \(A \succ B\), \(B \succ C\) and \(C \succ A\), and nothing else is assumed about the agent's preferences. Holding \(A\), she will pay a small sum \(\varepsilon\) to trade it for \(C\), since she strictly prefers \(C\); then \(\varepsilon\) to trade \(C\) for \(B\); then \(\varepsilon\) to trade \(B\) for \(A\). She ends where she began, \(3\varepsilon\) poorer, and the cycle can repeat. Each step uses only one of the three strict preferences; nothing requires her to compare any other pair of options, so completeness plays no part.

  2. Prove that g(f) = p log(1+f) + (1−p) log(1−f) is concave, and find where it crosses zero.

    Solution

    \(g'(f) = p/(1 + f) - (1 - p)/(1 - f)\) and \(g''(f) = -p/(1 + f)^2 - (1 - p)/(1 - f)^2 < 0\) on \((-1, 1)\), so \(g\) is strictly concave. It is zero at \(f = 0\), has its maximum where \(g' = 0\), at \(f^* = 2p - 1\) (Kelly's stake), and, for \(p > 1/2\), crosses zero once more at some \(f_0 > f^*\), beyond which betting shrinks wealth. There is no closed form for \(f_0\); for \(p = 0.6\), \(f^* = 0.2\) and \(f_0 \approx 0.389\), the "about 0.39" of the betting chapter in Part 16.

  3. For which u($1M) does REU with r(p) = p² give the Allais pattern? (About 0.33 to 0.83.)

    Solution

    Measure money in millions of dollars and set \(u(0) = 0\), \(u(5) = 1\), \(u(1) = u\). REU ranks outcomes from worst up and weights each improvement by \(r\) of the probability of getting at least that much. 1A: \(u\). 1B: \(r(0.99)\,u + r(0.10)(1 - u) = 0.9801u + 0.01(1 - u)\). 2A: \(r(0.11)\,u = 0.0121u\). 2B: \(r(0.10) = 0.01\). Choosing 1A needs \(u > 0.9701u + 0.01\), so \(u > 0.334\); choosing 2B needs \(0.01 > 0.0121u\), so \(u < 0.826\). For \(0.334 < u < 0.826\) the risk-weighted agent has the Allais pattern, which no expected-utility agent can have.

  4. At what accuracy does a two-boxer's average equal a one-boxer's, in the simulation?

    Solution

    The opaque box holds 1,000,000 when one-boxing was predicted, and the clear box always holds 1,000. With accuracy \(a\), a one-boxer averages \(1{,}000{,}000\,a\) and a two-boxer \(1{,}000 + 1{,}000{,}000(1 - a)\). They are equal when \(2{,}000{,}000\,a = 1{,}001{,}000\), so \(a = 0.5005\). Any predictor even slightly better than that makes one-boxers richer on average, which the evidential decision theorist takes as decisive and the causal decision theorist does not.

  5. Draw Good's envelope for two acts, and find a test with value exactly zero.

    Solution

    Plot each act's expected utility as a straight line in the probability \(p\) of the state; Good's envelope is the upper envelope, the maximum of the two lines: a convex, V-shaped curve with its kink where the lines cross, at \(p^*\). A free test moves \(p\) to one of several posteriors whose average is the prior. Its value is the average of the envelope at the posteriors minus the envelope at the prior, never negative by convexity (Jensen). It is exactly zero when every posterior lies on the same side of \(p^*\) as the prior, so the test cannot change the decision: for example, with acts crossing at \(p^* = 0.6\), prior 0.3, and a test whose posteriors are 0.2 and 0.4.

  6. Show that no proper prior makes every amount equally likely to be the smaller envelope.

    Solution

    Let the smaller amount \(S\) have prior \(\pi\) on amounts \(x\), with the larger \(2S\), and suppose seeing \(x\) always leaves even odds on being the smaller. Seeing \(x\) arises from \(S = x\) (you hold the smaller, probability \(\pi(x)/2\)) or \(S = x/2\) (\(\pi(x/2)/2\)), so even odds requires \(\pi(x) = \pi(x/2)\) for every \(x\). Then \(\pi\) is constant along each chain \(\ldots, x/4, x/2, x, 2x, 4x, \ldots\), which has infinitely many members; a positive constant gives infinite total probability and zero gives none. So no proper prior does it, and the "switch for an expected gain of a quarter" argument assumes a prior that does not exist.

Notes and sources

About this partfrom its README

Part 33 of Philosophy, Built (series plan, syllabus), the first part of Act VII, Value: what it is to choose well, from preferences to Newcomb's problem. Bernoulli (1738) and the theory of rational choice. Preferences: completeness and transitivity; the small-improvement argument against completeness (de Sousa 1974; Chang 2002; Aumann 1962); a money pump, built (15 trades, 15 cents, back where it started); ordinal utility; revealed preference tested on data (Samuelson 1938; Afriat 1967): a shopper whose two weeks violate GARP, with Afriat's efficiency index 0.917. The St Petersburg game (1713, 1738) played a million times (averages 6.4 after ten, 12.51 after a thousand, 24.64 after a million), Bernoulli's log utility (expected utility 2, worth 4 ducats), Menger (1934). The von Neumann–Morgenstern theorem (1944): axioms, the construction of u, and parallel indifference lines in the Marschak–Machina triangle (slope 1.5 for a middle utility of 0.6). Allais (1953): for every one of 201 utilities of a million, expected utility picks the risky option in both pairs or the safe one in both, never the common 1A and 2B; the pairs drawn as parallel segments of slope 10, and the fanning-out the common choices need (Machina 1982). Savage (1954): states, acts, consequences, the sure-thing principle, and Savage's own tickets. Ellsberg (1961): no single probability for any of the 61 possible urns fits the common choices; maxmin expected utility (Gilboa and Schmeidler 1989) does. Risk-weighted expected utility (Buchak 2013) with r(p) = p²: 1A 0.8 over 1B 0.7861, 2B 0.01 over 2A 0.0097. Prospect theory (1979, 1992): the value and weighting functions, the fourfold pattern (certainty equivalents 9.98, 76.85, −8.26, −83.12) and the Asian disease problem (1981), whose flip prospect theory predicts (105.9 against 93.55; −353.15 against −438.53); rank-dependent utility (Quiggin 1982). The Kelly criterion (1956): f* = 2p − 1, the growth curve, a thousand simulated fortunes at four fractions (median 10^6.4 at f = 0.1, 10^8.6 at the Kelly 0.2, 457 ruined at 0.4, all 1000 ruined at 0.6, where expected wealth is 10^49), Samuelson's objection, Thorp, fractional Kelly and Shannon. The Pasadena game (Nover and Hájek 2004): the natural order sums to ln 2 = 0.69314, two-to-one to (3/2) ln 2 = 1.03972 (Riemann's rearrangement theorem); weak and relative expectations (Easwaran 2008; Colyvan 2006). Newcomb's problem (Nozick 1969) at every accuracy (the tie at 0.5005), ten thousand simulated players (one-boxers average $906,219, two-boxers $102,620; Lewis 1981), and its Price List with the PhilPapers 2020 shares (two boxes 39%, one box 31%). Evidential against causal decision theory (Jeffrey 1965; Gibbard and Harper 1978; Lewis 1981; Joyce 1999): the smoking lesion (EDT abstains, CDT smokes), Egan's psychopath button (2007; CDT presses, EDT refrains), death in Damascus and ratifiability, and the Wall's thirty-third brick. Policies: Parfit's hitchhiker (1984), the prisoner's dilemma against a twin (Lewis 1979; cooperation wins evidentially above r = 5/7), functional decision theory (Yudkowsky and Soares 2017) and its critics (Schwarz 2018; MacAskill 2019). Dynamic choice: Ulysses and the sirens; naive, sophisticated and resolute choosers (McClennen 1990); hyperbolic against exponential discounting, with a reversal at nine days (Strotz 1956; Ainslie 1975); Hammond (1988) and Machina (1989). Good's theorem (1967), drawn as a convex envelope (0.722 against 0.6 for an 80% forecast) and checked on 2000 random problems (569 helped, none hurt); Buchak's risk-weighted counterexample and the off-switch game (Hadfield-Menell et al. 2017). The two envelopes (Kraitchik 1953): a proper prior makes switching gain exactly 0 on average; Broome's prior (1995) makes it gain at every amount, because the expected amount is infinite.

The worked model results are computed by the Reasoner's new module explainer/philosophy/reasoner/decision.py (with prop for the Price List), tested in tests/philosophy/test_decision.py and cached by compute.py.

Chapter notes
# Scene What it establishes Computed on screen
0 Hook Bernoulli (1738); four questions; the plan. —
1 Preferences completeness, transitivity; de Sousa (1974), Chang (2002), Aumann (1962); Samuelson (1938), Afriat (1967). a money pump; GARP and the efficiency index
2 StPetersburg N. and D. Bernoulli (1713, 1738); Menger (1934). a million games; log utility
3 VNM von Neumann and Morgenstern (1944); Marschak; Machina. parallel lines in the triangle
4 Allais Allais (1953); Kahneman and Tversky (1979); Machina (1982). 201 utilities; the fanning-out, zoomed
5 Savage Savage (1954): the sure-thing principle; the tickets. —
6 Ellsberg Ellsberg (1961); Gilboa and Schmeidler (1989). 61 urns; maxmin expected utility
7 Risk Buchak (2013); Kahneman and Tversky (1979, 1992); Quiggin (1982); Tversky and Kahneman (1981). risk-weighted utility; the fourfold pattern; the Asian disease
8 Kelly Kelly (1956); Samuelson; Thorp (1962); Shannon. the growth curve; 1000 fortunes at four fractions
9 Pasadena Nover and Hájek (2004); Riemann; Easwaran (2008); Colyvan (2006). two orders of the same series
10 Newcomb Nozick (1969); Lewis (1981); the Price List. any accuracy; 10 000 players
11 EDTCDT Jeffrey (1965); Gibbard and Harper (1978); Lewis (1981); Joyce (1999); Eells (1982); Egan (2007); the Wall's thirty-third brick. the lesion; the button; Damascus
12 FDT Parfit (1984); Lewis (1979); Yudkowsky and Soares (2017); Schwarz (2018); MacAskill (2019). acts against policies; the twin's dilemma
13 Dynamic McClennen (1990); Strotz (1956); Ainslie (1975); Hammond (1988); Machina (1989). three choosers; a preference reversal
14 Good Good (1967); Buchak (2010); Hadfield-Menell et al. (2017). the envelope; 2000 problems; a counterexample
15 Envelopes Kraitchik (1953); Nalebuff (1989); Broome (1995). a proper prior; Broome's prior
16 Outro recap; the Reasoner's module; the Wall; problems; payoffs; references. —
Notes

The Allais fanning-out is drawn in two zoomed panels at one scale, because the segments 1A–1B and 2A–2B have slope 10 in the triangle: the common choices need indifference lines steeper than that near 1A and flatter near 2A. The Newcomb survey shares are PhilPapers 2020 target faculty, accept or lean towards (Bourget and Chalmers 2023). The Asian disease percentages (72% of 152; 78% of 155) are those Tversky and Kahneman report; the prospect values are computed with their 1992 parameters.

Companion material in this repository

The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
  1. Preferences: completeness, transitivity; the money pump, built.
  2. Expected utility: Bernoulli and the St Petersburg paradox (1738); log utility; Menger's super-St Petersburg.
  3. The von Neumann–Morgenstern theorem: the axioms and the construction of u; proof sketch. Indifference curves are parallel lines in the Marschak–Machina triangle (Simplex).
  4. The Allais paradox (1953): the fanning-out in the triangle, drawn; Kahneman and Tversky's data (cited).
  5. Savage (1954): acts, states, consequences; the sure-thing principle; subjective probability from preference.
  6. Ellsberg (1961): ambiguity aversion; maxmin EU (Gilboa and Schmeidler 1989).
  7. Risk-weighted EU (Buchak 2013): r(p) over the decumulative distribution; Allais accommodated.
  8. Prospect theory: value function and probability weighting; industry and behavioral economics.
  9. The Kelly criterion: maximize E[log wealth], derived; simulated growth vs ruin; how industry uses it in betting, portfolio sizing and fractional Kelly.
  10. The Pasadena game (Nover and Hájek 2004): expectation undefined.
  11. Newcomb's problem (Nozick 1969). Built: a predictor with accuracy p; one-box and two-box payoffs computed.
  12. Evidential vs causal decision theory: Jeffrey's desirability; Lewis and Joyce's causal expected utility via imaging; the smoking lesion; death in Damascus; ratifiability.
  13. Functional decision theory (Yudkowsky and Soares 2017), transparent Newcomb, Parfit's hitchhiker; and the critiques.
  14. Dynamic choice: sequential consistency; Ulysses and the sirens; resolute vs sophisticated choice (McClennen).
  15. The value of information: Good's theorem (1967), proved: free information never hurts an EU maximizer; when it fails (non-EU agents, Buchak; Newcomb-like cases).
  16. The two-envelope paradox: the hidden improper prior, computed.
  17. Recap and Problems.

Built: reasoner.decision (EU and RDU calculators; Machina triangle; Kelly simulator; Newcomb predictor; EDT vs CDT engine on decision graphs; value-of-information checker). Wall: Allais and Ellsberg (no EU representation of common preferences); Newcomb (EDT and CDT disagree, each with counterexamples). Price List: the Newcomb cluster (dominance; maximize expected value; the predictor is reliable; the box contents are fixed), with PhilPapers 2020 shares. Visuals: parallel indifference lines in the triangle vs fanned Allais lines; Kelly wealth paths fanning on a log scale; the Newcomb boxes with the predictor's record. References: Peterson; Savage, The Foundations of Statistics; Jeffrey, The Logic of Decision; Joyce, The Foundations of Causal Decision Theory; Buchak, Risk and Rationality; Gilboa, Theory of Decision under Uncertainty; Ahmed, Evidence, Decision and Causality.

Build the film

python -m videos.philosophy.philosophy33.compute        # the part's numbers, into .cache/philosophy33
python tools/build.py philosophy33                  # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py philosophy33 Hook   # one chapter, silent, with a contact sheet

Scenes: videos/philosophy/philosophy33. Setup: see the course page. Source of these notes: the README and the scenes' narration.

Build it
python -m videos.philosophy.philosophy33.compute       # every computed item (seconds; .cache/philosophy33)
python tools/build.py philosophy33 -q l                # 480p preview
python tools/build.py philosophy33                     # 1080p30 -> renders/philosophy33.mp4
python tools/qa_scene.py philosophy33 Newcomb          # one chapter, silent, with a contact sheet