The Unfair Coin That Becomes Fair
You have a biased coin with unknown probability of heads (where , ). You cannot measure directly.
Can you use this biased coin to simulate a perfectly fair 50/50 coin flip?
If yes, describe a procedure. What is the expected number of coin flips your procedure requires?
Answer: The Unfair Coin That Becomes Fair
Key Idea / Intuition
The beautiful insight is due to John von Neumann: flip the coin twice. The outcomes HT and TH are not equally likely individually, but by symmetry they are equally likely relative to each other — both have probability . So declare HT = "heads" and TH = "tails", and simply repeat if you get HH or TT. This extracts perfect fairness from an unknown bias, with no knowledge of required whatsoever.
Formal Proof / Solution
The Procedure (Von Neumann's trick)
- Flip the biased coin twice.
- If the result is HT, output Heads.
- If the result is TH, output Tails.
- If the result is HH or TT, discard and repeat from step 1.
Why It's Fair
Each pair of flips has the following probabilities:
The key observation:
So conditioned on the event that we do not discard (i.e., we got HT or TH), both outcomes are equally likely:
This holds for any , with no knowledge of needed.
Expected Number of Flips
Each round (2 flips) succeeds with probability:
The number of rounds until success is geometric with mean , so the expected number of coin flips is:
Since (maximized at ), we have:
with equality when (the fair coin case), and the expected number grows to as or (very biased coins are very wasteful).
Summary Table
| | | |------|---------------------------| | | | | | | | | | | | |
The elegance: perfect fairness from unknown bias, at the cost of only expected efficiency.
Reference: Von Neumann, J. (1951). "Various techniques used in connection with random digits." Applied Math Series, 12, 36–38.
Source: Fifty Challenging Problems in Probability with Solutions (Frederick Mosteller) — related folklore; original trick due to von Neumann (1951)