70 likes | 225 Views
Baye’s Theorem. Working with Conditional Probabilities. Drug Testing.
E N D
Baye’s Theorem Working with Conditional Probabilities
Drug Testing • Suppose it is assumed that about 5% of the population uses drugs. A drug test that is given to employees of a certain company is 95% accurate; that is, it correctly labels a drug user 95% of the time and correctly labels a nonuser 95% of the time. If a random employee takes the drug test and tests positive, what is the probability that he/she is a drug user?
Baye’s Theorem 1) P(A and B) = P(A) * P(B | A) 2) P(B and A) = P(B) * P(A | B) Since the P(A and B) is the same as the P(B and A), we can equate statements 1 and 2 3) P(A) * P(B | A) = P(B) * P(A | B) Divide both sides by P(A) to get
Solution to Drug Problem Let A = event that a person tests positive on the drug test Let B = event that a person is a drug user We are looking for the probability that a person is a drug user given that their test turned out positive. P(drug user | positive test result) =
P(drug user) = 0.05 given in problem P(positive test result | drug user) = 0.95 given in problem P(positive test result) = P(positive test result and drug user) + 0.95*0.05 P(positive test result and nonuser) 0.05*0.95 = 0.095 P(drug user | positive test result) =
Another Method P(drug user | Test positive) = 0.95*500= 475 950 475 25 0.95*9500= 9025 9050 500 9500
0.05*0.095 = 0.0475 Positive Test 0.95 Drug user 0.05 Negative Test 0.05 0.05*0.05 = 0.0025 0.95*0.05 = 0.0475 0.95 Positive Test 0.05 Non-Drug user 0.95 Negative Test 0.95*0.95 = 0.9025