Sensitivity and specificity describe how well a diagnostic test performs against the true condition status — but they don't tell you what a single positive or negative result means for the person who got it. That's what PPV and NPV are for, and why the same test can look very different depending on the population it's used on.

How the calculator works

Enter the four counts from your confusion matrix — true positives, false positives, false negatives, true negatives — and the calculator derives sensitivity, specificity, PPV, NPV, accuracy, and prevalence directly from those counts. Each rate has its own denominator (sensitivity and specificity look only at the true condition status; PPV and NPV look only at the test result), so a zero count in one denominator doesn't stop the other rates from being computed.

Why PPV and NPV move with prevalence, but sensitivity and specificity don't

Sensitivity and specificity are properties of the test itself — how well it distinguishes sick from healthy, holding for any population it's used on. PPV and NPV are properties of a test in a given population, because they answer a different question: given a result, what's the chance it's right? At low prevalence, even a small false-positive rate produces far more false alarms than true catches, dragging PPV down sharply — the same math behind why universal screening for rare conditions produces so many false alarms, and why doctors weigh pre-test probability before ordering a test.

Reading accuracy carefully

Accuracy folds everything into one number, which makes it easy to over-trust. On a rare condition, a test (or even a rule that always predicts 'negative') can score high accuracy while being clinically useless — it simply benefits from the condition being uncommon. Always check accuracy alongside sensitivity and specificity, not instead of them.