量化金融 · 第 18 册 · 职业发展

Interviews I: Maths, Probability and Speed

本书暂未推出简体中文版。现有版本:English, Français。

Interviews I: Maths, Probability and Speed · 职业发展

15Games

Thinking through what the other side will do. Take-away games yield to a losing-position table and to nim-sums, sequential games to backward induction, and simultaneous games to the rule that a mix must leave the opponent indifferent. Toy poker games and auctions put these together.

Question 15.1 ★ QR, QT, Trader, Analyst • any • junior

There is a pile of 97 stones. Two players take turns removing between 1 and 6 stones, and whoever takes the last stone wins. Should you go first, and what is your first move? How do things change if whoever takes the last stone loses?

Answer

Answer to Question 15.1.

Go first and take 6, leaving 91. If taking the last stone loses, go first and take 5, leaving 92.

Multiples of 7 are losing for the player to move. From a multiple of 7, any move leaves a non-multiple; from a non-multiple, you can always get to a multiple. So whatever the opponent takes, you take the rest of 7. Since 97=13⋅7+697 = 13 \cdot 7 + 6, you take 6.

If the last stone loses, you want the opponent to face exactly 1 stone. So the losing positions are one above a multiple of 7, and you need to leave 92.

Classic wrong answer. Saying that the losing total is the same in both versions. The target shifts by one, because the last stone is now a stone you want to avoid.

Question 15.2 ★ QR, QT, Trader • any • junior

There are two piles, of 5 and 8 stones. Two players take turns, and each turn removes any positive number of stones from one pile. Whoever takes the last stone wins. Who wins, and how? What if the piles are equal to begin with?

Answer

Answer to Question 15.2.

The first player wins by taking 3 stones from the larger pile, which makes both piles 5. If the piles start equal, the second player wins.

Equal piles lose for the player to move. Whatever that player takes from one pile, the opponent takes the same from the other, so the piles stay equal and the opponent gets the last stone. Unequal piles win, because one move makes them equal. A brute-force table up to piles of 9 confirms the rule.

Classic wrong answer. Thinking that the larger pile is an advantage in itself, and trying to keep it. Only the difference matters, and the winner is the one who hands over a difference of 0.

Question 15.3 ★ QR, QT, Trader, Analyst • any • junior

You and I each show a coin at the same moment. If both show heads, I pay you $3. If both show tails, I pay you $1. If they differ, you pay me $2. What should each of us do, and what is this game worth to you per round?

Answer

Answer to Question 15.3.

Each player shows heads with chance 3/83/8, and the game is worth −$1/8-\$1/8 to you per round.

A mix must make the other player indifferent, or that player would exploit it. If I show heads with chance qq, your two choices earn

3q−2(1−q)and−2q+(1−q),3q - 2(1 - q) \quad\text{and}\quad -2q + (1 - q),

and these are equal at q=3/8q = 3/8, which gives a value of −1/8-1/8. Your mix pp solves the same equations, and it is also 3/83/8.

As a second route, add up the four outcomes under those mixes: 964⋅3+2564⋅1−3064⋅2=−18\tfrac{9}{64} \cdot 3 + \tfrac{25}{64} \cdot 1 - \tfrac{30}{64} \cdot 2 = -\tfrac18.

The four payoffs add up to zero, and so the game looks fair, but it is not. The big payoff is the one you can rarely collect: heads against heads happens only 9/649/64 of the time, because I avoid it.

Classic wrong answer. Saying each should show heads more often, since the big win comes from heads. If you show heads more, I would show tails, and you would pay $2 more often. Your payoffs set my mix, not yours.

Question 15.4 ★ QR, QT, Trader, Analyst • any • junior

Everyone in a room writes a whole number from 0 to 100. The winner is the person closest to two-thirds of the average of all the numbers. If everybody is fully rational and knows that everybody else is too, what is written? What would you write in a real room, and why?

Answer

Answer to Question 15.4.

Fully rational players write 0, or 1, since with whole numbers both are stable. In a real room you write a number above that, because other people do not go all the way down.

Two-thirds of the average can never exceed 66.766.7, so any number above 67 does no better than 67, whatever the others write. If everybody knows that, the average is at most 67, so nothing above 45 is worth writing. Repeating the argument brings the top down to 1. If all write 0, the target is 0. If all write 1, the target is 23\tfrac23. In a room of five or more, it stays closer to 1 than to 0 even after one person moves to 0, so nobody gains by moving down.

In a real room, the question is how many steps others take. If they pick at random, averaging 50, the best reply is 33. Thinking that they are all at 33, the reply is 22, and then 15. So pick a low number that is one step beyond what the others do, not the theoretical answer.

