EEconomics, Built

Act II · Choosing

Part 5 of 68

What People Want

Principles and the majorstarts at this level39 min of film16 chaptersprerequisites: none

Can you tell what someone wants from what they buy, and what does "rational" assume?

The part opens with three weeks of Bo's receipts from the Island market, two of which contradict each other, and with the road from Jevons's marginal utility (1871) through Edgeworth, Pareto and Hicks and Allen to Paul Samuelson's note of 1938, which proposed to drop the last vestiges of utility and keep only what can be observed: choices. The viewer chooses on eleven budget lines of fish and coconuts. Tastes are built as a ranking (complete, transitive, continuous; the money pump punishes cycles), utility as a label (Debreu's representation; the lexicographic order no number can represent; the MRS as what survives relabelling), and the shapes of wanting from complements to substitutes through the CES family. The best bundle sets the MRS equal to the price ratio, and the multiplier is the value of a dollar; corners, a bulk price that makes demand jump at $20.49 of income, and the EITC's first kink, where only the self-employed bunch (Saez 2010), show where tangencies fail. After an intermission on a century of the American basket, revealed preference takes over: WARP, SARP and GARP; four islanders tested; Afriat's theorem and the utility his linear programme builds. The viewer's sheet is scored; random choosers fail on 97.5% of tries on these lines; children, students and 1,182 Dutch adults mostly pass, and the more consistent hold more wealth; America's spending, 1929-2025, passes a test that has no power within decades. Varian's bounds and a forecast from consistency alone; what rationality does not assume (selfishness, calculation, even a human chooser) and Becker's random households; a consistency dial; McFadden's BART forecast; a logit that recovers the value of time; and a frontier on random utility, scanner data and the consistency of a language model.

What you need. School algebra, and calculus from chapter 5 (a derivative and a Lagrange multiplier, explained on screen). The revealed-preference chapters need only inequalities; chapter 12 uses a logistic curve.

Hook
Samuelson, 1938: can wants be read from purchases?
Ideas, models and mathematics
preference axioms, utility representation, indifference maps, budget sets, Lagrange's method, revealed preference, Afriat's theorem tested on real choices, what rationality does and does not assume
Agora gains
a consumer; a revealed-preference tester
Play it
are your own choices consistent?

What you will be able to do

Principles and the major

  • Find the best bundle on a budget for Cobb-Douglas, perfect substitutes and perfect complements, including corner solutions, and explain why the MRS equals the price ratio at an interior optimum.
  • Test a short list of purchases for WARP and GARP by hand, and compute Afriat's efficiency index for a two-choice contradiction.
  • Explain what rationality assumes (consistency) and what it does not (selfishness, calculation).

Graduate

  • Derive demand and the multiplier with Lagrange's method, show demand is homogeneous of degree zero, and find CES demand and its elasticity of substitution.
  • State Afriat's theorem, write its inequalities as a linear programme, and construct the rationalizing utility; compute Varian's bounds on an indifference curve.
  • Compute a test's power against random choice, and explain why aggregate data rarely violate GARP.

Research

  • Explain random utility and its revealed-preference test (McFadden and Richter; Kitamura and Stoye), and measures of the severity of violations (money pump, minimum cost).
  • Design a set of budgets to maximize a test's power, and say what it trades away.

Practice

  • Estimate a value of time (or willingness to pay) from discrete choices with a logit, with a standard error.
  • Read bunching at a kink as a measure of response, and say what the bunchers can adjust.

Contents

Each chapter has a home level. Choose a track to see what to read and watch: Principles and the major 34 min · Graduate 36 min · Research 39 min · Practice 36 min.

  1. 0Can you tell what someone wants from what they buy?Principles and the major3 min
  2. 1Play it: eleven budgetsPrinciples and the major1 min
  3. 2Preferences as a rankingPrinciples and the major2 min
  4. 3Utility as a labelPrinciples and the major2 min
  5. 4The shapes of wantingPrinciples and the major2 min
  6. 5The budget and the best bundlePrinciples and the major2 min
  7. 6Corners and kinksPrinciples and the major3 min
  8. Intermission: a century of the American basketPrinciples and the major
  9. 7Revealed preferencePrinciples and the major4 min
  10. 8The test on dataPrinciples and the major4 min
  11. 9Recovering preferencesPrinciples and the major2 min
  12. 10What rationality does not assumePrinciples and the major2 min
  13. 11The Dials: how consistent are people?Principles and the major2 min
  14. 12In practice: reading wants from choicesPractice2 min
  15. 13Frontier: random utility and machines that chooseResearch3 min
  16. Recap, problems, and the road aheadAll tracks3 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.

Can you tell what someone wants from what they buy?Principles and the major3 min

Here are three weeks of a man's shopping. Bo buys fish and coconuts at the Island market, and spends the same thirty-six dollars every week. Prices change from week to week, and so do his purchases. What can you tell about what Bo wants? Does he like fish? More than coconuts? And a stranger question: is he consistent? Could any single set of tastes have produced these three choices? By the end of this part you'll be able to answer that from a receipt, and you'll know exactly what the answer means.

For most of its history, economics answered with a theory of the inside of people's heads. In 1871 Stanley Jevons explained value by utility, and by the utility of the last unit bought: marginal utility. Francis Edgeworth drew the first indifference curves in 1881, and by 1906 Vilfredo Pareto had seen that only the ranking mattered: better, worse, or the same, with no need to measure how much. In 1934 John Hicks and Roy Allen rebuilt the theory of demand on that ranking alone. Each step asked less about what goes on inside people.

Then, in 1938, a twenty-two-year-old graduate of the University of Chicago, then at Harvard, went further. Paul Samuelson proposed to build the theory of the consumer from what can actually be observed: the choices people make, at the prices and incomes they face. He wrote of dropping off the last vestiges of the utility analysis. If choices obey a few rules of consistency, perhaps tastes can be read off them, and nothing inside anyone's head needs to be assumed. Historians now argue about how far he really meant to go. But the programme he started would, thirty years later, produce a test that runs on a grocery receipt.

So this part asks: can you tell what someone wants from what they buy? What does it mean to call a choice rational, and what does that not assume? Can a list of purchases be inconsistent, and if so, by how much? And how much of a person's tastes can you recover from the list?

Economics, Built. Part five: what people want. This part opens Act Two, on choosing. You'll choose a bundle on eleven budgets yourself, and keep your answers. We'll build preferences, utility and the shapes they take. We'll find the best bundle on a budget, including the corners and kinks real budgets have, and the tax credit thousands of Americans bunch at. Then revealed preference, from Samuelson to Afriat, and your own consistency score. And finally what rationality does and doesn't assume, how consistent children, students, Dutch households and even a language model are, and what the frontier is doing with it.

What it does: Bo's receipts: $36 a week at prices (4, 3), (2, 4), (6, 2), bundles (3, 8), (6, 6), (4, 6); Jevons (1871), Edgeworth and Pareto (1881–1906), Hicks and Allen (1934); Samuelson (1938), "dropping off the last vestiges of the utility analysis"; the question; the title; Act II; objectives

1Play it: eleven budgetsPrinciples and the major1 min

Before any theory, a game. You'll go shopping eleven times at the Island market, with sixty dollars each time. On the first trip, fish and coconuts both cost ten dollars, so you can buy six fish, or six coconuts, or any mix on this line. Pick a point on the line: say how many fish you'd buy, and the rest of the money goes on coconuts. On each trip the prices change, so the line changes. There's no right answer. The only question, which we'll come back to in chapter eight, is whether your eleven answers fit together.

Here are all eleven. Each line is one trip. The number at the bottom is the most fish you could buy, and the number on the left the most coconuts. Some trips make fish cheap, some make coconuts cheap, some make everything dear. Pause the film, and on each line write down how many fish you'd buy. Take your time, and buy what you'd actually want. Keep the sheet. Chapter eight will score it.

What it does: $60 a trip; the first line, 6 fish or 6 coconuts; the eleven lines (12 or 3, 4 or 9, ... 6 or 7), chosen so that 97.5% of random choosers violate GARP; write down how many fish on each; a countdown

2Preferences as a rankingPrinciples and the major2 min

Start with what a taste is, as economics uses the word. It's a ranking. Give someone any two bundles, say four fish and two coconuts against two fish and five coconuts, and they can say which they'd rather have, or that they don't mind. That's completeness. If they'd rather have A than B, and B than C, they'd rather have A than C. That's transitivity. And a tiny change in a bundle makes only a tiny change in where it ranks. That's continuity. Notice what's missing. Nothing says why. The ranking can come from hunger, habit, generosity or faith. Economics takes it as given, and asks only that it hang together.

Put the ranking in the plane of fish and coconuts. Take bundle A, four of each. If more is better, everything up and to the right of it is better. Everything down and to the left is worse. The other two corners trade fish for coconuts, and only the person can say how they rank. Somewhere through those corners runs the line of bundles exactly as good as A: an indifference curve. A complete, transitive, continuous ranking fills the plane with them, and they never cross.

