Mental Models204 cards · 12 fields

Mental Models/Game Theory

Backward Induction

逆向归纳

Work back from the last move and you know what to do at each step now.

Anyone who has done a maze on paper knows this: try each path from the entrance and you often end up in a dead end; trace back from the exit and the way is clear at once. In 1858 the American chess player Paul Morphy played a game in a Paris opera house. Across the board were two noblemen who talked over their moves together while watching the show. Morphy used the trace-back-from-the-exit method. The game later became known as "the Opera Game."

Morphy first worked out the last move: if his rook could reach the back row where the other side's king stood, the king would have nowhere to go and the game would be over. Only one piece stood in the rook's way, one of the other side's knights. Then he stepped back one move: to get that knight out of the way, he had to give it a piece it could not refuse to take. So he pushed his most valuable piece, his queen, up next to the enemy king and put it in check, that is, threatened to take the king outright. The other side had only one way out: take the queen with that knight. The moment the knight moved, the rook came in. Checkmate.

Seen from front to back, throwing away the queen looks like a blunder; seen backward from the checkmate, it was the only way in to the win.

Play a round of "Race to 30" with someone. Two people take turns counting up from 1; on each turn you carry on the count by one or two numbers, and whoever says 30 wins. Thinking forward from the start, there are too many branches; thinking backward, it is simple.

Suppose you reach 27. Your opponent can only stop at 28 or 29, and either way you can go straight to 30 on your next turn, so 27 is a sure win. By the same reasoning, reaching 24 guarantees you get to 27 next turn, and before that come 21 and 18, all the way back to 3. Finally you are back at the start: whoever speaks first can only reach 1 or 2, short of 3, and whoever goes second can always make it up to 3. So in this game you should let the other person count first, and after that, if they count some numbers, you count 3 minus that many.

Reasoning backward like this is backward induction. First stand at the last step and see what the person deciding there will choose. Take that result as settled, then step back to the step before, and keep going until you reach the present.

Back from 30 to the start: let them go first
Back 3Back 3Back 3Back 3Back to startReach 30Whoever says it winsReach 27Any reply, you get to 30Reach 24Sure to get 27 next21, 18 … 6Each stop a multiple of 3Reach 3First number to winLet them count firstThey say 1 or 2, you get 3
Back 3Back 3Back 3Back 3Back to startReach 30Whoever says it winsReach 27Any reply, you get to 30Reach 24Sure to get 27 next21, 18 … 6Each stop a multiple of 3Reach 3First number to winLet them count firstThey say 1 or 2, you get 3

Top to bottom is the order you reason back in: each stop makes sure you reach the one above next turn. At the start, whoever counts first can't reach 3.

With each step back, everything after it is already settled

If you try Race to 30 forward, every turn offers two ways to count, and there are more than 1.3 million different ways to count from 0 to 30. Backward, you only need to work out ten stops. Standing at 27, whether your opponent counts one number or two, you are the one who reaches 30 next, so the outcome at this stop is already settled: a win. 27 then becomes the new finish line, and you ask whether 24 can guarantee reaching 27. At each stop you only look one step ahead, not at the whole game.

When someone else makes the last move, use their own sums

You ask a carpenter you know well to build you a bookcase. He quotes 1,000 yuan; you pay a deposit first and the rest once the bookcase is made. Once the deposit is paid, the last decision is the carpenter's: build it or not. If he builds it, he spends 700 yuan on materials and gets 1,000 in total once it's done, a net 300; if he doesn't, he simply keeps the deposit for nothing. So he compares just one thing: whether the deposit is more or less than 300 yuan. If the deposit is the full 1,000 yuan, he doesn't build it; lower the deposit to 200 yuan and he will; at 400 yuan he won't again.

In your place, you'll only put down a deposit under 300 yuan

The bookcase is worth 1,200 yuan to you. When it is your turn to set the deposit, first take the carpenter's choice at his step as settled. With a 400-yuan deposit, you foresee that he won't build it, and the deposit is gone: you lose 400 yuan. With a 200-yuan deposit, he will build it, and you pay 1,000 yuan for a bookcase worth 1,200 to you, a gain of 200 yuan. So you will only pay a deposit under 300 yuan.

Backward induction works best when the end is clear and all earlier moves can be seen: board games, installment payments, taking turns making offers. When there are many moves, as in chess, there are too many lines to work back through, so you can only work back a few moves ahead and estimate a score there. Scheduling a project backward from its delivery date looks like backward induction but is not: there is no second person making a choice at the last step.

