liveBook · Manning

Medical test

As explained in Fabulous Adventures in Data Structures and Algorithms

A medical test is a procedure that provides evidence about whether a health condition is present.

A medical test provides evidence about whether a health condition is present. Its result changes belief through Bayesian updating, so accuracy alone does not determine how strongly a positive result should be trusted: the condition’s prior prevalence matters too. section 13.4

Interpret a test by separating these ideas:

  • Sensitivity measures accuracy for people who have the condition; specificity measures accuracy for people who do not. section 13.4
  • A rare condition can produce many false positives even when a test is 99.5% accurate. section 13.4
  • The posterior probability combines the prior distribution with the likelihood of each test result. section 13.4

The Frob Syndrome test

Suppose 1 in 30,000 people has Frob Syndrome. A cheap test has 99.5% sensitivity and specificity. After a positive result, the modeled odds are 199 people with the syndrome to 29,999 without it—about 0.7%, not 99.5%. section 13.4

How Fabulous Adventures in Data Structures and Algorithms covers it

How deep it goes
Works through sensitivity, specificity, likelihoods, priors, posteriors, and exact outcome weights, but does not discuss clinical practice.
Examples
Uses the fictitious Frob Syndrome, a cheap blood test, a gold-standard test, and C# categorical distributions.
What you can do after
Evaluate a positive test by computing its posterior probability instead of equating test accuracy with belief.
How it connects
Connects medical tests to conditional probability, Bayes’ theorem, prior probability, likelihood, posterior probability, sensitivity, and specificity.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fabulous Adventures in Data Structures and Algorithms. The section links point to the parts of the book it draws on.