Why insist on transitivity? Because without it, you can be robbed politely. Here's a trader whose tastes go round in a circle: he'd rather have cloth than fish, coconuts than cloth, and fish than coconuts. He holds a fish. Offer him the cloth for his fish and one coin, and he takes it. Offer the coconut for the cloth and a coin. Then the fish for the coconut and a coin. He's back where he started, holding the same fish, three coins poorer, and happy to go round again. Philosophers call this the money pump; Donald Davidson, John McKinsey and Patrick Suppes set it out in 1955. Real people do sometimes have cycles. Markets, which keep offering the next trade, are hard on them.

What it does: Completeness, transitivity, continuity; nothing about why; better and worse corners around a bundle; an indifference curve; the money pump: cloth over fish, coconuts over cloth, fish over coconuts, a coin a swap, 30 coins to 18 in four laps (Davidson, McKinsey and Suppes, 1955)

3Utility as a labelPrinciples and the major2 min

If tastes are only a ranking, what is utility? In 1954 Gérard Debreu proved that a complete, transitive and continuous ranking can always be described by a number: a utility function that gives better bundles bigger numbers. Here is one person's map of indifference curves, labelled by the product of fish and coconuts: four, sixteen, thirty-six. Label them instead with logarithms, and the numbers change. Or cube the product, and they change again. But the curves don't move, and the person chooses exactly the same things. The number is a label. Only its order means anything: bigger is better, and nothing else. Economists call such utility ordinal.

Continuity isn't a technicality. Here's a ranking that lacks it. Someone ranks bundles the way a dictionary ranks words: more fish is always better, however many coconuts it costs, and coconuts only break ties. That's complete, and transitive. But no two different bundles are ever equally good, so there are no indifference curves, only points. Try to number them. Every bundle with four fish needs a bigger number than every bundle with two, so each count of fish needs its own stretch of numbers, and the fish counts between two and four need theirs too. There aren't enough numbers to go round. The lexicographic order has no utility function. Continuity is what rules it out.

What survives the relabelling? The marginal rate of substitution: how many coconuts a person would give up for one more fish, the ratio of the two marginal utilities. With the product as utility, it's y over x. Cube the product, and each marginal utility changes, but the threes and the extra powers cancel in the ratio: still y over x. At four fish and two coconuts, this person would trade half a coconut for one more fish. That rate of trade is something a choice can reveal. The size of a marginal utility, by itself, is not.

What it does: Debreu (1954); one map labelled xy (4, 16, 36), log x + log y, (xy)³ (64, 4,096, 46,656); ordinal utility; the lexicographic order, complete and transitive, with no utility function; the MRS, y/x under both labels; half a coconut for a fish at (4, 2)

4The shapes of wantingPrinciples and the major2 min

Most people's curves have a particular shape. Here are two bundles this person likes equally: lots of coconuts and little fish, or the other way round. Their average, a bit of each, lies above the curve: it's better than either extreme. Tastes like that are called convex, and their indifference curves bow toward the origin. Convexity has a meaning you can feel: the more fish you already have, the fewer coconuts you'd give up for another one. The slope of the curve, the marginal rate of substitution, falls as you move along it.

Four shapes do most of the work in economics. Cobb–Douglas tastes, where a person always spends the same share of their money on each good, whatever the prices. Perfect substitutes: straight lines, for goods that are interchangeable at a fixed rate, like two brands of the same salt. Perfect complements: right angles, for goods used in fixed proportions, like left and right shoes; an extra left shoe is worth nothing. And quasilinear tastes, where one good acts like money: every curve is the same curve shifted up, so a richer person buys no more of the other good. It's the shape behind consumer surplus, in Part 2.

The first three are members of one family. Its utility has a single parameter, sigma, the elasticity of substitution: how much the ratio of fish to coconuts a person buys responds to the rate at which they trade. With sigma near zero, the curves are right angles: complements. As sigma rises, the corners soften. At exactly one, the family becomes Cobb–Douglas. And as sigma grows large, the curves flatten into straight lines: substitutes. Economists call it CES, constant elasticity of substitution. Kenneth Arrow, Hollis Chenery, Bagicha Minhas and Robert Solow introduced it in 1961 for machines and workers. One number to say how replaceable one thing is by another: it will return for trade, for capital and labour, and for robots.

What it does: Convexity: (1.8, 8.9) and (8, 2) equally good, their average (4.9, 5.4) better; a falling MRS; Cobb–Douglas, perfect substitutes, perfect complements, quasilinear; the CES family as σ runs from 0.1 to 20 (Arrow, Chenery, Minhas and Solow, 1961)

5The budget and the best bundlePrinciples and the major2 min

Tastes are half of a choice. The other half is what a person can afford. Bo has 60 dollars; fish cost 4 dollars and coconuts 3. Everything he can afford is this triangle, and the bundles that use all his money lie on its edge, the budget line. Its slope is the price of fish in coconuts: the rate at which the market lets him trade one for the other. If fish gets cheaper, the line swings out along the fish axis. If Bo gets more money, it moves out without turning.

Now put the two halves together. Here are three of Bo's indifference curves. Slide along his budget line. Near the coconut end, each step toward fish raises his utility. Past a certain point it starts to fall. The best bundle is where the budget line just touches the highest curve it can reach: 9 fish and 8 coconuts. There the curve and the line have the same slope: Bo's rate of trade equals the market's. If they differed, say Bo valued a fish at two coconuts while the market charged one and a third, he'd gain by buying another fish and fewer coconuts, and he'd keep going until the two rates met.

The same answer comes out of algebra, by a method of Joseph-Louis Lagrange. Add the budget to the utility with a multiplier, lambda, and set the derivatives to zero. The conditions say the last dollar spent on fish buys the same extra utility as the last dollar spent on coconuts, and that common amount is lambda. Lambda has a meaning of its own. Give Bo one more dollar, and his utility rises by 0.143, exactly lambda. It is the value of loosening the constraint, a shadow price. Shadow prices will come back whenever something scarce has no market price: a firm's capacity, a country's pollution permits, your time.

What it does: Bo's $60, fish $4, coconuts $3; the budget set and line, its slope −4/3; cheaper fish and more money; three indifference curves; sliding along the line; the best bundle, 9 fish and 8 coconuts, where MRS = 4/3; Lagrange: λ = 0.143, the utility of one more dollar

6Corners and kinksPrinciples and the major3 min

The tangency rule has exceptions, and they matter. Chidi treats coconuts and fish as perfect substitutes: to him a coconut is always worth 1.2 fish. His indifference curves are straight lines. At the market a coconut costs 1.67 fish. So he spends everything on fish, and buys no coconuts at all: a corner solution. At a corner, his rate of trade doesn't equal the market's. He'd like to trade even further, but he can't buy fewer than zero coconuts. Most people buy none of most goods in the shop, so corners are the rule, not the exception.

Kinks come from the seller's side too. The coconut seller offers a bulk price: two dollars each for the first six, one dollar each after that. Bo's budget line now bends outward at the sixth coconut. With sixteen dollars, Bo stays below the bend and buys four. With twenty-eight, the cheap coconuts beyond the bend win, and he buys eleven. Follow him as his income rises. His coconut purchases grow smoothly, until, at about twenty dollars and fifty cents, they jump, from about five to more than seven. No income at all would make him buy six. A budget that bends outward makes choices jump: whole quantities are never chosen. Volume discounts, phone plans and two-for-one offers all have this shape.

Governments make kinks deliberately. The American earned income tax credit pays low earners a subsidy on what they earn. In 2008, for a parent of one child, each dollar earned up to eight thousand, five hundred and eighty brought thirty-four cents of credit. Then the credit stopped growing, and further on it was withdrawn at sixteen cents a dollar. At the first kink, the reward for earning one more dollar drops from a dollar thirty-four to one dollar. Anyone with some freedom over their earnings, and a taste for leisure, will stop there. Simulate four thousand earners. If no one can adjust, there's no pile at the kink. With an elasticity of a quarter, a few percent gather there; with an elasticity of one, about one in seven. In 2010 Emmanuel Saez looked at decades of tax returns, and found the pile. But it was made almost entirely of the self-employed, who report their own income, with an implied elasticity near one. Wage earners, whose employers report for them, showed none. The size of the pile at a kink measures how much people respond. And who piles up tells you what they can adjust: often the paperwork, not the work. One more clue points the same way. Our simple model also piles people up at the second kink, where the credit starts to be withdrawn. Saez found no pile there. The first kink is special: it's the lowest income that collects the whole credit, exactly where someone reporting their own income would aim.

What it does: Chidi's perfect substitutes: a coconut worth 1.2 fish, costing 1.67: all fish; the bulk price ($2 for the first 6 coconuts, then $1): 4 coconuts at $16, 11 at $28, a jump from 5.1 to 7.3 at $20.49 of income; the EITC (one child, 2008): +34% to $8,580, flat to $15,740, −16% after; 4,000 simulated earners: 0.1%, 4.2% and 14.6% at the kink for elasticities 0, 0.25 and 1; Saez (2010): bunching only among the self-employed, none at the second kink

Intermission: a century of the American basketPrinciples and the major

