Exercise 13.3 · Q5: Blood test: has the disease, given a positive result,
A laboratory blood test is 99% effective in detecting a certain disease when it is in fact, present. However, the test also yields a false positive result for 0.5% of the healthy person tested (i.e. if a healthy person is tested, then, with probability 0.005, the test will imply he has the disease). If 0.1 percent of the population actually has the disease, what is the probability that a person has the disease given that his test result is positive ?
Let : the person has the disease, : the person does not have the disease, and : the test result is positive.
and form a partition of the sample space (a person either has the disease or not).
By the theorem of total probability,
By Bayes' theorem,
The probability that the person has the disease, given a positive result, is (dividing by 9).
Want the reason behind every step, the basics and the checks?
A positive result can come from a sick person (the test works) or from a healthy person (a false positive). The test is very good, but the disease is very rare: there are about a thousand healthy people for every sick one. So the few false positives among the many healthy people outnumber the true positives, and a positive result still leaves the disease fairly unlikely. Bayes' theorem puts an exact number on this.
- Given
- 0.1% of the population has the disease. The test is positive for 99% of people with the disease and for 0.5% of healthy people.
- To find
- The probability that a person has the disease, given that the test is positive: .
- Plan
- (1) Name the events; check the partition. (2) Turn the percentages into fractions. (3) Total probability for . (4) Bayes' theorem, then simplify.
Basics you need
; so and . Basics: classical probability
"99% effective when the disease is present" is ; a "false positive for 0.5% of the healthy" is . Lesson: conditional probability
: the healthy share is . Basics: rules of probability
is the sum of the paths to ; is the path divided by . Lesson: Bayes' theorem
Solution
Name the events
Let
- : the person tested has the disease;
- : the person tested does not have the disease (is healthy);
- : the test result is positive.
and form a partition of the sample space: is the complement of , and both have nonzero probability.
"Has the disease" and "healthy" are the two possible causes; the positive result is what we observe. An event and its complement form a partition when both have nonzero probability (Section 13.5.1), as here: and .Every number as a fraction
"0.1 percent of the population actually has the disease" gives the chance that a person picked from the population has it. "99% effective in detecting" is about people who have the disease, so it is . The false-positive rate is about healthy people, so it is ; the book itself writes it as the probability 0.005. Fractions keep everything exact: .The chance of a positive result
Since and form a partition, by the theorem of total probability
The tree for Question 5. The rose path (disease, then positive) has product ; the green path (healthy, then a false positive) has , about five times as much. A positive result happens through a true positive or a false positive, never both, so the two path probabilities add. To add them, write as .Multiply along a path, add the paths. Basics: tree diagramsHas the disease, given positive: Bayes' theorem
By Bayes' theorem,
Both 198 and 1197 are divisible by 9: and . So
The top is the true-positive path; the bottom is all positive results. The common denominator 200000 cancels. No further cancelling is possible: and have no common factor.Simplify by the highest common factor, here 9. Basics: working with fractionsWhat the answer means
Only about 16.5% of people who test positive actually have the disease. The other positives (about 83.5%) are false alarms: , and .
The test is not useless: it raised the chance of disease from to , more than 160 times. But the disease is so rare that a positive result calls for a second test, not a diagnosis.
A healthy person is about 1000 times as common as a sick one, and a false positive happens for 1 healthy person in 200. Those false positives outnumber the true ones about 5 to 1.for a partition. Lesson: Bayes' theorem
The probability that a person has the disease, given that the test is positive, is (about 0.165). (Textbook answer: .)
Picture 1 000 000 people. of them, 1000, have the disease, and 99% of these, 990, test positive. The other 999 000 are healthy, and 0.5% of them, 4995, test positive too. So people test positive, and only 990 of them are ill: , the same as .
- Answering 0.99. 99% is , the chance of a positive test for a sick person. The question asks for , the chance of being sick for a person who tests positive.
- Writing 0.1% as . .
- Forgetting the false positives. must include the healthy people who test positive, ; without them the answer would wrongly be 1.
- Leaving unsimplified. Divide by 9 to get .
- For a rare condition, even a very accurate test gives many false positives, because there are so many healthy people. Bayes' theorem shows this exactly.
- Picturing a large round population (here a million) turns the question into counting and is a quick check.
- Book Example 18 (an HIV test, Examples 15 to 21) shows the same effect. For a cause that is common and nearly always gives the result, see Question 4.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| An event and its complement form a partition | Step 1 | Section 13.5.1 (Lesson: Bayes' theorem) |
| and | Step 2 | Class XI (Basics: rules of probability) |
| Conditional probability | Step 2 | Section 13.2 (Lesson: conditional probability) |
| Theorem of total probability | Step 3 | Section 13.5.2 (Lesson: Bayes' theorem) |
| Bayes' theorem | Steps 4, 5 | Section 13.5; Example 18 is a similar test question (Examples 15 to 21) |
| Cancelling a common factor | Step 4 | Arithmetic (Basics: working with fractions) |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →