Expected value interview questions: dice, coins and games, solved
Expected value is the language of trading: a trader prices everything as an average over outcomes. So quant interviews are full of games – roll a die, flip a coin, draw a card – and the question is always the same: what is it worth, and what is your strategy? Three ideas solve almost all of them: work backwards from the end, condition on the first step, and use linearity of expectation.
5 December 2026 · 4 min read · Probability · Interview questions · Quant trading
Idea 1: work backwards from the end
Worked example
The re-roll game
You roll a fair die and may re-roll once, keeping the second value if you do. You are paid the final value. What is the game worth?
- Start at the end. If you re-roll, you get a fresh roll worth 3.5 on average.
- So keep the first roll only if it beats 3.5: keep 4, 5 or 6, re-roll 1, 2 or 3.
- Value .
4.25. The strategy – keep a roll above the value of continuing – is the whole game.
Worked example
With two re-rolls
The same game, but you may re-roll up to twice.
- With one re-roll left the game is worth 4.25, from above.
- So on the first roll keep only 5 or 6, which beat 4.25.
- Value .
. Each extra option to continue is worth less than the one before.
Tip
Say the threshold before the arithmetic: “I keep anything above the value of re-rolling.” Interviewers care more about the stopping rule than the decimal.
Idea 2: condition on the first step
For waiting times – how long until something happens – write the answer in terms of itself, by asking what the first step does.
Worked example
Rolls until a six
How many rolls of a fair die does it take, on average, to see a six?
- Let be the answer. One roll is spent. With probability you are done; otherwise you are back where you started.
- , so .
. In general, waiting for an event of probability takes tries on average.
Worked example
Two heads in a row
How many flips of a fair coin, on average, until two heads in a row?
- Let be the expected flips from scratch and after one head.
- and .
- Substituting: , so .
– not 4, because a tail after the first head sends you all the way back.
Idea 3: linearity of expectation
The expected value of a sum is the sum of the expected values, whether or not the pieces are independent. So break a count into indicators – one for each thing that might happen – and add up their probabilities.
Worked example
Fixed points of a shuffle
You shuffle a deck of 52 cards. How many cards, on average, end up in their original position?
- Let be 1 if card is in place. Each card is in place with probability .
- Add 52 of them: .
1, whatever the size of the deck – and no need to know the distribution at all.
Worked example
Aces before the first king
You turn over a shuffled deck one card at a time. How many aces, on average, appear before the first king?
- Look at one ace and the four kings. Among those five cards, each is equally likely to come first.
- So that ace comes before every king with probability .
- Four aces: .
.
From a fair value to a price
Trading interviews rarely stop at the fair value. The follow-up is “what would you pay to play?” or “make me a market in this game”. The fair value is the middle of your answer, not the whole of it: you want an edge for taking the risk, and the risk depends on how spread out the outcomes are.
Worked example
Pricing the re-roll game
Someone offers to let you play the one-re-roll game for 4. Do you play, and what would you quote if asked to make a market?
- Fair value is 4.25, so paying 4 gives an edge of 0.25 a game.
- The payout ranges from 1 to 6, so the result of any one game is noisy; the edge is small next to that spread.
- A market might be 4.00 bid, 4.50 offered: 0.25 either side of fair, wide enough to be paid for the noise.
Play at 4 if you can play many times; quote around 4.25, and say why the width is what it is.
- Repeated play makes a small edge reliable; a single play does not.
- If the interviewer moves the price, ask yourself whether they know something you do not – the same question a market maker asks of every trade.
- Size matters: an edge you cannot survive the swings of is not worth taking.
Traps to avoid
- Averaging the payoffs without a strategy: in a game with choices, the value depends on playing it well.
- Forgetting that a reset sends you back to the start, as in two heads in a row.
- Summing probabilities of overlapping events as if they were exclusive; linearity works for expectations, not for probabilities of a union.
- Stopping at the number. Always add the check that makes the interviewer trust it.
How to answer out loud
- Restate the game and the payoff in one sentence.
- Name the idea: backwards induction, first-step conditioning or linearity.
- Set up the equation before you compute anything.
- Give the number, then a sanity check – a bound, a simpler case or a symmetry.
- If asked what you would pay, say the fair value and then the edge you want for the risk.
Practise these on a clock: the re-roll family, linearity of expectation and pricing a game each have a lesson and a set of interview questions with full solutions.
Read next
- Lesson: recursive expected value and the re-roll family
- Lesson: linearity of expectation
- Download 30 probability questions with answers (PDF)
More from the blog
Where a firm is named, this describes what candidates publicly report, not information from the firm. QuantMax is not affiliated with any firm named here. Nothing here is investment advice.