Expected Die Rolls Until Two Sixes Appear Back to Back
Last updated: November 29, 2026
Quick Overview
Roll a fair six-sided die repeatedly. What is the expected number of rolls until you see two sixes in a row, and how does the answer generalize to n consecutive sixes?
D. E. Shaw
November 29, 20260
0
0 solved
Roll a fair six-sided die repeatedly. What is the expected number of rolls until you see two sixes in a row, and how does the answer generalize to n consecutive sixes?
A quick probability question in the style of a D. E. Shaw quantitative phone screen. The interviewer wants a clean state-based recursion set up out loud within a few minutes, and then checks whether you can generalize and sanity check the number.
What the Interviewer Expects
- Defines states by the current run of sixes
- Writes and solves the linear equations for expected time from each state
- Gets 42 for two sixes
- Generalizes to $(6^{n+1}-6)/5$ for n sixes
- Sanity checks with the n = 1 case giving 6
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- What is the expected number of rolls until you see a six followed by a five?
- Why are the answers for 66 and 65 different even though each pair has probability 1/36?
- What is the variance of the waiting time for 66?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Fair die, independent rolls, we count every roll including the two sixes that end the game. We want where is the first time the last two rolls are both six....
Approach
Use first-step analysis on the length of the current run of sixes. Let be the expected remaining rolls with no current six and the expected remaining rolls when the last roll was a six. Th...