This chapter has no narration to read.

7Revealed preferencePrinciples and the major4 min

Back to Bo's receipts. Is he consistent? In week one fish cost four dollars and coconuts three. He bought three fish and eight coconuts. But the bundle he bought in week three, four fish and six coconuts, would have cost him only thirty-four dollars at week one's prices. He could have had it, and chose otherwise. So, as Samuelson put it, he revealed that he prefers week one's bundle. In week three fish cost six and coconuts two, and he bought four fish and six coconuts. Yet week one's bundle would have cost him thirty-four dollars then. Each bundle was chosen when the other was affordable and cheaper. No single ranking can do that. This is Samuelson's weak axiom of revealed preference, and Bo breaks it. How badly? Shrink week one's budget to thirty-four dollars of its thirty-six, and week three's bundle is no longer affordable then: the contradiction disappears. At worst Bo wasted five and a half percent of a week's money.

Two choices can contradict each other directly. More can contradict each other in a chain. Samuelson's weak axiom only forbids the pair. In 1950 Hendrik Houthakker added the strong axiom: if one bundle is revealed better than a second, and the second better than a third, the third must not be revealed better than the first. Sidney Afriat's version, which Hal Varian named the generalized axiom, GARP, allows for ties, so someone indifferent between two bundles isn't accused of anything. With eleven choices there are many possible chains. A computer finds them all with an algorithm from graph theory, Stephen Warshall's, in a fraction of a second.

Now let four islanders shop on the eleven lines you saw in Play it. Bo spends about sixty percent on fish, with a small random tremble each time. His choices pass. Trembles that small don't create a contradiction. Ana always buys fish and coconuts one for one. Her choices pass. Chidi spends everything on whichever good is cheaper for him: all corners, and they pass too. Rational choices can look very different from each other. Dara, on a distracted day, picks a point at random on each line. Her choices fall into cycles: 8 of her eleven choices are caught in contradictions. Yet her efficiency index is 0.95: shrinking her budgets by under five percent removes them. Keep that in mind. It means a high score alone doesn't prove much.

Why does GARP matter so much? Because of a theorem Sidney Afriat proved in 1967. If a list of choices satisfies GARP, there's a utility function that explains every one of them, and if it doesn't, there isn't. To find it, look for numbers, one utility level and one multiplier per choice, satisfying a set of inequalities. That's a linear programme: a computer solves Bo's hundred and ten inequalities instantly. The solution builds a utility function out of flat pieces. Here are three of its indifference curves through Bo's choices. On every one of his eleven budgets, the bundle he chose is the best he could afford, by this utility. So Samuelson's programme succeeds. Rationality, in the economist's sense, is nothing more and nothing less than consistency, and consistency can be checked on a receipt.

What it does: Weeks 1 and 3: each bundle cost $34 at the other's prices: WARP fails; shrinking week 1's budget to 94.4% removes it; WARP (1938), SARP (Houthakker 1950), GARP (Afriat 1967; Varian 1982); Warshall's algorithm; Bo, Ana and Chidi pass, Dara (random) fails, 8 of 11 choices in cycles, index 0.955; Afriat's inequalities, the LP, the constructed utility and three of its indifference curves

8The test on dataPrinciples and the major4 min

Time to score your sheet. Here's how, using Dara's distracted day as the example. For every pair of lines, ask: was the choice you made on one line affordable on the other? Your money and that line's prices tell you. If it was, and you chose something else, you revealed that you preferred what you chose. Those are the gold squares. A contradiction is two choices each revealed better than the other, directly or through a chain. Those are red. If there's no red, your choices are consistent and your score is one. If there is, shrink every budget a little at a time until the red disappears: the share you had to keep is Afriat's efficiency index. The course site does this for you as you choose.

What's a good score? Dara scored above ninety-five percent while choosing at random, so we need a yardstick. In 1987 Stephen Bronars suggested one: let a computer choose at random on the same lines, thousands of times. On our eleven lines, 98 percent of random choosers violate GARP. The lines were chosen to cross a lot, so that contradictions have room to appear. Their average index is 0.79, and about one in ten scores above ninety-five percent. So if your eleven choices are consistent, that's real evidence about you. With only a few lines, or lines that hardly cross, even random choice would usually pass, and passing would mean nothing.

Now real people. In 2001 William Harbaugh, Kate Krause and Timothy Berry gave children in Eugene, Oregon, eleven choices between bags of potato chips and boxes of juice. Seven-year-olds made about four contradictions on average; eleven-year-olds about two; college students no fewer than the eleven-year-olds. Random choice, drawn the way children chose, would make more than eight. A quarter of the seven-year-olds, and nearly two thirds of the older children and students, made none at all. Rational choice, in this sense, develops early, and quickly. With fifty budgets each, Berkeley students in 2007 averaged an efficiency of 0.954. When two of the same researchers, with two colleagues, ran the experiment online with 1,182 Dutch adults, the average was 0.88. The poorer, the less educated and the old were somewhat less consistent. The striking finding: people who were more consistent in the experiment had more wealth, fifteen to nineteen percent more per standard deviation, even comparing people with the same income, education and age. Consistency in a laboratory game seems to measure something that matters outside it.

Can a whole country pass? Treat American spending as one consumer's choices: ninety-seven years, from 1929 to 2025, fifteen kinds of spending, each with its price index. No violations of GARP. Not one. Is that impressive? A random chooser on the same budgets would fail every time. Even someone who simply copied another year's spending shares would fail 89 percent of the time. But look within a decade or two, and the test goes blind: copying another year's shares never fails, because incomes grow so steadily that this year's budget almost always buys more of everything than last year's. Budgets that never cross can't contradict each other. The lesson travels well beyond economics: a test passed is evidence only if the test could have been failed.

What it does: Scoring a sheet: the affordability matrix, gold and red; 5,000 random choosers on the eleven lines: 97.5% violate GARP, average index 0.79, 9.5% above 0.95 (Bronars 1987); Harbaugh et al. (2001): 4.3, 2.1 and 2.0 violations at 7, 11 and 21, random about 8.3; none at all: 26%, 62%, 65%, random 2%; Choi et al. (2007): 0.954; Choi et al. (2014): 1,182 Dutch adults, 0.881, gaps by income, education and age, 15–19% more wealth per SD; America 1929–2025: 0 violations; random choosers fail 100%, copied shares 89%, within decades 0%

9Recovering preferencesPrinciples and the major2 min

If choices are consistent, how much do they tell us about someone's tastes? Hal Varian showed how to draw the answer. Take one of Bo's choices: about four fish and two coconuts. Everything he could have afforded when he chose it, he revealed to be no better. So is everything affordable on any budget where he chose something that bundle beats. Shade all of it red: revealed worse. Anything he chose that is revealed better, and, if his tastes are convex, any average of those, and anything with more of both, is at least as good: green, revealed better. His true indifference curve, which we planted and the data never saw, has to run through the gap between them. And it does. With eleven choices the gap is wide. With hundreds, from the same person over the years, Richard Blundell, Martin Browning and Ian Crawford showed that the bounds can become tight enough to measure how people respond to prices, with no functional form assumed at all.

The same logic forecasts. Send Bo on a twelfth trip, where his money buys ten fish or five coconuts. Which choices on this line would keep all twelve consistent? Only those between 3 and 7 fish. Anything else would contradict something he's already done. He buys 6: inside the band, as it must be. No utility function was assumed, no curve fitted. The forecast comes from consistency alone. It's wide, but it's honest about what eleven receipts can and can't tell you.

What it does: Bo's bundle (3.8, 2.2): revealed-worse budgets and the revealed-better hull; the planted curve between them (Varian 1982; Blundell, Browning and Crawford 2008); a twelfth trip (10 fish or 5 coconuts): only 3.0 to 7.3 fish keep him consistent; he buys 6

10What rationality does not assumePrinciples and the major2 min

This changes what the word rational means. In economics it means consistent, and nothing more. So it doesn't assume several things it's often accused of. It doesn't assume selfishness. In 2002 James Andreoni and John Miller let a hundred and seventy-six people divide money between themselves and a stranger, with the price of giving varied from budget to budget. Over ninety-eight percent chose consistently, and only a quarter were purely selfish. Generosity can be perfectly rational. It doesn't assume calculation. Seven-year-olds are mostly consistent, and so are capuchin monkeys trading tokens for food, as Keith Chen, Venkat Lakshminarayanan and Laurie Santos found in 2006. It doesn't even assume a human. In experiments summarized by John Kagel, Raymond Battalio and Leonard Green, most rats and pigeons, pressing levers or pecking keys for food and drink, bought less of something when its price rose, even when they were given enough extra income to afford the old amount. And it doesn't assume tastes never change: only that the choices being compared were made by the same tastes.

If rationality is so little, does it explain anything? Gary Becker asked the question from the other side in 1962. Imagine households that don't maximize anything. On the Island, two thousand of them each spend a random share of twelve dollars on fish, whatever fish costs. Follow one of them as the price changes, and their demand jumps about with no pattern at all. But average them, and demand slopes neatly down: on average half the money goes on fish, so when fish costs more, fewer fish are bought. The budget does the work. So a falling demand curve tells you almost nothing about whether people are rational. Becker's point was that much of economics follows from budgets alone. What rationality adds is consistency, and that is the thing to test.

What it does: Not selfishness (Andreoni and Miller 2002: 176 people, over 98% consistent, a quarter selfish); not calculation (children; capuchins, Chen et al. 2006); not a human (87% of rats and 81% of pigeons cut back after a compensated price rise); not fixed tastes; Becker (1962): 2,000 random islanders, mean demand 6/p

11The Dials: how consistent are people?Principles and the major2 min

This part enters a new dial: how consistent people's choices are, measured by Afriat's efficiency index. First the yardsticks: random choice scores about 0.65 on Harbaugh's eleven sets and 0.60 on fifty budgets. Children of seven score 0.93, eleven-year-olds 0.96, and students 0.94. Berkeley students with fifty budgets averaged 0.954. Dutch adults online, 0.88; and the human subjects of a 2023 study, choosing food, 0.96. The status: settled within a range. People are far more consistent than chance, children included, but not perfectly, and how consistent varies from person to person in ways that go with wealth. The studies differ in their budgets, so compare a score only with random choice on the same budgets.

Called it? Revealed preference has a famous success. In the early 1970s the San Francisco Bay Area was building BART, a new rapid-transit system. The official projection said it would carry about fifteen percent of work trips. Daniel McFadden built a model from a survey of individual commuters' choices between car, bus and train, and predicted 6.3 percent. In 1975 BART carried 6.2 percent. McFadden's model treated each choice as revealing a ranking with a part the analyst can see, like travel time and cost, and a part they can't. That idea, random utility, won him the Nobel prize in 2000, and it's the frontier of this part.

What it does: The new dial: 0.93, 0.96, 0.94 (Harbaugh et al.), 0.954 (Choi et al. 2007), 0.881 (Choi et al. 2014), 0.963 (Chen et al. 2023, people, food), against random choice at 0.648 and 0.60; settled within a range; Called it?: McFadden's BART forecast, 6.3% against the official 15%; actual 6.2% (1975): right

12In practice: reading wants from choicesPractice2 min

Who does this for a living? Market researchers, with conjoint surveys: people choose between product profiles, and the trade-offs they make put a price on each feature. Courts have used them to value a single patented feature of a phone. Recommender teams, who treat every click, play and purchase as revealed preference. Netflix offered a million dollars in 2006 to anyone who could improve its recommendations by ten percent; a team claimed it in 2009. Demand analysts, who model which car or cereal or airline people pick. Part 43 builds their engine. Transport planners, who value time from the routes and modes people choose, as McFadden did. Pricing teams, running price experiments. And welfare economists, for the hardest question: when someone's choices contradict each other, which ones reveal what they really want? Douglas Bernheim and Antonio Rangel proposed an answer in 2009; Part 45 takes it up.

Here is the transport planner's job in miniature. The Island's ferry company surveys 2,000 trips. Each time, a traveller chooses between the slow ferry and a fast one that saves ten, twenty or thirty minutes, for an extra fare. The more it costs, the fewer take the fast ferry; the more time it saves, the more do. A logit model, McFadden's random utility, fits a curve to each group. Where a curve crosses one half, travellers are split evenly: that extra fare is what the time saved is worth to the typical traveller, about 5 dollars for twenty minutes. The ratio of the two coefficients gives the value of time: 14.85 dollars an hour, against the fifteen we planted. Road and rail projects are judged by numbers like this: most of the benefit of a new bridge is the time it saves.

What it does: Market researchers (conjoint), recommender teams (the Netflix Prize), demand analysts, transport planners, pricing teams, welfare economists (Bernheim and Rangel 2009); the ferry survey: 2,000 trips, a logit, $4.95 for 20 minutes, the value of time $14.85 an hour (s.e. 0.34) against a planted $15

13Frontier: random utility and machines that chooseResearch3 min

The frontier starts with an awkward fact. Give Bo the same budget forty times, and he won't choose the same bundle forty times. He spends about sixty percent on fish, give or take seven points. A strict test of consistency treats every wobble as a contradiction. But people aren't machines, and two choices from the same budget can both be sincere. Random utility models choice as a probability: each choice drawn from a population of possible rankings. Henry Block and Jacob Marschak set it out in 1960, and McFadden turned it into the logit models of the last chapter. It has its own revealed-preference test, found by McFadden and Marcel Richter, and since 2018 Yuichi Kitamura and Jörg Stoye have shown how to run it on ordinary household surveys, where each household is seen only once.

In real shopping data, with thousands of goods and prices that change every week, almost every household violates GARP somewhere. So the frontier measures how much it matters. In 2011 Federico Echenique, Sangmok Lee and Matthew Shum asked how much money a clever trader could pump out of a household through its own cycles. In 2016 Mark Dean and Daniel Martin measured the cheapest way to break every cycle, and found that in supermarket scanner data violations are common, but cheap. And when choices do conflict, Douglas Bernheim and Antonio Rangel proposed keeping only the comparisons on which all of a person's choices agree. The question has moved from whether anyone is rational to how much it costs them not to be.

And now the choosers include machines. In 2023 Yiting Chen, Tracy Xiao Liu, You Shan and Songfa Zhong gave GPT the same kinds of budgets people get: for risk, for time, for sharing with others, and for food. Its efficiency index was 0.997 or higher in every domain. Their human subjects scored between 0.96 and 0.985. But its scores moved with the wording of the question: how you ask changes how consistent it looks. For a machine, consistency comes cheap. The harder question, as these systems begin to shop and book and bargain for people, is whose wants their choices reveal.

What is not known? How to tell a sincere change of mind from a mistake, when we see each person choose only a few times. Whether being consistent in a laboratory game makes people wealthier, or only goes with whatever does. The tools are the ones in this part: Afriat's linear programme, power against random choice, and random-utility tests. And a research problem you can start today. Our eleven lines catch 97.5 percent of random choosers. Which eleven budgets catch the most, and do they also catch small inefficiencies in people who are nearly consistent? The problem set says where to begin.

What it does: Bo on one line forty times: 61% on fish, give or take 7; random utility (Block and Marschak 1960; McFadden 1974; McFadden and Richter 1990; Kitamura and Stoye 2018); the money pump index (Echenique, Lee and Shum 2011), the minimum cost index (Dean and Martin 2016), welfare without consistency (Bernheim and Rangel 2009); GPT's index 0.997–0.999 against people's 0.963–0.985 (Chen et al. 2023), sensitive to the wording; what is not known; the research problem

Recap, problems, and the road aheadAll tracks3 min

So: can you tell what someone wants from what they buy? Yes, as far as their choices are consistent. If they satisfy GARP, some utility function explains every one of them, and the choices themselves bound how the person trades one thing for another. They won't tell you why the person wants it, and they only speak where the budgets crossed.

Part five in eleven lines. Bo's receipts contradicted each other, by about six percent of a week's money. Tastes are a ranking, and rankings that go round in circles get pumped. Utility is a label: only its order counts, and the rate of trade survives any relabelling. Four shapes, and the CES family between them, cover most tastes. The best bundle sets the rate of trade equal to the price ratio, and the multiplier is the value of a dollar. Bulk prices make demand jump, and tax credits make people bunch. On our eleven lines random choosers almost always fail; children and adults mostly pass. America's spending passes too, but the test can't see inside a decade. Rationality assumes neither selfishness nor calculation, and budgets alone make demand slope down. And a logit read the value of time from two thousand ferry choices.

The problems. Bo's receipts, scored by hand; a Cobb–Douglas consumer and her multiplier; a CES consumer when a price doubles; Ana and Chidi at a corner; the income at which a bulk price makes Bo jump; how many earners bunch at a credit's kink; why Becker's random households have a demand curve; and a research problem, marked with a star, on designing the most powerful eleven budgets. Full solutions are in the part's notes.

The reading for this part: the consumer chapters of Hal Varian's intermediate textbook; the first three chapters of Mas-Colell, Whinston and Green for the graduate version; Kreps, and Jehle and Reny; and Chambers and Echenique's monograph on revealed preference. Then the papers, from Samuelson's note to the experiments, the kinks and the machines.

This part asked what a single choice reveals. The next asks what happens when a price changes. In 2006 Robert Jensen and Nolan Miller subsidized rice for poor households in Hunan, in China, and many of them bought less rice, not more. A good whose demand rises with its price, long thought a textbook curiosity, was there in the data, and the equation that explains it was written by Eugen Slutsky in 1915. Part six: demand.

Where it goes next. Part 6 follows a price change through to what people buy and how well off they are (Slutsky, Giffen goods, consumer surplus); Part 7 adds risk and time; the discrete-choice models return in Part 43, inconsistent choices and welfare in Part 45, taxable income in Part 41, and preference experiments on platforms in Part 61.

Key results

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

