Find the probability this coin is fair (Conditional probability question)

352 Views Asked by At

A box contains 4 coins – 3 fair coins and 1 biased coin for which P(heads) = 0.8. A coin is picked at random and tossed 6 times. It shows 5 heads. Find the probability this coin is fair.

Would you tell me how to solve this question step by step?

2

There are 2 best solutions below

2
On BEST ANSWER

Firstly, we define the events:

  • $F$: the dice is fair
  • $B$: the dice is biased
  • $5H$: five heads out of six tosses

With those events defined, the event we are looking for is $F | 5H$. We can use the Bayes' rule

$$P(F|5H) = \frac{P(5H|F)\cdot P(F)}{P(5H)}$$

Now we have to find every probability in the RHS:

  • $P(F) = \frac{3}{4}$ (since the coined is originally picked at random)
  • $P(5H|F) = {6\choose 5} (\frac{1}{2})^5 (1 - \frac{1}{2})^1$ (binomial distribution)
  • $P(5H) = P(5H|F)\cdot P(F) + P(5H|B)\cdot P(B)$ (Law of total probability)

Simplifying the last two probabilities gives $P(5H|F) = \frac{6}{64}$ and

$P(5H) = \frac{6}{64} \cdot \frac{3}{4} + (5\cdot\frac{8}{10}^5 \cdot\frac{2}{10}) \cdot \frac{1}{4} $

Plug the numbers in the Bayes' rule and you got the answer.

0
On

I would proceed like this.

  1. Write clearly the conditional probability being asked for in the question. We want the following: the probability the coin is fair, given that it comes up heads 5 times out of 6. Let $A$ be the event that the coin is fair and let $B$ the event that the coin comes up heads 5 of 6 times.
  2. Conditional probability is evaluated as $P(A|B) = \frac{P(AB)}{P(B)}$. Bayes formula gives us $P(A|B) = \frac{P(B|A)P(A)}{P(B)}$. The probability of event $B$ occurring depends on the coin being flipped. So we express $P(B)$ using the "law of total probability" as follows: $P(B) = P(B|A)P(A) + P(B|\bar{A})P(\bar{A})$. So our expression becomes $P(A|B) = \frac{P(B|A)P(A)}{P(B|A)P(A) + P(B|\bar{A})P(\bar{A})}$.
  3. Now, $A$ is the event that the coin is fair. So $P(A) = \frac{3}{4}$ and $P(\bar{A}) = \frac{1}{4}$
  4. The number of times that the coin comes up heads in 6 flips, is a random variable with binomial distribution with $n = 6$. $p = \frac{1}{2}$ when the coin is fair and $p = \frac{4}{5}$ otherwise. Use this to calculate $P(B|A)$ and $P(B|\bar{A})$.

In summary, the concepts used here that you'll want to familiarize yourself with are "the law of total probability", "bayes formula/theorem", "binomial distribution". I promise this will all feel intuitive once you're familiar.