EEconomics, Built

Act I · The Question

Part 2 of 68

The Scissors

Principles and the majorstarts at this level50 min of film17 chaptersprerequisites: none

What sets a price, and what happens to it when a frost, a tax or the law gets in the way?

The part opens at Purdue in January 1956, where Vernon Smith ran a double auction expecting the competitive model to fail, and watched it converge. Smith's paradox of water and diamonds is dissolved by value at the margin (Jevons, Menger, Walras), and Whately's pearl divers dispose of the labour theory. Demand is built from Ana's cups and three drinkers added sideways, until crowds of 10,000 buyers turn the staircase into a line; supply from a farm's rising costs; and Marshall's scissors join them. In Part 1's pit, four cards fix the band. The viewer plays a lopsided market, where Agora's learning traders find $2.25 to $2.30 but zero-intelligence traders stop at $2.10: zero is not enough (Cliff and Bruten), and Smith's prediction is scored wrong. Elasticity is measured along the Island's fish market and with the midpoint formula on its stormy days; Brazil's black frost of July 1975 cut the world's coffee crop by 16% and raised Arabica 5.7 times, still the real record. After an intermission of sixty-six years of commodity prices, Dupuit's bridges give surplus, a 40-cent tax in the pit falls the same way whoever remits it, a price cap loses 16% of the gains rather than the triangle's 1.5%, and San Francisco's rent control shrank the rental stock. The frontier is pricing by algorithm.

What you need. School algebra. Chapter 6 uses the elasticity of a straight line; the problems use one integral.

Hook
Chamberlin's classroom, 1948, and Vernon Smith's, 1956
Ideas, models and mathematics
the diamond–water paradox and the marginal revolution, demand and supply built from reservation prices, equilibrium and its stability, elasticity, surplus, tax incidence, price ceilings and floors, traders with zero intelligence
Agora gains
a double auction; a market solver
Play it
guess the price before the market finds it

What you will be able to do

Principles and the major

  • Build a market demand curve from buyers' reservation values and a supply curve from sellers' costs, and find the competitive quantity and the band of prices that clears it.
  • Compute an elasticity by the midpoint formula, and say whether spending rises or falls when a price changes.
  • Work out who bears a tax and the deadweight loss it causes, and what a binding price cap or floor costs.

Graduate

  • Derive the elasticity along a straight demand line and the price that maximizes spending.
  • Derive the incidence of a tax on straight lines, and show that it does not depend on who remits it.
  • Compute the loss from a binding price control under efficient rationing and under a lottery.

Research

  • Explain why zero-intelligence traders find the competitive price only in balanced markets, and design a test of how much intelligence convergence needs.
  • State what is open about pricing algorithms and collusion, and propose a simulation that would settle part of it.

Practice

  • Say who pays a proposed excise tax and how its revenue depends on the elasticities.
  • Read a commodity shock from price and quantity data: which curve moved, and a rough short-run elasticity with its caveats.

Contents

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

  1. 0What sets a price?Principles and the major3 min
  2. 1Water and diamondsPrinciples and the major3 min
  3. 2Demand, one buyer at a timePrinciples and the major3 min
  4. 3Supply, and the scissorsPrinciples and the major4 min
  5. 4Play it: guess the pricePrinciples and the major4 min
  6. 5Why it convergesPrinciples and the major4 min
  7. 6ElasticityPrinciples and the major4 min
  8. 7Shifts: a frost in BrazilPrinciples and the major4 min
  9. Intermission: sixty-six years of pricesPrinciples and the major
  10. 8SurplusPrinciples and the major3 min
  11. 9Who pays a tax?Principles and the major4 min
  12. 10Price controlsPrinciples and the major5 min
  13. 11When the picture failsPrinciples and the major1 min
  14. 12The Dials: how much do people respond?Principles and the major2 min
  15. 13In practice: who sets prices for a livingPractice1 min
  16. 14Frontier: prices set by algorithmsResearch2 min
  17. 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.

What sets a price?Principles and the major3 min

In the autumn of 1955, a young economist named Vernon Smith began teaching his first course, the principles of economics, at Purdue University in Indiana. He found it hard to convey the theory to his students, and he had a doubt of his own. Why, he asked himself, or how, could any market approximate a competitive equilibrium? He decided to run an experiment on the first day of the next semester. He knew Edward Chamberlin's classroom market from Harvard, where the prices had come out scattered and wrong. And he planned to give the textbook theory its fairest chance, so that when it failed, as he expected it to, the case against it would be stronger than Chamberlin's.

In January 1956 he carried out his plan, with twenty-two students who knew nothing but their own cards. To his amazement, he wrote, the market converged quickly, to near the price and the quantity the theory predicted. He had made a prediction, and the series keeps score of predictions. We'll score this one when we've seen why it came out the way it did, and whether it was a fluke.

This part is about one question: what sets a price? For a century it was a puzzle. Nothing is more useful than water, and it's nearly free. A diamond is nearly useless, and it's dear. Is a price set by what a thing costs to make, or by how useful it is? Economists argued about that for a hundred years. The answer, when it came, was both, at the margin, and an English economist named Alfred Marshall drew it as a pair of scissors.

Economics, Built. Part two: the scissors. Part one drew the economy as plumbing, with every pipe sealed. This part opens the first two: money flowing from households to firms, and goods and services flowing back. Where the two flows meet is a market, and in every market there is a price. By the end of the part you'll know what sets it, what moves it, and what happens when someone tries to hold it still.

Part two: the scissors. We'll start with the puzzle of water and diamonds, and the idea that solved it: value at the margin. Then we'll build demand from buyers' cards and supply from sellers' costs, and find where they cross. You'll play a lopsided market, and we'll test whether traders with no intelligence at all can find its price. We'll measure how much people respond to a price, and follow a frost in Brazil that moved the price of coffee fivefold. And we'll work out who really pays a tax, and what a price control costs, in the pit and in the data.

What it does: Purdue, 1955: Smith's doubt and his plan, in his own words; January 1956 and his amazement; his prediction, to be scored; water and diamonds; the title; the Tableau's first two pipes open; objectives

1Water and diamondsPrinciples and the major3 min

Adam Smith put the puzzle in 1776. Nothing is more useful than water, he wrote, but it will purchase scarce anything; scarce anything can be had in exchange for it. A diamond, on the contrary, has scarce any value in use, but a very great quantity of other goods may frequently be had in exchange for it. So Smith split value in two. Value in use is how useful a thing is. Value in exchange is what it will buy, which is its price. And the two, it seemed, had nothing to do with each other.

The classical economists who followed Smith looked to the cost side. David Ricardo argued in 1817 that what most goods exchange for is set by the labour it takes to make them; diamonds are dear because finding one takes a great deal of work. Karl Marx built his economics on a version of the same idea fifty years later. But the cost theory has a hole in it, and a churchman named Richard Whately pointed at it. It is not, he said, that pearls fetch a high price because men have dived for them; on the contrary, men dive for them because they fetch a high price. Work spent making something nobody wants gives it no value at all.

The answer came in the 1870s, from three economists working separately: William Stanley Jevons in England, Carl Menger in Vienna and Léon Walras in Lausanne. Their idea was to ask what one more unit is worth, given what you already have. Here is what one more litre of water a day might be worth to you. The first few litres are worth almost anything: they keep you alive. The next ones wash you and cook your food. By the time you have a hundred and fifty litres a day, one more is worth almost nothing; you'd water the garden with it. Smith's value in use is the whole area under the curve, and it's enormous. But a price is paid for one more litre, and it's the height of the curve where you stop. Water is cheap because we have so much of it that the last litre is worth very little.

That dissolves Smith's paradox. Water is so plentiful that the last litre is worth almost nothing, even though water as a whole is worth more than anything. Diamonds are so scarce that the last carat is still wanted badly, even though diamonds as a whole matter very little. A price measures the margin, not the whole. That's the first half of the answer to this part's question, the half that comes from buyers. The other half comes from what it costs to supply one more unit, and that's where Ricardo was right after all.

What it does: Smith's paradox and value in use and in exchange; Ricardo and Marx; Whately's pearl divers; Jevons, Menger and Walras; the value of one more litre, the whole area against the last height; a price measures the margin

2Demand, one buyer at a timePrinciples and the major3 min

