Predictive Value: Calculate PPV and NPV
- Negative predictive value
- %
- Result
- Accuracy
- %
- Result
- True positives
- 80 count
- You entered
Predictive value describes how well a positive or negative test result identifies the condition it is testing for. Enter the numbers of true positives, false positives, true negatives, and false negatives to calculate positive predictive value (PPV) and negative predictive value (NPV), both as percentages.
Formula
Positive predictive value is the share of positive results that are true positives. Negative predictive value is the share of negative results that are true negatives:
- PPV = TP / (TP + FP) × 100%
- NPV = TN / (TN + FN) × 100%
- Accuracy = (TP + TN) / (TP + FP + TN + FN) × 100%
Here, TP is the number of true positives, FP the false positives, TN the true negatives, and FN the false negatives. These are counts, so they have no physical unit; the results are percentages. A true positive is a positive test in someone who has the target condition, while a false positive is a positive test in someone who does not. True and false negatives are defined in the same way for negative results.
Worked Example
Using the calculator’s defaults, there are 80 true positives, 20 false positives, 850 true negatives, and 50 false negatives.
- PPV = 80 / (80 + 20) × 100 = 80.00%.
- NPV = 850 / (850 + 50) × 100 = 94.44%.
- Accuracy = (80 + 850) / (80 + 20 + 850 + 50) × 100 = 930 / 1,000 × 100 = 93.00%.
In this example, 80% of positive results are true positives, and 94.44% of negative results are true negatives. Accuracy is a separate summary: it is the share of all results, positive or negative, that are correct.
How to Calculate Predictive Value
Arrange test outcomes against the actual condition, usually established by a suitable reference standard. Then count how many people fall into each of the four outcome groups. Apply the relevant formula: PPV uses only positive results in its denominator; NPV uses only negative results.
- For PPV, divide true positives by all positive results: true positives plus false positives.
- For NPV, divide true negatives by all negative results: true negatives plus false negatives.
- Multiply each fraction by 100 to express it as a percentage.
If the denominator is zero, the corresponding predictive value is undefined: for example, if there are no positive results, PPV cannot be calculated from that dataset. The calculator accepts whole-number counts; use counts from the same study population and the same test evaluation.
What Predictive Value Tells You
PPV answers, “Given a positive result, how likely is it that the condition is actually present in this tested group?” NPV answers, “Given a negative result, how likely is it that the condition is absent?” These are conditional probabilities, not measures of how often a test is correct in every setting.
Predictive values depend strongly on how common the condition is in the population being tested. This proportion is called prevalence. If a condition is uncommon, even a test with good sensitivity and specificity may produce a substantial share of false positives, lowering PPV. In a population where the condition is more common, PPV usually rises and NPV usually falls, assuming the test’s sensitivity and specificity stay the same.
For example, a positive result from a screening test in a low-prevalence group may need confirmation with another test. That does not by itself mean the screening test is poor; it means the meaning of a result depends on both test performance and the tested population. Predictive values should not be transferred uncritically from one population or setting to another.
Predictive Value Compared With Sensitivity and Specificity
Sensitivity and specificity describe test performance using the actual condition as the starting point. Sensitivity is TP / (TP + FN): the proportion of people with the condition who test positive. Specificity is TN / (TN + FP): the proportion of people without the condition who test negative.
PPV and NPV reverse the direction of the question. They start with the test result and ask about the condition. A common misconception is that a test with 99% specificity must have a 99% PPV. It does not necessarily: PPV also depends on prevalence and sensitivity. Accuracy can also be misleading when one outcome is much more common than the other; a test can appear accurate by classifying most people as belonging to the majority group while missing many cases.
Common Errors and Limits
- Swapping denominators: PPV is not TP divided by all people with the condition; that is sensitivity. NPV is not specificity.
- Mixing up actual status and test result: Classify cases using an appropriate reference standard, not the test being evaluated.
- Ignoring the study population: Predictive values reflect the prevalence and selection of that group. A clinic sample may not represent a general population.
- Rounding too early: Keep the original counts and round only the final percentage. The calculator displays two decimal places.
- Treating estimates as certainty: Study results have sampling uncertainty. A confidence interval and the study design may matter, especially with small samples.
The formulas describe observed proportions in the entered data; they do not establish causation, explain why a test result occurred, or account automatically for sampling bias, changing prevalence, or errors in the reference standard. If the counts come from a study, interpret the results alongside its methods and population.
Frequently Asked Questions
What is the formula for positive predictive value?
PPV = true positives / (true positives + false positives) × 100%. Its denominator is every positive test result.
What is the formula for negative predictive value?
NPV = true negatives / (true negatives + false negatives) × 100%. Its denominator is every negative test result.
Can predictive value be calculated from sensitivity and specificity alone?
Not generally. To calculate PPV or NPV from sensitivity and specificity, you also need prevalence in the population being tested, or equivalent information about the outcome counts.
Why does predictive value change between populations?
Different populations can have different prevalence. Because predictive value depends on the condition’s frequency as well as test performance, the same test can have different PPV and NPV across settings.
Is PPV the same as accuracy?
No. PPV is the proportion of positive results that are true positives. Accuracy is the proportion of all results that are correct, including both positive and negative results.
Related
Formula used
in tp | True positives | count | 80 | 0 in fp | False positives | count | 20 | 0 in tn | True negatives | count | 850 | 0 in fn | False negatives | count | 50 | 0 out ppv | Positive predictive value | % | 100 * tp / (tp + fp) | 2 out npv | Negative predictive value | % | 100 * tn / (tn + fn) | 2 out acc | Accuracy | % | 100 * (tp + tn) / (tp + fp + tn + fn) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.