Act
When ordering the rounds of a multi-round purchasing review, first think about who makes the final call in the last round and what they care about, and prepare the materials for the earlier rounds around their questions.
Predict
Estimate how a deadline negotiation with turn-by-turn counteroffers will end: first work out how much the person making the offer in the last round can take, and every earlier offer will move toward that number.
  1. Who is the last person with a choice? When it's their turn, what does each option get them? Go through the contract, and ask the person themselves.
  2. For every path I leave open to them, judged by their own sums, would they really be willing to take it when they get there?
  3. Which item in the contract, the penalty for breaking it, the payment dates or the deadline, would flip their last choice if it changed? Change it one step and work it out again.

Computing

Solving checkers all the way

In 2007, Jonathan Schaeffer's team at the University of Alberta in Canada announced in Science that checkers had been solved: if neither side makes a mistake, the game is always a draw. First they built an endgame database that settled, one position at a time, the win, loss or draw of every position with ten pieces or fewer left on the board. From the other end, they searched forward from the opening, and as soon as a line of play reached the database, its result was settled. Once every opening line was connected to the database, the result of the whole game was a draw.

E-commerce

Auctions that stop on the dot

In their early years eBay and Amazon both ran online auctions, with almost the same rules except for the ending: eBay stops on the dot, while Amazon automatically extends the auction if anyone bids in the last ten minutes. On eBay, whoever bids in the last second leaves opponents no time to answer; bidding early only shows others your limit. A comparison the economists Alvin Roth and Axel Ockenfels published in 2002 showed that more than half of eBay auctions still had bids in the last ten minutes, while only about one in ten Amazon auctions was extended for that reason. The more experienced the buyers, the later they bid on eBay, and the earlier on Amazon.

Sports

The last round at Gijón

In the last round of group matches at the 1982 World Cup, West Germany played Austria in Gijón, Spain. Algeria, in the same group, had finished its match the day before, so the two teams could work backward from the standings: if West Germany won by one or two goals, both teams went through; if West Germany drew or lost, it was out; if it won by three or more, Austria was out. West Germany scored in the first ten minutes, and the score sat right in the range that suited both sides. Both teams more or less stopped contesting the ball and played out the game. FIFA saw that the flaw was that the team playing last could see the others' results, and from then on the last round of group matches kicked off at the same time.

Backward InductionCredible CommitmentMake it impossible to back out, and people will believe you'll follow through.A landlord writes in the lease: one day late with the rent and the lease is ended. Backward induction works it through: when that day comes, finding a new tenant means two months with the place empty, so the landlord doesn't want to end the lease, and the tenant can safely pay late. As a threat, the line is useless. Credible commitment goes and changes the landlord's sums at the last step: he signs an advance agreement with the next tenant first, so someone takes over the moment the lease ends, and when the day comes he really will end it. If you want a line to carry weight, change what is gained and lost at the last step instead of just saying it more firmly.Backward InductionNash EquilibriumWhen nobody can do better by changing their move alone, things stay where they are.Two shops set next month's prices on the same day, and neither can see the other's hand. With no order of moves there is no last step to start from, and backward induction has nowhere to begin; what you look for is the situation in which neither wants to change its price on its own. As soon as one shop posts its price first and the other sets its own after seeing it, there is an order, and then you reason backward. When moves are made at the same time, use Nash equilibrium; only when there is an order and earlier moves can be seen, use backward induction.Backward InductionRepeated Games and Tit for TatIf you'll meet again, cooperate first, then do what they did. It usually pays best.Two small firms send each other customers, and agree to part ways after ten referrals. Backward induction reasons back from the tenth referral, all the way to the first, and finds that no referral is worth making first. Repeated games see that as long as there is a next time, not referring today means the other side won't refer tomorrow, and that is what holds the cooperation up. When the number of rounds is fixed and both sides will reason all the way to the end, guard yourself as backward induction says and keep your leverage for the last round; when the number of rounds is open and you'll meet again, keep your word first and expect the other side to keep theirs.

You've outsourced a small app to a development team. The contract has one month left, and it's already agreed it won't be renewed. The acceptance check only tests whether the features work; whether the code is well written will only show in six months, when the requirements change.

This month, where is the team most likely to slack off?

There are 22 matches on the table. You and your opponent take turns removing 1 to 3 matches each time, and whoever takes the last match loses. You go first, and your opponent also makes the best choice at every step.

How many matches should you take first to be sure of winning?

Two people take turns deciding, with a pot of money on the table at the start. Whoever's turn it is can take the larger share, which ends the game at once and leaves the other person the smaller share; or not take it and pass the money to the other person, and every pass doubles the total. On the last round, the person whose turn it is can only take. Working back from the last round, the first person should take the money right away. When researchers had volunteers actually play, most pairs passed for several rounds before anyone took.

For the first person, what do these results show?