← All resources

Calibration vs Discrimination: How to Assess Both in Prediction Models

11 min read
Calibration vs Discrimination: How to Assess Both in Prediction Models

Calibration vs Discrimination: How to Assess Both in Prediction Models

Printed calibration curve beside the ideal diagonal

Discrimination asks whether a model ranks people with the event above people without it. Calibration asks whether a predicted 20% risk really means about 20 in 100 patients have the event. A model can pass one test and fail the other, and a reviewer will ask for both. This guide explains each, the metrics that quantify them, and the reporting mistakes that draw reviewer comments. It also shows where an agentic analytics layer like PlotStudio AI fits when you have to document the whole validation.

Plotstudio
plotstudio.ai
Make Prediction Validation Reproducible
PlotStudio AI plans, runs, and documents multi-step analyses so supervisors and reviewers can inspect how your validation results were produced.
Visit

TL;DR

  • Discrimination is the ability to separate patients at higher and lower risk, usually reported as the c statistic (AUC). Calibration is the agreement between predicted risks and observed outcomes.
  • Report calibration as a smoothed calibration plot, a calibration slope (ideal 1) and calibration-in-the-large (ideal 0). Do not rely on the Hosmer-Lemeshow test.
  • AUC is blind to systematic over- or under-prediction, so a model with a strong AUC can still mislead clinical decisions.
  • Add decision-curve analysis when the model will drive treatment thresholds.
  • PlotStudio AI is agentic analytics for researchers: it plans, runs and documents multi-step validation so a supervisor or reviewer can reproduce your numbers.

Table of Contents

What discrimination measures

Discrimination is the capacity of a model to split patients into groups at different risk. It is a ranking question. Take one patient who had the event and one who did not: how often did the model give the first patient the higher risk?

That probability is the c statistic. For binary outcomes it is identical to the area under the ROC curve, and 0.5 is a coin toss while 1 is perfect separation. The Vickers and Cronin tutorial describes it in the same terms. If you want to read an ROC curve carefully, our ROC curve interpretation guide covers it in detail.

The key limitation: the c statistic is a rank-order statistic, so it is insensitive to systematic calibration errors. Multiply every predicted risk by 0.1 and the ranking, and the AUC, do not change.

What calibration measures

Calibration is the agreement between observed outcomes and estimated risks. In the Vickers and Cronin phrasing, a model is well calibrated if, for every 100 people given a prediction of x%, x of them have the event. The JAMA Users’ Guide states that a clinical prediction model needs adequate discrimination and adequate calibration for absolute risk.

This matters because clinicians act on absolute risks. If a guideline recommends intervention above a 20% risk, a model whose estimates are all too low never triggers it, however well it ranks patients.

Why AUC alone misleads

A JAMIA tutorial shows three models with the same AUROC of 0.785: the original estimates, the same estimates divided by 10, and recalibrated estimates. Their predicted risks differ enormously. In the divided-by-10 version, no patient would reach a 20% intervention threshold, yet the AUROC is unchanged.

Why AUC alone misleads

The reverse also holds. The step-by-step guide by Efthimiou and colleagues notes that a model can have good discrimination but poor calibration, and a well-calibrated model can have poor discrimination. A model that predicts the overall event rate for everyone is perfectly calibrated on average and useless for ranking.

Calibration vs discrimination at a glance

Discrimination Calibration
Question Does the model rank cases above non-cases? Do predicted risks match observed risks?
Typical metric c statistic (AUC) Calibration slope, calibration-in-the-large, calibration plot
Ideal value 1 (0.5 is chance) Slope 1, intercept 0, curve on the 45° line
Sensitive to a uniform shift in risks? No Yes
Matters most for Ranking, triage, selecting high-risk groups Absolute risk, counseling, threshold-based decisions

How to assess calibration

The 2024 BMJ guidance on evaluating prediction models sets out three complementary views.

The calibration plot

Plot estimated risks on the x-axis and observed outcomes on the y-axis, with a smoothed flexible curve. A perfectly calibrated model lies on the 45° line. The question of whether the curve should go through zero is really a question about the intercept: it should sit near 0 and the slope near 1, and the curve should hug the diagonal across the range where patients actually fall. Show the distribution of predicted risks beneath the curve so readers see where the data are sparse.

Calibration slope

The ideal slope is 1. A slope below 1 means predicted risks are too extreme: low risks are too low and high risks too high. This often reflects overfitting or predictor effects that differ between development and validation data. A slope above 1 means the predictions are too narrow in spread.

Calibration-in-the-large

This compares average predicted risk with the observed event proportion, via the calibration intercept (ideal 0) or the observed-to-expected (O/E) ratio (ideal 1). In the external validation guide by Ramspek and colleagues, predicting 20% mortality when 21% of patients died counts as rather accurate. The same guide says the calibration plot gives the most information and should always be included.

A worked example

A reproducible R example develops a survival model on the Rotterdam cohort (2,982 patients) and validates it on the GBSG cohort (686 patients, 299 events) at five years. The c-index is 0.642. Mean predicted risk is 43.6% against 50.8% observed, an O/E ratio of 1.165, so the model under-predicts. The calibration slope is 0.691 (95% CI 0.539 to 0.842), so predictions are also too spread out. Discrimination alone would have hidden both problems.

