Solved – Using the Bayes Theorem

bayesianprobabilityself-study

A certain town has two taxi companies, the Green Taxi Co (cars coloured green) and the Blue
Taxi Co (cars coloured blue). 10% of taxis are the Green and 90% are the Blue. There was an
accident on a dark evening, and the witness claimed a Green cab was involved. On future testing, they discovered that under the conditions of that evening, there was an 80% chance of correct identification of the cab colour (regardless of colour) and 20% chance of erring in colour identification. (assume neither company is more accident prone than the other)

a. Before actually hearing the testimony of this witness, what is the probability that the
witness will claim that it was a Blue Cab involved in the accident that night?

b. If we now have the testimony of the witness, who declares that the cab was Green, what
is the probability that it actually was Green?

I used a probability tree to solve this question but apparently, it was actually related to Bayes theorem. How I did (a) was use the probability tree and got $P(Witness~claims~Blue) = (0.9)(0.8)+(0.1)(0.2)=0.74$.
For (b), $P(Actually~green) = (0.1)(0.8)+(0.1)(0.2)=0.10$.

However, the answer for (b) was $\frac{.08}{.26}$ and I was supposed to use the Bayes Theorem. Can someone please explain why the Bayes is to be used instead of a sum of probabilities?

Best Answer

Given the events:

  • $T_b$: witness think it's blue
  • $T_g$: witness think it's green
  • $I_b$: is blue
  • $I_g$: is green

So we have:

  • $P(I_g) = 0.1$
  • $P(I_b) = 0.9$
  • $P(I_g|T_g) = P(I_b|T_b) = 0.8$
  • $P(I_g|T_b) = P(I_b|T_g) = 0.2$

In (a), you wanted $P(T_b)$, so you used $P(T_b) = P(T_b|I_b)P(I_b) + P(T_b|I_g)P(I_g)$

In (b), you wanted $P(I_g|T_g)$, so you use $P(I_g|T_g) = P(I_g)P(T_g|I_g)/P(T_g)$, where $P(T_g) = 1-P(T_b)$ (the answer you got on (a))

Note the difference between the two problems, in the second you wanted a conditional probability, so that's why you used Bayes Theorem.

Related Question