The tangency\(\displaystyle \frac{\partial u/\partial x}{\partial u/\partial y} = \frac{p_x}{p_y},\qquad\allowbreak \lambda = \frac{\partial u/\partial x}{p_x}\)
Cobb-Douglas demand\(\displaystyle x = \frac{a\,m}{p_x},\qquad\allowbreak y = \frac{(1-a)\,m}{p_y}\)
CES\(\displaystyle \frac{x}{y} = \left(\frac{a}{1-a}\cdot\frac{p_y}{p_x}\right)^{\sigma}\)
GARP\(\displaystyle x_i\,R\,x_j \;\Rightarrow\; p_j\cdot x_j \le p_j\cdot x_i\)
Afriat's inequalities\(\displaystyle U_j \le U_i + \lambda_i\,p_i\cdot(x_j - x_i),\quad\allowbreak \lambda_i > 0\)
Bunching at a kink\(\displaystyle z \in \left[\tfrac{K}{(1+s)^{e}},\,K\right] \;\Rightarrow\; z^{*} = K\)

Try it

Lab 5 · What people want: demand, revealed preference and its power

Check CES demand against a search along the budget line and its homogeneity; test the Island's four choosers for GARP, rationalize the consistent ones with Afriat's linear programme and compute the others' efficiency; measure how the power of the test against random choice grows with the number of budgets; run GARP on America's spending since 1929; check the bunching window at the EITC's kink; and recover a value of time from simulated ferry choices, with its interval's coverage.

Figure produced by Lab 5: What people want: demand, revealed preference and its power
Produced by the lab below, seed 0, in 3.6 s.
python -m videos.economics.labs 5 needs numpy, scipy, matplotlib · download lab05.py · source on GitHub
CES (a = 0.4, sigma = 0.6) at prices 2, 5 and $100            x = 17.605, y = 12.958; search x = 17.605
bo: Afriat's index, rationalizable?                           1.000, yes
ana: Afriat's index, rationalizable?                          1.000, yes
chidi: Afriat's index, rationalizable?                        1.000, yes
dara: Afriat's index, rationalizable?                         0.695, no
power against random choice, 5 / 11 / 25 / 50 random budgets  16% / 76% / 100% / 100%
power on the eleven Play-it lines                             97.6%
America 1929-2025, 15 goods: GARP violations                  0
EITC kink, elasticity 0.25: share at the kink (window)        6.3% (6.1%)
EITC kink, elasticity 1: share at the kink (window)           22.0% (21.8%)
value of time, 200 surveys: mean, 95% coverage                $15.01 an hour, 95%

Demand found by the tangency matches a search; consistent choosers are rationalized by Afriat's programme exactly when they pass GARP; the test's power grows with the number of budgets; America's aggregate spending passes; the share at a kink matches the bunching window; and a logit recovers the value of time with honest intervals.
The code (122 lines; it asserts its own result)
"""Lab 5: demand from tastes, consistency from choices, power, kinks, and a value of time from a logit."""

import numpy as np

from videos.coursekit import labs
from explainer.economics import data
from explainer.economics.agora import consumer as cs
from explainer.economics.island import truths

TITLE = "What people want: demand, revealed preference and its power"
GOAL = ("Check CES demand against a search along the budget line and its homogeneity; test the Island's four "
        "choosers for GARP, rationalize the consistent ones with Afriat's linear programme and compute the others' "
        "efficiency; measure how the power of the test against random choice grows with the number of budgets; run "
        "GARP on America's spending since 1929; check the bunching window at the EITC's kink; and recover a value of "
        "time from simulated ferry choices, with its interval's coverage.")
TASKS = [
    "Give Bo a tremble four times as large. How often do his eleven choices now fail GARP, and what is his typical "
    "efficiency index? Compare with random choosers on the same lines.",
    "Replace the eleven Play-it lines by eleven lines that never cross (each a scaled copy of the first). What is the "
    "power of the test now, and why?",
    "In the ferry survey, let travellers' value of time differ (half value it at $10 an hour, half at $20). What does "
    "the logit estimate, and what does it mean?",
]


def _lines(T):
    L = np.array(T["budgets"]["lines"], float)
    return np.column_stack([60 / L[:, 0], 60 / L[:, 1]]), np.full(len(L), 60.0)


def run(seed=0):
    lab = labs.Lab()
    T = truths(5)
    rng = np.random.default_rng(500 + seed)

    # CES demand against search, and homogeneity of degree zero
    pref = cs.Preference("ces", a=0.4, sigma=0.6)
    x, y = pref.demand(2.0, 5.0, 100.0)
    xs = np.linspace(0, 50, 50001)
    best = cs.best_on_frontier(pref, xs, (100 - 2 * xs) / 5)
    assert abs(best["x"] - x) < 0.01
    assert np.allclose(pref.demand(2.0, 5.0, 100.0), pref.demand(4.0, 10.0, 200.0))
    lab.row("CES (a = 0.4, sigma = 0.6) at prices 2, 5 and $100", f"x = {x:.3f}, y = {y:.3f}; search x = {best['x']:.3f}")

    # the four choosers on the eleven lines
    P, m = _lines(T)
    spec = T["choosers"]
    res = {}
    for who in ("bo", "ana", "chidi", "dara"):
        s = spec[who]
        if s["kind"] == "random":
            X = cs.random_on_budgets(P, m, rng)
        else:
            pr = cs.Preference(s["kind"], a=s.get("a", 0.5), b=s.get("b", 1.0))
            X = np.array([pr.demand(px, py, mm) for (px, py), mm in zip(P, m)])
        sol = cs.afriat(P, X)
        res[who] = (cs.ccei(P, X), sol is not None)
        lab.row(f"{who}: Afriat's index, rationalizable?", f"{res[who][0]:.3f}, {'yes' if res[who][1] else 'no'}")
        assert res[who][1] == (res[who][0] >= 1.0)

    # power against random choice, by the number of random budgets
    powers = {}
    for n in (5, 11, 25, 50):
        Pn = rng.uniform(0.5, 3.0, (n, 2))
        powers[n] = cs.bronars(Pn, np.full(n, 30.0), reps=400, seed=seed + n)["power"]
    lab.row("power against random choice, 5 / 11 / 25 / 50 random budgets",
            " / ".join(f"{100 * powers[n]:.0f}%" for n in (5, 11, 25, 50)))
    b11 = cs.bronars(P, m, reps=1000, seed=seed + 1987)["power"]
    lab.row("power on the eleven Play-it lines", f"{100 * b11:.1f}%")
    assert powers[50] > powers[5] and b11 > 0.9

    # America as one consumer
    d = data.pce_by_type()
    v = cs.garp_violations(d["prices"], d["quantities"])
    lab.row("America 1929-2025, 15 goods: GARP violations", str(len(v)))

    # the EITC's first kink: the bunching window
    n = rng.uniform(4000, 14000, 40000)
    for e in (0.25, 1.0):
        z = cs.earnings_choice(n, e)
        share = np.mean(np.abs(z - 8580) < 5)
        window = (8580 - 8580 / 1.34 ** e) / 10000
        lab.row(f"EITC kink, elasticity {e:g}: share at the kink (window)", f"{100 * share:.1f}% ({100 * window:.1f}%)")
        assert abs(share - window) < 0.01

    # the ferry: the value of time and its interval's coverage
    f = T["ferry"]
    hits, ests = 0, []
    for k in range(200):
        r = np.random.default_rng(10_000 + k + seed)
        saves = r.choice(np.array(f["saves"], float), f["trips"])
        extra = r.uniform(0, f["max_extra"], f["trips"])
        vv = f["scale"] * (f["value_of_time"] / 60 * saves - extra)
        fast = (r.random(f["trips"]) < 1 / (1 + np.exp(-vv))).astype(float)
        Xd = np.column_stack([saves, extra])
        fit = cs.logit_fit(Xd, fast)
        a, bb = fit["b"]
        p = 1 / (1 + np.exp(-Xd @ fit["b"]))
        cov = np.linalg.inv((Xd * (p * (1 - p))[:, None]).T @ Xd)
        g = np.array([-1 / bb, a / bb ** 2]) * 60
        vot, se = -a / bb * 60, np.sqrt(g @ cov @ g)
        ests.append(vot)
        hits += abs(vot - f["value_of_time"]) <= 1.96 * se
    lab.row("value of time, 200 surveys: mean, 95% coverage", f"${np.mean(ests):.2f} an hour, {100 * hits / 200:.0f}%")
    assert abs(np.mean(ests) - f["value_of_time"]) < 0.3 and 0.9 < hits / 200 < 0.99
    lab.note = ("Demand found by the tangency matches a search; consistent choosers are rationalized by Afriat's "
                "programme exactly when they pass GARP; the test's power grows with the number of budgets; America's "
                "aggregate spending passes; the share at a kink matches the bunching window; and a logit recovers the "
                "value of time with honest intervals.")

    fig, ax = labs.figure(2, size=(11, 4.2))
    ns = [5, 11, 25, 50]
    ax[0].plot(ns, [100 * powers[k] for k in ns], "o-", color=labs.ORANGE, lw=2.2, label="random budgets")
    ax[0].axhline(100 * b11, color="#7BD88F", ls="--", label="the eleven Play-it lines")
    ax[0].set(title="Power against random choice", xlabel="number of budgets", ylabel="% of random choosers caught")
    ax[0].legend()
    ax[1].hist(ests, bins=25, color=labs.BLUE, alpha=0.85)
    ax[1].axvline(f["value_of_time"], color="#7BD88F", lw=2, label="planted $15")
    ax[1].set(title="The value of time, 200 ferry surveys", xlabel="$ an hour", ylabel="surveys")
    ax[1].legend()
    lab.fig = fig
    return lab

