Is It the Rigged Coin After Five Straight Heads
Last updated: November 29, 2026
Quick Overview
A jar holds 100 coins, one of which has heads on both sides. You draw a coin at random, flip it five times, and see five heads. What is the probability you drew the two-headed coin, and what is the probability the next flip is heads?
Meta
November 29, 20260
0
0 solved
A jar holds 100 coins, one of which has heads on both sides. You draw a coin at random, flip it five times, and see five heads. What is the probability you drew the two-headed coin, and what is the probability the next flip is heads?
A Bayes rule warm-up common in Meta data science phone screens. The interviewer checks that you weigh a strong likelihood ratio against a small prior and then use the posterior for a prediction.
What the Interviewer Expects
- Set prior 1/100 and likelihoods 1 and 1/32
- Compute posterior 32/131, about 0.244
- Compute the predictive probability for the next flip, about 0.62
- Explain the role of prior odds times likelihood ratio
- Say how many heads would make the rigged coin more likely than not
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
- How many heads in a row are needed for the posterior to exceed 50%?
- What if 10 of the 100 coins were two-headed?
- How does this mirror flagging accounts with suspicious streaks of behavior?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Prior for the rigged coin, for a fair coin. Data = five heads in five flips. , ....
Approach
Use Bayes rule in odds form: posterior odds equal prior odds times the likelihood ratio. Then the predictive probability of heads on flip six averages over the posterior....