Twin coin flipping “paradox” revisited
Since lately my post on the twin coin flipping “paradox” has been gaining attraction, and there are still misconceptions about the outcome, I thought I should hack up a quick script to demonstrate. Experimenting is always the best way to verify an idea so let’s do that.

First off, a quick review; the problem is: flip two coins simultaneously. If one coin is heads, what is the probability that the other coin is also heads?

Notice how the statement does not say that the FIRST or the SECOND coin is heads. It merely says that one of them is heads. And therein lies the difference in the outcomes. If we know the first coin is heads, then the probability that the other is also heads is in fact 0.5 (or 50%). If we know that (at least) one of them is heads (not any one specifically), then the probability that the other is also heads is 0.33 (or 33%). This might sounds counter-intuitive, but lets brake it down and see.

There are four possible combinations for this outcome: H-H, H-T, T-H, and T-T. If we know one is heads, then the only possibility that is eliminated is T-T. Hence, the probability that the other one is also heads, its 1/3 since only one of the remaining combinations satisfy our requirement.

To demonstrate, I have hacked a small javascript. Set the number of two-coin flippings you want to perform, and the script will randomly assign heads or tails to each coin, and calculate the frequencies of appearance for each of two scenarios: i) one coin is heads, ii) the first coin is heads. You can find the simple source here.

start

4 Responses to this post
Hi Stavros. There are some errors in your code. Your second line for each case shows a reasonable percentage. You correctly say approx 33% and 50%, but the stated number of flips correspond to 25% in each case.

I did email you, but I guess the address is wrong (or you are away).

To avoid confusion, please delete this comment when you’ve fixed the fault.
Hi Chris,

the 25% you mention is out of the *total* number of flips -the H-H combination will always be around 25% of course.

The expected percentages I state, 33% and 50%, are for both being heads when “at least one” or “the first coin” is heads respectively and not for the total number of flips. Compare the numbers and you will see that the percentages match.

Thanks

PS. Didn’t receive any emails :-( Tried my gmail address?
That said, I did change the javascript code to have more human-readable variables :-) I think it reads better now…
Hi Stavros. My bad re number of coins. Thanks for the better variables (I was surprised at the previous ones).

I can only find your hotmail address (and a non gmail work address).

I see that your’e almost a neighbour. I live in Wembley Park.
Add a comment
Leave a comment
(Email required for authentication purposes only and will not be published. Please also note that if your comment contains links, profanity, or other sensitive content it might be held for moderation. In that case it will not appear until accepted by the administrator. Please do not post the same comment twice.)
Name *:

Email (not published) *:

URL:


Comment: (you may use HTML tags for styling)