All Chapters

The Missing Chapter

Mechanism Design

How to build games that people can't cheat at

An extension of Jordan Ellenberg's "How Not to Be Wrong"

Chapter 27

The Seven-Billion-Dollar Idea

In 1994, the United States government did something unusual: it hired game theorists. The Federal Communications Commission needed to sell off slices of the electromagnetic spectrum—the invisible real estate that carries your cell phone calls, your Wi-Fi, your GPS signal—and it wanted to do it right. The result was the most lucrative auction in human history, raising over $7 billion more than anyone had predicted.1

Before the auctions, the government had tried two approaches to handing out spectrum licenses, and both were embarrassing. The first was the "beauty contest": companies would submit proposals explaining why they deserved the license, and a committee of bureaucrats would pick the winner. If you're imagining a process ripe for lobbying, backroom deals, and corruption, you're imagining correctly. The second approach was a lottery. Random! Fair! Completely insane! Speculators with zero interest in building cell towers would enter, win, and flip the license. In one infamous case, a small company won a license worth millions and immediately sold it at a massive profit without ever transmitting a single signal.2

The economists who designed the FCC auction—Paul Milgrom and Robert Wilson, who would later win the Nobel Prize for this work—faced a profound question. Not "what will people do in this game?" but its reverse: "what game should we build so that people, doing what they naturally do, produce the outcome we want?"

This is mechanism design. If game theory is the science of playing games, mechanism design is the science of building them. It's reverse engineering: you start with the outcome you want and work backward to the rules that produce it.

· · ·

The Second-Price Surprise

To understand why mechanism design is so powerful, you need to understand the most elegant auction ever invented. It was created by William Vickrey in 1961, and it's so clever it won him a Nobel Prize.3

Here's the setup. You're bidding on a painting at a sealed-bid auction. You think the painting is worth $500 to you. In a standard first-price auction—highest bidder wins, pays their bid—what do you bid?

Not $500. If you bid $500 and win, you pay exactly what the painting is worth to you, so you gain nothing. You need to shade your bid downward. Maybe $400? But wait—what if someone else bids $410? You could've won at $420 and been happy. The whole thing turns into a guessing game about what others will bid, which is a guessing game about what they think the painting is worth, which is a guessing game about what they think you think...

It's turtles all the way down.

Vickrey's insight was gorgeous in its simplicity: make the winner pay the second-highest bid.

First-Price Auction Bid: $400 thinks $500 Bid: $300 thinks $350 Bid: $250 thinks $280 Winner pays $400 Everyone shades down ↓ Second-Price (Vickrey) Bid: $500 thinks $500 ✓ Bid: $350 thinks $350 ✓ Bid: $280 thinks $280 ✓ Winner pays $350 Everyone bids truthfully ✓

In a first-price auction, everyone shades their bids down. In a Vickrey auction, honesty is the dominant strategy.

Think about why this works. Your bid in a Vickrey auction does exactly one thing: it determines whether you win. It doesn't affect what you pay. If you win, you pay whatever the second-highest person bid—a number that has nothing to do with you. So there's no incentive to shade downward (you might lose unnecessarily) and no incentive to bid above your value (you might win at a price that costs you money). Bidding your true value is not just a good idea—it's a dominant strategy. It's optimal regardless of what anyone else does.

The Mechanism Designer's Trick

Make the rules so that the smartest thing every player can do is tell the truth. When honesty is the dominant strategy, you don't need to trust anyone—the math handles it.

If you've ever used eBay, you've encountered the Vickrey mechanism in the wild. When you enter your maximum bid on eBay, the system bids incrementally on your behalf up to that maximum. The winner pays just above the second-highest bid. Vickrey, without knowing it, designed the rules for a platform that wouldn't exist for another three decades.4

Try it yourself. In the interactive below, you can run auctions under both rules and watch the difference in behavior:

🔨 Auction Lab

Compare first-price vs. second-price auctions. AI bidders have hidden valuations. Watch how strategy changes the game.

Your bid: $70
0
Rounds Played
$0
Avg First-Price Revenue
$0
Avg Vickrey Revenue
· · ·

The Revelation Principle

The Vickrey auction hints at something much deeper—a result so fundamental that it structures the entire field of mechanism design. It's called the revelation principle, and it says something startling: any outcome that can be achieved by any mechanism—no matter how complicated, with any amount of strategizing by participants—can also be achieved by a mechanism where everyone simply reports the truth.5

