What Calibration Asks
A conditional survival prediction is made for a subject who has remained event-free to a specified prediction time. The model uses information available at that time, such as the subject’s longitudinal marker history, to predict the chance of an event over a future horizon. Calibration asks whether those predicted probabilities match event frequencies in the relevant validation population.
The distinction between a prediction and the probability it aims to predict is essential. A model can assign a risk of 0.20 to a subject even when that subject’s true conditional event probability is 0.35. Calibration is a property of the model’s predictions across subjects, not a definition that makes each prediction correct by construction.
The model’s prediction \(\hat q_i(s,h)\) may be obtained from its conditional survival prediction as one minus the predicted probability of surviving from \(s\) through \(s+h\), given survival to \(s\) and the available history. The event probability and prediction refer to the same event, landmark, horizon, eligibility condition, and target population. If any of these differ, the comparison does not assess the stated calibration target.
For example, a conditional risk of 0.20 means a 20% predicted probability of the target event during the next \(h\) time units, among subjects still event-free at \(s\) with the relevant histories. It does not mean that every subject assigned 0.20 has an individual outcome that can be checked against a probability. Calibration compares probabilities with event frequencies across subjects.
Why the Definition Uses a Conditional Mean
Suppose the model’s prediction is determined by information available at \(s\). For subjects at risk at \(s\), the event indicator has conditional expectation \(p_i(s,h)\) given that history. Averaging over subjects assigned the same predicted value gives the central calibration relationship.
This follows by conditioning first on \(H_i(s)\): because \(D_i(s,h)\) is an indicator of the event in the stated interval, its conditional expectation given survival to \(s\) and the history is \(p_i(s,h)\). Averaging that conditional expectation among subjects with \(\hat q_i(s,h)=q\) yields the displayed equality. Thus calibration requires the average true risk among subjects assigned \(q\) to equal \(q\). It does not require every individual’s true risk to equal the model’s prediction.
In a validation sample, the conditional expectation is not directly observed. It is estimated from outcomes among subjects with similar predictions, while accounting for incomplete follow-up when necessary. With continuously varying predictions, a finite sample will rarely contain many subjects with exactly the same value. Any practical comparison therefore uses a specified estimation approach and has sampling uncertainty.
Worked Example: Comparing a Predicted Risk With an Event Frequency
Suppose a hypothetical validation sample contains 100 subjects who were event-free at prediction time \(s\). Each received the same model-predicted risk, \(\hat q_i(s,h)=0.20\), for the next 2 years. Assume all 100 have complete event follow-up through 2 years and the target event is recorded consistently.
There are 18 events in the 2-year horizon, so the observed event proportion is \(18/100=0.18\). The difference between the observed proportion and the predicted risk is \(0.18-0.20=-0.02\), or 2 percentage points below the prediction.
This sample’s event frequency is close to the predicted 20%, but it does not prove exact calibration. It is a finite-sample estimate of the event probability for subjects assigned this risk. Its uncertainty matters: under a simple binomial approximation, the standard error of an event proportion near 0.18 is \(\sqrt{0.18(1-0.18)/100}=\sqrt{0.001476}=0.03842\), or about 3.8 percentage points. The example supports a descriptive comparison, not a claim that the model is calibrated at every risk level.
Calibration Is Not Discrimination
Discrimination concerns whether predictions rank subjects appropriately: subjects who experience the event sooner or within a horizon should tend to receive higher predicted risks than subjects who do not. Calibration concerns whether the numerical probabilities are accurate on average. A model can rank subjects well but systematically overpredict risk; it can also predict the overall event frequency accurately while assigning risks that do not distinguish subjects well.
Worked Example: Correct Overall Risk, Miscalibrated Risk Levels
Consider a hypothetical validation sample of 100 event-free subjects at time \(s\), with complete follow-up to a fixed horizon. Fifty subjects receive a predicted risk of 0.10, and 50 receive a predicted risk of 0.30. In the first set, 10 events occur; in the second set, also 10 events occur.
The predicted average risk is \((50(0.10)+50(0.30))/100=0.20\). The overall observed event proportion is \((10+10)/100=0.20\). Thus the overall average prediction matches the overall event proportion.
However, among the 50 subjects assigned 0.10, the observed event proportion is \(10/50=0.20\), which is 10 percentage points higher than predicted. Among those assigned 0.30, it is also \(10/50=0.20\), which is 10 percentage points lower than predicted. The overall agreement conceals these differences. Calibration concerns the conditional mean at each predicted risk, not just agreement after averaging across all predictions.
The same example illustrates why a single overall event rate cannot establish that predicted probabilities are informative or accurate across their range. Discrimination and calibration answer different questions; neither result can substitute for the other.
Assessing Calibration With Censored Follow-Up
At a fixed horizon, some validation subjects may be censored before their event status for that horizon is known. A subject censored before \(s+h\) without a prior event is not known to have remained event-free through the horizon. Counting such a subject as a non-event generally biases the observed event frequency downward. Simply discarding all subjects without complete follow-up can also bias the comparison if censoring is related to event risk.
A censoring-adjusted comparison can use inverse probability of censoring weighting (IPCW). In broad terms, an observed event is weighted by the inverse probability of remaining uncensored up to its event time, conditional on the variables in the censoring model. This compensates for similar events that may have been hidden by earlier censoring. The adjustment requires appropriate assumptions: conditional independence of censoring and the event process given the variables used, a correctly specified censoring distribution (or a sufficiently flexible estimate), and positivity, meaning that the probability of remaining uncensored is not zero over the times and covariate patterns being evaluated.
The censoring model and the prediction model have different roles. The prediction model supplies \(\hat q_i(s,h)\); the censoring model supports estimation of observed risk when outcomes are incompletely observed. IPCW does not repair a misspecified prediction model, and it cannot identify horizon-specific event probabilities in regions where essentially no one remains observable.
Worked Example: A Censoring-Adjusted Risk Estimate
Suppose 10 hypothetical subjects are event-free at \(s\) and all receive a predicted 1-year risk of 0.40. By 1 year, 4 subjects have an observed event, 3 are known to be event-free through 1 year, and 3 were censored before 1 year without an event. Assume, for illustration, that censoring is independent of event time in this prediction group and that each observed event time has censoring survival probability \(G=0.80\) from \(s\) to that time.
For estimating the group’s event risk, each observed event contributes \(1/G=1/0.80=1.25\) event equivalents. The weighted number of events is therefore \(4(1.25)=5\). Dividing by all 10 eligible subjects gives the IPCW risk estimate \(5/10=0.50\).
The censoring-adjusted estimate is 0.50, compared with the common predicted risk of 0.40: a difference of 0.10, or 10 percentage points. This is an estimate, not a known population value. The calculation relies on the stated censoring assumptions; in an actual analysis, the censoring probabilities would generally be estimated and may vary by subject and event time. The three subjects censored before the horizon cannot simply be classified as event-free.
Practical Checks, Alternatives, and Limitations
Before interpreting a calibration comparison, verify that the predictions and validation outcomes refer to the same target. In particular, check that the prediction time, horizon, event definition, eligibility rule, and conditioning information agree. Confirm that subjects classified as at risk at \(s\) were actually event-free then, and that outcome follow-up is sufficient or censoring is handled under defensible assumptions.
A calibration assessment is also limited by sample size and the distribution of predictions. Few subjects at a particular risk level mean that the conditional event frequency is estimated imprecisely. Predictions outside the range well represented in the validation cohort cannot be assessed reliably from that cohort. In addition, calibration in one validation population does not guarantee calibration in a population with a different case mix, event incidence, follow-up process, or clinical setting.
A common practical summary is to compare observed and predicted risks within prediction groups. This can be useful descriptively, but it only assesses agreement at the chosen grouping resolution; it may hide differences within groups, as the second worked example demonstrates. A calibration plot provides a broader visual comparison across risk values, while later summaries such as calibration-in-the-large and a calibration slope focus on particular systematic patterns. No one summary replaces the need to define the prediction target and assess uncertainty.
A frequent mistake is to define the model prediction itself as \(P(s<T_i\le s+h\mid T_i>s,H_i(s))\), then conclude that calibration must hold. That expression is the true conditional event probability, not an arbitrary model’s prediction. The correction is to keep the model output \(\hat q_i(s,h)\) separate from the true probability \(p_i(s,h)\), and assess whether the mean outcome among subjects assigned \(\hat q_i(s,h)=q\) equals \(q\).
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- In one sentence, distinguish the model prediction \(\hat q_i(s,h)\) from the true conditional event probability \(p_i(s,h)\).
- Among 80 subjects assigned a common predicted risk of 0.25, 24 experience the event by the horizon with complete follow-up. What is the observed event proportion and its difference from the prediction?
- Why does an overall observed event proportion matching the overall average predicted risk fail to establish calibration at each predicted risk?
- What is the main problem with classifying a subject censored before the horizon, without a prior event, as a non-event?
Solutions. (1) \(\hat q_i(s,h)\) is the model’s assigned risk, whereas \(p_i(s,h)\) is the subject’s true conditional event probability given survival to \(s\) and the available history. (2) The observed proportion is \(24/80=0.30\); the difference is \(0.30-0.25=0.05\), or 5 percentage points above the prediction. (3) Opposing errors at different prediction values can cancel in the overall average, so conditional comparisons are needed. (4) The subject’s event status through the horizon is unknown; treating the subject as event-free can bias the observed event risk downward.