KatInterview

Compute Disease Test Probability with Bayes' Theorem

Statistics & ExperimentsModel answer
EasyModel answerStatistics & Experimentsconditional probabilityBayes theoremstatistics

Last updated

Given a rare disease prevalence and known test accuracy rates, calculate the probability that a positive test result actually indicates disease.

Background

A public health team has developed a rapid diagnostic test for a rare condition. Before rolling it out widely, a medical statistician needs to advise on how to interpret a positive test result for an individual patient.

Given Information

  • The condition affects 1% of the general population (prevalence = 0.01).
  • The test has a sensitivity of 90%: if a person has the condition, the test is positive 90% of the time.
  • The test has a specificity of 95%: if a person does not have the condition, the test is negative 95% of the time.

Question

A randomly selected person from the general population takes the test and receives a positive result.

What is the probability that this person actually has the condition?

Show your reasoning step by step. Then explain what this result means practically, and identify any common mistakes candidates make when approaching this type of problem.

Hints

Hint 1

Write out what you know in terms of P(Disease), P(+ | Disease), and P(+ | No Disease) before doing any arithmetic.

Hint 2

Use the law of total probability to compute P(+) — the overall probability of a positive test — by considering both the diseased and non-diseased populations separately.

Hint 3

Remember: sensitivity tells you the true-positive rate, and 1 − specificity tells you the false-positive rate. Make sure you use 1 − specificity, not specificity itself, in the denominator.