Classic wrong answer. Writing 0 and claiming victory. It is the equilibrium if everyone is rational and knows it, but the question asks you to win. Against real people, too much reasoning loses just like too little.

Why it matters. This is a model of markets where value depends on what others think that others think. The rational answer and the profitable answer can differ, and being one step ahead beats being right.

Question 15.5 ★★ QR, QT, Trader • any • junior

In a game of rock, paper, scissors, a win with rock pays $1, a win with paper pays $2, and a win with scissors pays $3, and a tie pays nothing. What is the equilibrium mix? Which option is played most often, and why does that look odd at first?

Answer

Answer to Question 15.5.

Play rock 1/21/2, paper 1/61/6 and scissors 1/31/3 of the time. Rock is played most, even though a win with rock pays least.

In a symmetric zero-sum game like this one, the value is 0 and each choice must earn 0 against the mix. Let the mix be (r,p,s)(r, p, s):

rock: s−2p=0,paper: 2r−3s=0,scissors: 3p−r=0.\text{rock: } s - 2p = 0, \quad \text{paper: } 2r - 3s = 0, \quad \text{scissors: } 3p - r = 0.

So r=3pr = 3p and s=2ps = 2p, and these add up to 6p=16p = 1.

It looks odd, because you would expect the highest-paying choice to be most common. But the frequencies are not set by what a choice earns for you. They are set by what they do to the other player. Rock is frequent because it has to deter the choice that pays most: if rock were rare, scissors would earn its $3 with no risk. A linear program on the 3×33 \times 3 matrix gives the same mix.

Classic wrong answer. Mixing in proportion to the payoffs, 1:2:31:2:3. Against that mix, rock earns 36⋅1−26⋅2=−16\tfrac36 \cdot 1 - \tfrac26 \cdot 2 = -\tfrac16, paper earns 16⋅2−36⋅3=−76\tfrac16 \cdot 2 - \tfrac36 \cdot 3 = -\tfrac76, and scissors earns 26⋅3−16⋅1=56\tfrac26 \cdot 3 - \tfrac16 \cdot 1 = \tfrac56, so the opponent plays scissors every time.

Question 15.6 ★★ QR, QT, Trader, QD • any • junior

There are three piles, of 3, 5 and 7 stones. Each turn removes any positive number of stones from one pile, and whoever takes the last stone wins. Should you go first? List all winning first moves, and prove the rule that you use.

Answer

Answer to Question 15.6.

Go first. The nim-sum is 3⊕5⊕7=13 \oplus 5 \oplus 7 = 1, which is not zero. There are three winning moves: to (2,5,7)(2, 5, 7), (3,4,7)(3, 4, 7) and (3,5,6)(3, 5, 6).

The rule: a position loses for the player to move exactly when the bitwise exclusive-or of the piles is 0. Here is the proof, in three steps.

First, the empty position has nim-sum 0, and it is lost.

Second, any move from nim-sum 0 gives a non-zero nim-sum, because changing one pile changes the bits, and the rest stay fixed.

Third, from a non-zero nim-sum ss, there is a move to 0. Take a pile with the top bit of ss set, and replace it by pile ⊕ s\oplus\ s. That new value is smaller, since the top bit of ss goes from 1 to 0, and it makes the total 0.

Here s=1s = 1, whose top bit is bit 0. All three piles are odd, so any of them can be used: 3→23 \to 2, 5→45 \to 4, 7→67 \to 6. A brute-force search of all piles up to 5, and of this position, confirms the rule and the three moves.

Classic wrong answer. Trying to reason by parity of the number of stones, or to keep the piles balanced by size. The binary digits decide, and piles of 1,2,31, 2, 3 lose for the player to move even though they look uneven.

Question 15.7 ★★ QR, QT, QD • any • junior

In one pile, a player may remove 1, 3 or 4 stones each turn, and whoever takes the last stone wins. Compute the Grundy values for piles of up to 8 stones. Now the game is played on two such piles, of 10 and 6, and each turn is a move in one pile. Who wins, and with what move?

Answer

Answer to Question 15.7.

The Grundy values for 0 to 8 stones are 0,1,0,1,2,3,2,0,10, 1, 0, 1, 2, 3, 2, 0, 1, with period 7. The first player wins with piles of 10 and 6, because g(10)⊕g(6)=1⊕2=3g(10) \oplus g(6) = 1 \oplus 2 = 3. The winning moves are to take 4 from the 10, leaving 6 and 6, or to take 3 from the 6, leaving 10 and 3.

