# What is the probability that you toss next time, heads turns up

A bag contains 5 coins. Four of them are fair and one has heads on both sides. You randomly pulled one coin from the bag and tossed it 5 times, heads turned up all five times. What is the probability that you toss next time, heads turns up. (All this time you don't know you were tossing a fair coin or not).

-
What do you think? Where are you stuck? –  cardinal Aug 7 '11 at 20:02
should I consider this problem as independent of previous toss or not? –  rohit Aug 7 '11 at 20:17
Hint: Consider how you'd answer if at least one of the previous tosses had been a tail. –  cardinal Aug 7 '11 at 20:19

Alternately, you could fully build the tree. What is the probability that you picked a fair coin? What is the probability that it shows heads five times in a row? The unfair coin? Five times in a row?

And don't forget conditional probability.

-

The question can be easily answered if you can determine the probability that the coin you chose is the double-headed coin. For this, you want to use Bayes' theorem for inverting conditional probabilities:

$$P(B|A)=\frac{P(A|B)P(B)}{P(A)}=\frac{P(A|B)P(B)}{P(A\cap B)+P(A\cap B^c)}=\frac{P(A|B)P(B)}{P(A|B)P(B)+P(A|B^c)P(B^c)}$$

Here, we want $A$ to be the event that we get $5$ heads in a row, and $B$ the event that we have the double-headed coin. All of the quantities in the final formula can be determined.

If you don't have experience applying Bayes' theorem (or even if you do), it might be worthwhile to followed mixedmath's suggestion of building a probability tree and seeing how the terms in the formula come from the nodes of the tree.

-

Hint: what is the total probability that you will get 5 heads in a row starting from scratch? How much of that comes from the double head coin?

-