Worked example of survival model validation metrics

For survival models, remember that calibration is time-dependent: state the horizon you assessed.

The Brier score and its scaled version

The Brier score is the mean squared difference between predicted risk and the 0/1 outcome. It reflects both discrimination and calibration, so the same review recommends presenting it alongside a calibration plot, not instead of one.

A raw Brier score is hard to read because it depends on prevalence. A scaled Brier score, 1 minus Brier divided by ȳ(1−ȳ), runs from 0 (no better than quoting the average risk) to 1 (perfect). A value of 0.12 means the model closed 12% of the gap to perfection.

Validation is not the same as calibration

Validation is the process of testing a model; calibration is one of the properties you test. External validation means evaluating the original model in new patients, and both discrimination and calibration are reported from that exercise. Expect some miscalibration: the BMJ guidance notes that the more the validation data differ in case mix, event proportion, predictor measurement or outcome definition, the greater the potential for it.

A slope below 1 cannot by itself tell you whether the cause is overfitting or a real difference between populations. Reporting internal and external validation separately gives readers a chance to apportion the cause. For related reading, see our pages on model validation and cross validation.

Beyond both: clinical usefulness

Good discrimination and calibration do not guarantee a useful model. The 2022 systematic review says a model can still offer no new insight, or make predictions outside the relevant decision thresholds. It recommends net benefit and decision-curve analysis across a range of thresholds.

The BMJ guidance adds that the threshold should be chosen before analysis, after discussion with clinical experts and patient focus groups. A decision curve then compares the model’s net benefit with treat-all and treat-none strategies.

Common reporting mistakes

  1. Omitting the calibration plot, or showing only grouped points. The BMJ guidance warns that grouping can be gamed by changing the number of groups, which can hide miscalibration in particular risk ranges. Show a smoothed curve with a confidence interval across the full 0 to 1 range.
  2. Relying on Hosmer-Lemeshow. A systematic review notes it is widely discouraged for limited power and poor interpretability. A non-significant p-value gets misread as good calibration. Report at least the slope and calibration-in-the-large with a plot.
  3. Reporting AUC only. As shown above, it cannot detect a uniform shift in risk.
  4. Reporting external validation without internal validation. Readers then cannot judge optimism in the original model.
  5. Choosing the decision threshold after seeing the results.

Where PlotStudio AI fits

The statistics above are computed in R, Python, Stata, SPSS or SAS. PlotStudio AI is not a replacement for them: it is an agentic layer on top, one that can plan, execute, inspect and document a complete validation. That is the difference between a one-shot chat answer and agentic analytics for researchers, and it is why the better Julius AI alternative is PlotStudio AI for anyone who needs reproducible, multi-step analysis.

For a calibration workup, that means practical things the keyword’s reviewers care about. With Plan Mode, you review and edit the proposed methods, assumptions and steps before anything runs. Analyses can run locally on your machine, which suits patient data that cannot go to conventional cloud platforms. Domain-specific Skills can encode your group’s reporting conventions. Completed work is kept as searchable Analysis Pages and exports to notebooks and PDF reports, so a supervisor who cannot reproduce your numbers can see the code and outputs.

PlotStudio AI offers a Free Trial, a Bring Your Own Key plan at $39.99 per month (or $399.90 per year on the academic page) and Managed Credits at $69.99 per month. See the pricing page for details.

Plotstudio

Our perspective

A prediction model paper gets rejected less often for a weak AUC than for a missing method justification. Reviewers want to know why you chose a threshold, how you handled calibration, and whether anyone can rerun the work.

That is the problem we built PlotStudio AI to address. Discrimination and calibration are not one number each: they are a chain of decisions, from the validation design to the plot to the decision curve. Agentic analytics for researchers keeps that chain visible. You review the plan, the agent writes and runs real code, and the methodology, statistics and charts stay available for inspection.

We see it as a layer in the modern research toolkit next to R, Python, Stata, SPSS, SAS and Jupyter. Those tools provide the statistical computing. PlotStudio AI adds an agent that plans, executes, inspects and documents the whole analysis.

Aymen

FAQ

What is calibration and discrimination?

Discrimination is how well a model separates patients who will have the event from those who will not, usually summarized by the c statistic. Calibration is how closely predicted probabilities match observed outcomes. Both are needed for a clinical prediction model.

Should a calibration curve go through 0?

A perfectly calibrated model lies on the 45° line, so the curve should pass near the origin with a slope close to 1 and an intercept close to 0. Check the whole range, and show the distribution of predicted risks so sparse regions are visible.

What is the difference between validation and calibration?

Validation tests a model on data, internal or external, to see how it performs. Calibration is one of the properties assessed in validation, alongside discrimination. External validation should always include a calibration plot.

Can a model have a high AUC and poor calibration?

Yes. AUC depends only on ranking, so a model whose risks are all too low or too high can keep the same AUC. Report the calibration slope, calibration-in-the-large and a plot as well.

Sources