The Grundy value of a position is the smallest non-negative integer not among the values of its moves. A position with value vv behaves in a sum like a Nim pile of size vv. So for n=4n = 4, the moves lead to 3, 1 and 0, with values 1,1,01, 1, 0, so g(4)=2g(4) = 2. For n=5n = 5 the moves lead to 4, 2, 1, with values 2,0,12, 0, 1, so g(5)=3g(5) = 3.

A sum loses when the values’ nim-sum is 0. You need a move in one pile that matches the value of the other. From 10, a value of 2 is reachable by taking 4. From 6, a value of 1 is reachable by taking 3, as g(3)=1=g(10)g(3) = 1 = g(10). A brute-force table over pairs of piles finds these two moves and no others.

Classic wrong answer. Using plain Nim on the pile sizes, 10⊕6=1210 \oplus 6 = 12. Pile sizes only work if any number of stones can be removed. Here you must use the Grundy values.

Question 15.8 ★★ QR, QT, Trader, Analyst • any • junior

Five pirates, ranked A to E, share 100 gold coins. The highest-ranked living pirate proposes a split, and all living pirates vote. If at least half agree, the split stands; otherwise, the proposer is thrown overboard, and the next one proposes. Each cares first about survival, then about coins, and then prefers to see someone thrown overboard. What does A propose? How does that change if a proposal needs more than half of the votes?

Answer

Answer to Question 15.8.

A proposes 98 for A, 0 for B, 1 for C, 0 for D and 1 for E. If a proposal needs more than half, A proposes 97 for A, 1 for C and 2 for one of D or E.

Work backwards, with at least half needed.

With D and E, D votes for D’s own plan, which is half: (100,0)(100, 0).

With C, D and E: C needs one vote. E gets 0 otherwise, so E takes 1: (99,0,1)(99, 0, 1).

With B, C, D and E: B needs one more vote. D gets 0 otherwise: (99,0,1,0)(99, 0, 1, 0).

With all five: A needs two more votes, from those who would get 0 under B, and they are C and E: (98,0,1,0,1)(98, 0, 1, 0, 1).

With more than half needed, D is doomed when only D and E are left, since E can reject and take all. So D will back C for free, and C keeps 100 with D’s vote. B needs three of the four votes, and D and E each get 1, for (98,0,1,1)(98, 0, 1, 1). A needs three of five, and the cheapest are C, for 1, and one of D or E, for 2.

Classic wrong answer. Giving each pirate an equal share to get votes. A voter compares with the next round, not with the others, and a vote costs one coin above what that voter would get next round.

Why it matters. In any vote or negotiation the price of a voter depends on what that voter gets if the current offer fails. That is the logic of a bargaining position.

Question 15.9 ★★ QR, QT, Trader • market maker, hedge fund • junior

Two traders divide $1 by alternating offers: A offers a split, B accepts or rejects; if B rejects, B offers, then A accepts or rejects, and so on. Each round of delay multiplies the value of the money by 0.90.9. If there are at most three rounds, and after a rejection in the third both get nothing, what does A get? And if there is no limit on rounds?

Answer

Answer to Question 15.9.

With three rounds, A gets 0.910.91. With no limit, A gets 1/(1+0.9)=10/19≈0.5261/(1 + 0.9) = 10/19 \approx 0.526.

For three rounds, work backwards, in the money of that round. In round 3, A offers B nothing and keeps 1, because B gets nothing by rejecting. In round 2, B must offer A what round 3 is worth to A today, which is 0.90.9, and B keeps 0.10.1. In round 1, A must offer B 0.9⋅0.1=0.090.9 \cdot 0.1 = 0.09, and A keeps 0.910.91.

With no limit, let xx be what the proposer gets. The game looks the same after a rejection, so the responder must be given δx\delta x, and the proposer keeps 1−δx1 - \delta x. Then x=1−δxx = 1 - \delta x, which gives x=11+δx = \frac{1}{1 + \delta}. Iterating the backward induction over many rounds converges to this.

The limits make sense. At δ=0\delta = 0, the proposer takes all, and as δ→1\delta \to 1 both get a half. Proposing first is worth more when delay is costly.

Classic wrong answer. Using the last-mover result for the unlimited game. The large share of 0.910.91 comes from A having the final offer, and with no last round, that advantage is gone.

Question 15.10 ★★ QR, QT, Trader • any • junior

