Q.By examining the chest X-ray, the probability that TB is detected when a person is actually suffering is . The probability of a healthy person diagnosed to have TB is . In a certain city, in people suffers from TB. A person is selected at random and is diagnosed to have TB. What is the probability that he actually has TB?
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →Using Bayes' theorem, we update the prior probability of having TB (0.001) with the test's likelihoods. The probability that a person diagnosed with TB actually has it is approximately 0.4975, or about 49.75%.
Why Bayes' theorem is the natural tool here
We are given a test (chest X-ray) that has two kinds of accuracy: it catches true cases with high sensitivity (99%), but it also occasionally gives false alarms — a healthy person gets wrongly diagnosed 0.1% of the time. The real twist is that TB is rare: only 1 in 1000 people actually has it. So even a very good test will produce many false positives simply because there are so many more healthy people.
The question asks: Given that the test says "TB", what is the chance the person really has it? That is a classic inverse probability problem — we know and , but we want . Bayes' theorem is the only correct way to reverse the conditioning.
Let's define the events clearly and apply it step by step.
Step-by-step solution
1. Define the events
Let = "person has TB" and = "person is healthy" (so ).
Let = "person is diagnosed with TB (test positive)".
From the problem:
- (prior probability of TB in the city)
- (sensitivity: test catches 99% of true cases)
- (false positive rate: 0.1% of healthy people test positive)
2. What we need
We want — the probability that a person actually has TB given that the test says so.
3. Apply Bayes' theorem
We already have the numerator: .
The denominator is the total probability of a positive test, which can happen in two ways: a true positive (TB person tests positive) or a false positive (healthy person tests positive). By the law of total probability:
Substitute the numbers:
Compute each term:
So .
4. Compute the desired probability
Do the division:
…
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.