Skip to content
NCERT Exemplar · Q27

Q.By examining the chest X-ray, the probability that TB is detected when a person is actually suffering is 0.990.99. The probability of a healthy person diagnosed to have TB is 0.0010.001. In a certain city, 11 in 10001000 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?

Goa GbshseLong· 5mImportance★★★★★
68% · 112/165 Questions
🔒 Locked · start free trial →

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 P(positive∣TB)P(\text{positive} \mid \text{TB}) and P(positive∣healthy)P(\text{positive} \mid \text{healthy}), but we want P(TB∣positive)P(\text{TB} \mid \text{positive}). Bayes' theorem is the only correct way to reverse the conditioning.

P(A∣B)=P(B∣A)⋅P(A)P(B)P(A \mid B) = \frac{P(B \mid A) \cdot P(A)}{P(B)}

Let's define the events clearly and apply it step by step.


Step-by-step solution

1. Define the events

Let TT = "person has TB" and HH = "person is healthy" (so H=TcH = T^c).

Let DD = "person is diagnosed with TB (test positive)".

From the problem:

  • P(T)=11000=0.001P(T) = \frac{1}{1000} = 0.001 (prior probability of TB in the city)
  • P(H)=1−0.001=0.999P(H) = 1 - 0.001 = 0.999
  • P(D∣T)=0.99P(D \mid T) = 0.99 (sensitivity: test catches 99% of true cases)
  • P(D∣H)=0.001P(D \mid H) = 0.001 (false positive rate: 0.1% of healthy people test positive)

2. What we need

We want P(T∣D)P(T \mid D) — the probability that a person actually has TB given that the test says so.

3. Apply Bayes' theorem

P(T∣D)=P(D∣T)⋅P(T)P(D)P(T \mid D) = \frac{P(D \mid T) \cdot P(T)}{P(D)}

We already have the numerator: 0.99×0.001=0.000990.99 \times 0.001 = 0.00099.

The denominator P(D)P(D) 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:

P(D)=P(D∣T)⋅P(T)+P(D∣H)⋅P(H)P(D) = P(D \mid T) \cdot P(T) + P(D \mid H) \cdot P(H)

Substitute the numbers:

P(D)=(0.99×0.001)+(0.001×0.999)P(D) = (0.99 \times 0.001) + (0.001 \times 0.999)

Compute each term:

  • 0.99×0.001=0.000990.99 \times 0.001 = 0.00099
  • 0.001×0.999=0.0009990.001 \times 0.999 = 0.000999

So P(D)=0.00099+0.000999=0.001989P(D) = 0.00099 + 0.000999 = 0.001989.

4. Compute the desired probability

P(T∣D)=0.000990.001989P(T \mid D) = \frac{0.00099}{0.001989}

Do the division:

P(T∣D)≈0.4975P(T \mid D) \approx 0.4975 …

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.