Mudd Math Fun Facts!
hosted by the Harvey Mudd College Math Department created, authored and ©1999-2007 by Francis Su
You can now subscribe to our RSS feed to get the latest Fun Facts!
Get a random Fun Fact!
No subject limitations
Search only in selected subjects
    Algebra
    Calculus or Analysis
    Combinatorics
    Geometry
    Number Theory
    Probability
    Topology
    Other subjects
  Select Difficulty  
Enter keywords 

  List All : List Recent : List Popular
  About Math Fun Facts / How to Use
  Contributors / Fun Facts Home
© 1999-2007 by Francis Edward Su
All rights reserved.


From the Fun Fact files, here is a Fun Fact at the Advanced level:

Medical Tests and Bayes' Theorem

Suppose that you are worried that you might have a rare disease. You decide to get tested, and suppose that the testing methods for this disease are accurate 99 percent of the time (regardless of whether the results come back positive or negative). Suppose this disease is actually quite rare, occurring randomly in the general population in only one of every 10,000 people.

If your test results come back positive, what are your chances that you actually have the disease?

Do you think it is approximately: (a) .99, (b) .90, (c) .10, or (d) .01?

Surprisingly, the answer is (d), less than 1 percent chance that you have the disease!

Presentation Suggestions:
After discussing the reasons why the test results are not so reliable, see how changing the parameters affects the outcome. Would the result be so surprising if the disease were more common? How would things change if you allow the percentage of false positives and false negatives to be different?

The Math Behind the Fact:
This fact may be deduced using something called Bayes' theorem, a computational device used to find the probability of event A given event B, written P(A|B), in terms of the probability of B given A, written P(B|A), and the probabilities of A and B:

P(A|B)=P(A)P(B|A) / P(B)

In this case, event A is the event you have this disease, and event B is the event that you test positive. Here, P(B|A)=.99, P(A)=.0001, and P(B) may be derived by conditioning on whether event A does or does not occur:
P(B)=P(B|A)P(A)+P(B|not A)P(not A)
or .99*.0001+.01*.9999, which is less than 1 percent.

Alternatively, we can see this by thinking about what we can expect in 1 million cases. In those million, about 100 will have the disease, and on average 99 of those cases will be correctly diagnosed as having it. Otherwise about 999,900 of the million will not have the disease, but of those cases 9999 of those will be false positives (test results that are positive because of errors). So, if you test positive, then the likelihood that you actually have the disease is 99/(99+9999), which gives the same fraction as above, approximately .0098 or less than 1 percent!

You may wish to discuss why these calculations wouldn't hold if the disease were not independently and identically distributed throughout the population. For instance, if the disease were a cancer like breast cancer that runs in families or mesothelioma related to asbestos exposure in the workplace, then the estimate of P(A)=.0001 would not be correct.

How to Cite this Page:
Su, Francis E., et al. "Medical Tests and Bayes' Theorem." Mudd Math Fun Facts. <http://www.math.hmc.edu/funfacts>.

Bookmark this page on: | Digg this! | Del.icio.us | Technorati | Reddit | Fark | Squidoo | Furl | Blinklist | Yahoo MyWeb | Google | Stumbleupon |

Keywords:    probability
Subjects:    probability
Level:    Advanced
Fun Fact suggested by:   Francis Su
Suggestions? Use this form.
3.81
 
current
rating
Click to rate this Fun Fact...
    *   Awesome! I totally dig it!
    *   Fun enough to tell a friend!
    *   Mildly interesting
    *   Not really noteworthy
and see the most popular Facts!

Want another Math Fun Fact?

For more fun, tour the Mathematics Department at Harvey Mudd College!