Start with one buyer. This is Ana, from the island's new village; she fishes, and sells her catch at the market. Ask her what a cup of coffee a day is worth to her, and the answer depends on how many she has already had. Her first cup is worth four dollars to her. Her second, two fifty. Her third, one twenty, and a fourth only forty cents. Each cup is worth less than the one before. That's the margin again, the same falling curve as the water. Now suppose coffee costs a dollar fifty a cup. Ana buys a cup whenever it's worth more to her than the price. That's two cups; the third isn't worth a dollar fifty to her. Draw her values as steps, and you have her demand curve: at each price, read across to the step, and down to how many cups she buys.

Now three drinkers. Ana, as before; Bo, who values his first cup at three dollars and his second at one fifty; and Chidi, who'll pay five for his first and two for his second. To get the market's demand, take every cup that anyone wants, and line them up from the most valued to the least. Economists say you add the demands sideways: at each price, count the cups. The result is another staircase, with more and smaller steps. At a dollar fifty, the three of them buy 6 cups between them.

With three drinkers the steps are big. Give the market ten buyers, each with a value drawn at random between nothing and six dollars, and draw how many would buy at each price, as a share of all of them. With a hundred buyers the steps shrink. With a thousand, and then ten thousand, the staircase is a smooth line. That's why textbooks draw demand as a curve: it's a staircase with too many steps to see. When the values are spread evenly, as these are, the line is straight, and it hits zero at six dollars, the price nobody will pay.

That gives the law of demand, and both of its reasons. At a lower price, more people's values clear the bar, so more buyers come in. And each buyer goes further down her own staircase: another cup becomes worth buying. Everything else that matters to a buyer, her income, her tastes, the prices of tea and milk, moves the whole curve, and Parts five and six build it from choices. There are exceptions, goods people buy more of when they get dearer, and Part six finds one in the data, among poor households buying rice in China. They are rare, and they need a special kind of poverty.

What it does: Ana's four cups and her staircase; three drinkers added sideways, 6 cups at $1.50; crowds of 10, 100, 1,000 and 10,000 buyers; the line they tend to; the law of demand and its two reasons

3Supply, and the scissorsPrinciples and the major4 min

Supply is built the same way, from the other side of the market. Here is a coffee farm, and the cost of picking and drying one more sack this week. The first sacks are cheap: the best trees, near the road. Then the hillside, and more pickers to hire. The last sacks need overtime, and the worst land on the farm. Each sack costs more than the one before. That's marginal cost, and it usually rises. If coffee fetches two dollars a sack, the farm sells every sack that costs less than that: 3 of them. Draw the costs as steps and you have the farm's supply curve, rising. Add up every farm sideways, as we added the drinkers, and you have the market's supply.

In 1890 Alfred Marshall, at Cambridge, put the two halves together in the book that taught economics to the world for the next fifty years. The cost of production principle and the final utility principle, he wrote, are both parts of the one law of supply and demand; each may be compared to one blade of a pair of scissors. In later editions he put it more sharply. We might as reasonably dispute whether it is the upper or the under blade of a pair of scissors that cuts a piece of paper, as whether value is governed by utility or cost of production.

Now go back to the pit from Part one, with its twenty cards, and ask which of them set the price. The curves cross at six units. Four cards decide where. The sixth buyer, whose card says 2 dollars 30, and the sixth seller, at 2 dollars 20, are the last ones in: they trade, but only just. The seventh buyer, at 2 dollars 10, and the seventh seller, at 2 dollars 40, are the first ones out. The price has to keep the last ones in and the first ones out, and that pins it between 2 dollars 20 and 2 dollars 30. Every other card could change a great deal without moving it. Let the keenest buyer's card rise as high as you like, or the cheapest seller's cost fall to a dollar: they still trade, and the band doesn't move. The price is set at the margin, by the traders who are only just in and only just out.

So here is the answer to the question of the part, in one picture. A price is where what one more unit is worth to the last buyer meets what one more unit costs the last seller. Neither blade cuts alone. Water is cheap because the last litre costs little to bring to you and is worth little when it arrives. Diamonds are dear because the next carat is costly to find and still badly wanted. Smith's paradox was a paradox only for as long as people looked at the whole instead of the margin.

What it does: A farm's rising cost per sack; Marshall's scissors in 1890 and in the fifth edition; the pit's four marginal cards and the band $2.20 to $2.30; the cards that do not matter; both blades

4Play it: guess the pricePrinciples and the major4 min

Smith didn't trust his first result. I thought perhaps, he wrote, that it was an accident of symmetry in the buyer and seller surpluses. In Part one's pit, the buyers' staircase and the sellers' were close to mirror images, and the price landed in the middle. Maybe that's all convergence was: a market that happened to be balanced. So he ran a lopsided one, where the sellers stood to gain far more than the buyers. Let's run one too. This time you're the economist: you get to see everyone's card.

Here are the cards. The ten buyers are all much alike: the keenest will pay up to two sixty, the least keen two fifteen. The sellers are spread out: the cheapest can sell for sixty cents, the dearest needs two eighty-five. The rules are the pit's rules: anyone may call out a bid or an offer, each trader trades once, and the market opens six times. Before it opens, make your guess. Where will the price settle? Pause if you like.

Two guesses are tempting. The middle of the range of cards, which is 1 dollar 73. Or the average of all twenty cards, 2 dollars 05. Both feel fair. Neither is where this market goes.

Turn the cards into staircases. The buyers' staircase is nearly flat, because the buyers are so alike. The sellers' climbs steeply. They cross at 7 units, and the band of prices that clears the market runs from 2 dollars 25 to 2 dollars 30: right up against the buyers' cards. At that price the buyers keep only 1 dollar 23 between them, and the sellers keep 6 dollars 47. Why so lopsided? Because there are more buyers willing to pay about two twenty-five than there are sellers who can sell at that price, and a buyer who holds out for less is simply replaced by one who won't. The competition is on the buyers' side, so the gains go to the sellers.

Now let the traders loose. These are Agora's learning traders from Part one, who know only their own cards. In the first period most deals are struck at about 2 dollars 07, well below the band: the buyers' bids start low, and the cheap sellers take them. By the third period the deals are in or near the band, and they stay there. Smith's coefficient of convergence falls from 8 percent to under 3. So the lopsided market finds its price too, near the top of the buyers' cards, where the theory put it. That's what Smith found with his students. But notice the grey line. Traders with no intelligence, who found the price in Part one's balanced pit, settle here around 2 dollars 10, well below the band. In a lopsided market, zero intelligence isn't enough. The next chapter is about why.

What it does: Smith's "accident of symmetry"; the lopsided cards; the tempting guesses $1.73 and $2.05; the band $2.25 to $2.30; buyers keep $1.23, sellers $6.47; Agora's traders converge by the third period; zero-intelligence traders stop near $2.10

5Why it convergesPrinciples and the major4 min

Why does a market find the band at all? Go back to Part one's balanced pit. Suppose deals were being struck at 2 dollars 75. At that price 8 sellers would like to sell, but only 3 buyers want to buy. Some seller is left holding a unit, and the price is well above her cost. If she offers a little less, she makes a sale and still gains. So the offers come down. Now suppose deals were at 1 dollar 85. Then 8 buyers want to buy and only 4 sellers will sell, and an unserved buyer can bid a little more and still gain. So the bids go up. Only inside the band can nobody gain by changing what they call out. Economists call that an equilibrium: a state in which no one has a reason to move.

In Part one we met traders with no intelligence at all, the creation of Dhananjay Gode and Shyam Sunder in 1993. Each one calls out a random price that can't lose it money, and none of them learns anything. In the balanced pit, their prices settled close to the band, and they made almost all of the possible gains. It looked as if the rules of the market did nearly all the work. In 1997 Dave Cliff and Janet Bruten, at Hewlett-Packard's laboratories, asked Smith's question about them: was that an accident of symmetry? Here is the test, run in Agora on four markets. In the three lopsided ones, the random traders miss: by 17 cents when the sellers' surplus is large, by 25 cents when supply is flat, by 24 cents when demand is. The traders who learn are within 2 cents of the band in every one. Cliff and Bruten's title said it: zero is not enough.

Why do random traders miss? Look at the market where every seller's cost is two dollars. A random seller asks for any price between two dollars and the top of the range, five. A random buyer bids anything below her card. Deals happen when a high bid meets a low ask, and they average about 2 dollars 25. That number comes from how widely the cards are spread, not from where the curves cross. A trader who learns does what the random one can't: when her offer goes unanswered, she lowers it. With ten sellers all able to sell at two dollars, the price falls to 2 dollars 01, their cost, where the theory says it must. So the rules of the double auction give a market most of its efficiency, as Gode and Sunder said. The price itself needs traders who respond to what they see.

