Net Reclassification Improvement (NRI) Calculator
Inputs
- Inputs: among 100 events, 18 moved up and 7 down; among 400 non-events, 12 moved up and 30 down.
- Event NRI = (18 - 7) / 100 = 11.00%; non-event NRI = (30 - 12) / 400 = 4.50%.
- NRI = 11.00% + 4.50% = 15.50%, with Pencina's standard error 0.0513.
- z = NRI / SE = 3.02, giving a two-sided p-value of 0.0025.
A new biomarker raises the AUC by a hair. Does it actually change anyone's treatment? The net reclassification improvement asks the operational question: among people who went on to have events, did the new model move more of them up a risk category than down - and among people who stayed well, did it move more down than up? Enter the movement counts for events and non-events and this calculator returns the NRI with its two halves separated, Pencina's standard error, the z statistic and the p-value.
Worked examples
Clear improvement
(18 · 7 · 100 · 12 · 30 · 400)
| Net reclassification improvement | 15.50% |
| Event NRI | 11.00% |
| Non-event NRI | 4.50% |
| Standard error | 0.0513 |
| z statistic | 3.02 |
| p-value | 0.0025 |
Weak, non-significant improvement
(26 · 19 · 250 · 60 · 74 · 1500)
| Net reclassification improvement | 3.73% |
| Event NRI | 2.80% |
| Non-event NRI | 0.93% |
| Standard error | 0.0279 |
| z statistic | 1.34 |
| p-value | 0.1803 |
Harmful model
(9 · 14 · 80 · 45 · 20 · 600)
| Net reclassification improvement | -10.42% |
| Event NRI | -6.25% |
| Non-event NRI | -4.17% |
| Standard error | 0.0610 |
| z statistic | -1.71 |
| p-value | 0.0878 |
The question AUC cannot answer
The AUC averages a model's discrimination over every possible threshold, including thresholds no clinician would ever use. Treatment decisions live at specific cut-offs - treat above one ten-year risk threshold, watch above a lower one - and a marker can improve the global average while moving nobody across the lines that matter, or worsen the average while fixing exactly the borderline group. Pencina, D'Agostino and Vasan built the NRI in 2008 to measure movement across the lines themselves.
The statistic's unit is people, not probabilities. In the first worked example, of 100 events the new model moves 18 up and 7 down; of 400 non-events, 30 down and 12 up. Everything else - the 15.50% headline, the standard error, the p-value - is arithmetic on those four counts, which is why this page asks for the counts and shows the halves before the sum.
- Event NRI - net upward movement among those with events
- Non-event NRI - net downward movement among those without
- NRI is their sum; the halves are reported separately
- Pencina's SE treats the two groups as independent samples
Events up, non-events down
Correct reclassification has a direction in each group. For someone who will have the event, moving up a category is the model learning; moving down is it unlearning. For someone who will stay well the moral signs reverse. The event NRI is the net share moved correctly, (up - down)/events: (18 - 7)/100 = 11.00% in the first example. The non-event NRI is (down - up)/non-events: (30 - 12)/400 = 4.50%. The headline NRI of 15.50% is their sum.
Keeping the halves separate is not pedantry. A model can earn a positive NRI entirely from the non-event side - reassuring the healthy - while actively harming event classification, or the reverse; the clinical value of those two profiles is completely different, and a single sum hides which one you bought. The third example shows both halves negative, -6.25% and -4.17%, summing to -10.42%: a model that should be rejected on its face, whatever it did to the AUC.
Worked examples
Example 1: Events moved up 18; Events moved down 7; Total events 100; Non-events moved up 12; Non-events moved down 30; Total non-events 400. Net reclassification improvement = 15.50%. Supporting values: Event NRI 11.00%; Non-event NRI 4.50%; Standard error 0.0513; z statistic 3.02; p-value 0.0025. Inputs: among 100 events, 18 moved up and 7 down; among 400 non-events, 12 moved up and 30 down. Event NRI = (18 - 7) / 100 = 11.00%; non-event NRI = (30 - 12) / 400 = 4.50%. NRI = 11.00% + 4.50% = 15.50%, with Pencina's standard error 0.0513. z = NRI / SE = 3.02, giving a two-sided p-value of 0.0025.
Example 2: Events moved up 26; Events moved down 19; Total events 250; Non-events moved up 60; Non-events moved down 74; Total non-events 1500. Net reclassification improvement = 3.73%. Supporting values: Event NRI 2.80%; Non-event NRI 0.93%; Standard error 0.0279; z statistic 1.34; p-value 0.1803. Inputs: among 250 events, 26 moved up and 19 down; among 1,500 non-events, 60 moved up and 74 down. Event NRI = (26 - 19) / 250 = 2.80%; non-event NRI = (74 - 60) / 1,500 = 0.93%. NRI = 2.80% + 0.93% = 3.73%, with Pencina's standard error 0.0279. z = NRI / SE = 1.34, giving a two-sided p-value of 0.1803.
Example 3: Events moved up 9; Events moved down 14; Total events 80; Non-events moved up 45; Non-events moved down 20; Total non-events 600. Net reclassification improvement = -10.42%. Supporting values: Event NRI -6.25%; Non-event NRI -4.17%; Standard error 0.0610; z statistic -1.71; p-value 0.0878. Inputs: among 80 events, 9 moved up and 14 down; among 600 non-events, 45 moved up and 20 down. Event NRI = (9 - 14) / 80 = -6.25%; non-event NRI = (20 - 45) / 600 = -4.17%. NRI = -6.25% + -4.17% = -10.42%, with Pencina's standard error 0.0610. z = NRI / SE = -1.71, giving a two-sided p-value of 0.0878.
Reading the two halves
Magnitude needs a denominator check. The non-event half usually draws on a much larger group - 400 against 100 in the first example, 1,500 against 250 in the second - so its percentage is estimated more precisely and moves less per person. The second example is the common real-world pattern: a modest NRI of 3.73%, split 2.80% and 0.93%, with a p-value of 0.1803 that declines to call it real. Most published marker improvements look like the second example, not the first.
The category choice is part of the result. NRI computed at treatment thresholds means something; NRI computed at arbitrary quantiles means much less, and the category-free version - counting any upward or downward wiggle in predicted risk - is more sensitive and more easily inflated, since noise alone moves predictions. Pencina's own follow-ups recommend reporting both, with the event and non-event halves, which is four numbers where enthusiasts quote one.
Pencina's standard error and the z test
The standard error treats each group's net movement as a multinomial proportion: within events, the variance of (up - down)/n combines the total movement rate with the square of the net rate, and the two groups' variances add because the groups are independent samples. The first example's SE of 0.0513 against an NRI of 15.50% gives z of 3.02 and a p-value of 0.0025 - the improvement is not a counting accident.
The second example is the necessary counterweight: z of 1.34, p of 0.1803. A positive NRI with an unimpressed p-value is the signature of a small study of a weak marker, and the correct action is a bigger validation sample, not a press release. The z test assumes the categories and the model were fixed before the validation data were seen; an NRI computed on the data that trained the model is optimistically biased in a way no standard error on this page can repair.
Category-based vs category-free NRI
The category-free (continuous) NRI counts every increase in predicted risk for an event as correct, however tiny. It can be computed without thresholds and is always available, but simulation studies have shown it can be positive for useless markers at uncomfortable rates, because any added variable jitters predictions and the jitter is scored asymmetrically. The category-based version on this page is the conservative original: movement must cross a line where a decision changes.
Used as Pencina intended - prespecified categories, independent validation data, halves reported, the IDI alongside for the probability-scale view - the NRI remains the clearest answer to the question clinicians actually ask of a new marker. Used as a single number harvested from the training set, it is a machine for manufacturing improvements. The counts this calculator asks for are the audit trail that separates the two uses.
A subtler failure mode deserves space because it fills the literature. If the new model's categories were chosen after seeing the validation data - thresholds tuned until the NRI peaked - the statistic inherits the tuning, and its p-value is fiction. The defence is procedural: categories fixed by clinical guidance or prespecification, the model locked before validation, and the movement table published in full so any reader can recompute the NRI under different thresholds. This page's insistence on the four counts is that defence in miniature - from the counts, every derived number can be checked and every alternative threshold explored.
The movement table also exposes an asymmetry the headline hides. In the first example, 25 of 100 events changed category at all, and a tenth of the 400 non-events did; the NRI summarises only the net of those flows. Two models with identical NRIs can differ entirely in churn - one moving few people correctly, the other moving many in both directions and netting the same - and clinicians reasonably prefer the first. Gross movement belongs in the report beside the net figure.
It is worth ending on the statistic's intended modesty. Pencina's papers present the NRI as one panel in a triptych - discrimination (the AUC and its change), calibration (whether the new model's probabilities are honest), and reclassification (whether decisions move) - and warn against reading any panel alone. A marker that improves reclassification while wrecking calibration has traded one failure for another. The calculator computes the third panel exactly and shows its workings; the other two panels are the user's to demand from the same validation study before the improvement is believed.
FAQs
What NRI does the first worked example give?
15.50% - event NRI of 11.00% plus non-event NRI of 4.50%, with a standard error of 0.0513 and p-value of 0.0025.
What is the event NRI in the first example?
11.00% - of 100 events, 18 moved up and 7 down under the new model, a net 11 correctly reclassified per hundred.
What is the non-event NRI in the first example?
4.50% - of 400 non-events, 30 moved down and 12 up. Correct movement for the healthy is downward.
What standard error does the first example have?
0.0513 by Pencina's formula - the two groups' multinomial variances added, since events and non-events are independent samples.
What p-value does the first example give?
0.0025, from z of 3.02. The reclassification improvement is well beyond counting noise.
What NRI does the harmful third example give?
-10.42%, with both halves negative (-6.25% events, -4.17% non-events). The new model moves both groups the wrong way and should be rejected.