Learn / Biostatistics / Probability and distributions
Probability rules and why a positive test can mislead
14 minute read · 6-question quiz
What you will learn
Use the addition, multiplication and conditional probability rules
Build a two-by-two table of expected counts for a screening test
Calculate and interpret sensitivity, specificity and predictive values with Bayes' theorem
Probability is a number between 0 (cannot happen) and 1 (certain) that describes how likely an event is. In health research it appears everywhere: the probability that a child with fever has malaria, that a patient survives five years, that a trial result is due to chance.
For an event A, P(A) is its probability. The probability that A does not happen is 1 - P(A), called the complement.
The three rules you need
- Addition rule. For two events that cannot happen together (mutually exclusive),
P(A or B) = P(A) + P(B). If they can overlap, subtract the overlap:P(A or B) = P(A) + P(B) - P(A and B). - Multiplication rule. For independent events (one tells you nothing about the other),
P(A and B) = P(A) × P(B). - Conditional probability. The probability of A given that B has happened is
P(A | B) = (P(A and B))/(P(B)).
Screening and diagnostic tests
A test is judged against a reference ("gold") standard. Four numbers describe it:
| Measure | Question it answers | Formula |
| Sensitivity | Of people with the disease, what share test positive? | P(T^+ | D^+) |
| Specificity | Of people without the disease, what share test negative? | P(T^- | D^-) |
| Positive predictive value (PPV) | Of people who test positive, what share truly have the disease? | P(D^+ | T^+) |
| Negative predictive value (NPV) | Of people who test negative, what share truly do not? | P(D^- | T^-) |
Sensitivity and specificity are properties of the test. Predictive values depend also on prevalence, how common the disease is in the people tested. That is the point most often missed, even by clinicians.
Likelihood ratios
A likelihood ratio summarises how much a result changes the odds of disease and does not depend on prevalence.
LR^+ = (sensitivity)/(1 - specificity) LR^- = (1 - sensitivity)/(specificity)
For our test, LR^+ = 0.90 / 0.05 = 18 and LR^- = 0.10 / 0.95 = 0.105. Multiply the pre-test odds by the LR to get the post-test odds. Pre-test odds of disease are 0.05 / 0.95 = 0.0526; times 18 gives 0.947, which is a probability of 0.947 / 1.947 = 0.486. The same answer, by a different route.
Summary
Probability runs from 0 to 1; complements sum to 1; independent events multiply; mutually exclusive events add.
Conditional probability
P(A | B)is restricted to the people in whom B has happened.Sensitivity and specificity describe the test; PPV and NPV also depend on prevalence.
At 5% prevalence, a test with 90% sensitivity and 95% specificity has a PPV of only 49%.
Likelihood ratios convert pre-test odds to post-test odds without needing prevalence in the test's own description.
Check your understanding
Draft study guide. Spotted an error or something unclear? Tell us at hello@scintria.com. This is educational material, not clinical or regulatory advice.