So we can score the prediction from the start of the part. In January 1956 Vernon Smith expected the competitive model to fail. It predicted the price and the quantity of his first market, and of the lopsided one he ran to check. The verdict is wrong, and it's the most productive wrong prediction in this series. It started experimental economics, and won Smith a Nobel prize in 2002.

And the first of the Facts gets its columns. Double auctions converge to the competitive price within a few rounds. Smith's students did it. Agora's learning traders do it by the third period, in every market we tried. Traders with no intelligence do it only when the market is balanced. So Agora agrees with the Fact, and we know which part of Agora is doing the agreeing.

What it does: Excess supply above the band, excess demand below; Gode and Sunder; four markets, two kinds of trader: random traders miss by 17 to 25 cents when the market is lopsided; why; Called it?: Smith's prediction, wrong; the first Fact's columns

6ElasticityPrinciples and the major4 min

A demand curve says that people buy less when a price rises. Elasticity says how much less. It's the percentage change in the quantity bought, divided by the percentage change in the price that caused it. Percentages, so that it doesn't matter whether you count in litres or gallons, dollars or yen. Through the same point you can draw a steep demand curve or a flat one. Raise the price ten percent. For something people can't easily do without, insulin, or petrol this month, purchases might fall two percent: an elasticity of minus point two. For one brand of cereal on a shelf full of others, they might fall thirty percent: minus three. Below one in size, demand is called inelastic; above one, elastic.

Elasticity isn't the slope of a curve, and it changes as you move along one. Here is the planted demand line of the Island's fish market. Near the top, at five dollars and more, few fish are bought, so a small price cut is a big percentage gain in sales: demand is elastic. Slide down the line and the elasticity falls in size, though the slope never changes. The shaded rectangle is the price times the quantity: what buyers spend, and what sellers take in. While demand is elastic, cutting the price raises spending. At 3 dollars, halfway down, the elasticity is exactly minus one, and spending is as large as it gets. Below that, demand is inelastic, and every cut in price takes in less. That's why a seller with any choice over his price never sets it where demand is inelastic, a fact Part ten will put to work.

In practice you rarely have a curve. You have two points, and the answer depends on which you start from. On the Island, storms keep a third of the boats ashore. On calm days the market sells about 212 fish at 2 dollars 84; on stormy days, 170 at 3 dollars 53. Going from calm to storm, quantity falls 20 percent and the price rises 24 percent: an elasticity of minus 0.82. Going back, from storm to calm, the same two points give minus 1.26. The fix is to measure each change against the average of the two points. This midpoint formula gives minus 1.02 in both directions. And on the Island we can check it against the truth. Along this stretch of the planted line the elasticity runs from about minus point nine to minus one point four, and the midpoint number sits inside that range. Notice what made this work: the storms moved supply, and the price slid along demand. Part four is about when that trick is safe.

Elasticities grow with time. In 2012 three economists in Prague, Tomas Havranek, Zuzana Irsova and Karel Janda, pooled the published estimates for petrol. Corrected for a bias in which estimates get published, the average short-run elasticity was minus 0.09, close to nothing. In the long run it was minus 0.31, more than three times as large. This month you have the same car and the same commute. Over years you can buy a smaller car, move closer to work, or take the bus. They also found that the average published estimate was about twice the corrected one: studies that found a strong response were more likely to be published. Part four is about how that happens, and how to correct for it.

What it does: Percent over percent; steep and flat; elasticity and spending along the fish market's line, −1 at $3.00; the midpoint formula on calm and stormy days (−0.82, −1.26, −1.02); petrol's −0.09 and −0.31

7Shifts: a frost in BrazilPrinciples and the major4 min

Prices move because one of the blades moves. Start where we know the truth: the Island's fish market, over 120 market days. On calm days the boats go out, and the price and the catch settle near the same spot, scattered a little because the villagers' appetites vary from day to day. On stormy days a third of the boats stay ashore. The supply curve swings to the left, and the price rises and the catch falls. The stormy days lie along the planted demand line, because nothing about the buyers changed: the price moved along their curve.

That gives a habit of thought economists use every day. When the price rises and the quantity falls, supply has fallen: a frost, a storm, a new tax on sellers. When the price falls and the quantity rises, supply has risen. When both rise together, demand has risen; when both fall, demand has fallen. It's called comparative statics: move one blade, hold the other still, and compare where the market settles. When both blades move at once, you need more than two points, and that is the subject of Part four.

Now the real world, where nothing is planted. On the night of the eighteenth of July 1975, a black frost, so called because it blackens the leaves, swept across Paraná, in southern Brazil, the state that grew much of Brazil's coffee. According to the United States Department of Agriculture, Brazil's next crop was 60 percent smaller than the one before: from 23.0 million sacks to 9.3 million. Brazil grew about 32 percent of the world's coffee, so the world's crop fell 16 percent. Here is the price of Arabica coffee, month by month, as it was quoted at the time. In June 1975 it was 1 dollar 23 a kilo. The frost hit, and the price climbed for nearly two years, to 7 dollars in April 1977: 5.7 times as much.

What does that tell us? If supply moved and demand stayed put, the price slid along the demand curve, and the two changes give its elasticity. The world's crop fell by about 18 percent, measured from the midpoint, and the average price rose by about 113 percent. That's an elasticity of about minus 0.16: in the short run, coffee drinkers hardly respond at all. Treat that number gently. Warehouses sold coffee picked in earlier years, so less was drunk than the crop alone suggests. Traders bid for the next harvests too. And the long run came: the world's crop recovered by 1978, and the price fell back. That's elasticity growing with time, on the supply side.

Coffee has been through this again and again. Here is the whole history since 1960, in today's dollars. Frosts in the Brazilian winter of 1994 sent the price up by half in a single month, from 3 dollars 16 a kilo in June to 4 dollars 83 in July. In February 2025, after poor Brazilian harvests, Arabica averaged 9 dollars 05 a kilo, the highest monthly price in the World Bank's records, in dollars of the day. But a dollar of 1977 bought far more. In today's money the peak after the black frost was about 39 dollars a kilo, four times the record of 2025. Whenever you compare prices across decades, divide by the price of everything else first.

What it does: The Island's 120 days and its storms, sliding along the planted demand line; which blade moved; 18 July 1975; Brazil's crop −60%, the world's −16%; Arabica from $1.23 to $7.00 a kilo; a rough elasticity of −0.16 and its caveats; the 1994 frosts; 2025's nominal record against 1977's real one

Intermission: sixty-six years of pricesPrinciples and the major

This chapter has no narration to read.

8SurplusPrinciples and the major3 min

How much good does a market do? The first person to answer properly was a French engineer, Jules Dupuit, in 1844. His question was practical: is a bridge worth building? The obvious answer was to count the tolls it would collect. Dupuit saw that the tolls miss most of it. Line up the travellers by what a crossing is worth to each of them. The tolls are this rectangle. But everyone who crosses would have paid more than the toll, some of them much more, and that difference is a gain that nobody collects. And the travellers the toll turns away, whose crossing would have cost the bridge nothing, lose this triangle. The bridge's real value is all of it. Marshall named the middle area: he called it consumer's rent at first, and then consumer's surplus, the name that stuck.

Dupuit's idea measures any market. Here is Part one's pit again. At a price of 2 dollars 25, each buyer who trades keeps the difference between her card and the price: the blue steps, 3 dollars 40 in all. Each seller keeps the price less his cost: the amber steps, 3 dollars 30. Together that's 6 dollars 70, and no other arrangement of these twenty people can make more. Drop the last pair, and the market loses the thin step between them. Add one more pair, the seventh buyer and the seventh seller, and the unit costs more to make than it's worth to the person who gets it: that loses money too. The competitive quantity is exactly the one that makes the most.

With many traders the steps become areas. On the Island's fish market, the villagers' surplus is this triangle, about 329 dollars a day, and the fishers' is this one, about 247. Now suppose something stops the market at 150 fish a day. Every fish between there and the competitive quantity was worth more to some buyer than it cost some fisher to catch, and none of them is caught. That triangle of gains is simply gone; it doesn't move to anyone. Economists call it a deadweight loss, and Arnold Harberger made a career of measuring it. Taxes and price controls both cut a market off short of its competitive quantity. The next two chapters measure what that costs, and who pays.