A penalty taker aims left or right, and a keeper dives left or right, at the same moment. The chance of a goal when the taker aims left is 0.60.6 if the keeper dives left and 0.950.95 if the keeper dives right. When the taker aims right it is 0.90.9 if the keeper dives left and 0.50.5 if the keeper dives right. Find the equilibrium and the chance of a goal. The taker then improves, and the 0.90.9 becomes 0.950.95. Does the taker aim right more or less often?

Answer

Answer to Question 15.10.

The taker aims left with chance 8/158/15, the keeper dives left with chance 3/53/5, and the chance of a goal is 0.740.74. After the improvement the taker aims right less often: 7/167/16 instead of 7/157/15.

The taker’s mix leaves the keeper indifferent. With pp the chance of aiming left, the goal chance is

0.6p+0.9(1−p) if the keeper dives left, and 0.95p+0.5(1−p) if right.0.6p + 0.9(1 - p) \text{ if the keeper dives left, and } 0.95p + 0.5(1 - p) \text{ if right.}

These agree at p=8/15p = 8/15, at a value of 0.740.74. The keeper’s chance qq of diving left solves 0.6q+0.95(1−q)=0.9q+0.5(1−q)0.6q + 0.95(1 - q) = 0.9q + 0.5(1 - q), so q=3/5q = 3/5.

With the 0.90.9 raised to 0.950.95, the first expression changes, and p=9/16p = 9/16. So aiming right falls from 7/15≈0.4677/15 \approx 0.467 to 7/16≈0.4387/16 \approx 0.438, and the value rises to about 0.7530.753.

The surprise is correct. The taker’s mix has to keep the keeper indifferent, and when aiming right has become more dangerous, the keeper dives left less. That keeper’s shift makes it better to aim left. The improved option is used less, and the taker still gains. A linear program gives both results.

Classic wrong answer. Saying that you should use your improved skill more. In a game with a responding opponent, a change in your payoffs moves the opponent’s mix, and yours is set by what makes the opponent indifferent.

Why it matters. An improved signal or trading venue does not always mean you should use it more. If other players respond, the result is in the equilibrium, not in your own table of payoffs.

Question 15.11 ★★ QR, QT, Trader, Analyst • market maker, crypto • junior

nn bidders have private values that are independent and uniform on [0,1][0, 1]. In a second-price auction, what should each bid, and why? In a first-price auction, find the symmetric equilibrium bid. What revenue does the seller expect in each?

Answer

Answer to Question 15.11.

In a second-price auction, bid your value. In a first-price auction, bid n−1nv\frac{n - 1}{n}v. In both, the seller expects n−1n+1\frac{n - 1}{n + 1}.

Second price: your bid decides only whether you win, never what you pay. If the highest other bid is below your value, you want to win, and if it is above, you do not. Bidding your value does both, so it is dominant.

First price: suppose the others bid βv\beta v. Bidding bb wins when all n−1n - 1 others have values below b/βb/\beta, so the payoff is (v−b)(b/β)n−1(v - b)(b/\beta)^{n - 1}. Setting the derivative to zero gives b=n−1nvb = \frac{n - 1}{n}v, for any β\beta, and so this is consistent. A scan over bids at v=0.9v = 0.9 confirms the maximum for n=2,3,5n = 2, 3, 5.

Revenue: second-price pays the second-highest value, whose mean is n−1n+1\frac{n - 1}{n + 1}. First-price pays n−1n\frac{n - 1}{n} times the highest value, whose mean is nn+1\frac{n}{n + 1}, which gives the same. This is revenue equivalence, and it is an equality of means only. The first-price revenue has a lower variance in the simulation.

Classic wrong answer. Assuming a first-price auction earns more because the winner pays their own bid. Bidders shade their bids to allow for that, and in this setup the shade exactly cancels the difference.

Question 15.12 ★★ QR, QT, Trader, Analyst • hedge fund, market maker • junior

A task is worth $4 to each of nn people, and it gets done if at least one of them does it. Doing it costs the doer $1. They all decide at the same moment, with no talk. In the symmetric equilibrium, where each does it with the same probability, what is that probability for n=2n = 2 and for n=3n = 3? How likely is it that nobody does it, and what happens as nn grows?

Answer

Answer to Question 15.12.

Each does it with probability 3/43/4 for n=2n = 2 and 1/21/2 for n=3n = 3. Nobody does it with chance 1/161/16 and 1/81/8, and this rises towards 1/41/4 as nn grows, while each person’s own probability falls to 0.

A mixed strategy is used only if both choices pay the same. Doing it pays 3 for sure. Not doing it pays 4 if at least one of the other n−1n - 1 does it. With probability pp for each, the condition is

