Problem
I have a coin with a sun on the front and the mooon on the back. I claim that on most days itβs a fair coin, with a percent chance of landing on either the sun or the moon.
But once a year, on the summer solstice, the coin absorbs the sunβs rays and exhibits a strange power:it always comes up the opposite side as the previous flip.
Of course, you are skeptical of my claim. You figure that thereβs a percent chance that the coin is magical and a percent chance that itβs just an ordinary fair coin. You then ask me to βproveβ that the coin is magical by flipping it some number of times.
How many successfully alternating coin flips it will take for you to think thereβs a percent chance the coin is magical (or, more likely, that Iβve rigged it in some ways so it always alternates)?
Solution
This is a classic application of Bayes Theorem.
Let be the even that the coin is magical. The probability that the coin is magical is given by .
The probability that the coin is not magical is given by .
Let be the number of alternating flips required for you to think that the coin is magical with a probability of percent.
Let be the event of getting alternating flips on tossing the coin times.
This means that the conditional probability of the coin being considered by you as magical given alternating flips is given .
For a magical coin the probability of alternate flips is always , so we have .
For a normal coin, the probability of alternate flips is given by because the alternate flips can start with a head or a tail.
Therefore, from Bayes theorem, we have
We see that we need alternating flips so that we can be percent confident that the coin is magical.