What it does: Dupuit's bridge: the tolls, the surplus above them, the crossings prevented; the pit's $3.40 and $3.30; one pair fewer, one pair more; the fish market's surpluses and the deadweight loss

9Who pays a tax?Principles and the major4 min

Put a tax of 40 cents on every unit sold in the pit, and make the sellers pay it. To a seller, the tax is like a higher cost: a seller whose card says two dollars now needs two dollars 40 to break even. The whole supply staircase rises by 40 cents. Run the market with Agora's learning traders. Before the tax, 6 units traded at about 2 dollars 25. Now the buyers pay about 2 dollars 46, and the sellers, after handing over the tax, keep about 2 dollars 06. Each side has lost about twenty cents. And one unit fewer is traded. That unit was worth 10 cents more to its buyer than it cost its seller, and that's the deadweight loss of the tax: the gain from a trade the tax prevented, which nobody gets, not even the government.

Now take the same tax off the sellers and put it on the buyers: at the till, every buyer pays the price plus 40 cents to the government. The price called out in the pit falls, to about 2 dollars 03. But add the tax, and the buyers give up 2 dollars 43, within a few cents of before. The sellers keep 2 dollars 03, also within a few cents. And the same number of units trade. This is one of the most useful results in economics, and one of the least believed. Who hands the money to the government doesn't decide who bears the tax. The market moves the price until the burden falls where it falls, whichever side the law names.

So where does the burden fall? On whichever side can get out of the way less. The share buyers bear is the sellers' elasticity over the sum of the two. On the Island's fish market, buyers respond a little less than fishers do, so buyers bear about 57 percent of a tax on fish. When demand hardly responds, as with cigarettes, or petrol this month, the buyers pay nearly all of it. When supply can't respond at all, the sellers pay. Land is the classic case: there's only so much of it, so a tax on land falls on its owners, which is why Henry George wanted to tax nothing else.

The theory has two quiet assumptions, and the evidence finds both of them failing. The first is that people see the tax. In 2009 Raj Chetty, Adam Looney and Kory Kroft tagged about seven hundred and fifty products in a grocery store with prices that included the sales tax, for three weeks. Sales of those products fell by about eight percent, though the price at the till hadn't changed at all. Taxes that are hidden until the checkout are partly invisible. The second is that the tax is paid. American states collect their diesel taxes at different points: some from the retailer, some from the supplier further up the chain. Wojciech Kopczuk and his co-authors found that more of the tax reaches the pump price when suppliers remit it, because retailers evade more. So who writes the cheque matters exactly when it changes who notices the tax, or who manages not to pay it.

What it does: A 40-cent tax on the pit's sellers: buyers pay $2.46, sellers keep $2.06, one unit lost; the same tax on buyers; the incidence formula; the fish market's 57%; salience (Chetty, Looney and Kroft) and evasion (Kopczuk and others)

10Price controlsPrinciples and the major5 min

Now let the law set a price. Back in the pit, suppose no unit may sell for more than 2 dollars, below the band. At that price only the sellers whose costs are 2 dollars or less will sell: 5 of them. But 7 buyers want to buy. There's a shortage of 2. The price can't do its job of deciding who gets the scarce units, so something else has to. The question is what.

There are two answers on paper. If the five units went to the five keenest buyers, the market would lose only the triangle, one unit's worth, and still make 98.5 percent of what it could. If they went by lottery among everyone who wants one, some would go to buyers who value them least, and the market would make only 83 percent. Run the pit, and Agora's learning traders make 84 percent: the lottery, almost exactly. Under the cap every buyer soon bids the maximum, so a unit goes to whoever calls first, whatever his card. That's the hidden cost of a price control. The triangle is only part of it; the rest is that the goods end up with the wrong people. Edward Glaeser and Erzo Luttmer found it in New York's rent-controlled flats: compared with cities without rent control, a sizeable share of apartments housed the wrong kinds of households.

In the real world the commonest answer is a queue. In 1973 and 74, and again in 1979, the United States held the price of petrol below what the market would have set, and drivers waited at the pumps for hours; some states let cars fill up only on odd or even days. A queue is a price too, paid in time instead of money, and nobody receives it. And it hands the goods to whoever's time is cheapest, which is not the same as whoever values them most. In 1980 a court order held down the price at Chevron's stations in California, and Robert Deacon and Jon Sonstelie used the queues that formed to measure what drivers' time was worth to them.

The best evidence on a modern price control comes from San Francisco. In 1994 the city extended rent control to small apartment buildings built before 1980, and left those built later uncontrolled, which gave Rebecca Diamond, Tim McQuade and Franklin Qian a comparison. Rent control did what it was meant to do for sitting tenants: they were about twenty percent less likely to move, and fewer were pushed out of the city. But landlords of the controlled buildings cut the rental housing they offered by fifteen percent, by selling to owner-occupiers and redeveloping. Less rental housing means higher rents for everyone looking for a flat, and the authors concluded that this probably undid much of what the law set out to achieve.

A floor is the mirror image. Set a minimum price of 2 dollars 60. Only 4 buyers will pay that much, but 8 sellers would like to sell at it, so the sellers are rationed instead. If the four cheapest sold, the market would keep 91 percent of its gains. By lottery, 67 percent; and Agora's traders make 67. The commonest floor on a price is a minimum wage, and there the evidence is subtler than this pit, because employers may have power over wages to begin with. That's Part thirty-eight.

Notice what the evidence does and doesn't settle. It tells us what a rent cap does: sitting tenants pay less and stay put, and newcomers face fewer flats at higher rents. Whether to have one needs something more: a judgment about how much the security of the people already housed is worth, against the cost to the people still looking, and who should pay for it. Economics can measure both sides of that ledger. It can't, by itself, tell you how to weigh them.

What it does: A cap at $2.00: five sellers, seven buyers; 98.5% with the right buyers, 83% by lottery, 84% in the pit; petrol queues; San Francisco's rent control; a floor at $2.60; the is/ought card

11When the picture failsPrinciples and the major1 min

The scissors picture has done a great deal of work in one part, so it's worth saying what it assumed. It assumed many traders, none big enough to move the price on his own. It assumed everyone knows what's being sold. It assumed a trade affects only the two people making it. And it assumed that people's values and costs come first, and the price follows, rather than people buying because they expect the price to rise. Each of these fails somewhere, and each failure is a part of this series.

Here is where each comes back. A seller who can set his own price, and a few sellers watching each other: Parts ten to twelve. A used car whose faults only the seller knows: Part thirteen. A factory whose smoke costs people who never agreed to anything: Part fifteen. Assets bought because their price is rising, and crises: Parts twenty-three and thirty-three. And markets that have to be designed because the picture fails, auctions and matching: Parts sixteen and seventeen.

What it does: What the picture assumed; where each failure is taken up

12The Dials: how much do people respond?Principles and the major2 min

Every part enters what it has learned into the Dials, the numbers economics runs on, each with its range of estimates and how they were measured. This part fills the first one: the price elasticity of demand for staples. For petrol, the corrected averages we met earlier: minus 0.09 within a year, minus 0.31 in the long run. For cigarettes, a meta-analysis by Craig Gallet and John List averaged minus 0.48 over more than five hundred estimates. For alcohol, Alexander Wagenaar and his co-authors pooled more than a thousand: about minus 0.46 for beer, minus 0.69 for wine and minus 0.80 for spirits. Every one is below one in size. That's why taxes on these goods raise so much revenue: people keep buying. It's also why, as health policy, such taxes work, but slowly, and the long-run numbers matter more than the short.

Here are the first sixteen of the Dials. One is lit. The rest are drawn empty, each with the part that will fill it: the elasticity of intertemporal substitution in Part seven, markups in Part ten, the multipliers of government spending in Part thirty-two. By the end of the series every one of them will have its estimates, its designs, and a verdict on how settled it is.

What it does: The first dial filled: petrol, cigarettes, beer, wine, spirits; the first sixteen dials

13In practice: who sets prices for a livingPractice1 min

Who uses this for a living? Commodity desks at trading houses and food companies: their job is to see the next frost coming, judge how far it will move the price, and hedge the risk with futures contracts. Pricing teams inside firms, who estimate how their own customers respond to a price, often by running experiments, and who know never to price where demand is inelastic. Tax analysts in treasuries and parliaments, whose tables of who pays a proposed tax rest on exactly the incidence calculation of chapter nine. And competition authorities, who decide what counts as a market by asking whether a small, lasting rise in price would send enough buyers elsewhere to make it unprofitable. Part sixty-one does that test properly.