3=4(1−(1−p)n−1),that is(1−p)n−1=14.3 = 4\bigl(1 - (1 - p)^{n - 1}\bigr), \qquad\text{that is}\qquad (1 - p)^{n - 1} = \tfrac14.

So p=3/4p = 3/4 for n=2n = 2 and p=1/2p = 1/2 for n=3n = 3. The chance that nobody does it is (1−p)n=(14)n/(n−1)(1 - p)^n = (\tfrac14)^{n/(n - 1)}, which gives 1/161/16, 1/81/8, and tends to 1/41/4.

Each person’s payoff is 3 whatever nn is, since doing it is always one of their best choices. So a larger group helps nobody here.

Classic wrong answer. Saying that with more people, the task is more likely to get done. Each person relies more on the others as the group grows, and this more than offsets the extra hands. Exactly one person doing it is also an equilibrium, but only if the group can agree who.

Why it matters. A risk that anyone on a desk could flag, at a small private cost, has this shape. A larger group is not a safer one unless someone is named as responsible.

Question 15.13 ★★ QR, QT • any • junior

A chocolate bar is a grid of mm by nn squares. A move picks a remaining square and eats it and every square above it and to its right. The player who eats the bottom-left square loses. Show that the first player has a winning strategy whenever the bar has more than one square, without finding what the winning move is. Give the explicit strategy on a square bar.

Answer

Answer to Question 15.13.

The first player wins, by a strategy-stealing argument. On a square bar, the explicit winning move eats the square diagonally next to the bottom-left one, which leaves two equal arms; after that, the first player mirrors.

Suppose that the first player eats only the top-right square. If that leaves a losing position for the opponent, the first player has won. Otherwise, the second player has a winning reply, which eats some square (i,j)(i, j). But eating (i,j)(i, j) also eats the top-right square, as that lies above and to the right of every square. So the first player could have played (i,j)(i, j) straight away and reached the same position. Either way, a winning first move exists. It is non-constructive, and it tells you nothing about the move.

Square: eat the square at the diagonal neighbour of the corner. What is left is a bottom row and a left column of the same length. Whatever the opponent eats from one arm, eat the same from the other. The opponent is left to eat the corner.

A brute-force game tree for all bars up to 5 by 5 confirms that the first player wins every bar except the 1×11 \times 1.

Classic wrong answer. Trying to find a pattern for the winning move in general. No simple formula for it is needed here, and the question is about existence. You should say so, and give the argument.

Question 15.14 ★★★ QR, QT, Trader • hedge fund, market maker • junior, experienced

A crew of pirates, ranked from top to bottom, share 100 gold coins. The highest-ranked living pirate proposes a split, and all living pirates vote, the proposer included. If at least half agree, the split stands; otherwise, the proposer is thrown overboard, and the next in rank proposes. Each pirate cares first about survival, then about coins, and then prefers to see someone thrown overboard. With up to 200 pirates, the first proposer survives. What happens to the first proposer with 201, 202, 203 and 204 pirates? With 300 pirates, how many are thrown overboard?

Answer

Answer to Question 15.14.

With 201 the proposer survives with no coins, and with 202 the same. With 203 the proposer dies, and with 204 the proposer survives. Beyond that, the proposer survives only at 200+2k200 + 2^k pirates: 208, 216, 232, 264, 328, and so on. With 300 pirates, 36 are thrown overboard.

Coins can buy at most 100 votes. With 200 pirates, the proposer needs 100 votes, pays 99 and keeps 1. With 201, 101 votes are needed: 100 bought, plus the proposer’s own, leaving none. With 202, 101 votes are still needed, and the same plan works.

With 203, 102 votes are needed, and there are only 101 votes available. So the proposer dies, whatever the plan. This creates a new source of votes: a proposer who would die in turn will vote for anything, in order to live.

With 204, 102 votes are needed: 100 bought, the proposer, and the next one, who would die otherwise.

In general, let mm be the last size at which the proposer survives. At size n=m+jn = m + j, the proposer has jj self-preserving votes, including their own, plus 100 bought. They need ⌈n/2⌉\lceil n/2 \rceil, which gives j≥m−200j \ge m - 200. So from m=202m = 202 you get 204, then 208, 216 and so on, and each survivor has twice the distance above 200.

For 300, the next survivor below is 264, so the 36 top pirates die one after another. At 299 votes needed are 150, and there are 35+10035 + 100 votes available, and it stays short all the way down to 264.

Classic wrong answer. Extending the coin allocation in a simple way past 200, or thinking that everyone dies once coins run out. Fear of being next creates free votes, which is why some of the larger sizes work.

Question 15.15 ★★★ QR, QT, Trader • market maker, hedge fund • junior, experienced

