Start with a 2×2 table
Arrange disease status as the reference condition and test result as positive or negative. Sensitivity is the proportion of truly diseased individuals who test positive. Specificity is the proportion of truly non-diseased individuals who test negative.
Writing the denominator in words is a reliable way to avoid swapping definitions.
Predictive values reverse the conditioning
Positive predictive value asks: among people who tested positive, what proportion truly have the condition? Negative predictive value asks: among people who tested negative, what proportion truly do not have the condition?
These are often the questions patients and clinicians care about after receiving a test result, but they are not intrinsic constants of the test.
Why prevalence changes PPV and NPV
When the condition is rare, false positives can outnumber true positives even for a test with good sensitivity and specificity, reducing PPV. In a high-prevalence setting, PPV tends to increase while NPV can decrease.
That is why predictive values should be reported in the population and clinical setting where the test is intended to be used.
