Derivatives Foundation puzzles, solved step by step
- Puzzles
- 100
- Traced to a firm
- 66
- Topics
- 12
- Hard
- 29
015You have three six-sided dice. Red has the faces 2, 6, 7; green has 1, 5, 12; blue has 3, 4, 8, with each number on two faces. Two players each pick a die and roll; the higher number wins. Which die would you choose to play with?Belvedere TradingChicago · 2022
Try it first
Before working the pairs: green has the highest average face, 6 against 5 for red and blue. Does that make green the best die?
Show the worked solution
Let the other player choose first, then take the die that beats theirs. Red beats green 5 times in 9, green beats blue 5 in 9, and blue beats red 5 in 9. The three dice form a cycle like rock, paper, scissors, so no die is best on its own; the advantage belongs to whoever picks second. If you must pick first, no choice does better than 4 in 9 against a wise opponent, and you should say so rather than pretend one die is stronger.
How can three dice with the same average not have a best one?
Three cricket teams can each beat one of the others and lose to the third; a league table would show them level, and still no team is the best. Winning a roll depends only on which die shows the higher face, pair by pair, and pairwise comparisons do not have to line up in a single order the way averages do. Red and blue average 5 and green averages 6, and yet green loses to red 5 times in 9: every head-to-head is lopsided, 5 to 4, in a circle, and the highest average sits inside it. Green's 12 wins by a mile and its 1 loses by a mile, and a roll pays nothing for the margin. The question tests whether you check the comparison that matters instead of the summary that does not.
Red beats green in 5 of the 9 equally likely face pairs, green beats blue in 5 of 9 and blue beats red in 5 of 9, so the three dice form a cycle with no best die and the player who picks second always holds a 5 in 9 edge. How do you check a pair quickly in the room?
Write one die's faces across and the other's down and count the cells where the first is higher. Red against green: 2 beats only the 1; 6 beats 1 and 5; 7 beats 1 and 5; that is 1 + 2 + 2 = 5 of 9. Green against blue: 1 beats nothing, 5 beats 3 and 4, 12 beats everything, again 5 of 9. Blue against red: 3 and 4 each beat the 2, and 8 beats 2, 6 and 7, again 5 of 9. Three counts, under a minute, and the cycle appears.
The relationshipR, G, B the face shown by the red, green and blue die 9 the number of equally likely face pairs, three distinct faces on each die 5/9 each die's edge over the next one around the cycle What it says in wordsCount the winning face pairs out of nine for each ordered pair, and the three results form a cycle.What is the trading lesson the interviewer is after?
That the order of moves can be worth more than the thing being chosen. The second mover has a guaranteed 5 in 9; the first mover, against someone who knows the cycle, has at best 4 in 9, so you should pay to move second and never volunteer to move first. That is the same instinct as quoting after you have seen the other side's interest rather than before. The limitation to state: the edge is only 5 to 4, so over a few rolls luck dominates, and a one-roll bet on it is a small edge with a large variance.
Where candidates lose it
The common answer is green, because it has the biggest face and the highest average. Both facts are true and both are irrelevant: a roll pays for being higher, not for being higher by a lot, and the pairwise count is the only thing that decides it.
The second loss is finding the cycle and still naming a die. The answer to which die is a question back: which one is the other player taking? Say that you want to choose second, and why.
What the interviewer asks next
- Each player rolls their die twice and the totals are compared. Does the cycle survive, and does it change direction?
- Design a fourth die that beats all three of these more often than not, or show that none exists.
- Where on a trading desk does moving second carry an edge, and where does it cost you?
Asked at Belvedere Trading, Prop Trading, Chicago, 2022 (Wall Street Oasis):
You have 3 dice: red has 2, 6, 7; green has 1, 5, 12; blue has 3, 4, 8. Highest number wins the game. Which one would you choose to play with?
040Five rational pirates, A the most senior down to E, split 100 gold coins. The most senior proposes a split; it passes if at least half of the pirates, his own vote included, agree, otherwise he is thrown overboard and the next most senior proposes. Each pirate wants to survive, then to get the most coins, then to see others thrown overboard. How should A split the coins to survive and keep the most?Old Mission CapitalNew York · 2014
Try it first
How many coins can A keep?
Show the worked solution
A proposes 98 for himself, 0 for B, 1 for C, 0 for D and 1 for E. Work backwards. With two pirates, D keeps 100, since his own vote is half. With three, C keeps 99 and gives E 1, because E gets nothing if C dies. With four, B keeps 99 and gives D 1. With five, A needs two other votes and buys the cheapest: C and E, who get nothing under B's plan, accept one coin each. A's vote plus two makes three of five.
Why does the answer come from the end of the game, not the start?
When you negotiate a price you think about what the other side does if you walk away; what they do next determines what they will accept now. Each pirate compares the offer in front of him with what he would get under the next proposal, so to know what A must offer you first need to know what B would do, which needs C, which needs D with two pirates left. With two pirates, D proposes 100 for himself; his own vote is one of two, which is half, so it passes and E gets nothing. That is the anchor. Every earlier step is a question of who gets zero in the next round, because those are the pirates whose votes are cheapest to buy.
Working up from two pirates, D keeps 100, C keeps 99 by paying E one coin, B keeps 99 by paying D one coin, and A keeps 98 by paying C and E one coin each, the two pirates who would receive nothing under B's proposal. How does each proposer decide whose vote to buy?
He buys exactly the number of extra votes he needs, from the pirates who are cheapest, and a pirate is cheap if the next proposal gives him nothing. With three pirates, C needs one more vote; under D's plan E gets zero, so C offers E one coin and keeps 99, and E accepts because one is better than zero. With four, B needs one more; under C's plan D gets zero, so B pays D one coin. With five, A needs two more votes, and under B's plan the pirates with nothing are C and E, so A pays them one coin each and keeps 98; offering anything to B or D is wasted, because B would get 99 and D one coin without A, and neither can be bought for less. The alternation is the pattern to say out loud: each round, the pirates who were paid last time are the ones left out this time.
The relationshipeach tuple coins to the proposer first, then to the others in order of seniority the 1s votes bought for one coin from pirates who would get zero in the next round votes needed half of the pirates, rounded up, including the proposer: 1 of 2, 2 of 3, 2 of 4, 3 of 5 What it says in wordsEach proposer keeps everything except one coin for each extra vote he needs, bought from whoever the next round would leave empty-handed.What assumptions is the answer resting on, and what happens when they change?
Three assumptions, and the interviewer will test at least one. Pirates are perfectly rational and know the others are. A pirate who is indifferent between two outcomes prefers the one where a rival is thrown overboard, which is why a bought pirate must be paid one coin and not zero. And the voting rule is at least half, with the proposer voting. Change the rule to a strict majority of all votes and the two-pirate case flips, D cannot pass anything and dies, so E would reject everything in the three-pirate round, and the whole ladder shifts. With a strict majority of the other pirates' votes the ladder shifts again, and a candidate who re-derives it from the two-pirate anchor is the one who gets hired. The limitation is that real negotiators are not this rational; the puzzle is a model of backward induction, not of pirates.
Where candidates lose it
The common loss is reasoning forward from fairness, offering 20 each or 50 for A, and being unable to say why those numbers rather than others. Fairness is not in the rules; survival and coins are.
The second is paying the wrong pirates. B and D would do well without A and cannot be bought cheaply; C and E would get nothing. Candidates who pay B and D have not worked out the four-pirate round.
What the interviewer asks next
- The proposal now needs a strict majority of all votes. What does A propose?
- The proposal needs a majority of the other pirates' votes, excluding the proposer. Does A survive?
- There are 6 pirates. How does the pattern continue?
- What if a pirate who is indifferent prefers to keep the proposer alive?
Asked at Old Mission Capital, Prop Trading, New York, 2014 (Wall Street Oasis):
There are 5 pirates and they are trying to split 100 gold coins in a rational way.
045Two players each ante Rs 1 and receive one card from an ace, a king and a queen. Player one may bet Rs 1 or check, and a check goes straight to showdown. Facing a bet, player two may call or fold. How often should player one bluff with the queen, and how often should player two call with the king?Old Mission CapitalNew York · 2022
Try it first
How often should player one bet the queen?
Show the worked solution
Player one bets the ace always, checks the king, and bluffs the queen one time in three; player two calls with the ace, folds the queen, and calls with the king one time in three. The bluff rate makes one bet in four a bluff, which is the break-even for a call of 1 into a pot of 3. The king's call rate makes player two fold one time in three overall, the break-even for a bluff of 1 into a pot of 2. Player one gains 1/18 of a rupee a hand.
Which decisions are obvious, and which one is the real question?
Start by removing the choices nobody would make. Player one always bets the ace, since it wins every showdown, and player two always calls with the ace and folds with the queen, since those cards win or lose every time; the only real decisions are player one's queen and player two's king. Player one's king should check: if it bets, player two calls only with the ace and folds the queen, so the bet loses 2 half the time and wins 1 half the time, an average of -0.5, worse than the 0 a showdown gives. That leaves two numbers to find, the queen's bluff frequency and the king's calling frequency, and each is set to make the other player's choice a matter of indifference.
How do you find the bluffing frequency?
A goalkeeper who always dives left is easy to beat; a penalty taker mixes his side so the keeper gains nothing by guessing. Poker equilibrium works the same way. Player one bluffs just often enough that player two's king gains nothing by calling over folding, and player two calls just often enough that player one's queen gains nothing by bluffing over checking. Facing a bet with the king, folding loses the ante, -1. Calling wins 2 against a bluff and loses 2 against the ace. With the ace always bet and the queen bet a fraction b of the time, a bet is a bluff with probability b / (1 + b). Setting the call's value equal to -1 gives b = 1/3, so one bet in four is a bluff.
The relationshipb how often player one bets the queen c how often player two calls with the king -1 the value of the alternative: folding the king, or checking the queen, each loses the ante 1/2 given the queen, player two holds the ace or the king with equal chance What it says in wordsEach player's frequency is chosen so that the other player's two choices are worth the same.Player one bets the ace, checks the king and bluffs the queen one time in three, while player two calls with the ace, folds the queen and calls with the king one time in three, because those frequencies leave each player's marginal choice worth exactly the same either way. How do you sanity check the frequencies, and who wins the game?
Use pot odds as the check. Player two calls 1 to win a pot of 3, two antes and the bet, so a call breaks even when bluffs are 1 / (3 + 1) of bets, a quarter, which is what b = 1/3 delivers. Player one bluffs 1 to win the pot of 2, so a bluff breaks even when player two folds 1 / (2 + 1) of the time; he folds the queen always and the king two times in three, which averages to one in three. Average over the six deals and player one gains 1/18 of a rupee a hand, because only he can bet; neither player can improve on that by changing his own frequency. Against a player two who never calls with the king, bluffing every queen would earn 1/6 of a rupee a hand instead of 1/18. The limitation is that equilibrium is a defence, not the most profitable play against a predictable opponent; a desk uses it as the baseline and then leans towards the other side's mistakes.
Where candidates lose it
The common loss is saying player one should never bluff because the queen cannot win a showdown. Without bluffs player two simply folds his king to every bet, and player one's ace stops getting paid.
The second is giving the bluff rate as a quarter. A quarter is the share of bets that are bluffs; because the ace is always bet, that needs the queen bet one time in three. Keep the two fractions apart and say which one you mean.
What the interviewer asks next
- Player two may also bet after player one checks. How does the equilibrium change?
- The bet size doubles to Rs 2. What are the new bluffing and calling frequencies?
- Player two never calls with the king. What is player one's best response, and what does it earn?
- Why does player one never want to bet the king?
Asked at Old Mission Capital, Quantitative Research, New York, 2022 (Wall Street Oasis):
Asking to find the game theory optimal strategy in a simplified poker game
095Three people stand in a line facing forward, wearing hats drawn from 3 red and 2 blue. The back person sees the two hats ahead, the middle person sees only the front hat, and the front person sees none. The back says "I don't know my colour", then the middle says "I don't know my colour". What colour is the front person's hat?Wolverine Trading, Chicago, ILUSA · 2019
Try it first
What does the back person's "I don't know" rule out?
Show the worked solution
Red. The back person would know his hat if he saw two blues, since only two exist; his silence rules that out. The middle person now knows the two front hats are not both blue. If he saw blue on the front person, he would know his own was red, and he would say so. His silence means the front hat is not blue. So the front person, who sees nothing, deduces red from the two silences alone.
What does a silence tell everyone else?
If a friend who can see the scoreboard says she cannot tell who is winning, you learn that the scores are close. Her not knowing is information, because you know what she would have said if they were not. Each "I don't know" rules out every world in which that person would have known, and everyone behind and in front can use it. The back person would know only in one world: two blue hats ahead, which forces his own to be red. So his silence removes that world, and the middle and front people both hear it.
Of the four hat pairs the back person might see on the middle and front people, his silence crosses out blue and blue, the middle person's silence then crosses out a red middle with a blue front, and both rows that survive have a red hat on the front person, which is why the front person knows the answer without seeing anything. How does the middle person's silence finish it?
The middle person now knows that he and the front person are not both blue. He looks at the front hat. If it is blue, he cannot be blue too, so he is red, and he would say so. He does not. The middle person's silence can only mean he sees a red hat in front, because a blue one would have told him his own colour. The front person runs the same reasoning, does not need to see anything, and says red. The full check enumerates the seven possible hat triples, removes the ones where the back person would know, then the ones where the middle person would, and every survivor has red in front.
The relationshipM, F the middle and front hats B, R blue and red the arrow what each silence lets everyone conclude What it says in wordsThe first silence removes the case of two blues ahead, and the second removes a blue in front, which leaves only red.Then say what it rests on, because that is the interview point. The puzzle needs common knowledge: everyone knows the hat counts, everyone reasons perfectly, and everyone knows the others do too. If the middle person might simply be slow, his silence carries no information and the front person learns nothing. On a trading floor the same logic runs in the other direction: a counterparty who could have traded and chose not to has told you something, and reading those non-events is part of the job.
Where candidates lose it
The common loss is saying the front person cannot know anything because they see nothing. That ignores that the two silences are data. The question is built to see whether you treat a non-answer as information.
The second loss is running the logic from the front. Start with the person who has the most information, the back, ask what would have let him know, and strike that case. Then move forward one person at a time.
What the interviewer asks next
- Suppose the back person says "I know". What can the other two conclude?
- With 2 red and 3 blue hats, does the same chain of silences tell the front person anything?
- If only the back person speaks and says "I don't know", what can the middle person conclude about his own hat when he sees red in front?
Asked at Wolverine Trading, Prop Trading, Chicago, IL, USA, 2019 (Wall Street Oasis):
a brain teaser about the hat problem where 3 people go into a room with I think 3 red and 2 blue hats