A three-card game is played with an ace, a king and a queen. X and Y each ante $1 and receive one card. X may check, and then the higher card wins the $2 pot, or bet $1. Facing a bet, Y may fold, and then X takes the pot, or call, and then the higher card wins the pot of $4. Find the equilibrium: how often does X bluff with the queen, and how often does Y call with the king? What is the game worth to X?

Answer

Answer to Question 15.15.

X bets the ace always, checks the king, and bluffs the queen with chance 1/31/3. Y calls with the ace, calls with the king with chance 1/31/3, and folds the queen. The game is worth 1/181/18 of a dollar to X, about 0.0560.056.

Some choices are dominated. With the ace, X should bet, and Y should call. With the queen, Y must fold. With the king, betting is bad for X: the queen folds, which is what checking would win anyway, and the ace calls, which costs more. So only two numbers are left.

Bluff frequency bb makes a king indifferent. When Y holds the king and faces a bet, X has the ace (1 way) or a bluffing queen (bb ways). Calling earns −2+2b1+b\frac{-2 + 2b}{1 + b}, and folding earns −1-1. These agree at b=1/3b = 1/3.

Calling frequency cc makes a queen indifferent. When X holds the queen, checking loses 1. Betting against the king earns 1−c1 - c when Y folds and −2c-2c when Y calls, and betting against the ace loses 2. So −1=12((1−c)−2c)+12(−2)-1 = \tfrac12\bigl((1 - c) - 2c\bigr) + \tfrac12(-2), which gives c=1/3c = 1/3.

The value comes from a linear program on the 8×88 \times 8 table of pure strategies, 1/181/18, and a simulation of the two mixes matches this. X earns it because X alone can decide whether more money goes in, so Y has to pay for the right to catch a bluff. The small edge comes from this choice, and not from any better cards, since the deal is fair to both players.

Classic wrong answer. Bluffing half of the time, or never. If you never bluff, the king always folds, and your ace earns less than it should. If you bluff too much, the king always calls. The correct rate makes the caller indifferent. A call costs one dollar to win a pot of three, so one bluff for every three value bets.

Question 15.16 ★★★ QR, QT, Trader • any • junior, experienced

Two bidders have independent private values, uniform on [0,1][0, 1], and the seller’s own value is 0. In a second-price auction with a reserve price rr, nobody can win below rr. Which reserve maximises the seller’s expected revenue, and what is the revenue? Does the best reserve change with more bidders? What does a reserve do for the total surplus?

Answer

Answer to Question 15.16.

The best reserve is 1/21/2, with revenue 5/125/12, against 1/31/3 with no reserve. It does not depend on the number of bidders. A reserve lowers the total surplus, from 2/32/3 to 7/127/12.

Bidding your value is still dominant. If both values are above rr, the price is the lower one. If only one is, the price is rr. If none is, no sale happens. So

R(r)=∫r1x⋅2(1−x) dx+r⋅2r(1−r)=13+r2−43r3.R(r) = \int_r^1 x \cdot 2(1 - x)\,dx + r \cdot 2r(1 - r) = \frac13 + r^2 - \frac43 r^3.

Setting R′(r)=2r−4r2=0R'(r) = 2r - 4r^2 = 0 gives r=12r = \tfrac12, and R(12)=5/12R(\tfrac12) = 5/12. A simulation matches this.

Why does it not depend on nn? The reserve is a rule for a single sale. It matters only when one bidder is above it and all others below, and then you are in effect setting a price for one buyer with a uniform value. A buyer whose value is above rr pays rr with chance 1−r1 - r, whose product is maximised at 12\tfrac12, whoever else is there. With 4 bidders, a scan of reserves gives the same result.

For surplus, the good goes to the highest bidder unless both values are below 12\tfrac12, which happens with chance 14\tfrac14. The surplus is then ∫1/21x⋅2x dx=7/12\int_{1/2}^1 x \cdot 2x\,dx = 7/12, instead of E[max⁡]=2/3E[\max] = 2/3.

Classic wrong answer. Saying that a reserve can only hurt because it risks no sale. It costs 14\tfrac14 of the sales, but it raises the price paid in the other cases, and the seller comes out ahead.

Question 15.17 ★★★ QR, QT, QD • any • junior, experienced

Coins sit on the steps of a staircase, with 3, 1, 4, 1 and 5 coins on steps 1 to 5. A move takes any positive number of coins from one step and puts them on the step below; from step 1 they leave the staircase. Whoever makes the last move wins. Who wins, and what is the first move? Explain why half of the steps can be ignored.

Answer

Answer to Question 15.17.

The first player wins, with one move only: take 2 coins from step 1, leaving (1,1,4,1,5)(1, 1, 4, 1, 5). Only the odd steps matter, and their nim-sum is 3⊕4⊕5=23 \oplus 4 \oplus 5 = 2.

Treat the odd steps as Nim piles. Moving coins from an odd step to the step below is a Nim move on that pile, as the coins land on an even step, which does not count. Moving coins from an even step lands them on an odd step, which enlarges a pile. But the opponent can always cancel that by moving the same coins on, from that odd step to the even step below (from step 1 they leave the staircase, and that counts as the same thing). So a move from an even step gains nothing. The game must end, because the coins go only downwards.

So the player facing a nim-sum of 0 on the odd steps loses. Here you need to make it 0. With s=2s = 2, the pile that has bit 1 set is 3, which becomes 3⊕2=13 \oplus 2 = 1. So you take 2 from step 1. Moves from even steps do not help: they make the sums 5 or 3.

A brute-force search over all moves from this position finds that single move, and the rule matches the brute force over all small staircases.

Classic wrong answer. Using all five piles in the nim-sum. The even steps can always be undone, so they are not real choices.

Question 15.18 ★★★ QR, QT, QD • any • junior, experienced

There are two piles of stones. A move removes any positive number from one pile, or the same positive number from both piles. Whoever takes the last stone wins. List the losing positions up to piles of 15. Is the position with piles 9 and 15 a win for the player to move, and with piles 10 and 15? What is the closed form for the losing positions?

Answer

Answer to Question 15.18.

The losing positions are (0,0)(0, 0), (1,2)(1, 2), (3,5)(3, 5), (4,7)(4, 7), (6,10)(6, 10), (8,13)(8, 13) and (9,15)(9, 15). The position (9,15)(9, 15) loses for the player to move, and (10,15)(10, 15) wins, by taking 1 from the first pile. The closed form is (⌊kφ⌋,⌊kφ2⌋)\bigl(\lfloor k\varphi \rfloor, \lfloor k\varphi^2 \rfloor\bigr), with φ=(1+5)/2\varphi = (1 + \sqrt{5})/2.

Build the list by hand. A losing position cannot share a pile size with another losing position, since one pile move would connect them. And it cannot share a difference with another, since a move on both piles keeps the difference. So at step kk, take the smallest positive integer not yet used as the smaller pile, and add kk to get the larger. Every other position can reach a losing position by one move, as a brute-force table up to 40 confirms.

The sequences ⌊kφ⌋\lfloor k\varphi \rfloor and ⌊kφ2⌋\lfloor k\varphi^2 \rfloor partition the positive integers exactly, by Beatty’s theorem, since 1/φ+1/φ2=11/\varphi + 1/\varphi^2 = 1. Also, φ2=φ+1\varphi^2 = \varphi + 1, so ⌊kφ2⌋=⌊kφ⌋+k\lfloor k\varphi^2 \rfloor = \lfloor k\varphi \rfloor + k, which is the required difference. So the formula fits the building rule.

Classic wrong answer. Using nim-sum again. With diagonal moves allowed, this is not a sum of independent piles, and 9⊕15=69 \oplus 15 = 6 is not zero, even though the position is losing.

Question 15.19 ★★★★ QR, QT • market maker, hedge fund • experienced

A poker game uses three cards, a jack, a queen and a king. Each player antes $1 and gets one card. Player 1 checks or bets $1. After a check, Player 2 checks, for a showdown, or bets $1, and then Player 1 folds or calls. After a bet, Player 2 folds or calls. Find the value of the game to Player 1, and describe a set of equilibrium strategies. Which hands bluff, and which player has the edge?

Answer

Answer to Question 15.19.

The game is worth −1/18-1/18 to Player 1, so the second player has the edge. There is a whole family of equilibria for Player 1. For α∈[0,13]\alpha \in [0, \tfrac13], bet the jack with chance α\alpha, always check the queen and call a bet with chance 13+α\tfrac13 + \alpha, and bet the king with chance 3α3\alpha, otherwise checking and calling. Player 2’s equilibrium strategy is: with the king, always bet or call; with the queen, check when checked to, and call with chance 13\tfrac13; with the jack, bet with chance 13\tfrac13 after a check, and fold to a bet.

Many choices are dominated. The king never folds, the jack never calls, and the queen is too strong to bluff with and too weak to bet for value. So the jack bluffs, and the king sometimes traps.

