Why Validate Across Calendar Time?
A prediction model can perform well in the data used to develop it and still be poorly calibrated when applied later. Clinical practice, treatment, event rates, measurement systems, and who enters care may change. A temporal validation asks a focused question: how well do predictions from a fixed model agree with outcomes in a later calendar period?
The model must be fixed before evaluating the later cohort. That includes its coefficients, baseline transition risks, prediction horizon, eligibility rules, and handling of predictors. If any of these are changed after inspecting later-period outcomes, the resulting analysis is no longer a straightforward validation of the original model. Temporal validation differs from a random split or random cross-validation because it preserves the direction of time: the model is assessed on people who enter later, rather than on a random mixture of earlier and later records.
For example, suppose a model predicts the probability of a direct transition from state \(r\) to state \(s\) within \(\tau\) time units, for people in state \(r\) at their prediction origin. The later-period cohort should use the same origin definition and the same \(\tau\). A person who makes a different transition out of \(r\) before the target transition is not a case for the target transition by \(\tau\). Such a competing transition is part of the outcome definition, not ordinary loss to follow-up.
Conditions for a Meaningful Temporal Comparison
The central design requirement is that the prediction procedure be frozen before the later outcomes are examined. Predictor definitions and units must also remain compatible. A laboratory result measured on a different scale, for instance, cannot simply be passed into the old model without checking that it represents the same quantity. The evaluation cohort must include people who meet the model's intended eligibility criteria; a validation among people in a different state or at a different prediction origin changes the question.
Choose a common prediction horizon and ensure that outcome ascertainment supports that horizon. With complete follow-up through \(\tau\), each person can be classified directly. With right censoring before \(\tau\), their target-transition status at \(\tau\) is not known. Estimating observed incidence then requires an appropriate competing-risks or multi-state estimator, such as the Aalen–Johansen estimator, or censoring weights. These approaches require assumptions about censoring. In particular, the censoring process must be independent of the relevant event process, either unconditionally for a marginal estimator or conditional on variables used by a valid censoring adjustment. The adjustment also requires adequate probability of remaining observed in the relevant covariate groups. Competing transitions are observed outcomes; they must not be treated as censoring.
If follow-up is systematically shorter in the later cohort, a crude event proportion can make the later event risk look lower simply because fewer people were observed long enough. Compare at a horizon supported in both periods, account for censoring appropriately, and report how much follow-up and how many target and competing transitions were observed. A common horizon does not by itself guarantee comparable cohorts, but it prevents one basic mismatch.
Calibration at a Fixed Horizon
For person \(i\), let \(\hat{p}_i(\tau)\) be the model's predicted probability of the target transition by \(\tau\), conditional on the person's state and prediction origin. In a cohort of size \(n\), the average predicted risk is \(E/n\), where \(E=\sum_{i=1}^{n}\hat{p}_i(\tau)\). With complete outcome ascertainment, let \(O\) be the number who make the target transition by \(\tau\). The observed proportion is \(O/n\). The observed-versus-expected ratio \(O/E\) and the difference \(O/n-E/n\) summarize calibration in the large: a ratio above 1 or a positive difference indicates more target transitions than predicted on average.
With censoring, \(O/n\) is generally not a valid observed risk. Replace it with an estimate of the target-transition cumulative incidence by \(\tau\), computed for the validation cohort using a suitable estimator and censoring assumptions. The comparison must use the same target transition, origin, horizon, and eligible population as the predictions. These aggregate summaries can hide important miscalibration in particular risk ranges; they are not a complete description of calibration.
Worked Example: Later-Period Calibration With Complete Follow-Up
Hypothetical data: A frozen model predicts the probability of a specified direct transition within 12 months for 100 eligible people who entered care in a later calendar period. Everyone is observed for the full 12 months. The predictions sum to 18.0 expected target transitions. By 12 months, 15 people made the target transition, 20 made a competing transition, and 65 remained in the origin state.
Because outcome status is known through 12 months for all 100 people, the observed target-transition proportion is \(15/100=0.150\). The average predicted risk is \(18.0/100=0.180\). The observed-versus-expected ratio is
The observed-minus-predicted difference is \(0.150-0.180=-0.030\), or -3.0 percentage points. Thus this hypothetical cohort had fewer target transitions than the model predicted on average. This is evidence of aggregate overprediction in this cohort, not proof that every individual prediction was too high. The 20 competing transitions belong in the non-case outcome for this target at 12 months; they are not missing outcomes.
Discrimination for the Same Transition
Calibration concerns agreement between predicted and observed risks; discrimination concerns ranking. At horizon \(\tau\), define cases as people who make the specified target transition by \(\tau\). Define controls as people who do not make that target transition by \(\tau\), including those with a competing transition and those who remain free of the target transition through \(\tau\). For a score \(\hat{p}(\tau)\), the transition-specific area under the receiver operating characteristic curve (AUC) is the probability that a randomly selected case has a higher score than a randomly selected control, with half-credit for a tie.
With complete follow-up, the empirical AUC is the fraction of case–control pairs ranked in the correct direction, counting each tied pair as one-half. Under censoring before \(\tau\), case or control status can be unknown; an estimator that accounts for censoring is needed, together with its assumptions. Simply dropping everyone censored before \(\tau\) can bias the result if censoring is related to risk. An AUC assesses ranking for this defined endpoint; it does not show that predicted probabilities are numerically accurate.
Worked Example: Ranking Cases and Controls
Hypothetical data: At a fixed horizon, three fully observed people are cases, with predicted risks \(0.80\), \(0.55\), and \(0.40\). Four fully observed people are controls, with predicted risks \(0.70\), \(0.35\), \(0.20\), and \(0.10\). There are \(3\times4=12\) case–control pairs.
The case with score \(0.80\) outranks all four controls, giving 4 concordant pairs. The case with score \(0.55\) outranks the controls scored \(0.35\), \(0.20\), and \(0.10\), giving 3. The case with score \(0.40\) also outranks those same three controls, giving 3. There are no ties, so
In this hypothetical sample, a randomly selected case had a higher predicted risk than a randomly selected control in about 83.3% of pairs. This does not imply that a predicted risk of 0.80 corresponds to an 80% observed event frequency; that is a calibration question.
Comparing Calendar Periods
A single later-period estimate answers whether performance is acceptable in that cohort, but not whether performance has changed over time. For monitoring, prespecify multiple entry periods and calculate comparable metrics in each: the same transition, horizon, eligibility criteria, and prediction procedure. Report cohort sizes, event counts, follow-up, average predicted risk, observed risk, and discrimination estimates. Uncertainty matters: a difference between two point estimates can arise from sampling variation, especially when the target transition is rare.
A temporal difference is descriptive, not automatically an effect of calendar time. Later cohorts may differ in measured or unmeasured case mix, care pathways, data collection, or censoring. A lower AUC in a later period, for example, may reflect a narrower distribution of risk rather than a failure of the model's ranking mechanism in every subgroup. Further analyses can investigate these explanations, but the initial temporal comparison should not claim to identify their cause.
Worked Example: Detecting a Change in Aggregate Calibration
Hypothetical data: A fixed model is evaluated at the same horizon in two fully followed calendar cohorts. In the earlier cohort, \(n=100\), the predictions sum to \(E=20\), and \(O=18\) target transitions occur. In the later cohort, \(n=120\), the predictions sum to \(E=30\), and \(O=36\) target transitions occur.
For the earlier cohort, average predicted risk is \(20/100=0.200\), observed risk is \(18/100=0.180\), and \(O/E=18/20=0.900\). For the later cohort, average predicted risk is \(30/120=0.250\), observed risk is \(36/120=0.300\), and \(O/E=36/30=1.20\).
The observed-minus-predicted difference changes from \(0.180-0.200=-0.020\) to \(0.300-0.250=0.050\), a descriptive increase of \(0.050-(-0.020)=0.070\), or 7.0 percentage points. These results suggest that aggregate calibration is worse in the later cohort, with underprediction there. They do not establish that calendar time caused the change: the cohorts may differ in their composition or care context. Sampling uncertainty should also be considered before concluding that the difference exceeds chance variation.
Diagnostics, Alternatives, and Limitations
Before interpreting a temporal metric, check that the later cohort really is later than the development data, that no later-period outcomes influenced model choices, and that the model was applied without undocumented changes. Confirm that the prediction origin, state eligibility, transition definition, horizon, and predictor measurements match. Tabulate competing transitions and censoring, and check whether enough target events occurred to support stable estimates. Sparse events can make calibration ratios and AUCs highly variable; a striking point estimate from a small number of cases should be reported with uncertainty, not treated as definitive.
For intervals or comparisons, resampling people within each calendar cohort can quantify sampling uncertainty while keeping the model fixed. If people are clustered within hospitals or other units, resampling should respect that structure. With two independent cohorts, resample within each cohort separately when estimating the uncertainty in their difference. Such intervals reflect sampling variation under the resampling design; they do not repair biased outcome ascertainment, incompatible definitions, or informative censoring.
Random cross-validation is useful for estimating performance under a setting where observations are exchangeable across folds, but it can mix calendar periods and conceal deterioration over time. Temporal validation instead tests transport forward in calendar time, though it may be less precise because the later cohort is smaller. Repeating validation over successive periods can show whether performance is consistently stable or varies over time. Neither a temporal split nor a favorable metric establishes performance in a different population, and neither alone explains why metrics changed.
A common mistake is to calculate the later cohort's observed event proportion using only people who completed follow-up, then compare it directly with model predictions for everyone. The incorrect reasoning is that those with complete records are a representative subset. If completion of follow-up is related to event risk, that comparison can be biased; it also discards information. The correction is to use a prespecified horizon and an estimator appropriate for censoring, state its assumptions, and distinguish competing transitions from censoring. Another mistake is to treat a high AUC as evidence of accurate risks. A model can rank people well and still systematically overpredict or underpredict.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- A later-period cohort has 80 people, 12 target transitions, and complete follow-up through the prediction horizon. The predictions sum to 16. What are the observed risk, average predicted risk, and observed-versus-expected ratio?
- For a target transition by a fixed horizon, should a person who makes a competing transition before the target event be treated as a case, a control, or censored?
- Why can randomly splitting all available records into development and validation sets fail to reveal a decline in performance over calendar time?
- A later-period AUC is 0.78. Does this establish that the model's predicted probabilities are calibrated? Explain.
- Some people in the validation cohort are censored before the prediction horizon. Why is it generally inappropriate to calculate observed risk as target events divided by the number with complete follow-up?
Solutions. (1) Observed risk is \(12/80=0.150\); average predicted risk is \(16/80=0.200\); and \(O/E=12/16=0.750\). The cohort had fewer target transitions than predicted on average. (2) A control for this target-transition endpoint, because a competing transition is an observed non-case outcome by the horizon, not censoring. (3) A random split can place people from both earlier and later periods in both sets, so its validation results may average over periods and obscure forward-in-time deterioration. (4) No. An AUC of 0.78 describes ranking of cases versus controls for the defined endpoint; calibration requires comparing predicted risks with observed incidence. (5) Complete follow-up may select a nonrepresentative subset if censoring is related to event risk. Use an estimator or weighting method that accounts for censoring under stated assumptions instead.