Now change it

  1. Give Bo a tremble four times as large. How often do his eleven choices now fail GARP, and what is his typical efficiency index? Compare with random choosers on the same lines.
  2. Replace the eleven Play-it lines by eleven lines that never cross (each a scaled copy of the first). What is the power of the test now, and why?
  3. In the ferry survey, let travellers' value of time differ (half value it at $10 an hour, half at $20). What does the logit estimate, and what does it mean?

Problems, with solutions

Try each problem before opening its solution.

1. Bo's receipts: prices (4, 3), (2, 4), (6, 2); bundles (3, 8), (6, 6), (4, 6); $36 each week. Find every direct revealed preference, the WARP violation, and Afriat's index.

Solution

The cost of each bundle at each week's prices, rows by prices and columns by bundles: (36, 42, 34), (38, 36, 32), (34, 48, 36). So week 1's bundle is directly revealed preferred to week 3's (34 ≤ 36), week 2's to week 3's (32 ≤ 36), and week 3's to week 1's (34 ≤ 36). Weeks 1 and 3 each reveal the other worse: WARP fails. Shrinking week 1's budget to 34/36 = 0.944 of itself (or week 3's to the same share) removes the contradiction, so Afriat's index is 0.944: at worst, 5.6% of a week's money was wasted.

2. u = x^0.6 y^0.4, p_x = 4, p_y = 3, m = 60. Find the best bundle, the MRS there, and λ. Show that doubling every price and income changes nothing.

Solution

Cobb–Douglas spends the shares 0.6 and 0.4: x = 0.6·60/4 = 9, y = 0.4·60/3 = 8. The MRS is (0.6/0.4)(y/x) = 1.5·8/9 = 4/3, the price ratio. λ = (∂u/∂x)/p_x = 0.6·u/(x·p_x) with u = 9^0.6·8^0.4 ≈ 8.585, so λ ≈ 0.143. Doubling p_x, p_y and m leaves m/p_x and m/p_y unchanged, so the demands are unchanged: demand is homogeneous of degree zero in prices and income (λ halves, since a dollar is worth half as much).

3. CES with weights ½ and σ = 2; p_x = 1, p_y = 4, m = 10. Find the bundle. By how much does x/y change if p_y doubles?

Solution

The tangency gives x/y = (p_y/p_x)^σ = 4² = 16, and the budget x + 4y = 10, so y = 0.5 and x = 8. If p_y doubles, x/y = 8² = 64: the ratio rises by 2^σ = 4, which is what an elasticity of substitution of 2 means (a 1% change in the relative price changes the relative quantity by 2%). The new bundle is x = 80/9 ≈ 8.89, y = 5/36 ≈ 0.139.

4. Ana: u = min(x, y); Chidi: u = x + 1.2y. Fish $6, coconuts $10, $60. What does each buy? Below what coconut price does Chidi switch?

Solution

Ana buys equal amounts: x = y = 60/16 = 3.75. Chidi compares utility per dollar: fish 1/6 ≈ 0.167, coconuts 1.2/10 = 0.12, so he buys only fish, 10 of them. He switches when 1.2/p_y > 1/6, that is when coconuts cost less than $7.20; at exactly $7.20 any split on the budget line is best.

5. Coconuts: $2 each for the first 6, then $1; fish $2; Bo spends half on each. At what income does he jump past the sixth coconut, and from how many to how many?

Solution

Below the bend Bo spends m/2 on coconuts at $2: c = m/4 and x = m/4, so u = √(xc) = m/4. Beyond it, s dollars on coconuts buy c = 6 + (s − 12) = s − 6, and fish x = (m − s)/2; maximizing (m − s)(s − 6) gives s = (m + 6)/2, c = (m − 6)/2, x = (m − 6)/4 and u = (m − 6)/(2√2). The two are equal when m(4 − 2√2) = 24, at m = 24/(4 − 2√2) ≈ $20.49. There he jumps from c = m/4 ≈ 5.1 to c = (m − 6)/2 ≈ 7.2 coconuts: no income makes him buy six. A budget set that is not convex makes demand jump.

6. The EITC subsidizes earnings at 34% up to $8,580. Earners have z = n r^e for a net reward r. With potential earnings n uniform on $4,000–$14,000, what share bunch at the kink when e = 0.25, and when e = 1?

Solution

Below the kink the reward is 1.34, above it 1. Anyone with n·1.34^e > 8,580 but n < 8,580 would like to be above the kink at the subsidy's rate and below it without: they stop at the kink. The window is [8,580/1.34^e, 8,580]: for e = 0.25, [7,975, 8,580], 605/10,000 ≈ 6.1% of earners; for e = 1, [6,403, 8,580], about 21.8%. The share at the kink, divided by the density there, measures the elasticity: that is the logic of Saez's estimate.

7. Becker: each household spends a uniform random share of m on x. Show that market demand is m/(2p) per household, with price elasticity −1, although no household obeys WARP.

Solution

Each household's demand is x = s·m/p with s uniform on [0, 1] drawn afresh on every budget. Averaging over households (or over many budgets), E[x] = E[s]·m/p = m/(2p), so log demand falls one for one with log price: elasticity −1. A single household's choices are random, so on two crossing budgets it chooses each bundle when the other was affordable with positive probability: WARP fails, yet the market demand slopes down. Budgets alone produce the law of demand on average.

8. ★ Design eleven budgets that catch as many random choosers as possible, and also catch Cobb–Douglas choosers with a 5% tremble. Are the two goals in conflict? (Research problem.)

Solution

Solution sketch. Power against random choice grows with the number of budgets and with how often they cross; a greedy search over integer intercepts (this part's lines) reaches about 97.5%. Catching nearly rational choosers is a different goal: their trembles produce violations only where two budgets cross close to their chosen bundles, so the design should place crossings near where such a chooser buys (here, near 60% of spending on fish), which may cost power against random choice spread over the whole line. Start from consumer.bronars and the choosers in videos/economics/econ5/compute.py; score a design by both powers, and search (greedy, simulated annealing, or an integer programme over a grid of lines). Open questions: optimal designs for the CCEI rather than for pass/fail; adaptive designs that choose the next budget from the choices so far (as in Choi et al.'s later work); and designs for random-utility tests.

Notes and sources

Where it comes back

Idea Where
price changes, Slutsky, Giffen goods, consumer surplus Part 6, Demand
choice over risk and time Part 7, Time and Risk
demand estimation with discrete choice (BLP) Part 43, Measuring Market Power
reference dependence, present bias, welfare with inconsistent choices Part 45, Behavioural Economics
the EITC and taxable income Part 41, Taxes
the value of time and of a statistical life Part 18, Social Choice and Welfare; Part 58, Scoring the Bill
experiments on platforms, prices and preferences Part 61, Economics at the Platforms

Sources

Primary texts.

  • P. A. Samuelson, "A Note on the Pure Theory of Consumer's Behaviour", Economica NS 5(17) (1938) 61–71; I. Moscati, "Not a behaviorist: Samuelson's contributions to utility theory in the Harvard years, 1936–1940" (2019).
  • H. S. Houthakker, "Revealed Preference and the Utility Function", Economica NS 17(66) (1950) 159–174.
  • G. Debreu, "Representation of a Preference Ordering by a Numerical Function", in R. M. Thrall, C. H. Coombs and R. L. Davis, eds., Decision Processes (Wiley, 1954).
  • S. N. Afriat, "The Construction of Utility Functions from Expenditure Data", International Economic Review 8(1) (1967) 67–77.
  • H. R. Varian, "The Nonparametric Approach to Demand Analysis", Econometrica 50(4) (1982) 945–973.
  • J. R. Hicks and R. G. D. Allen, "A Reconsideration of the Theory of Value", Economica NS 1 (1934) 52–76 and 196–219.
  • D. Davidson, J. C. C. McKinsey and P. Suppes, "Outlines of a Formal Theory of Value, I", Philosophy of Science 22 (1955) 140–160.

Papers.

  • G. S. Becker, "Irrational Behavior and Economic Theory", Journal of Political Economy 70(1) (1962) 1–13.
  • K. J. Arrow, H. B. Chenery, B. S. Minhas and R. M. Solow, "Capital-Labor Substitution and Economic Efficiency", Review of Economics and Statistics 43(3) (1961) 225–250.
  • S. G. Bronars, "The Power of Nonparametric Tests of Preference Maximization", Econometrica 55(3) (1987) 693–698.
  • W. T. Harbaugh, K. Krause and T. R. Berry, "GARP for Kids", American Economic Review 91(5) (2001) 1539–1545, tables 1–2.
  • J. Andreoni and J. Miller, "Giving According to GARP", Econometrica 70(2) (2002) 737–753.
  • S. Choi, R. Fisman, D. Gale and S. Kariv, "Consistency and Heterogeneity of Individual Behavior under Uncertainty", American Economic Review 97(5) (2007) 1921–1938.
  • S. Choi, S. Kariv, W. Müller and D. Silverman, "Who Is (More) Rational?", American Economic Review 104(6) (2014) 1518–1550.
  • M. K. Chen, V. Lakshminarayanan and L. R. Santos, "How Basic Are Behavioral Biases? Evidence from Capuchin Monkey Trading Behavior", Journal of Political Economy 114(3) (2006) 517–537.
  • J. H. Kagel, R. C. Battalio and L. Green, Economic Choice Theory: An Experimental Analysis of Animal Behavior (Cambridge, 1995), as summarized by Harbaugh et al.
  • E. Saez, "Do Taxpayers Bunch at Kink Points?", American Economic Journal: Economic Policy 2(3) (2010) 180–212.
  • R. Blundell, M. Browning and I. Crawford, "Best Nonparametric Bounds on Demand Responses", Econometrica 76(6) (2008) 1227–1262.
  • D. McFadden, "Conditional Logit Analysis of Qualitative Choice Behavior", in P. Zarembka, ed., Frontiers in Econometrics (1974); "The Path to Discrete-Choice Models", Access 20 (2002); "Economic Choices", American Economic Review 91(3) (2001); D. McFadden and M. K. Richter, "Stochastic Rationality and Revealed Stochastic Preference" (1990).
  • H. D. Block and J. Marschak, "Random Orderings and Stochastic Theories of Responses" (1960).
  • Y. Kitamura and J. Stoye, "Nonparametric Analysis of Random Utility Models", Econometrica 86(6) (2018).
  • F. Echenique, S. Lee and M. Shum, "The Money Pump as a Measure of Revealed Preference Violations", Journal of Political Economy 119(6) (2011); M. Dean and D. Martin, "Measuring Rationality with the Minimum Cost of Revealed Preference Violations", Review of Economics and Statistics 98(3) (2016) 524–534.
  • B. D. Bernheim and A. Rangel, "Beyond Revealed Preference", Quarterly Journal of Economics 124(1) (2009) 51–104.
  • Y. Chen, T. X. Liu, Y. Shan and S. Zhong, "The Emergence of Economic Rationality of GPT", Proceedings of the National Academy of Sciences 120(51) (2023); arXiv 2305.12763.
  • R. Jensen and N. Miller, "Giffen Behavior and Subsistence Consumption", American Economic Review 98(4) (2008) 1553–1577 (for the road ahead).

Textbooks. Varian, Intermediate Microeconomics, chs. 2–7; Mas-Colell, Whinston and Green, Microeconomic Theory, chs. 1–3; Kreps, Microeconomic Foundations I, chs. 1–4; Jehle and Reny, Advanced Microeconomic Theory, ch. 1; Nicholson and Snyder, Microeconomic Theory, chs. 2–4; Chambers and Echenique, Revealed Preference Theory (Econometric Society Monographs, 2016).

About this partfrom its README

Part 5 of a sixty-eight-part course in economics (see the series plan and the syllabus), the first of Act II, Choosing. It asks whether you can tell what someone wants from what they buy, and what "rational" assumes, and answers: you can, as far as the choices are consistent. If they satisfy the generalized axiom of revealed preference, some utility function explains every one of them (Afriat), and the choices bound how the person trades one thing for another (Varian); they say nothing about why, and only speak where the budgets crossed.

It opens with three weeks of Bo's receipts from the Island market, two of which contradict each other, and with the road from Jevons's marginal utility (1871) through Edgeworth, Pareto and Hicks and Allen (1934) to Paul Samuelson's note of 1938, written at twenty-two, which proposed "dropping off the last vestiges of the utility analysis". From there it covers:

  • a game: eleven budget lines of fish and coconuts, $60 each; the viewer writes down a choice on each, kept for chapter 8;
  • preferences as a ranking: completeness, transitivity, continuity; better and worse regions; the money pump (Davidson, McKinsey and Suppes, 1955);
  • utility as a label: Debreu's representation (1954), ordinal utility, the lexicographic order no number can represent, and the marginal rate of substitution as what survives relabelling;
  • the shapes of wanting: convexity, Cobb–Douglas, perfect substitutes and complements, quasilinear tastes, and the CES family between them (Arrow, Chenery, Minhas and Solow, 1961);
  • the budget and the best bundle: the tangency, Lagrange's method, and the multiplier as the value of a dollar;
  • corners and kinks: a corner solution, a bulk price that makes demand jump, and the earned income tax credit's first kink, where (Saez 2010) only the self-employed bunch;
  • an intermission without narration: a century of the American basket, fifteen kinds of spending from 1929 to 2025, under the falling share of food at home as a tune;
  • revealed preference: WARP (Samuelson), SARP (Houthakker), GARP (Afriat, Varian), four islanders tested on the Play-it lines, and Afriat's theorem with the utility its linear programme builds;
  • the test on data: scoring the viewer's sheet, the power of the test against random choosers (Bronars), children, students and Dutch households, and America as one consumer;
  • recovering preferences: Varian's bounds on an indifference curve, and a forecast from consistency alone;
  • what rationality does not assume (selfishness, calculation, even a human chooser), and Becker's random households, whose market demand still slopes down;
  • a new dial (consistency with utility maximization), McFadden's BART forecast as Called it?, the people who read wants from choices for a living and a logit that recovers the value of time, and a frontier chapter on random utility, revealed preference in scanner data, and the consistency of a language model.
What is computed and built

Everything plotted is computed by compute.py from Agora's consumer (explainer.economics.agora.consumer), with the Island's Part 5 truths in explainer.economics.island, or from the Data Room or a transcribed table; the narration states the cached numbers.

  • The Play-it lines (planted): eleven lines of $60, given by the most fish and most coconuts each affords, found by a greedy search over integer intercepts from 3 to 12 for the set on which random choosers most often violate GARP.
  • The islanders (planted): on the eleven lines, Bo is Cobb–Douglas with 60% on fish and a tremble (his share of spending on fish moved by a normal shock with s.d. 6 points), Ana buys fish and coconuts one for one, Chidi values a coconut at 1.2 fish (perfect substitutes), and Dara picks a uniform random point; seed 1938.
  • Revealed preference (consumer): x_i is directly revealed preferred to x_j when p_i·x_i ≥ p_i·x_j; the closure by Warshall's algorithm; GARP violations are pairs with x_i R x_j and p_j·x_j > p_j·x_i; Afriat's index by bisection over the ratios p_i·x_j / p_i·x_i (exact); Houtman–Maks by search; Afriat's inequalities by scipy.optimize.linprog (HiGHS), with the multipliers at least 1, and the utility min_i[U_i + λ_i p_i·(x − x_i)], whose indifference curves are found by bisection.
  • Bronars's power: 5,000 random choosers, each spending a share drawn uniformly from the simplex on every line (seed 1987).
  • The bulk price: Bo, Cobb–Douglas with half on each good, fish at $2, coconuts at $2 for the first 6 and $1 after; the best point on the bent frontier by search, for incomes from $8 to $40; the tie at 6/(1 − 1/√2) = $20.49.
  • The EITC (consumer.eitc, consumer.earnings_choice): the 2008 one-child schedule from Saez (2010), table 1; 4,000 earners with potential earnings lognormal (median $12,000, σ 0.6, seed 2010), each choosing earnings z to maximize z + credit(z) − n/(1 + 1/e)·(z/n)^(1+1/e), so z = n·r^e for a net reward r, on a $10 grid.
  • Becker's households: 2,000, each spending a uniform random share of $12 on fish at prices from $1 to $6.
  • Varian's bounds: for Bo's first choice, the union of the budget sets of the choices it is revealed preferred to, and the monotone convex hull of the choices revealed preferred to it; the forecast scans the twelfth line on a grid of 801 points for choices that keep all twelve consistent with GARP.
  • America as one consumer: per-head quantities are spending per head divided by each category's price index (2017 dollars); random choosers draw shares from the simplex; "copied shares" give each year another year's spending shares at its own budget; windows 1929–40, 1970–85 and 2000–25.
  • The ferry survey (planted): 2,000 trips; the fast ferry saves 10, 20 or 30 minutes for an extra fare uniform on $0–15; utility difference 0.5·(15/60·minutes − fare) plus a logistic shock; the binary logit by Newton's method, the value of time −a/b·60 with a delta-method standard error.
  • The intermission: the fifteen shares of PCE, 1929–2025, one year every 0.40 s; the data melody maps the share spent on food at home to D dorian, one note a year.
  • The score (explainer/economics/score.py): the scissors theme, chapter stings, beds under the pauses, and the close. Synthesized from sines; nothing recorded.
Chapter notes
# Chapter What it does
0 Can you tell what someone wants from what they buy? Bo's receipts: $36 a week at prices (4, 3), (2, 4), (6, 2), bundles (3, 8), (6, 6), (4, 6); Jevons (1871), Edgeworth and Pareto (1881–1906), Hicks and Allen (1934); Samuelson (1938), "dropping off the last vestiges of the utility analysis"; the question; the title; Act II; objectives
1 Play it: eleven budgets $60 a trip; the first line, 6 fish or 6 coconuts; the eleven lines (12 or 3, 4 or 9, ... 6 or 7), chosen so that 97.5% of random choosers violate GARP; write down how many fish on each; a countdown
2 Preferences as a ranking Completeness, transitivity, continuity; nothing about why; better and worse corners around a bundle; an indifference curve; the money pump: cloth over fish, coconuts over cloth, fish over coconuts, a coin a swap, 30 coins to 18 in four laps (Davidson, McKinsey and Suppes, 1955)
3 Utility as a label Debreu (1954); one map labelled xy (4, 16, 36), log x + log y, (xy)³ (64, 4,096, 46,656); ordinal utility; the lexicographic order, complete and transitive, with no utility function; the MRS, y/x under both labels; half a coconut for a fish at (4, 2)
4 The shapes of wanting Convexity: (1.8, 8.9) and (8, 2) equally good, their average (4.9, 5.4) better; a falling MRS; Cobb–Douglas, perfect substitutes, perfect complements, quasilinear; the CES family as σ runs from 0.1 to 20 (Arrow, Chenery, Minhas and Solow, 1961)
5 The budget and the best bundle Bo's $60, fish $4, coconuts $3; the budget set and line, its slope −4/3; cheaper fish and more money; three indifference curves; sliding along the line; the best bundle, 9 fish and 8 coconuts, where MRS = 4/3; Lagrange: λ = 0.143, the utility of one more dollar
6 Corners and kinks Chidi's perfect substitutes: a coconut worth 1.2 fish, costing 1.67: all fish; the bulk price ($2 for the first 6 coconuts, then $1): 4 coconuts at $16, 11 at $28, a jump from 5.1 to 7.3 at $20.49 of income; the EITC (one child, 2008): +34% to $8,580, flat to $15,740, −16% after; 4,000 simulated earners: 0.1%, 4.2% and 14.6% at the kink for elasticities 0, 0.25 and 1; Saez (2010): bunching only among the self-employed, none at the second kink
Intermission: a century of the American basket No narration: the fifteen shares, 1929 to 2025, in one bar; food at home 21.4% → 7.5%, health care 3.0% → 17.6%; real spending per head ×6.3; food's share as a tune; the story so far
7 Revealed preference Weeks 1 and 3: each bundle cost $34 at the other's prices: WARP fails; shrinking week 1's budget to 94.4% removes it; WARP (1938), SARP (Houthakker 1950), GARP (Afriat 1967; Varian 1982); Warshall's algorithm; Bo, Ana and Chidi pass, Dara (random) fails, 8 of 11 choices in cycles, index 0.955; Afriat's inequalities, the LP, the constructed utility and three of its indifference curves
8 The test on data Scoring a sheet: the affordability matrix, gold and red; 5,000 random choosers on the eleven lines: 97.5% violate GARP, average index 0.79, 9.5% above 0.95 (Bronars 1987); Harbaugh et al. (2001): 4.3, 2.1 and 2.0 violations at 7, 11 and 21, random about 8.3; none at all: 26%, 62%, 65%, random 2%; Choi et al. (2007): 0.954; Choi et al. (2014): 1,182 Dutch adults, 0.881, gaps by income, education and age, 15–19% more wealth per SD; America 1929–2025: 0 violations; random choosers fail 100%, copied shares 89%, within decades 0%
9 Recovering preferences Bo's bundle (3.8, 2.2): revealed-worse budgets and the revealed-better hull; the planted curve between them (Varian 1982; Blundell, Browning and Crawford 2008); a twelfth trip (10 fish or 5 coconuts): only 3.0 to 7.3 fish keep him consistent; he buys 6
10 What rationality does not assume Not selfishness (Andreoni and Miller 2002: 176 people, over 98% consistent, a quarter selfish); not calculation (children; capuchins, Chen et al. 2006); not a human (87% of rats and 81% of pigeons cut back after a compensated price rise); not fixed tastes; Becker (1962): 2,000 random islanders, mean demand 6/p
11 The Dials: how consistent are people? The new dial: 0.93, 0.96, 0.94 (Harbaugh et al.), 0.954 (Choi et al. 2007), 0.881 (Choi et al. 2014), 0.963 (Chen et al. 2023, people, food), against random choice at 0.648 and 0.60; settled within a range; Called it?: McFadden's BART forecast, 6.3% against the official 15%; actual 6.2% (1975): right
12 In practice: reading wants from choices Market researchers (conjoint), recommender teams (the Netflix Prize), demand analysts, transport planners, pricing teams, welfare economists (Bernheim and Rangel 2009); the ferry survey: 2,000 trips, a logit, $4.95 for 20 minutes, the value of time $14.85 an hour (s.e. 0.34) against a planted $15
13 Frontier: random utility and machines that choose Bo on one line forty times: 61% on fish, give or take 7; random utility (Block and Marschak 1960; McFadden 1974; McFadden and Richter 1990; Kitamura and Stoye 2018); the money pump index (Echenique, Lee and Shum 2011), the minimum cost index (Dean and Martin 2016), welfare without consistency (Bernheim and Rangel 2009); GPT's index 0.997–0.999 against people's 0.963–0.985 (Chen et al. 2023), sensitive to the wording; what is not known; the research problem
Recap, problems, and the road ahead The answer; eleven lines; problems; reading; Jensen and Miller's rice and Part 6

Companion material in this repository

The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
  1. Hook: Bo's receipts; from Jevons to Hicks and Allen; Samuelson's programme; the question; objectives.
  2. Play it: eleven budget lines, pick a bundle on each (the design of Harbaugh et al. 2001, crossing lines as in Choi, Fisman, Gale and Kariv 2007). Kept for later.
  3. Preferences as a ranking: completeness, transitivity, continuity; the money pump.
  4. Utility as a label: Debreu's representation; ordinal against cardinal; the lexicographic order; the MRS.
  5. Convexity and the marginal rate of substitution; perfect substitutes, complements, Cobb–Douglas, CES.
  6. The budget set; the tangency; Lagrange's method with the multiplier's meaning.
  7. Corner solutions and kinks; non-linear budgets (a bulk price, the EITC's first kink and Saez's bunching).
  8. Intermission: a century of the American basket, as a data melody.
  9. Revealed preference: WARP, SARP, GARP; Afriat's theorem and its inequalities as a linear programme.
  10. The test on data: your eleven choices scored (Afriat's efficiency index); its power against random choice (Bronars 1987); children (Harbaugh et al. 2001), students and Dutch households (Choi et al. 2007, 2014); America as one consumer, 1929–2025.
  11. Recovering preferences: bounds on indifference curves from finite data (Varian 1982), and a forecast.
  12. What rationality does not assume: selfishness, calculation, a human chooser; Becker's irrational consumers (1962) and why demand still slopes down.
  13. Dials (consistency) and Called it? (McFadden's BART forecast). 13. In practice: conjoint studies, recommenders, discrete choice and the value of time. 14. Frontier: stochastic choice and random utility; revealed preference in scanner data; the consistency of a language model.

Agora: consumer: preferences, the constrained optimum (corners and kinks), a GARP tester, Afriat's index and LP, Varian's bounds, Bronars's power, Becker's random consumers, the EITC, a logit. Play it: the eleven budgets; on the site, the same with a live consistency score (no rating of the player). Reading: Samuelson 1938; Houthakker 1950; Debreu 1954; Afriat 1967; Varian 1982; Becker 1962; Bronars 1987; Harbaugh, Krause & Berry 2001; Andreoni & Miller 2002; Choi et al. 2007, 2014; Saez 2010; Blundell, Browning & Crawford 2008; McFadden 1974; Kitamura & Stoye 2018; Chen et al. 2023; MWG chs 1–3; Kreps chs 1–4; Nicholson & Snyder chs 2–4; Jehle & Reny ch 1; Chambers & Echenique, Revealed Preference Theory.

Build the film

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

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

Build it
python -m videos.economics.econ5.compute              # every number (about a minute), into .cache/econ5/
python tools/qa_scene.py econ5 Revealed               # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py econ5 -q l   # the whole part, silent preview
python tools/build.py econ5                           # 1080p30 with narration and the series' computed score
python -m explainer.economics.data --refresh fred     # the data again, with a report of changes
python -m videos.economics.labs 5                     # the lab

The data are frozen extracts in explainer/economics/data/, registered in SOURCES.md: BEA's personal consumption expenditures by type of product (fifteen categories, each a price index and spending, 1929–2025) and the population, from FRED, retrieved on 19 November 2026; data.pce_by_type() turns them into quantities per head. The published results (Harbaugh et al., Choi et al. 2007 and 2014, Andreoni and Miller, Chen et al., Saez, McFadden's BART forecast) are transcribed in explainer/economics/data/tables.py, each with where it was read and the date it was checked.