Tutorials › Competing Risks and Multi-State Models › Calibration-In-The-Large For A Transition

Transition-Specific Prediction Validation · Tutorial 395 of 699

Calibration-In-The-Large For A Transition

Calculate the average predicted risk and observed probability for a specified transition at a fixed horizon, then interpret their difference and its limitations.

Advanced 10 min read

What You'll Learn

  • Define a binary target for a specified transition, origin state, and prediction horizon.
  • Calculate the mean predicted risk and the corresponding observed transition probability.
  • Interpret the direction and size of the calibration-in-the-large gap.
  • Account for competing outgoing transitions when defining the observed event.
  • Recognize how censoring and subgroup miscalibration affect the summary.
  • Distinguish an overall calibration gap from calibration curves and other validation summaries.

Why compare average predicted and observed risk?

A model can give each person a different predicted probability of a transition, while validation asks how well those predictions agree with what happened in the group. A useful first summary is the difference between the average predicted risk and the observed transition probability at a specified horizon. This checks the model’s overall level of prediction: does it predict too much, too little, or approximately the right total amount of transition?

This comparison is meaningful only after fixing the prediction origin, target transition, horizon, and validation population. For example, a prediction for transition \(r\to s\) within one year of entering state \(r\) is not interchangeable with a prediction for a different destination or a different time origin. The target event must also be defined consistently for every subject.

Definition: For a validation sample of \(n\) subjects, let \(q_i\) be subject \(i\)’s predicted probability of the specified transition event by horizon \(h\), and let \(\widehat{O}(h)\) be the estimated observed probability of that same event in the validation population. Define the calibration-in-the-large gap here as $$ G(h)=\bar{q}-\widehat{O}(h), \qquad \bar{q}=\frac{1}{n}\sum_{i=1}^n q_i. $$ A positive \(G(h)\) means the average prediction exceeds the observed probability (overall overprediction); a negative value means overall underprediction. Some sources use the reverse subtraction, so always state the sign convention.

For a direct transition \(r\to s\), one possible target is that the subject’s first exit from origin state \(r\), by \(h\), is to state \(s\). Under that definition, a first exit to another destination is a competing event, not a target event; remaining in \(r\) through \(h\) is also not a target event. Predictions and observations must use this same definition. Other validation questions can define a different event, but changing the event changes the quantity being calibrated.

Assumptions and calculation

When every subject’s event status through \(h\) is known, the observed probability for a binary target is the event proportion. Thus, if \(Y_i=1\) indicates that subject \(i\) experienced the specified transition by \(h\), and \(Y_i=0\) otherwise, then \(\widehat{O}(h)=\sum_iY_i/n\). This simple proportion requires complete ascertainment of the target status at the horizon. It is not justified when some subjects are lost to follow-up or otherwise censored before \(h\).

With right censoring, the observed probability needs an estimator that handles censoring and competing transitions. For a first transition from a state with competing outgoing transitions, the cumulative incidence for the target destination can be estimated using the competing-risks methods introduced in the earlier material on observed transition probabilities. Its interpretation relies on suitable independent-censoring conditions (possibly conditional on measured covariates), adequate follow-up support through the horizon, and correct handling of the competing destinations. Simply counting observed target events and dividing by the full sample size generally underestimates risk when some subjects are censored before \(h\).

The predictions must refer to the same horizon and target event as the observed estimate, and the validation sample must represent the population for which the comparison is intended. If predictions were developed using the same subjects, apparent agreement may be optimistic; validation in independent data, or a design that accounts for model development, is needed to assess performance beyond the development sample. The calculation itself is descriptive: it does not establish that the model is clinically useful or that individual predictions are accurate.

Worked Example: A Complete Validation Sample

