1 / 7

Baye’s Theorem

Baye’s Theorem. Working with Conditional Probabilities. Drug Testing.

cutler
Download Presentation

Baye’s Theorem

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Baye’s Theorem Working with Conditional Probabilities

  2. 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?

  3. 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

  4. 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) =

  5. 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) =

  6. Another Method P(drug user | Test positive) = 0.95*500= 475 950 475 25 0.95*9500= 9025 9050 500 9500

  7. 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

More Related