What it does: Commodity desks, pricing teams, tax analysts, competition authorities

14Frontier: prices set by algorithmsResearch2 min

This part's learning traders were simple programs, and they found the competitive price. Real markets are now full of pricing programs far cleverer than they are. In 2020 four economists in Bologna, Emilio Calvano and his co-authors, set two learning algorithms to compete in a simulated market, over and over. The programs were never told to cooperate, and never communicated. They learned to charge prices above the competitive level anyway. And they learned how to keep them there: when one cut its price, the other punished it with a short price war, and then both drifted back up. That's how a cartel behaves, and no person had arranged it.

Is it happening outside the laboratory? When pricing software became widely available to German petrol stations in 2017, Stephanie Assad, Robert Clark, Daniel Ershov and Lei Xu followed what happened to their margins. Margins rose, but only for stations that had competitors nearby; a station with no rival gained nothing. And where two or three stations shared a market, margins rose only when all of them had adopted. That's the pattern you'd expect if the algorithms were learning to soften competition with each other.

So here is what's open. If two programs learn to keep prices high without ever agreeing to, is that collusion, who is responsible, and what should the law forbid? Competition law was written for people who meet in smoke-filled rooms. Second, thin markets, where so few trades happen that it's not obvious a price is being discovered at all. And third, speed: when prices move in millionths of a second, the race to be first can waste real resources, and some economists propose holding auctions in tiny batches instead. The research problem for this part puts two learning sellers into Agora's pit, and asks when their price stays above the band.

What it does: Q-learning sellers that learn to keep prices high (Calvano and others 2020); German petrol stations (Assad and others 2024); three open questions; the research problem

Recap, problems, and the road aheadAll tracks3 min

So: what sets a price? Both blades. What the last unit is worth to the last buyer, and what it costs the last seller. Traders who see only their own cards find that price, as long as they learn from what they see.

Part two in ten lines. A price measures the margin, not the whole, which is why water is cheap. Demand is buyers' values added up sideways, and supply is sellers' costs. Four cards fix the band: the last traders in and the first ones out. A lopsided market converged too, which made Smith's prediction wrong. But traders with no intelligence missed its price; the rules give the efficiency, and learning gives the price. Elasticity grows with time: for petrol, almost nothing within a year, a third in the long run. A frost cut the world's coffee crop by a sixth and multiplied the price more than fivefold. The competitive quantity makes the largest surplus, and whatever stops trade short of it loses a triangle. A tax falls on buyers and sellers the same way whoever hands it over. And a price cap loses more than the triangle, because the goods end up with the wrong people.

The problems. The arithmetic of water and diamonds; three coffee drinkers' demand; the cards that set the pit's band; elasticity and spending along a line; a tax on the Island's fish, remitted by either side; the cost of a price cap; and a research problem, marked with a star, on algorithms that learn to keep prices high. Full solutions are in the part's notes.

The reading for this part: Marshall's fifth book, still clear after more than a century; Smith's fourth chapter, for the paradox; and the demand and supply chapters of any principles textbook. Then Vernon Smith's 1962 paper, Gode and Sunder's, and the papers on taxes and rent control. Each is short, and each changed how economists think about prices.

This part's prices were for one good at a time. The next part asks how you add them all up. In 1934 Simon Kuznets handed the United States Senate the first official estimates of the country's national income, in the middle of the Depression, when nobody could say how much the economy had shrunk. Part three: the measure. What GDP counts and leaves out, how you compare prices across years, and how a country counts its unemployed.

Where it goes next. Part 3 adds up prices across goods and years. The picture's failures return as monopoly and oligopoly (Parts 10 to 12), hidden quality (13), spillovers (15), asset prices and crises (23, 33) and designed markets (16, 17); demand is rebuilt from choice in Parts 5 and 6, the welfare theorem in Part 9, the identification of a demand curve in Part 4, incidence in public finance in Part 41, the minimum wage in Part 38 and market definition in Part 61.

Key results

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