This doesn't mean truth-telling mechanisms are always practical. It means that when a theorist is searching for the best mechanism, she can restrict her search to truthful ones without missing anything. It's like discovering that every maze has a solution that only turns right. You still have to find the solution, but you've narrowed the search space enormously.

The proof is elegant. Suppose you have some complicated mechanism where Alice lies strategically to get a good outcome. Build a new mechanism: ask Alice for her true information, and then have the mechanism lie on her behalf, doing internally whatever strategic manipulation Alice would have done. Alice tells the truth, the mechanism handles the strategy, and the outcome is identical. The lying hasn't disappeared—it's just moved inside the machine.

· · ·

You Can't Buy a Kidney (But You Can Trade One)

In 2004, a surgeon named Michael Rees at the University of Toledo faced a problem that no amount of surgical skill could solve. He had a patient who needed a kidney. The patient's wife was willing to donate. But her kidney was incompatible—the wrong blood type. Across the country, thousands of similar pairs were stuck in the same cruel bind: a willing donor, a desperate recipient, and biology saying no.

You can't sell kidneys. The National Organ Transplant Act of 1984 makes it a federal crime. But economist Alvin Roth realized something: you don't need a market to solve this problem. You need a mechanism.6

The idea is breathtakingly simple. Suppose Pair A (donor A gives to recipient A) is incompatible, and so is Pair B. But what if donor A is compatible with recipient B, and donor B is compatible with recipient A? Then we can do a swap: each donor gives to the other pair's recipient. Nobody buys anything. Nobody sells anything. Two patients who would have died get kidneys.

Donor A Type B Patient A Needs A Donor B Type A Patient B Needs B SWAP!

A kidney exchange: Donor A gives to Patient B, Donor B gives to Patient A. No money changes hands. Two lives saved.

But pairs don't always come in neat twos. Sometimes you need cycles: A donates to B's patient, B donates to C's patient, C donates back to A's patient. The longer the cycle, the more people you can help—but also the more surgeries that have to happen simultaneously (if one donor backs out mid-chain, the whole thing collapses). Roth and his colleagues designed algorithms to find the maximum number of swaps given compatibility constraints, while keeping cycles short enough to be practical.

By 2012, kidney exchange programs had facilitated thousands of transplants that would otherwise never have happened. Roth won the Nobel Prize that year, sharing it with Lloyd Shapley. His work is the most viscerally powerful example of mechanism design's promise: not a theorem, not an abstract result, but a system that saves lives.7

Explore the matching problem yourself:

🫁 Kidney Exchange Matcher

Add incompatible donor-recipient pairs. The algorithm finds optimal exchange cycles so the most patients get kidneys.

Add at least 3 pairs, then click "Find Optimal Matching" to see exchange cycles.
· · ·

Choosing Schools Without Tears

The same ideas that match kidneys also match students to schools. In Boston, through 2005, the school assignment mechanism worked like this: you ranked your top choices, and the system tried to give everyone their first choice. If a school was oversubscribed, it used a priority system (siblings, proximity) to decide who got in, and everyone else dropped to their second choice.

Sounds reasonable? It was a disaster. Savvy parents realized that listing a competitive school as your first choice was a huge gamble. If you didn't get in, your second-choice school might already be filled by people who'd listed it first. The optimal strategy was to game the system: list a less popular school first to guarantee a spot, even if it wasn't what you actually wanted. The mechanism punished honesty.

The fix came from, again, mechanism design. Researchers proposed replacing the Boston mechanism with deferred acceptance, an algorithm invented by David Gale and Lloyd Shapley in 1962. In deferred acceptance, you rank schools honestly—your true preferences. The algorithm runs multiple rounds: students "propose" to their top choice, schools tentatively hold the best applicants and reject the rest, rejected students propose to their next choice, and so on until everyone is matched. The beautiful property: listing your true preferences is always optimal. You can't game it.8

New York City adopted a version of deferred acceptance in 2004 for high school admissions. In the old system, about 30,000 students a year ended up at schools they hadn't even listed. In the new system, that number dropped by over 90%.

· · ·

The VCG Mechanism: Truth at Scale

The Vickrey auction handles one item. What about many items, with complicated preferences? What if you want spectrum licenses in New York AND Los Angeles, but not one without the other? Enter the VCG mechanism—Vickrey-Clarke-Groves—which generalizes the second-price idea to arbitrary settings.

