Quant interview prep guides

Dice reroll, for quant interviews

A die is on the table and you can reroll it. The number itself is trivial — what the interviewer is watching is whether you price the reroll correctly: do you compare the face in front of you to the value of playing on, or do you just chase a six?

For candidates learning reroll, threshold, and continuation-value prompts · Updated July 21, 2026

The setup, and what’s actually being tested

A fair six-sided die is rolled and you see the face. You may keep it and be paid that many dollars, or reroll once and be paid whatever comes up the second time — no going back. What is the game worth, and what is your rule?

The arithmetic is grade-school; the interviewer does not care about it. What they are testing is whether you can name the continuation value — the expected payoff of walking away from the number in front of you — and compare the bird in the hand to it. Every reroll question, every “should I take this offer” question, every American-option intuition on the desk is this same comparison. Say the phrase “I’ll keep the roll only if it beats what I expect from playing on,” and you have already answered better than the candidate who starts multiplying.

One reroll, worked

Play the one-reroll game. If you reroll, you are handing yourself a fresh die, worth E[X]=(1+2+3+4+5+6)/6=3.5\E[X] = (1+2+3+4+5+6)/6 = 3.5E[X]=(1+2+3+4+5+6)/6=3.5. That number — 3.53.53.5 — is the price of walking away. So keep any face strictly above it and reroll anything below: keep 4, 5, 6; reroll 1, 2, 3.

Now value the strategy. Half the time (faces 4, 5, 6) you keep, averaging (4+5+6)/3=5(4+5+6)/3 = 5(4+5+6)/3=5. Half the time (faces 1, 2, 3) you reroll into 3.53.53.5. So

E[payoff]=12⋅5+12⋅3.5=4.25.\E[\text{payoff}] = \tfrac{1}{2}\cdot 5 + \tfrac{1}{2}\cdot 3.5 = 4.25.E[payoff]=21​⋅5+21​⋅3.5=4.25.

Equivalently, take the max of each face against the threshold and average: 16(3.5+3.5+3.5+4+5+6)=25.5/6=4.25\tfrac{1}{6}(3.5 + 3.5 + 3.5 + 4 + 5 + 6) = 25.5/6 = 4.2561​(3.5+3.5+3.5+4+5+6)=25.5/6=4.25. The single reroll bought you 4.25−3.5=0.754.25 - 3.5 = 0.754.25−3.5=0.75 of expected value.

The keep/reroll threshold sits at the continuation value 3.5Faces 1 to 3 fall below 3.5 and are rerolled; faces 4 to 6 clear it and are kept.REROLL → GET 3.5KEEP THE FACEcontinuation value = 3.5below 3.5above 3.5
Reroll only pays 3.5 in expectation, so the die tells you exactly what to do: keep any face that beats 3.5. Keep 4·5·6, reroll 1·2·3 — the game is worth 4.25.

The keep rule, stated once

Here is the whole thing in one line, and it is worth memorizing as a shape, not a number:

keep x  ⟺  x≥V,V=expected payoff of playing on.\text{keep } x \iff x \ge V, \qquad V = \text{expected payoff of playing on}.keep x⟺x≥V,V=expected payoff of playing on.

This is a one-stage-lookahead stopping rule, and it is provably optimal here because the problem is monotone: raising the continuation value can only enlarge the set of faces you’d reroll, never scramble it. You never need to reason two rerolls deep at the moment of decision — you compare the face to a single number that already summarizes the entire future. The only subtlety is what that number is, and it depends on how much game is left.

Stacking rerolls: the value recursion

Give yourself a second reroll. The value of “playing on” is no longer 3.53.53.5 — it is the value of the one-reroll game, which we just computed as 4.254.254.25. So with two rerolls the threshold jumps: keep only faces above 4.254.254.25, i.e. 5 and 6, and reroll everything else. The value becomes

V2=16(4.25⋅4+5+6)=286=4.66‾.V_2 = \tfrac{1}{6}\big(4.25\cdot 4 + 5 + 6\big) = \tfrac{28}{6} = 4.6\overline{6}.V2​=61​(4.25⋅4+5+6)=628​=4.66.

This is a recursion — each level’s continuation value is the previous level’s game value:

Vk=E[max⁡(X, Vk−1)]=Vk−1+16∑x(x−Vk−1)+,V0=3.5.V_k = \E[\max(X,\,V_{k-1})] = V_{k-1} + \tfrac{1}{6}\sum_{x}(x - V_{k-1})^{+}, \qquad V_0 = 3.5.Vk​=E[max(X,Vk−1​)]=Vk−1​+61​x∑​(x−Vk−1​)+,V0​=3.5.

The increment is the expected exceedance above the current threshold, and it shrinks every step because fewer faces clear a higher bar. That produces a staircase — 3.5→4.25→4.667→4.9443.5 \to 4.25 \to 4.667 \to 4.9443.5→4.25→4.667→4.944 — that climbs with diminishing returns toward the ceiling of 6.

Expected payoff climbs 3.5 to 4.25 to 4.667 to 4.944 with diminishing returnsA step chart rising from 3.5 toward a dashed ceiling at 6 as rerolls are added.3456∞ rerolls → 63.54.254.6674.944take it1 reroll2 rerolls3 rerolls+0.75+0.417+0.278
Each reroll raises the value of playing on, so the keep threshold ratchets up — but the gains shrink every step ( +0.75, +0.42, +0.28 …) as the value creeps toward the ceiling of 6 you’d reach with unlimited rerolls.

Take rerolls to infinity and the fixed point V=E[max⁡(X,V)]V = \E[\max(X,V)]V=E[max(X,V)] solves to V=6V = 6V=6: with unlimited retries you simply wait for a six. The bounded games are all just partway up that same staircase.

Why the keep set gets sticky

Notice something in the table: at two rerolls you keep {5,6}\{5,6\}{5,6}, and at three rerolls you still keep {5,6}\{5,6\}{5,6} — the keep set didn’t move, but the value rose from 4.6674.6674.667 to 4.9444.9444.944. That is not a contradiction. The keep set only jumps when the continuation value crosses an integer face; between crossings the decision is unchanged even as the game gets more valuable, because the extra reroll improves what happens after you choose to reroll, not which faces you reroll. Interviewers probe exactly this: “you said keep 5 and 6 for two rerolls — does adding a third reroll change your action?” The right answer is “no, the action is the same, but the game is worth more, because a rerolled die is now itself a two-reroll die.”

Row by row the vertical threshold line slides right; the two-reroll and three-reroll rows share the same keep set of 5 and 6 at different values.FACES 1 · 2 · 3 · 4 · 5 · 61 reroll leftkeep ≥ 3.53.52 rerolls leftkeep ≥ 4.254.253 rerolls leftkeep ≥ 4.6674.667same keep set{5,6}, higher value
The threshold ratchets right as rerolls pile up — but from two to three rerolls the keep set is unchanged at {5, 6} even though the game is worth more. The action moves only when the continuation value crosses a whole face.

Variants that move the threshold

The 4.254.254.25 is not a fact about dice; it is a fact about a threshold sitting at the continuation value. Change the economics and recompute:

  • A reroll costs something. If each reroll costs $0.50, the value of playing on drops to 3.5−0.5=3.03.5 - 0.5 = 3.03.5−0.5=3.0, so you keep any face ≥3\ge 3≥3 and the game is worth 16(3+3+3+4+5+6)=4.0\tfrac{1}{6}(3+3+3+4+5+6) = 4.061​(3+3+3+4+5+6)=4.0. Costs lower the threshold and pull marginal faces into the keep set.
  • Unlimited rerolls. The threshold rises until only a six clears it, and the value is exactly 666.
  • A different die. On a fair NNN-sided die the one-reroll threshold is the mean (N+1)/2(N{+}1)/2(N+1)/2; for N=20N=20N=20 that’s 10.510.510.5, keep 11–20, and the game is worth 120(10.5⋅10+155)=13.0\tfrac{1}{20}(10.5\cdot 10 + 155) = 13.0201​(10.5⋅10+155)=13.0.
  • A non-linear payoff. If you’re paid g(face)g(\text{face})g(face) rather than the face, you compare g(x)g(x)g(x) to E[g]\E[g]E[g], not xxx to 3.53.53.5 — a convex payoff like x2x^2x2 makes you greedier for the top faces even though the die is unchanged.
  • Forced vs. optional reroll. If a low roll forces you to reroll and take the result blind, there is no threshold and the value is just 3.53.53.5; the entire edge came from the option, not the reroll.

Common mistakes

  • Thresholding against 3.5 no matter how many rerolls are left. In the two-reroll game the bar is 4.254.254.25, not 3.53.53.5 — keeping a 4 there is a real error that leaves value on the table.
  • Chasing the six. Rerolling a 4 “because you might hit a 6” optimizes the maximum, not the expectation. A 4 already beats the continuation value; keep it.
  • Forgetting the reroll is a commitment. You cannot reclaim the number you gave up. That irreversibility is exactly why the comparison is to an expected future, not a best-case one.
  • Averaging the kept faces over the wrong base. The kept average (5 for faces 4–6) is a conditional average; weight it by the 1/21/21/2 probability of landing there, or work straight from 16∑max⁡(x,V)\tfrac{1}{6}\sum \max(x,V)61​∑max(x,V) and you won’t slip.

Practice the pattern

The reroll is one instance of a whole family: the answer lives in the continuation value you compare against, not in the face you happened to roll. Drill that reflex on optimal-stopping and expected-value questions in the LeetQuidity curriculum, or take the free calibration to see where your reasoning breaks under time.

Take the calibrationView the curriculum

On this page

The setupOne reroll, workedThe keep ruleStacking rerollsWhy the keep set is stickyVariantsMistakes

Related guides

Kelly Criterion Interview IntuitionDice Expected Value Interview QuestionsOptimal Stopping Quant Interview IntuitionExpected Value Interview QuestionsQuant Interview Cheat Sheet: Formulas, Identities and Fast MethodsQuant Interview Drills by Topic
LeetQuidity

The complete quant interview course.

InstitutionsCurriculumPricingFAQCalibrationDemoGuides
XLinkedInInstagramYouTube

© 2026 LeetQuidity — a W Interior company. All rights reserved.

Privacy PolicyTerms of ServiceTrust & Security