Presentation is loading. Please wait.

Presentation is loading. Please wait.

Looking at Bayes’ Theorem with a Tree Diagram An alternate way of “reversing the conditioning” on conditional probabilities.

Similar presentations


Presentation on theme: "Looking at Bayes’ Theorem with a Tree Diagram An alternate way of “reversing the conditioning” on conditional probabilities."— Presentation transcript:

1 Looking at Bayes’ Theorem with a Tree Diagram An alternate way of “reversing the conditioning” on conditional probabilities

2 Pulmonary Tuberculosis Screening The prevalence of latent pulmonary tuberculosis (TB) infection in the population is about 6%. The Roche AMPLICOR is a test used to screen for TB. If the subject is infected with TB, the probability that the test will be positive is 2/3. (Sensitivity) If the subject is not infected with TB, the probability of a negative result is 0.996. (Specificity) Source: California State University, Hayward, Statistics Department http://www.sci.csuhayward.edu/statistics/Resources/Quiz/quiz13.htm http://www.sci.csuhayward.edu/statistics/Resources/Quiz/quiz13.htm

3 Pulmonary Tuberculosis Screening 1.A patient gets a positive result. What is the probability that he does not have the disease*? (False Positive) 2.A patient gets a negative result. What is the probability that he has the disease*? (False Negative). * in any form, including mild cases.

4 Sorting out the data “ The prevalence of latent pulmonary tuberculosis (TB) infection is about 6%. ” P(TB) = 0.06. P(no TB) = 0.94.

5 Sorting out the data “ If the subject has TB, the probability that the test will be positive is 2/3.“ P(+ | TB) = 2/3. P(- | TB) = 1/3.

6 Sorting out the data “ If the subject does not have TB, the probability of a negative result is 0.996” P(- | No TB) = 0.996. P(+ | No TB) = 0.004.

7 Pulmonary Tuberculosis Screening 1.A patient gets a positive result. What is the probability that he does not have the disease? (False Positive) P(No TB | +)? 2.A patient gets a negative result. What is the probability that he has the disease? (False negative). P(TB | -)?

8 We have / We want We Have: 1.P(TB) = 0.06. 2.P(no TB) = 0.94. 3.P(+ | TB) = 2/3. 4.P(- | TB) = 1/3. 5.P(- | No TB) = 0.996. 6.P(+ | No TB) = 0.004. We Want: a)P(No TB | +)? b)P(TB | -)?

9 Build the tree TB? Yes No

10 Build the tree TB? Yes No 0.06 0.94

11 Build the tree TB? Yes No 0.06 0.94 (Test) Results

12 Build the tree TB? Yes No 0.06 0.94 Results + - + -

13 Build the tree TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996

14 Build the tree TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ - No+ -

15 Build the tree TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ (2/3)*.06 Yes- No+ -

16 Build the tree TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ (2/3)*.06 Yes- (1/3)*.06 No+ -

17 Build the tree TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ (2/3)*.06 Yes- (1/3)*.06 No+ 0.004*0.94 No-

18 Build the tree TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ (2/3)*.06 Yes- (1/3)*.06 No+ 0.004*0.94 No- 0.996*0.94

19 Build the tree TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ 0.04 Yes- 0.02 No+ 0.00376 No- 0.93624

20 A patient gets a positive result. What is the probability that he does not have the disease? (False Positive) TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ 0.04 Yes- 0.02 No+ 0.00376 No- 0.93624 P(No TB | +)?

21 A patient gets a positive result. What is the probability that he does not have the disease? (False Positive) TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ 0.04 Yes- 0.02 No+ 0.00376 No- 0.93624 P(No TB | +)?

22 A patient gets a positive result. What is the probability that he does not have the disease? (False Positive) TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ 0.04 Yes- 0.02 No+ 0.00376 No- 0.93624 = 0.0859

23 A patient gets a positive result. What is the probability that he does not have the disease? (False Positive) TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ 0.04 Yes- 0.02 No+ 0.00376 No- 0.93624 = 0.0859 Conclusion in context: If a patient gets a positive result, the probability that he does not have TB is 0.0859. (Therefore, the probability that such a patient does have TB is 0.9141.)

24 A patient gets a negative result. What is the probability that he has the disease? (False negative). TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ 0.04 Yes- 0.02 No+ 0.00376 No- 0.93624 P(TB | - )?

25 A patient gets a negative result. What is the probability that he has the disease? (False negative). TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 Yes+ 0.04 Yes- 0.02 No+ 0.00376 No- 0.93624 P(TB | - )?

26 A patient gets a negative result. What is the probability that he has the disease? (False negative). Yes+ 0.04 Yes- 0.02 No+ 0.00376 No- 0.93624 TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 = 0.0209

27 A patient gets a negative result. What is the probability that he has the disease? (False negative). Yes+ 0.04 Yes- 0.02 No+ 0.00376 No- 0.93624 TB? Yes No 0.06 0.94 Results + - + - 2/3 1/3 0.004 0.996 = 0.0209 Conclusion in context: If a patient gets a negative result, the probability that he has TB is 0.0209. (Therefore, the probability that such a patient does not have TB is 0.9791.)

28 Two ways they can make an error - Which is worse? First type: False positive –  Diagnosing someone with a serious illness that he does not have. (p = 0.0859)  In the long run, out of 10,000 people who receive a positive diagnosis, about 859 patients will be misdiagnosed. Second type: False negative –  Failure to catch and diagnose a serious illness that he does have. (p = 0.0209)  In the long run, out of 10,000 patients who receive a “clean bill of health”, about 209 are actually infected with TB.

29 A patient gets a positive result. What is the probability that he does not have the disease? (False Positive) We can use Bayes’ Theorem:

30 A patient gets a negative result. What is the probability that he has the disease? (False negative). By Bayes’ Theorem,


Download ppt "Looking at Bayes’ Theorem with a Tree Diagram An alternate way of “reversing the conditioning” on conditional probabilities."

Similar presentations


Ads by Google