Expected Rolls Until Two Consecutive Sixes in a Doodle Dice Game

Last updated: November 29, 2026

Quick Overview

A Google Doodle mini game rolls a fair die repeatedly and ends when two sixes appear in a row. What is the expected number of rolls?

Google
Statistics & Math
Data Scientist
Google
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Medium

0

0

0 solved


A Google Doodle mini game rolls a fair die repeatedly and ends when two sixes appear in a row. What is the expected number of rolls?

Google data science screens often include a short Markov chain puzzle to check whether you can define states and write first-step equations cleanly. The interviewer watches for a correct state definition and a quick sanity check, then often extends to longer runs.

What the Interviewer Expects
  • Define states by the current run of trailing sixes
  • Write first-step analysis equations
  • Solve to get 42 rolls
  • Generalize to k consecutive sixes
  • Sanity check by simulation or intuition
Key Topics to Cover
Markov chains
first-step analysis
stopping times
expected value
run patterns
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 three sixes in a row?
  • What is the expected number of rolls until a six followed immediately by a five?
  • What is the variance of the stopping time?
  • How does the answer change for a biased die with P(six) = p?
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 six-sided die, independent rolls, and the game stops at the first moment the last two rolls are both six. We want E[T]E[T], the expected total number of rolls....

Approach

Use states for the length of the current trailing run of sixes: S0S_0 (no trailing six) and S1S_1 (last roll was a six). Let E0E_0 and E1E_1 be the expected remaining rolls from each state. Each roll ...


Submit Your Answer
Markdown supported