|
If anyone wants to test it, someone wrote a short code that simulates doing that 100,000 times: https://www.techiedelight.com/generate-fair-results-biased-c... The coin is biased to come up TAILS 80% of the time, but using Von Neumann's method in the program I got HEADS 50.035%, TAILS 49.965%. |
Probability of two heads: p*p
Probability of two tails: (1-p)*(1-p)
Probability of head followed by tails: p*(1-p)
Probability of tails followed by heads: (1-p)*p
It's not difficult to notice that if you remove the first two, the last two form a 50/50 distribution