Interpreting Test Results: Bayes' Theorem in Diagnostics

Sensitivity, Specificity, and Base Rates

Medical tests and other diagnostic tools are rarely perfect. Their accuracy is often described by two key terms:

  • Sensitivity (True Positive Rate): The probability that the test correctly identifies individuals who have the condition. P(Test Positive | Has Condition).
  • Specificity (True Negative Rate): The probability that the test correctly identifies individuals who do not have the condition. P(Test Negative | No Condition).

However, the reliability of a positive test result also heavily depends on the prevalence or base rate of the condition in the population being tested (the prior probability).

The Power of Bayes' Theorem

Bayes' Theorem is crucial for calculating the positive predictive value (PPV) – the probability that a person actually has the disease given that they tested positive, P(Disease | Test Positive). It helps us understand how to revise our initial belief about someone having the disease (based on prevalence) after we receive a test result.

This often leads to counter-intuitive results, especially when the disease is rare, as a "highly accurate" test can still produce a surprisingly high number of false positives relative to true positives.

Disease Screening - Bayes' Theorem

ADVANCED

A certain disease affects 1% of the population. A diagnostic test for this disease is said to be 95% accurate. This means that if a person has the disease, the test correctly identifies it 95% of the time (sensitivity), and if a person does not have the disease, the test correctly identifies this 95% of the time (specificity).

If a randomly selected person tests positive, what is the probability that they actually have the disease?

Food for Thought: How would the probability P(Disease | Positive) change if the disease was much more common, say affecting 20% of the population, with the same test accuracy?

 

Nerchuko Academy · Free DS Interview Prep