Now use indifference. Player 2 bluffs the jack with chance bb after a check. Player 1 with the queen faces that bet from a king (always) or a jack (bb). Calling earns −2+2b1+b\frac{-2 + 2b}{1 + b}, and folding earns −1-1, so b=13b = \tfrac13.

Player 2’s queen calling a bet with chance cc must keep Player 1’s jack indifferent. Checking with the jack loses 1 against both. Betting earns 12((1−c)−2c)+12(−2)\tfrac12\bigl((1 - c) - 2c\bigr) + \tfrac12(-2). So c=13c = \tfrac13.

Player 2’s queen is indifferent to a bet when the bets are three-quarters kings. That is why Player 1’s king bets with chance 3α3\alpha when the jack bluffs with chance α\alpha. Player 1’s queen call rate of 13+α\tfrac13 + \alpha keeps Player 2’s jack indifferent.

A linear program on the 27×6427 \times 64 table of pure strategies gives −1/18-1/18. Each member of the family, tested at α=0\alpha = 0, 0.10.1, 0.20.2 and 13\tfrac13, earns at least that against all 64 replies, and Player 2’s strategy holds all 27 pure strategies to at most that.

Classic wrong answer. Assuming the first to bet has the advantage. Acting second is worth more here, because you see what the other player does before you decide. Also, assuming that a unique equilibrium exists, when Player 1 has a whole line of them with the same value.

Why it matters. An edge of 1/181/18 of an ante comes entirely from position, with both players making no mistakes. Most of what you can earn in practice comes from an opponent’s departure from these frequencies.

Question 15.20 ★★★★ QR, QT • hedge fund, market maker • experienced

X and Y each ante $1 and each receive a private hand uniform on [0,1][0, 1], the higher hand being better. X may check, and then the higher hand takes the $2 pot, or bet $1. Facing a bet, Y folds, and X takes the pot, or calls, and the higher hand takes the $4 pot. Find the equilibrium, in the form: X bets with very weak hands and very strong hands, and Y calls with a strong enough hand. What is the game worth to X?

Answer

Answer to Question 15.20.

X bets with hands below 0.10.1 and above 0.70.7, and checks in between. Y calls with hands above 0.40.4. The game is worth $0.10\$0.10 to X.

Let Y call above cc. Checking with hand xx earns 2x−12x - 1. Betting earns cc from Y’s folds. With xx below cc, every call loses 2, so betting earns c−2(1−c)=3c−2c - 2(1 - c) = 3c - 2, whatever xx is. With xx above cc, betting earns c+2((x−c)−(1−x))c + 2\bigl((x - c) - (1 - x)\bigr).

Three conditions determine the solution:

  • A bluffing hand at aa is indifferent: 2a−1=3c−22a - 1 = 3c - 2.
  • A value hand at bb is indifferent: 2b−1=c+2(2b−c−1)2b - 1 = c + 2(2b - c - 1), so that b=(1+c)/2b = (1 + c)/2.
  • Y at cc is indifferent between folding, which loses 1, and calling, which wins 2 against a bluff and loses 2 against a value hand: 2a−2(1−b)a+1−b=−1\frac{2a - 2(1 - b)}{a + 1 - b} = -1, so that 3a=1−b3a = 1 - b.

Solving gives c=0.4c = 0.4, a=0.1a = 0.1 and b=0.7b = 0.7. Betting with the very worst hands works, because they lose anyway when they check, and they are the hands whose showdown value is lowest.

For a bet size BB, the same steps give a=B(B+1)(B+4)a = \frac{B}{(B + 1)(B + 4)}, c=B(B+3)(B+1)(B+4)c = \frac{B(B + 3)}{(B + 1)(B + 4)} and b=B2+4B+2(B+1)(B+4)b = \frac{B^2 + 4B + 2}{(B + 1)(B + 4)}. The value of the game equals aa, and it is largest at B=2B = 2, where it is 1/91/9. Numerical integration confirms the value at B=0.5B = 0.5, 1, 2 and 4, and a simulation of the rules at B=1B = 1 gives 0.100.10. For the given range, every other calling threshold gives X at least as much, which confirms that cc is Y’s best reply.

Classic wrong answer. Bluffing with middling hands, because those are nearest to winning. Bluffing has a constant payoff, so you bluff with the hands that have the least to lose by not checking, which are the very worst. Middling hands prefer to check and win at a showdown when they can.

Why it matters. The ratio of bluffs to value bets here is 0.1:0.30.1:0.3. A call costs $1 to win a pot of $3, and one bluff for every three value bets makes the caller indifferent. Any quoted or displayed size has to be readable in the same way, as a mix of strength and bluff.