You have 1000 coins. One of them has heads on both sides. The other 999 are fair. You pick a coin at random, flip it 10 times, and get heads every time.
What do you think?
You flip a random coin 10 times and get all heads. What's P(coin is the double-headed one)?
Applying Bayes' theorem
Let A = the coin is double-headed, and B = all 10 flips are heads.
Bayes' theorem calculation
P(A)=10001,P(Ac)=1000999
The prior: you picked one coin at random from 1000.
Step 1 of 6
The Unfair Coin
1000 coins: 1 has heads on both sides, 999 are fair. You pick one at random and flip it 10 times.
Getting 10 heads is 1024 times more likely with the unfair coin than the fair one. This ratio of 1024 nearly cancels the prior of 1/1000, pushing the posterior close to 1/2.