By examining the chest X-rays, probability that TB is detected when a person is actually suffering, is 0.99. The probability that the doctor diagnoses incorrectly that a person has TB on the basis of X-ray is 0.001. In a certain city 1 in 1000 persons suffers from TB. A person selected at random is diagnosed to have TB. What is the chance that he actually has TB?
Bayes' Theorem and Probability Distribution · Question 8 of 49
By examining the chest X-rays, probability that TB is detected when a person is actually suffering, is 0.99.
Solution:
Key idea: Bayes' theorem. If the events are mutually exclusive, together cover every possibility, and an event is known to have happened, then , where the theorem of total probability gives . The 0.001 is the chance that a person who does not have TB is wrongly diagnosed as having it.
Step 1 — Name the events.
We name the possible causes (the hypotheses) and the observed result, so that each probability has a clear meaning.
- : the person selected has TB
- : the person selected does not have TB
- : the person is diagnosed as having TB
Step 2 — Write the probability of each hypothesis.
One person in 1000 in the city has TB, so the other 999 in 1000 do not.
Step 3 — Write the probability of under each hypothesis.
A person with TB is detected with probability 0.99, and a person without TB is wrongly diagnosed with probability 0.001.
Step 4 — Find the total probability of .
By the theorem of total probability, we multiply the probability of each hypothesis by the chance of under it and add the results.
Step 5 — Apply Bayes' theorem.
Bayes' theorem divides the term of the sum above by the total probability .
Check: The other hypothesis has , and the two posterior probabilities add to 1, as they must.
Note: Even with a very accurate X-ray test, only about half of the people diagnosed with TB actually have it, because the disease is rare (1 in 1000) and the many healthy people produce a comparable number of false diagnoses.
Therefore, the probability that the person diagnosed with TB actually has TB is .
