Expected Die Rolls Until Every Face Has Appeared
Last updated: November 29, 2026
Quick Overview
You roll a fair six-sided die until each of the six faces has shown at least once. What is the expected number of rolls, and what is the probability that you need more than 20 rolls?
SIG
November 29, 20260
0
0 solved
You roll a fair six-sided die until each of the six faces has shown at least once. What is the expected number of rolls, and what is the probability that you need more than 20 rolls?
SIG phone screens often contain a quick expected-value problem with a clean structure to spot, here a sum of geometric waits. The interviewer checks the decomposition, the arithmetic of 6 times the harmonic number, and an estimate of the tail.
What the Interviewer Expects
- Split the process into stages by number of distinct faces seen
- Recognize each stage as geometric with success chance (6 - i)/6
- Sum to 6 times H6 = 14.7
- Estimate a tail probability with a union bound or inclusion-exclusion
- Generalize to n faces as about n ln n
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 variance of the number of rolls?
- What is the expected number of rolls to see every face at least twice, roughly?
- With two dice rolled together each time, how does the expectation change?
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, stop at the first moment all six faces have appeared. Want and ....
Approach
Let be the rolls needed to go from distinct faces to . Each roll shows a new face with probability , so is geometric with mean . Then an...