The question as it appears in the 10/23 edition of Specs & Techs from GlobalSpec:
Jack likes to flip his favorite coin to make difficult decisions, but started to suspect that the coin was biased on sunny days. After tracking results for a while, Jack finds that when the coin comes up heads, 70% of the time it's a sunny day, however when the coin comes up tails, only 45% of the time it's a sunny day. Jack considers days sunny and not sunny. What is the probability that Jack's coin will come up heads on a sunny day?
(Update: Oct 30, 8:47 AM EST) And the Answer is...
The probability that Jack's coin will come up heads on a sunny day is 60.9%. There are two ways to arrive at this answer.
1. You could notice that you have complete data for Sunny days. 45 instances the coin came up tails, 70 instances the coin came up heads. Thus the probability (based on this data) that the coin will come up heads on a sunny day is 70/(45+70)= 60.9%
If you have trouble seeing that this is the case, you can use Bayes' Theorem, noting the following :
The following probabilities are given or known; P(H|I)=.5, P(T|I)=.5, P(S|H,I)=.7, P(S|T,I)=.45. You wish to find P(H|S,I).
Using Bayes' Theorem, and using the normalization condition P(H|S,I) + P(T|S,I) = 1, we get:
P(H|S,I) = [P(H|I) x P(S|H,I) x (1- P(H|S,I))] /[ P(T|I) x P(S|T,I)]
P(H|S,I) = [ .5 x .7 x (1-P(H|S,I))]/ [.5 x .45]
P(H|S,I) = .6086
So there is a 60.9% chance the coin will come up heads on a sunny day.
|
Comments rated to be "almost" Good Answers: