Who Wins When Players Alternate Flipping for the First Head
Last updated: November 29, 2026
Quick Overview
Two players take turns flipping a fair coin, and the first to flip heads wins. What is the probability the first player wins, and what is it if the coin lands heads with probability p?
Meta
November 29, 20260
0
0 solved
Two players take turns flipping a fair coin, and the first to flip heads wins. What is the probability the first player wins, and what is it if the coin lands heads with probability p?
A short recursion question used as a Meta phone screen opener. The interviewer looks for a one-line self-referential equation rather than an infinite series, and a quick check of the limiting cases.
What the Interviewer Expects
- Set up $P = p + (1-p)^2 P$
- Solve to get $P = 1/(2-p)$
- Give 2/3 for a fair coin
- Check limits $p \to 0$ and $p = 1$
- Optionally confirm via the geometric series
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 if there are three players?
- What is the expected number of flips in the game?
- For what p does the second player have a fair chance?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Players A then B alternate, starting with A. Each flip is heads with probability independently. The first head wins. We want ....
Approach
Condition on the first round. A wins immediately with probability . If A and B both flip tails (probability ), the game restarts with A to move, so the winning probability is the same as a...