Suppose, hypothetically, eight subjects enter state \(r\), and a model predicts each subject’s probability of a first transition \(r\to s\) within 12 months. Follow-up is complete through 12 months. Their predicted risks are \(0.10, 0.15, 0.20, 0.25, 0.30, 0.35, 0.40,\) and \(0.45\). Three subjects have the target transition by 12 months; the other five have no target transition by then, including any who have a competing transition.

The average predicted risk is $$ \bar{q}=\frac{0.10+0.15+0.20+0.25+0.30+0.35+0.40+0.45}{8} =\frac{2.20}{8}=0.275. $$

Because target status is known for all eight subjects, the observed probability is $$ \widehat{O}(12)=\frac{3}{8}=0.375. $$ Therefore, $$ G(12)=0.275-0.375=-0.100. $$

The mean predicted risk is 10 percentage points below the observed transition proportion, so this sample shows overall underprediction at 12 months. The difference is in percentage points, not a relative percentage change. It does not say that every subject’s risk was underpredicted.

Why the gap has this interpretation

The sign follows directly from comparing two averages on the same probability scale. With complete outcome ascertainment, the observed probability is \(\bar{Y}=n^{-1}\sum_iY_i\). Hence $$ G(h)=\frac{1}{n}\sum_{i=1}^n(q_i-Y_i). $$ Each subject contributes their predicted risk minus their binary outcome. A positive average means predicted probabilities collectively exceed the observed event frequency; a negative average means they fall short. This identity explains the summary, but it does not make \(q_i-Y_i\) a reliable individual-level error measure: one binary outcome is highly variable relative to a probability prediction.

A related population justification is also useful. Let \(\pi_i\) denote the true event probability for subject \(i\), conditional on the information used for prediction. If \(E(Y_i\mid\text{prediction information})=\pi_i\), then $$ E\{G(h)\mid q_1,\ldots,q_n\} =\frac{1}{n}\sum_{i=1}^n(q_i-\pi_i). $$ Thus, the expected gap compares the average prediction with the average true risk in the validation population. A gap near zero indicates agreement of these averages, not that \(q_i=\pi_i\) for each subject.

Worked Example: Incorporating a Competing Destination

Consider a hypothetical group of 10 subjects initially in state \(r\), with target transition \(r\to s\) and a competing transition \(r\to u\). There is no censoring before the 4-month horizon. By month 2, two subjects have transitioned to \(s\) and one to \(u\). Among the seven subjects still at risk in \(r\), one transitions to \(s\) by month 4; the other six have no transition by the horizon. The model’s 10 predicted risks sum to 3.40.

For this first-exit target, the estimated observed cumulative incidence accounts for the subjects who remain at risk at each event time. The event at month 2 contributes \(2/10=0.20\). After three exits, the event-free proportion for the target-and-competing-event process is \(7/10=0.70\). The target event at month 4 contributes \(0.70(1/7)=0.10\). Therefore, $$ \widehat{O}(4)=\frac{2}{10}+\frac{7}{10}\frac{1}{7}=0.20+0.10=0.30. $$

The average prediction is \(3.40/10=0.34\), so \(G(4)=0.34-0.30=0.04\). The model overpredicts the target transition probability by 4 percentage points at 4 months. The three transitions to \(u\) are not counted as target events, but they reduce the number still able to experience the target as a first exit. Treating them as ordinary censoring would fail to represent the competing-risk probability.

What an overall match can hide

Calibration-in-the-large is a single population-level summary. It can be zero even when predictions systematically miss in different parts of the population. A smoothed calibration curve, covered in the earlier material on smoothed calibration curves for multi-state predictions, can reveal departures across the range of predicted risks. A calibration slope addresses another feature: whether predictions are too extreme or insufficiently spread. Neither should be replaced by the overall gap; each answers a different question.

Worked Example: Opposing Errors Cancel

In a hypothetical validation sample, 10 subjects have predicted risk \(0.20\) each and 10 have predicted risk \(0.60\) each for the same transition by the same horizon. In the lower-prediction group, three subjects experience the transition; in the higher-prediction group, five do.

