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

0

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
Recursion
Geometric series
First-step analysis
Conditional probability
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 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 Questions
Sample Answer
Clarify

Players A then B alternate, starting with A. Each flip is heads with probability pp independently. The first head wins. We want P(A wins)P(A \text{ wins})....

Approach

Condition on the first round. A wins immediately with probability pp. If A and B both flip tails (probability (1−p)2(1-p)^2), the game restarts with A to move, so the winning probability is the same as a...


Submit Your Answer
Markdown supported