LibraryQuant puzzles

Dice Game With One Re-roll: Interview Puzzle

Quant puzzle · intro · free, full solution

The question

This is a trading-interview classic, and everything it needs was built in Level 0.

We roll one ordinary six-sided die and are paid as many dollars as it shows.

  1. What is the game worth per go, meaning the amount a player collects on average over many goes?
  2. New rule. After seeing the first roll we may throw it away and roll once more, and then we must take the second roll, whatever it shows. What is the game worth per go now?
  3. Which first rolls should we keep, and why is the cut-off where it is?

Work it on paper before reading on. A list of six lines is all it takes.

Hint

Price the plain game first. Then, with a first roll showing, ask what is actually given up by throwing it away.

The idea behind it

A choice is priced by comparing what we hold with what the alternative is worth on average, and the alternative here is a game we have already priced. The common wrong answers either forget the choice or forget the rolls that got thrown away.

Worked solution

The plain game

Each of the six faces is equally likely. Over 600 goes each face turns up about 100 times, so the payments add to about 100 times 21, which is 2100 dollars across 600 goes. That is 3.5 dollars a go. It is the average of 1, 2, 3, 4, 5 and 6, which is something called the Expected value of one roll: the average Outcome over many goes, and not a result any single roll can pay.

The choice changes the game

Here is the whole trick. If we throw the first roll away, what we get is a fresh roll of an ordinary die, and we have just priced that: 3.5 dollars on average. So once the first roll is showing, the decision is a comparison of two numbers. Is what we are holding worth more than 3.5?

Now list the six equally likely first rolls with what each one ends up worth:

first rollwhat we doworth
1roll again3.5
2roll again3.5
3roll again3.5
4keep4
5keep5
6keep6

The worth column adds to 25.5, and 25.5 over six lines is 4.25 dollars a go. The right to roll again is worth 0.75 dollars a go on top of the plain game.

Why the cut-off sits between 3 and 4

Move it and the table says what the move costs. Keeping a 3 as well swaps a 3.5 for a 3 on that line, so the column adds to 25 and the game falls to about 4.17. Keeping only a 6 swaps a 4 and a 5 for two 3.5s, and the game falls to about 3.92. Never rolling again, or always rolling again, both give back the plain 3.5. Every other rule is worse than keeping 4, 5 and 6, because only that rule takes the larger of the two numbers on every line.

Where the tidy answers break

Quoting 5. The rolls we keep, 4, 5 and 6, average 5, and it is tempting to call that the answer. It forgets the three lines where we rolled again. Those happen half the time, and they are worth 3.5, not 5.

Quoting 3.5 again. The second roll really is worth 3.5 on average, the same as the first. But the game is not the second roll. The game is the choice, and the choice is what we are being asked to price.

Reading 4.25 as a promise. A single go pays a whole number from 1 to 6. It never pays 4.25 (it can't). The 4.25 describes many goes, and somebody allowed only one go may sensibly pay less than it. That is a question about how much uncertainty a person can sit through, not about arithmetic.

How we know this landed

Cover the table and rebuild it. If the six lines come back with three 3.5s and then 4, 5 and 6, and they add to 25.5, it landed. Two slips are likely. Getting 25.5 but dividing by 3 gives 8.5, larger than anything the die can pay, which is the sign that the lines were counted wrong: there are six. Keeping a 3 and getting about 4.17 means the comparison was made against the wrong number: the bar is what a fresh roll is worth, 3.5, not the middle face.

The follow-up an interviewer usually asks next is two re-rolls instead of one. The last roll is worth 3.5, the stage before it is the 4.25 game we just priced, so on the first roll we keep only what beats 4.25: a 5 or a 6. The six lines then add to 28, and the game is worth about 4.67 dollars a go. Every step was the same comparison, run backwards from the end.

Bar chart of Worth in dollars against First roll. Keep the roll. 1: 1; 2: 2; 3: 3; 4: 4; 5: 5; 6: 6. One re-roll allowed. 1: 3.5; 2: 3.5; 3: 3.5; 4: 4; 5: 5; 6: 6. Two re-rolls allowed. 1: 4.25; 2: 4.25; 3: 4.25; 4: 4.25; 5: 5; 6: 6. Reference line a fresh roll, 3.5 at y = 3.5. Reference line the one re-roll game, 4.25 at y = 4.25.Worth in dollarsKeep the rollOne re-roll allowedTwo re-rolls alloweda fresh roll, 3.5the one re-roll game, 4.2502468123456First roll1234563.53.53.54564.254.254.254.2556Bar chart of Worth in dollars against First roll. Keep the roll. 1: 1; 2: 2; 3: 3; 4: 4; 5: 5; 6: 6. One re-roll allowed. 1: 3.5; 2: 3.5; 3: 3.5; 4: 4; 5: 5; 6: 6. Two re-rolls allowed. 1: 4.25; 2: 4.25; 3: 4.25; 4: 4.25; 5: 5; 6: 6. Reference line a fresh roll, 3.5 at y = 3.5. Reference line the one re-roll game, 4.25 at y = 4.25.Worth in dollarsKeep the rollOne re-roll allowedTwo re-rolls alloweda fresh roll, 3.5the one re-roll game, 4.2502468123456First roll
A first roll is kept only where it beats what the re-roll is worth, so with one re-roll the cut-off sits at 4, and with two re-rolls it moves up to 5.

Level 1 opens with Five people, twelve months, no shared birth month, which counts chances the same way, one line at a time.

In short

3.5 dollars a go for the plain game and 4.25 dollars a go with the re-roll. Keep a first roll of 4, 5 or 6 and roll again on 1, 2 or 3, because a fresh roll is worth 3.5 on average.

Learn quant finance on Thuztra Learn

Thuztra Learn teaches the maths of quant finance from zero, in short lessons, for readers who are unsure of it. Three questions in the app build your quant roadmap, free. Membership is a paid subscription. See what Thuztra Learn is and what it costs, or see the whole Core quant curriculum.

Get the app and answer the three questions:

Download on the Microsoft Store Download for Android

On Android, the app is a direct download, not a Google Play listing. Which devices, and what each one needs.

Further reading

Related problems

Topics

Also in the library