Files for "How can you get a fair coin toss if someone hands you a coin that is weighted to come up heads more often than tails?" post
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fairness
player-heads-wins
README.md
unfair_coin.py
unfair_coin_tests.py

README.md

Getting a fair result with an unfair coin

  • Demonstrates de puzzle solution using matplotlib to generate the graphics and back my interpretation/solution.

Problem

How can you get a fair coin toss if someone hands you a coin that is weighted to come up heads more often than tails?

Solution

Game with a fair / unfair coin.

50% - 50%.

60% - 40%

80% - 20%

Fairness study. Is this method fair?

Max fairness: 1.0

Min fairness: 0.0