Integrated Discrimination Improvement (IDI) Calculator
Inputs
- Inputs (mean predicted probabilities, %): events 20.00 old / 26.00 new; non-events 18.00 old / 15.00 new.
- Discrimination slopes: old 20.00 - 18.00 = 2.00 points; new 26.00 - 15.00 = 11.00 points.
- The event mean rose 6.00 points and the non-event mean fell 3.00 points, and the two gains add.
- IDI = 11.00 - 2.00 = 9.00 percentage points.
A new biomarker, a new gene, a new variable of any kind - the question is always the same: does adding it to the model actually separate the people who will have the event from the people who will not? The integrated discrimination improvement answers with the model's own probabilities. Compare the mean predicted probability among events and among non-events, old model against new, and the IDI is the gain in the gap between them. This calculator takes the four means and returns the IDI with both discrimination slopes and the two halves of the change shown separately.
Worked examples
Clear improvement, 9 points
(20 % · 26 % · 18 % · 15 %)
| Integrated discrimination improvement (percentage points) | 9.00 |
| Discrimination slope, new model | 11.00 |
| Discrimination slope, old model | 2.00 |
| Event-mean change (new - old) | 6.00 |
| Non-event-mean change (old - new) | 3.00 |
Modest improvement, 2 points
(30 % · 31.5 % · 28 % · 27.5 %)
| Integrated discrimination improvement (percentage points) | 2.00 |
| Discrimination slope, new model | 4.00 |
| Discrimination slope, old model | 2.00 |
| Event-mean change (new - old) | 1.50 |
| Non-event-mean change (old - new) | 0.50 |
A model that got worse
(22 % · 21 % · 20 % · 20.5 %)
| Integrated discrimination improvement (percentage points) | -1.50 |
| Discrimination slope, new model | 0.50 |
| Discrimination slope, old model | 2.00 |
| Event-mean change (new - old) | -1.00 |
| Non-event-mean change (old - new) | -0.50 |
The question AUC cannot answer
The area under the ROC curve is a rank statistic: it asks whether a randomly chosen event was scored above a randomly chosen non-event. That is a real question, but it is not the only one, and AUC is notoriously hard to move - a strong new marker can shift predicted probabilities substantially for everyone and barely move the ranking at all. Pencina, D'Agostino and Vasan proposed the IDI in 2008 precisely for that blind spot. It works on the probabilities themselves rather than their ranks, integrating the change in sensitivity and in one-minus-specificity over every possible threshold at once - hence integrated.
What it measures, stripped down, is separation. A model separates when its average prediction for people who go on to have the event is far above its average prediction for people who do not. Widen that gap and the model has improved in the only sense that matters for the probabilities it hands to clinicians; narrow it and the new marker has, whatever its p-value said, made the model worse. The first worked example widens the gap from 2.00 to 11.00 points. The third narrows it, and the IDI says so without flinching.
- Works on predicted probabilities, not their ranks
- Integrates the improvement over every possible threshold
- Equals the change in the discrimination slope
- Can be negative - a new marker can make a model worse
Discrimination slopes
The discrimination slope is the model's mean predicted probability for events minus its mean for non-events. In the first example the old model manages only 20.00 against 18.00 - a slope of 2.00 points, barely any separation at all. The new model reaches 26.00 against 15.00, a slope of 11.00. The IDI is simply the difference of the two slopes, 9.00 points, and reporting the slopes alongside it matters: an IDI of 9.00 earned on a base slope of 2.00 is a transformation, while the same IDI on a base slope of 20.00 would be a refinement.
The second example is the refinement case in miniature. Slopes move from 2.00 to 4.00 - the IDI is 2.00 points - on a model whose absolute separation remains poor. That is not a contradiction; it is the statistic doing its job. The IDI is a measure of change, not of quality, and it must be read next to the new slope itself before anyone declares the augmented model good. A model can improve by 2.00 points and still separate badly.
Worked examples
Example 1: Events: mean predicted probability, old model 20; Events: mean predicted probability, new model 26; Non-events: mean predicted probability, old model 18; Non-events: mean predicted probability, new model 15. Integrated discrimination improvement (percentage points) = 9.00. Supporting values: Discrimination slope, new model 11.00; Discrimination slope, old model 2.00; Event-mean change (new - old) 6.00; Non-event-mean change (old - new) 3.00. Inputs (mean predicted probabilities, %): events 20.00 old / 26.00 new; non-events 18.00 old / 15.00 new. Discrimination slopes: old 20.00 - 18.00 = 2.00 points; new 26.00 - 15.00 = 11.00 points. The event mean rose 6.00 points and the non-event mean fell 3.00 points, and the two gains add. IDI = 11.00 - 2.00 = 9.00 percentage points.
Example 2: Events: mean predicted probability, old model 30; Events: mean predicted probability, new model 31.5; Non-events: mean predicted probability, old model 28; Non-events: mean predicted probability, new model 27.5. Integrated discrimination improvement (percentage points) = 2.00. Supporting values: Discrimination slope, new model 4.00; Discrimination slope, old model 2.00; Event-mean change (new - old) 1.50; Non-event-mean change (old - new) 0.50. Inputs (mean predicted probabilities, %): events 30.00 old / 31.50 new; non-events 28.00 old / 27.50 new. Discrimination slopes: old 30.00 - 28.00 = 2.00 points; new 31.50 - 27.50 = 4.00 points. The event mean rose 1.50 points and the non-event mean fell 0.50 points, and the two gains add. IDI = 4.00 - 2.00 = 2.00 percentage points.
Example 3: Events: mean predicted probability, old model 22; Events: mean predicted probability, new model 21; Non-events: mean predicted probability, old model 20; Non-events: mean predicted probability, new model 20.5. Integrated discrimination improvement (percentage points) = -1.50. Supporting values: Discrimination slope, new model 0.50; Discrimination slope, old model 2.00; Event-mean change (new - old) -1.00; Non-event-mean change (old - new) -0.50. Inputs (mean predicted probabilities, %): events 22.00 old / 21.00 new; non-events 20.00 old / 20.50 new. Discrimination slopes: old 22.00 - 20.00 = 2.00 points; new 21.00 - 20.50 = 0.50 points. The event mean rose -1.00 points and the non-event mean fell -0.50 points, and the two gains add. IDI = 0.50 - 2.00 = -1.50 percentage points.
The two halves of the IDI
The improvement can be earned on either side of the outcome, and the calculator shows both. Among events, the new model should push probabilities up: in the first example the event mean rises by 6.00 points. Among non-events it should push them down: the non-event mean falls by 3.00 points, entered in the calculator's convention as the old mean minus the new. The two gains add exactly to the IDI - 6.00 and 3.00 make 9.00 - because the slope difference decomposes without remainder.
The decomposition is diagnostic. A marker that lifts event probabilities but lifts non-event probabilities just as much has added noise dressed as signal, and its IDI will be near zero with two large, cancelling halves. A marker that mostly suppresses non-event probabilities is doing the quieter work of ruling out. The third example fails on both sides at once - the event mean falls by 1.00 and the non-event mean rises by 0.50 in the wrong direction - and the halves sum to its IDI of -1.50 with nothing hidden.
IDI vs NRI
The IDI arrived in the same 2008 paper as the net reclassification improvement, and the two are complements, not rivals. The NRI counts people crossing risk categories - it needs categories, and it answers to the clinical question of who gets treated differently. The IDI needs no categories and answers the prior question of whether the probabilities themselves moved apart. A model can post a healthy IDI and a trivial NRI if its probabilities improve without carrying anyone across a treatment threshold; it can also post a flattering NRI on categories chosen to flatter it, which the threshold-free IDI will not corroborate.
Reporting both, with the IDI's two halves, is the defensible standard the original paper argued for. This page's companion, the net reclassification improvement calculator, takes the category counts; this one takes the four means. Between them they cover the two halves of Pencina's framework, and a marker that cannot show improvement on either has not earned its place in the model - however significant its coefficient looked in the regression table.
Reporting practice has settled since 2008: the IDI belongs next to the change in AUC, the NRI at the clinically used thresholds, and a calibration check, because each statistic covers the others' blind spots and each can be gamed alone. A marker that improves all four has a case; a marker that improves only the one its authors chose to report has a question to answer. The four means this calculator needs are the cheapest part of that discipline - any modelling exercise that produced predicted probabilities can produce them - and the decomposition into event and non-event halves costs nothing at all.
Reading a negative IDI
A negative IDI is not an error state; it is a finding. The third example's new model scores events lower, at 21.00 against the old 22.00, and non-events higher, at 20.50 against 20.00 - it separates less, and the IDI of -1.50 points is the size of the damage. This happens more often than publication patterns suggest: a marker correlated with existing variables can add variance without adding separation, and in small samples it can happen by chance alone, which is why the IDI, like the NRI, carries a significance test in its source paper and should be reported with its standard error in serious work.
The practical reading is comparative and modest. Positive and materially large against its standard error, the IDI supports the new model; near zero, it says the marker rearranged probabilities without separating anyone; negative, it says stop. What it never says is that the new model is clinically useful - that judgement needs calibration, reclassification at the thresholds actually used, and decision analysis on top. The IDI's jurisdiction is separation, and within it, it is exact: four means in, one honest difference out.
FAQs
What IDI does the first worked example give?
9.00 percentage points. The discrimination slope widens from 2.00 to 11.00.
What is the new model's discrimination slope in the first example?
11.00 points - an event mean of 26.00 against a non-event mean of 15.00.
What is the old model's discrimination slope in the first example?
2.00 points. The old model barely separated events from non-events at all.
By how much does the event mean rise in the first example?
6.00 points, from 20.00 to 26.00; the non-event mean falling 3.00 points supplies the rest of the IDI.
What IDI does the modest second example give?
2.00 points. The slope doubles from 2.00 to 4.00, though absolute separation remains poor.
What IDI does the backwards third example give?
-1.50 points. The new model separates less than the old one on both sides of the outcome.