The core logic: choose the outcome that maximizes total value (based on what everyone reports), and charge each person a price equal to the harm they cause to others by existing. That is: your payment equals the total value everyone else would have gotten if you weren't there, minus the total value they actually get. You internalize your externality.

VCG Payment for Player i
Paymenti = Σj≠i vj(outcome without i) Σj≠i vj(actual outcome)
You pay exactly the damage your presence does to everyone else.

Like the Vickrey auction, this makes truth-telling dominant. Your report determines which outcome is chosen, but your payment depends only on others' values. Lying can change the outcome (possibly making it worse for you) but can't reduce your price. Google used a version of VCG for years to price search ads.

· · ·

The Impossibility at the Edge

Here is where the story darkens, as it must. Mechanism design is powerful, but it has a boundary—a hard mathematical wall that no cleverness can breach.

Consider the simplest possible trading scenario: one buyer, one seller, one object. The buyer has a private value for the object. The seller has a private cost of giving it up. We'd like a mechanism that:

  1. Trades if and only if the buyer's value exceeds the seller's cost (efficiency)
  2. Makes truth-telling optimal for both parties
  3. Doesn't require an outside subsidy
  4. Doesn't force anyone to participate against their will

The Myerson-Satterthwaite theorem says: you can't have all four. There is no mechanism—no set of rules, no matter how ingenious—that achieves efficient trade with voluntary participation, honest reporting, and budget balance. Some trades that should happen won't happen. Some surplus will be left on the table.

"The impossibility isn't a failure of imagination. It's a feature of the universe. Private information creates friction, and no mechanism can fully eliminate it."

This is the deep lesson of mechanism design: it shows us not only what is possible, but what is impossible. It tells us that the gap between the world we want and the world we can engineer is sometimes irreducible—not because we haven't tried hard enough, but because the math won't allow it.

The Myerson-Satterthwaite Trade-off Truthful Reporting Budget Balance Voluntary Participation Full Efficiency You can have any three. Never all four.

The Myerson-Satterthwaite impossibility: no mechanism achieves all four properties simultaneously in bilateral trade.

And yet. The kidney exchange exists. The spectrum auctions worked. School choice improved. Mechanism design can't achieve perfection, but it can—and does—get us remarkably close. The field's ultimate message isn't pessimism; it's precision. It tells us exactly how much we can gain from good design, exactly where the limits lie, and exactly what we must trade away to get what we want.

That is, after all, what mathematics is for: not to tell us what to wish for, but to tell us the price of our wishes.

Notes & References

  1. The FCC Simultaneous Multiple Round Auction, designed primarily by Paul Milgrom and Robert Wilson, began in 1994. The first major broadband PCS auction (1994-95) raised $7.7 billion. See: Milgrom, P. (2004). Putting Auction Theory to Work. Cambridge University Press.
  2. For the chaotic history of pre-auction spectrum allocation, see Hazlett, T.W. (1998). "Assigning Property Rights to Radio Spectrum Users: Why Did FCC License Auctions Take 67 Years?" Journal of Law and Economics, 41(S2), 529–575.
  3. Vickrey, W. (1961). "Counterspeculation, Auctions, and Competitive Sealed Tenders." Journal of Finance, 16(1), 8–37. Vickrey won the Nobel in Economics in 1996 but died just three days after the announcement.
  4. eBay's "proxy bidding" system is essentially a Vickrey auction, though with ascending rather than sealed bids. The equivalence in terms of truthful bidding was recognized early. See Lucking-Reiley, D. (2000). "Vickrey Auctions in Practice." Journal of Industrial Economics, 48(3), 249–272.
  5. The revelation principle was independently established by Gibbard (1973), Green and Laffont (1977), and Myerson (1979). See Myerson, R.B. (1981). "Optimal Auction Design." Mathematics of Operations Research, 6(1), 58–73.
  6. Roth, A.E., Sönmez, T., & Ünver, M.U. (2004). "Kidney Exchange." Quarterly Journal of Economics, 119(2), 457–488.
  7. As of 2023, kidney paired donation programs in the US have facilitated over 7,000 transplants. The Alliance for Paired Kidney Donation, co-founded by Michael Rees, has organized chains of over 100 transplants.
  8. Abdulkadiroğlu, A., Pathak, P.A., & Roth, A.E. (2005). "The New York City High School Match." American Economic Review, 95(2), 364–367. The Gale-Shapley algorithm was published in 1962: Gale, D. & Shapley, L.S. "College Admissions and the Stability of Marriage." American Mathematical Monthly, 69(1), 9–15.