Value at the margin\(\displaystyle p^{*}=MV(q^{*})=MC(q^{*})\)
Elasticity\(\displaystyle \varepsilon=\frac{dQ/Q}{dP/P}\approx\frac{\Delta Q/\bar Q}{\Delta P/\bar P}\)
A straight demand line\(\displaystyle Q=a-bp:\quad\allowbreak \varepsilon(p)=\frac{-bp}{a-bp},\quad\allowbreak \arg\max_p\,pQ=\frac{a}{2b}\ (\varepsilon=-1)\)
Incidence\(\displaystyle \text{buyers' }\allowbreak \text{share}=\frac{\varepsilon_S}{\varepsilon_S+|\varepsilon_D|}\)
Deadweight loss of a tax\(\displaystyle \text{DWL}=\tfrac12\,t\,\Delta Q\)
Rationing by lottery\(\displaystyle \text{extra }\allowbreak \text{loss}=\tfrac12\,q_S\,\big(P_D(q_S)-\bar p\big)\)

Try it

Lab 2 · The scissors: who pays a tax, and what a price control costs

Run Part 1's pit with a 40-cent tax paid by the sellers and then by the buyers, and with a price cap and a price floor. Measure what buyers pay, what sellers keep, how many units trade and how much of the possible gain is made; then check the incidence and the losses against the straight-line formulas of agora.curves.

Figure produced by Lab 2: The scissors: who pays a tax, and what a price control costs
Produced by the lab below, seed 0, in 10.1 s.
python -m videos.economics.labs 2 needs numpy, scipy, matplotlib · download lab02.py · source on GitHub
no tax: band                                       $2.20 to $2.30, 6 units
tax on sellers: buyers pay / sellers keep          $2.430 / $2.030, 5 units
tax on buyers: buyers pay / sellers keep           $2.446 / $2.046, 5 units
deadweight loss of the tax                         $0.10 (the sixth pair's gain: $0.10)
fish market: buyers' share of a 40-cent tax        57.1% (formula 57.1%)
cap at $2.00: efficiency (best / lottery / pit)    98.5% / 83.2% / 83.6%
floor at $2.60: efficiency (best / lottery / pit)  91.0% / 67.2% / 68.7%

A tax falls the same way whoever remits it; a binding control loses the triangle and, when the scarce side is rationed by whoever calls first, the misallocation on top.
The code (88 lines; it asserts its own result)
"""Lab 2: tax the pit from either side, cap and floor its price, and check the answers against the formulas."""

import numpy as np

from videos.coursekit import labs
from explainer.economics.agora import curves as cv
from explainer.economics.agora import market as mk
from explainer.economics.island import truths

TITLE = "The scissors: who pays a tax, and what a price control costs"
GOAL = ("Run Part 1's pit with a 40-cent tax paid by the sellers and then by the buyers, and with a price cap and a "
        "price floor. Measure what buyers pay, what sellers keep, how many units trade and how much of the possible "
        "gain is made; then check the incidence and the losses against the straight-line formulas of agora.curves.")
TASKS = [
    "Make demand steeper: multiply every buyer's distance from $2.25 by three. Who bears more of the tax now, and "
    "does the pit agree with the formula's direction?",
    "Raise the cap from $2.00 to $2.15, then to $2.25. At what cap does the lottery loss vanish, and why there?",
    "Replace the learning traders with zero-intelligence ones under the cap. Their efficiency is higher than the "
    "learners'. Explain why random bids ration the scarce units better than bids that all sit at the cap.",
]


def run(seed=0):
    lab = labs.Lab()
    pit = truths(1)["pit"]
    t2 = truths(2)
    m = mk.Market(values=pit["values"], costs=pit["costs"])
    eq = m.equilibrium()
    t = t2["tax"]
    runs = 24

    def last(kind="zip", **kw):
        rs = [mk.double_auction(m, kind, periods=6, seed=1000 * seed + r, **kw)["periods"][-1] for r in range(runs)]
        return {k: float(np.nanmedian([x[k] for x in rs])) for k in ("paid", "received", "n", "efficiency")}

    s, b = last(tax=t, tax_on="sell"), last(tax=t, tax_on="buy")
    lab.row("no tax: band", f"${eq['p_lo']:.2f} to ${eq['p_hi']:.2f}, {eq['q']} units")
    lab.row("tax on sellers: buyers pay / sellers keep", f"${s['paid']:.3f} / ${s['received']:.3f}, {s['n']:.0f} units")
    lab.row("tax on buyers: buyers pay / sellers keep", f"${b['paid']:.3f} / ${b['received']:.3f}, {b['n']:.0f} units")
    assert abs(s["paid"] - b["paid"]) < 0.06 and abs(s["received"] - b["received"]) < 0.06, "who remits does not matter"
    assert s["n"] == b["n"] == eq["q"] - 1
    lost = eq["surplus"] - (s["efficiency"] * eq["surplus"])
    lab.row("deadweight loss of the tax", f"${lost:.2f} (the sixth pair's gain: ${m.v[5] - m.c[5]:.2f})")

    L = cv.Linear.from_crowd(400, 6.0, 0.5, 5.0)
    el = L.elasticity()
    tx = L.tax(t)
    share = cv.buyers_share(el["demand"], el["supply"])
    lab.row("fish market: buyers' share of a 40-cent tax", f"{100 * tx['buyers_share']:.1f}% (formula "
                                                           f"{100 * share:.1f}%)")
    assert abs(tx["buyers_share"] - share) < 1e-9

    cap, lo = t2["cap"], t2["minimum"]
    k = int((m.c <= cap).sum())
    want = m.v[m.v >= cap]
    best = (m.v[:k].sum() - m.c[:k].sum()) / eq["surplus"]
    lottery = (k * want.mean() - m.c[:k].sum()) / eq["surplus"]
    c_ = last(cap=cap)
    lab.row(f"cap at ${cap:.2f}: efficiency (best / lottery / pit)",
            f"{100 * best:.1f}% / {100 * lottery:.1f}% / {100 * c_['efficiency']:.1f}%")
    assert abs(c_["efficiency"] - lottery) < 0.05 < best - lottery, "the pit rations by lottery"
    k2 = int((m.v >= lo).sum())
    sell = m.c[m.c <= lo]
    f_ = last(minimum=lo)
    best2 = (m.v[:k2].sum() - m.c[:k2].sum()) / eq["surplus"]
    lot2 = (m.v[:k2].sum() - k2 * sell.mean()) / eq["surplus"]
    lab.row(f"floor at ${lo:.2f}: efficiency (best / lottery / pit)",
            f"{100 * best2:.1f}% / {100 * lot2:.1f}% / {100 * f_['efficiency']:.1f}%")
    assert abs(f_["efficiency"] - lot2) < 0.05
    lab.note = ("A tax falls the same way whoever remits it; a binding control loses the triangle and, when the "
                "scarce side is rationed by whoever calls first, the misallocation on top.")

    fig, ax = labs.figure(2, size=(11, 4.2))
    ratio = np.linspace(0, 4, 200)
    ax[0].plot(ratio, 1 / (1 + ratio), color=labs.ORANGE, lw=2.4)
    ax[0].scatter([abs(el["demand"]) / el["supply"]], [tx["buyers_share"]], color=labs.BLUE, zorder=3,
                  label="the Island's fish market")
    ax[0].set(title="Who bears a tax?", xlabel="|demand elasticity| / supply elasticity", ylabel="buyers' share")
    ax[0].legend()
    names = ["best", "lottery", "pit"]
    xs = np.arange(3)
    ax[1].bar(xs - 0.2, [100 * best, 100 * lottery, 100 * c_["efficiency"]], 0.4, color=labs.ORANGE, label="cap $2.00")
    ax[1].bar(xs + 0.2, [100 * best2, 100 * lot2, 100 * f_["efficiency"]], 0.4, color=labs.GREY, label="floor $2.60")
    ax[1].set_xticks(xs, names)
    ax[1].set(title="What a price control costs", ylabel="efficiency, %", ylim=(0, 105))
    ax[1].legend()
    lab.fig = fig
    return lab

Now change it

  1. Make demand steeper: multiply every buyer's distance from $2.25 by three. Who bears more of the tax now, and does the pit agree with the formula's direction?
  2. Raise the cap from $2.00 to $2.15, then to $2.25. At what cap does the lottery loss vanish, and why there?
  3. Replace the learning traders with zero-intelligence ones under the cap. Their efficiency is higher than the learners'. Explain why random bids ration the scarce units better than bids that all sit at the cap.

Problems, with solutions

Try each problem before opening its solution.

1. A household's value of one more litre of water a day, with q litres already, is 30e^(−q/28) dollars. Show that the first 150 litres are worth about $836 in all, while the 150th is worth about 14 cents. Which of the two numbers does the price of water measure?

Solution

The total is the area under the curve: ∫₀¹⁵⁰ 30e^(−q/28) dq = 30 × 28 × (1 − e^(−150/28)) = 840 × (1 − 0.0047) ≈ $836. The 150th litre is worth 30e^(−150/28) ≈ 30 × 0.0047 ≈ $0.14. A household buys litres until the next one is worth no more than its price, so the price measures the value of the last litre, the 14 cents, and says nothing about the $836. Smith's "value in use" was the area; "value in exchange" is the height at the margin.

2. Ana's cups are worth $4.00, $2.50, $1.20 and $0.40; Bo's $3.00, $1.50 and $0.60; Chidi's $5.00 and $2.00. Draw the market's demand. How many cups are bought at $1.00, and at $2.25?

Solution

Sort every cup by its value: $5.00 (Chidi), $4.00 (Ana), $3.00 (Bo), $2.50 (Ana), $2.00 (Chidi), $1.50 (Bo), $1.20 (Ana), $0.60 (Bo), $0.40 (Ana). The demand curve is the staircase through these heights, one cup wide each. At $1.00 every cup worth at least a dollar is bought: 7 cups (Ana 3, Bo 2, Chidi 2). At $2.25: 4 cups (Ana 2, Bo 1, Chidi 1).

3. In Part 1's pit the band is $2.20 to $2.30. Which one card, changed, would narrow it to $2.20 to $2.25? Which would raise it, and why can the keenest buyer's card rise as far as you like without moving it?

Solution

With six units traded the band is [max(c₆, v₇), min(v₆, c₇)] = [max($2.20, $2.10), min($2.30, $2.40)]. Lowering the seventh seller's cost from $2.40 to $2.25 (or the sixth buyer's value from $2.30 to $2.25) makes the upper end $2.25, and six units still trade. Raising the seventh buyer's value from $2.10 to anything between $2.20 and $2.30, say $2.28, lifts the lower end to $2.28; raising the sixth seller's cost to $2.25 lifts it to $2.25. The keenest buyer's card is not one of the four (v₆, v₇, c₆, c₇): she trades at any price in the band, and raising her card only raises her own surplus.

4. On the demand line Q = 400(1 − p/6), find the elasticity at $2, $3 and $4, and the price at which buyers spend the most. Show that the answer is the price where the elasticity is −1.

Solution

dQ/dp = −400/6, so ε = (dQ/dp)(p/Q) = −p/(6 − p): −0.5 at $2, −1 at $3, −2 at $4. Spending is pQ = 400p − 400p²/6, with derivative 400(1 − p/3), zero at p = $3, where spending is 400 × 3 × 0.5 = $600. In general d(pQ)/dp = Q(1 + ε), which is zero exactly where ε = −1, positive where demand is inelastic and negative where it is elastic.

5. With that demand and supply Q = 400(p − 0.5)/4.5, a tax of 40 cents a fish is levied on the fishers. Find the price buyers pay, the price fishers keep, and the buyers' share of the tax; check it against ε_S/(ε_S + |ε_D|), and show the answer is the same if the buyers pay the tax.

Solution

Write b = 400/6 ≈ 66.7 and d = 400/4.5 ≈ 88.9. Untaxed, 400 − bp = d(p − 0.5) gives p ≈ $2.857 and Q ≈ 209.5. With the tax, buyers pay p_b and fishers keep p_b − 0.40, and 400 − bp_b = d(p_b − 0.40 − 0.5) gives p_b ≈ $3.086, so fishers keep ≈ $2.686 and Q ≈ 194.3. Buyers bear (3.086 − 2.857)/0.40 ≈ 57.1%. At the untaxed point ε_D = −bp/Q ≈ −0.909 and ε_S = dp/Q ≈ 1.212, and ε_S/(ε_S + |ε_D|) = d/(b + d) ≈ 0.571: on straight lines the formula is exact. If the buyers remit the tax, buyers pay p + 0.40 and fishers keep p, and the same equation results with p_b = p + 0.40: the same prices paid and kept, the same quantity. The revenue is 0.40 × 194.3 ≈ $77.7 a day and the deadweight loss ½ × 0.40 × (209.5 − 194.3) ≈ $3.05.

6. On the same lines a cap holds the price at $2.26. Find the shortage, the triangle, and the extra loss if the fish go by lottery among everyone who wants one. Why can the lottery cost more than the triangle?

Solution

At $2.26 fishers supply Q_S = d(2.26 − 0.5) ≈ 156.4 and buyers want Q_D = 400 − 2.26b ≈ 249.3: a shortage of about 92.9 fish a day. The triangle is ½ × (209.5 − 156.4) × (P_D(156.4) − 2.26), with P_D(156.4) = (400 − 156.4)/b ≈ $3.653, so about ½ × 53.1 × 1.393 ≈ $37.0. If the 156.4 fish went to the keenest buyers, their values would average (6 + 3.653)/2 ≈ $4.83; drawn at random from everyone with a value above $2.26, they average (6 + 2.26)/2 = $4.13. The difference, 156.4 × (4.83 − 4.13) ≈ $109 a day, is lost on top of the triangle. The triangle counts only the fish that are not caught; the lottery loses something on almost every fish that is, and when the shortage is large that is the bigger sum.

7. ★ Replace the pit's learning sellers with two Q-learning sellers who meet day after day. Under what conditions does their price stay above the band, and what evidence would tell a court it was collusion?

Solution (a research sketch, not a closed answer). Each seller's state can be the pair of last prices, its actions a grid of prices, its reward its profit; the buyers can stay Agora's learning buyers or be replaced by a demand curve. Calvano and others (2020) found supra-competitive prices sustained by a short punishment after a deviation, when the sellers are patient (a discount factor near one), explore slowly and see each other's prices; with many sellers, impatience or noisy prices the result weakens. What separates collusion from competition is not the level of the price, which demand and costs can also explain, but the response to a deviation: force one seller to cut its price once and watch whether the other punishes it and both return. In the field, Assad and others (2024) used the timing of adoption and the structure of local markets; a court would add the algorithms' code and training. The legal question, whether tacit coordination by programs is an agreement, is open.

Notes and sources

Where it comes back

Idea Where
prices across goods and years Part 3, The Measure
identifying a demand curve from shifts in supply Part 4, The Evidence
demand rebuilt from choice; Giffen goods Part 5, What People Want; Part 6, Demand
the welfare theorems Part 9, The Invisible Hand, Proved
one seller, or a few Part 10, The Price Maker; Part 12, Competition among the Few
hidden quality; spillovers Part 13, Lemons and Signals; Part 15, Spillovers
the minimum wage Part 38
tax incidence in public finance Part 41
market definition and algorithms in competition cases Part 61

Sources

Primary texts.

  • A. Smith, An Inquiry into the Nature and Causes of the Wealth of Nations (1776), Book I, ch. 4 (Project Gutenberg text 3300).
  • A. Marshall, Principles of Economics (1890), and the third (1895) and fifth (1907) editions, Book V, ch. 3 (Internet Archive scans principlesecono00marsgoog, principlesofecon01marsrich, principlesofecon01marsuoft). The 1890 text has the blades of a pair of scissors; the sentence about the upper and under blade is from the later editions.
  • R. Whately, Introductory Lectures on Political Economy, 2nd ed. (1832), Lecture IX (Internet Archive scan introductorylect0000unse).
  • J. Dupuit, "De la mesure de l'utilité des travaux publics", Annales des ponts et chaussées, 2nd series, 8 (1844).
  • V. L. Smith, autobiography, The Nobel Prize in Economic Sciences 2002 (nobelprize.org): the autumn of 1955, the plan, January 1956 and the lopsided design.

Papers.

  • V. L. Smith, "An Experimental Study of Competitive Market Behavior", Journal of Political Economy 70 (1962) 111–137.
  • D. K. Gode and S. Sunder, "Allocative Efficiency of Markets with Zero-Intelligence Traders", Journal of Political Economy 101 (1993) 119–137.
  • D. Cliff and J. Bruten, "Zero Is Not Enough: On the Lower Limit of Agent Intelligence for Continuous Double Auction Markets", HP Laboratories (1997).
  • T. Havranek, Z. Irsova and K. Janda, "Demand for Gasoline Is More Price-Inelastic than Commonly Thought", Energy Economics 34 (2012) 201–207.
  • C. A. Gallet and J. A. List, "Cigarette Demand: A Meta-Analysis of Elasticities", Health Economics 12 (2003) 821–835 (the mean as reported by Tobacco in Australia, section 13.1).
  • A. C. Wagenaar, M. J. Salois and K. A. Komro, "Effects of Beverage Alcohol Price and Tax Levels on Drinking", Addiction 104 (2009) 179–190.
  • R. Chetty, A. Looney and K. Kroft, "Salience and Taxation: Theory and Evidence", American Economic Review 99 (2009) 1145–1177.
  • W. Kopczuk, J. Marion, E. Muehlegger and J. Slemrod, "Does Tax-Collection Invariance Hold? Evasion and the Pass-Through of State Diesel Taxes", American Economic Journal: Economic Policy 8(2) (2016) 251–286.
  • E. L. Glaeser and E. F. P. Luttmer, "The Misallocation of Housing Under Rent Control", American Economic Review 93 (2003) 1027–1046.
  • R. T. Deacon and J. Sonstelie, "Rationing by Waiting and the Value of Time: Results from a Natural Experiment", Journal of Political Economy 93 (1985) 627–647.
  • R. Diamond, T. McQuade and F. Qian, "The Effects of Rent Control Expansion on Tenants, Landlords, and Inequality: Evidence from San Francisco", American Economic Review 109 (2019) 3365–3394.
  • E. Calvano, G. Calzolari, V. Denicolò and S. Pastorello, "Artificial Intelligence, Algorithmic Pricing, and Collusion", American Economic Review 110 (2020) 3267–3297.
  • S. Assad, R. Clark, D. Ershov and L. Xu, "Algorithmic Pricing and Competition: Empirical Evidence from the German Retail Gasoline Market", Journal of Political Economy 132 (2024) 723–771.

Data.

  • World Bank, Commodity Price Data (The Pink Sheet), monthly prices, update of 3 November 2026; retrieved 18 November 2026 (CC BY 4.0).
  • USDA Foreign Agricultural Service, Production, Supply and Distribution Online, coffee; retrieved 18 November 2026.
  • Federal Reserve Bank of St. Louis, FRED: CPIAUCNS (Bureau of Labor Statistics); retrieved 18 November 2026.

Textbooks. A. Marshall, Principles of Economics, Book V; H. Varian, Intermediate Microeconomics (chs 1, 15–16); N. G. Mankiw, Principles of Economics (chs 4–8); P. Krugman and R. Wells, Economics (chs 3–5).

About this partfrom its README

Part 2 of a sixty-eight-part course in economics (see the series plan and the syllabus), in Act I, The Question. It asks what sets a price, and answers with Marshall's two blades: what the last unit is worth to the last buyer, and what it costs the last seller.

It opens at Purdue University in January 1956, where Vernon Smith ran his first double auction expecting the competitive model to fail, and watched it converge. From there it covers:

  • Smith's paradox of water and diamonds (1776), the cost theories of Ricardo and Marx, Whately's pearl divers, and value at the margin (Jevons, Menger, Walras, 1871 to 1874);
  • demand built one buyer at a time: Ana's cups, three drinkers added sideways, and crowds of 10 to 10,000 buyers whose staircase becomes a straight line; the law of demand and its two reasons;
  • supply built from rising costs, Marshall's scissors (1890), and the four cards that fix the band in Part 1's pit;
  • a lopsided market played by the viewer, Smith's worry that convergence was "an accident of symmetry", and the test of whether zero-intelligence traders find its price (they do not: Cliff and Bruten 1997);
  • elasticity along a straight line, spending and the price where it is greatest, the midpoint formula on the Island's calm and stormy days, and petrol's short and long run;
  • shifts: storms on the Island, comparative statics, and Brazil's black frost of July 1975, which cut the world's coffee crop by a sixth and multiplied the price of Arabica 5.7 times;
  • an intermission without narration: sixty-six years of eight commodities' real prices, under the real price of coffee played as a tune;
  • surplus from Dupuit's bridges (1844) to the triangle a market loses when trade stops short;
  • who pays a tax: the pit taxed from either side, the incidence formula, and two field studies in which who remits the tax does matter;
  • price controls: a cap and a floor in the pit, the lottery loss on top of the triangle, petrol queues, and San Francisco's rent control; the is/ought card;
  • the Dials' first row (the price elasticity of staples), work that uses all of this, and a frontier chapter on prices set by algorithms.
What is computed and built

Everything plotted is computed by compute.py from Agora, the Data Room or a primary text, and the narration states the cached numbers.

  • Water and diamonds (illustrative): the value of one more litre with q litres already in hand, 30e^(−q/28) dollars (plus a fraction of a cent), so the first 150 litres are worth about $837 and the 150th about 14 cents.
  • Demand: Ana's cups ($4.00, $2.50, $1.20, $0.40), Bo's and Chidi's, sorted into one staircase; crowds of 10, 100, 1,000 and 10,000 buyers with values uniform on $0 to $6 (agora.curves.crowd), drawn per head against the line Q/n = 1 − p/6.
  • The pit and its designs (agora.market): Part 1's twenty cards; the lopsided design (buyers $2.60 to $2.15, sellers $0.60 to $2.85), a flat supply at $2.00 and a flat demand at $2.60, planted in explainer.economics.island (Part 2's truths). Forty-one runs of six periods for each design and each kind of trader (Cliff's learning traders and Gode and Sunder's zero-intelligence ones); the run shown in chapter 4 is the median of the 41 by final-period convergence. The double auction takes a tax remitted by either side and a legal maximum or minimum price.
  • The fish market (the Island, simulated): each day 400 buyers' values are drawn afresh on $0 to $6, and a storm (probability 0.15) keeps a third of the 400 fish's worth of catch ashore; each day's cards are cleared at the competitive price. The planted lines are Q = 400(1 − p/6) and Q = 400(p − 0.5)/4.5.
  • Elasticity, surplus, tax and controls on the lines (agora.curves.Linear): exact formulas; the lottery loss of a cap is checked in the tests against a simulated crowd of 200,000 traders.
  • The frost: monthly Arabica and Robusta prices from the World Bank's Pink Sheet (nominal US dollars a kilo); Brazil's and the world's coffee production by marketing year from USDA's PSD Online (the world is the sum of every country in the file); prices in October 2026 dollars deflated by the US CPI (CPIAUCNS). The rough elasticity uses midpoint changes between the 1975/76 and 1976/77 world crops and the 1975 and 1977 average prices.
  • The intermission: eight Pink Sheet series, deflated, each divided by its average in its first twelve months; the data melody maps the real price of Arabica (annual means, log scale) to D dorian.
  • The Dials: the rows of explainer.economics.dials for the price elasticity of staples, each with where it was read and the date checked.
  • 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 What sets a price? Purdue, 1955: Smith's doubt and his plan, in his own words; January 1956 and his amazement; his prediction, to be scored; water and diamonds; the title; the Tableau's first two pipes open; objectives
1 Water and diamonds Smith's paradox and value in use and in exchange; Ricardo and Marx; Whately's pearl divers; Jevons, Menger and Walras; the value of one more litre, the whole area against the last height; a price measures the margin
2 Demand, one buyer at a time Ana's four cups and her staircase; three drinkers added sideways, 6 cups at $1.50; crowds of 10, 100, 1,000 and 10,000 buyers; the line they tend to; the law of demand and its two reasons
3 Supply, and the scissors A farm's rising cost per sack; Marshall's scissors in 1890 and in the fifth edition; the pit's four marginal cards and the band $2.20 to $2.30; the cards that do not matter; both blades
4 Play it: guess the price Smith's "accident of symmetry"; the lopsided cards; the tempting guesses $1.73 and $2.05; the band $2.25 to $2.30; buyers keep $1.23, sellers $6.47; Agora's traders converge by the third period; zero-intelligence traders stop near $2.10
5 Why it converges Excess supply above the band, excess demand below; Gode and Sunder; four markets, two kinds of trader: random traders miss by 17 to 25 cents when the market is lopsided; why; Called it?: Smith's prediction, wrong; the first Fact's columns
6 Elasticity Percent over percent; steep and flat; elasticity and spending along the fish market's line, −1 at $3.00; the midpoint formula on calm and stormy days (−0.82, −1.26, −1.02); petrol's −0.09 and −0.31
7 Shifts: a frost in Brazil The Island's 120 days and its storms, sliding along the planted demand line; which blade moved; 18 July 1975; Brazil's crop −60%, the world's −16%; Arabica from $1.23 to $7.00 a kilo; a rough elasticity of −0.16 and its caveats; the 1994 frosts; 2025's nominal record against 1977's real one
Intermission: sixty-six years of prices No narration: the real prices of oil, coffee, cocoa, sugar, wheat, copper, tin and gold, 1960 to 2026, under the real price of coffee as a tune; the story so far
8 Surplus Dupuit's bridge: the tolls, the surplus above them, the crossings prevented; the pit's $3.40 and $3.30; one pair fewer, one pair more; the fish market's surpluses and the deadweight loss
9 Who pays a tax? A 40-cent tax on the pit's sellers: buyers pay $2.46, sellers keep $2.06, one unit lost; the same tax on buyers; the incidence formula; the fish market's 57%; salience (Chetty, Looney and Kroft) and evasion (Kopczuk and others)
10 Price controls A cap at $2.00: five sellers, seven buyers; 98.5% with the right buyers, 83% by lottery, 84% in the pit; petrol queues; San Francisco's rent control; a floor at $2.60; the is/ought card
11 When the picture fails What the picture assumed; where each failure is taken up
12 The Dials: how much do people respond? The first dial filled: petrol, cigarettes, beer, wine, spirits; the first sixteen dials
13 In practice: who sets prices for a living Commodity desks, pricing teams, tax analysts, competition authorities
14 Frontier: prices set by algorithms Q-learning sellers that learn to keep prices high (Calvano and others 2020); German petrol stations (Assad and others 2024); three open questions; the research problem
Recap, problems, and the road ahead The answer; ten lines; problems; reading; Kuznets and Part 3

Companion material in this repository

The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
  1. Hook: Chamberlin's market that missed (1948), Smith's that hit (1956–62); the question; objectives.
  2. Water and diamonds: Smith's paradox; the labour theory in Ricardo and Marx; Jevons, Menger, Walras (1871–74).
  3. Demand built from reservation prices, one buyer at a time; the step function; the law of demand.
  4. Supply built from costs; Marshall's scissors (1890); equilibrium; who is the marginal trader.
  5. Play it: guess the clearing price from the cards before the market opens.
  6. Why it converges: surplus on the table; Smith's rounds; Gode and Sunder's zero-intelligence traders (1993): how much of the result is the institution.
  7. Elasticity defined, drawn and computed; revenue and the midpoint; short and long run.
  8. Shifts: a frost in Brazil; comparative statics as a habit of thought.
  9. Surplus: Dupuit (1844) and Marshall; the triangle that taxes destroy.
  10. Tax incidence: the side that cannot move pays; it does not matter who writes the cheque (and the evidence that sometimes it does).
  11. Price controls: rent ceilings and queues; price floors; the gasoline lines of 1973–74; who gains.
  12. When the picture fails: few sellers, hidden quality, spillovers (the payoff cards to Acts III and IV).
  13. Dials. 13. In practice: commodity desks, pricing teams, tax drafting. 14. Frontier: price discovery in thin and algorithmic markets.

Agora: market: demand and supply from primitives, the clearing price, comparative statics, wedges and controls; the double auction with human-like, zero-intelligence and equilibrium traders. Play it: the film's guess; on the site, set a tax and predict who bears it. Dials: price elasticities of a few staples (gasoline, cigarettes, housing services). Facts: double auctions converge within a few rounds. Called it? Smith's own expectation that the competitive model would fail in his classroom. Reading: Marshall 1890, Book V; Smith 1962; Gode & Sunder 1993; Varian chs 1, 15–16; Mankiw chs 4–8; Krugman & Wells chs 3–5.

Build the film

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

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

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

The data are frozen extracts in explainer/economics/data/, retrieved on 18 November 2026 and registered in SOURCES.md: the World Bank's Pink Sheet (update of 3 November 2026), USDA's coffee balance sheets, and the US consumer price index from FRED. The Bureau of Labor Statistics never published an index for October 2025, during the federal shutdown; that one month is filled log-linearly from its neighbours wherever a price is deflated, and the films say so on their data tags.