Top Banner
Drug Testing An application of Bayes’ theorem by Rafael Aguiar
10

Bayes Theorem

Dec 03, 2014

Download

Education

Rafael Aguiar

An application of Bayes’ theorem on Drug Testing.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Bayes Theorem

Drug TestingAn application of Bayes’ theorem by Rafael Aguiar

Page 2: Bayes Theorem

Context❖ Let's say you're from a drug

company;

❖ And you are interested in measure the presence of a drug that you produced, in a population;

❖ To measure, you need to TEST. So we get to an interesting question: how often your test gonna fail?

2

Page 3: Bayes Theorem

Context❖ If a randomly selected individual

tests positive, what is the probability that he or she is a user of your drug?

❖ To answer that, we gonna make use of some statistical concepts(Sensitivity, Specificity) and Bayes’ Theorem(“posteriori probability”).

3

Page 4: Bayes Theorem

Context❖ Sensitivity measures the

proportion of actual positives which are correctly identified as such (e.g. the percentage of drug users who are correctly identified);

❖ Specificity measures the proportion of negatives which are correctly identified (e.g. the percentage of non-drug users who are correctly identified).

4

Page 5: Bayes Theorem

Context❖ A perfect predictor would be

described as 100% sensitivity (i.e. predict all people from the drug user’s group as drug users) and 100% specificity (i.e. not predict anyone from the non-drug group as drug user).

5

Page 6: Bayes Theorem

Example

❖ Suppose a drug test is 99% sensitive and 99% specific. That is, the test will produce 99% true positive results for drug users and 99% true negative results for non-drug users. Suppose that 0.5% of people are users of the drug.

6

Page 7: Bayes Theorem

7

Diagram

Page 8: Bayes Theorem

Resolution8

Page 9: Bayes Theorem

Conclusion

9

❖ Despite the apparent accuracy of the test, if an individual tests positive, it is more likely that they do not use the drug than that they do;

❖ This surprising result arises because the number of non-users is very large compared to the number of users, such that the number of false positives (0.995%) outweighs the number of true positives (0.495%). To use concrete numbers, if 1000 individuals are tested, there are expected to be 995 non-users and 5 users. From the 995 non-users, false positives are expected. From the 5 users, true positives are expected. Out of 15 positive results, only 5, about 33%, are genuine.

Page 10: Bayes Theorem

10

Rafael Aguiar[rfna]

@rafadaguiar

about.me/rafaelaguiar