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
Statistics & Math
Quantitative Researcher
D. E. Shaw
November 29, 2026
Quantitative Researcher
Phone Screen
Statistics & Math
Easy

0

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
Markov chains
expected value
first-step analysis
pattern waiting times
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. 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 Questions
Sample Answer
Clarify

Fair die, independent rolls, we count every roll including the two sixes that end the game. We want E[T]E[T] where TT 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 E0E_0 be the expected remaining rolls with no current six and E1E_1 the expected remaining rolls when the last roll was a six. Th...


Submit Your Answer
Markdown supported

Related Questions