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
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Phone Screen
Statistics & Math
Easy

0

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
Bayes rule
Posterior predictive
Likelihood ratio
Base rates
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
  • 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 Questions
Sample Answer
Clarify

Prior P(R)=1/100P(R) = 1/100 for the rigged coin, P(F)=99/100P(F) = 99/100 for a fair coin. Data DD = five heads in five flips. P(D∣R)=1P(D \mid R) = 1, P(D∣F)=(1/2)5=1/32P(D \mid F) = (1/2)^5 = 1/32....

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....


Submit Your Answer
Markdown supported