The mean predicted risk is $$ \bar{q}=\frac{10(0.20)+10(0.60)}{20} =\frac{8}{20}=0.40. $$ The overall observed proportion is \((3+5)/20=0.40\), so the overall gap is \(G=0.40-0.40=0\). Yet within the lower-prediction group, the predicted risk is \(0.20\) and the observed proportion is \(3/10=0.30\), a gap of \(-0.10\). Within the higher-prediction group, the predicted risk is \(0.60\) and the observed proportion is \(5/10=0.50\), a gap of \(+0.10\).

The overall average agrees exactly, while the two groups show errors in opposite directions. Therefore, a gap near zero is evidence of aggregate agreement only; it is not evidence of good calibration at every risk level.

Diagnostics, uncertainty, and limitations

Before interpreting a calculated gap, check that the prediction origin, horizon, transition definition, and target population match. Then check how the observed probability was estimated. In particular, look for early censoring, sparse risk sets near the horizon, and competing destinations handled as if they were censoring. Also inspect the distribution of predictions: a few extreme predictions can influence their average, while the single gap gives no indication of where those predictions occur.

For a complete sample with independent subjects, the observed event proportion has sampling uncertainty; the predicted average may also vary if the predictions are estimated rather than fixed. With censoring, uncertainty in the estimated observed probability must be included as well. A subject-level bootstrap that repeats the relevant estimation steps can provide an interval for the gap when the resampling scheme reflects the validation design. An interval describes uncertainty about the population gap under that design and assumptions; it is not a probability statement about a fixed parameter. A narrow interval around zero supports close average agreement, but does not rule out subgroup miscalibration.

The calibration gap should also not be confused with a calibration intercept from a regression model, which uses a model-based parameterization and may use a different sign convention. Here the target is specifically the arithmetic difference between mean predicted risk and observed transition probability. Reporting both the two component estimates and their signed difference makes the result interpretable and prevents ambiguity.

Common pitfall

  • Wrong reasoning: “The average predicted risk equals the observed transition probability, so the predictions are calibrated for every subject.”
  • Correction: Equality establishes only aggregate calibration at the stated horizon and in the stated population. Opposing errors across risk groups can cancel, and no individual’s true risk is observed directly.
  • Wrong reasoning: “A competing transition is just a censored target event.”
  • Correction: For a first-exit target, a competing transition prevents that target event from occurring as the first exit. It must be represented as a competing event in estimating the target probability.
Key takeaway: State the target transition and horizon, calculate the mean predicted risk and the matching observed probability, and report their difference with its sign convention. The gap measures average agreement only; it cannot replace checks for censoring problems or variation in calibration across subjects.

Check Your Understanding

For each question, use \(G=\) mean predicted risk minus observed probability. Solutions are included below.

  1. At a fixed horizon, mean predicted risk is \(0.28\) and observed probability is \(0.22\). Calculate the gap and interpret it in context.
  2. In a complete sample of 25 subjects, five experience the target transition by the horizon. The mean predicted risk is \(0.16\). Calculate the observed probability and gap.
  3. Why can a competing outgoing transition not simply be counted as a target event when assessing a specified destination?
  4. A validation study has substantial censoring before its horizon. Why may the raw fraction of subjects with an observed target transition be misleading?

Solutions. (1) \(G=0.28-0.22=0.06\): mean predictions exceed the observed probability by 6 percentage points, indicating overall overprediction. (2) \(\widehat{O}=5/25=0.20\), so \(G=0.16-0.20=-0.04\); the mean prediction is 4 percentage points below the observed proportion. (3) A competing destination is a different event and, for a first-exit target, prevents the specified destination from being the first exit; it affects the target probability but is not itself a target event. (4) Subjects censored before the horizon may have an unknown event status by that horizon. Counting only observed target events as though all others were known non-events can bias the estimated probability, so a censoring-appropriate estimator and its assumptions are needed.

Clinical Biostats