Why Recalibrate the Prediction Intercept?
A joint model can rank people well by predicted event risk yet systematically predict risks that are too high or too low in a new validation population. If the main problem is an overall shift in risk, rather than a change in how predictors relate to risk, an intercept adjustment can correct that level without changing the ordering of predictions. It is a targeted recalibration, not a refit of the joint model.
Consider predictions for a common, prespecified horizon \(t\), such as the probability of an event within two years after a defined prediction time. Write \(p_i\) for person \(i\)'s predicted event probability at that horizon. The validation data provide outcomes against which those predictions can be compared. The target population and prediction horizon must be the ones for which the adjusted predictions are intended.
This is equivalent to fitting a logistic calibration model with the original prediction log-odds as an offset and its coefficient fixed at one. In the calibration relation \(\operatorname{logit}\{P(Y_i=1)\}=\delta+\operatorname{logit}(p_i)\), the ideal intercept is zero. Fixing the coefficient at one is essential: estimating a different coefficient changes the slope as well, which is a separate recalibration task.
Estimating the Shift With Complete Outcomes
First suppose every validation participant's event status by horizon \(t\) is known. Let \(Y_i=1\) if the event occurred by \(t\), and \(Y_i=0\) otherwise. Assume the participants are independent, the predictions were formed without using their validation outcomes, and each \(p_i\) is a valid probability strictly between zero and one. Treating the predictions as fixed, the Bernoulli log-likelihood for the intercept shift is
Differentiating gives the score equation. Because the second derivative is nonpositive, any finite solution to the score equation maximizes this log-likelihood.
Thus the fitted recalibrated risks sum to the number of observed events: \(\sum_i p_i^{*}=\sum_iY_i\). Equivalently, their mean equals the observed event proportion in the validation sample. This is calibration in the large for these data; it does not establish that predicted and observed risks agree at every risk level or in every subgroup. In general, the equation must be solved numerically. If all outcomes are zero or all are one, there is no finite maximum-likelihood shift: the fitted shift tends toward negative or positive infinity, respectively.
Worked Example: Solving for an Intercept Shift
Suppose eight independent validation participants have known event status at the horizon. Four have predicted risk \(0.10\), four have predicted risk \(0.30\), and four participants experience the event. Assume the predictions were made independently of these outcomes. Estimate the intercept shift and the adjusted risks.
For a shift \(\delta\), the two adjusted risks are \(\operatorname{expit}\{\operatorname{logit}(0.10)+\delta\}\) and \(\operatorname{expit}\{\operatorname{logit}(0.30)+\delta\}\). The score equation requires four times their sum to equal the four observed events, so the two adjusted risks must sum to one.
Let \(a=\exp(\delta)\). The original odds are \(0.10/0.90=1/9\) and \(0.30/0.70=3/7\), so the adjusted risks are \((a/9)/(1+a/9)\) and \((3a/7)/(1+3a/7)\). Setting their sum to one gives the product of their adjusted odds equal to one:
The adjusted risks are \(4.583/(9+4.583)\approx0.3374\) and \(3(4.583)/(7+3(4.583))\approx0.6626\). Their sum is \(1.000\), so the eight adjusted risks sum to \(4.000\), matching the observed event count. The shift raises both risks, but leaves the lower-risk group below the higher-risk group.
What the Adjustment Changes—and What It Does Not
For finite \(\delta\), the derivative of the recalibrated probability with respect to the original probability is
Therefore, a common intercept shift is a strictly increasing transformation: if one person's original risk is higher than another's, their adjusted risk remains higher. Ties also remain ties. Consequently, rank-based discrimination measures, including the area under the receiver operating characteristic curve when defined on the same outcomes, do not change. The numerical probabilities do change, so decisions based on a fixed risk threshold can change.
This adjustment has a deliberately limited objective. It aligns the average adjusted risk with the observed event proportion in the estimation data, but it does not fix an incorrect relationship between prediction level and outcome. For example, if predictions are too low for low-risk people and too high for high-risk people, one common shift may make the overall average agree while leaving substantial miscalibration across the range.
Worked Example: A Uniformly Overpredicted Risk
Suppose ten independent validation participants all have predicted risk \(0.30\) by a fixed horizon, and two experience the event by that horizon. Assume all ten outcomes are known and the risk predictions were fixed before examining these outcomes. The observed event proportion is \(2/10=0.20\), so the score equation sets each recalibrated risk to \(0.20\).
The corresponding intercept shift is the difference between the observed and original logits:
Adding this shift gives \(\operatorname{expit}\{\operatorname{logit}(0.30)-0.5390\}=0.200\), to rounding. The average predicted risk decreases from \(0.300\) to \(0.200\), matching the validation event proportion. Since every participant had the same original prediction, this example cannot show a change in ordering; with varied predictions, the same common shift would preserve their ranking.
The estimate describes these validation data, not a guaranteed correction in every future population. With only ten participants, the observed event proportion is imprecise. A larger independent validation sample or an uncertainty analysis is needed before treating the estimated shift as stable.
Fixed-Horizon Outcomes With Right Censoring
At a fixed horizon, some participants may be censored before their event status at that horizon is known. A participant who is censored event-free before \(t\) must not simply be coded as a non-event: the event could have occurred later, before \(t\). One option is to use inverse-probability-of-censoring weights in the intercept score equation, under assumptions that make the observed outcomes representative after weighting.
Let \(R_i=1\) when a participant's status by \(t\) is observed: either an event occurs by \(t\), or the participant is known to be event-free through \(t\). Let \(G(u\mid Z_i)\) denote the probability of remaining uncensored through time \(u\), conditional on the variables \(Z_i\) used to model censoring. For an observed event at time \(T_i\leq t\), use \(w_i=1/G(T_i-\mid Z_i)\); for an observed event-free participant through \(t\), use \(w_i=1/G(t\mid Z_i)\). The weighted intercept equation is
This weighted equation requires a correctly specified or otherwise adequately estimated censoring distribution, conditional independent censoring given \(Z_i\), and positivity: the relevant probabilities of remaining uncensored must be greater than zero. The event-risk predictions and censoring weights must refer to the same target population and horizon. Large weights can make the estimate unstable. The weighted solution matches the weighted event total, not necessarily the unweighted event proportion.
Worked Example: A Weighted Intercept With Censoring
At a fixed horizon, suppose two participants with observed events each have censoring weight \(1.25\), and six participants known to be event-free through the horizon each have weight \(1.00\). Their predictions all equal \(0.20\). Assume these weights are valid under the stated censoring assumptions, and that any participants censored too early to establish status are not counted as observed outcomes. The weighted event total is \(2(1.25)=2.50\); the weighted total is \(2.50+6.00=8.50\).
The weighted score equation therefore sets the common adjusted risk to \(2.50/8.50=0.2941\). The required shift is
Applying the shift to the original odds \(0.20/0.80=0.25\) gives adjusted odds \(0.25(5/3)=0.4167\), and hence adjusted risk \(0.4167/(1+0.4167)=0.2941\). The weighted adjusted total is \(8.50(0.2941)\approx2.50\), equal to the weighted event total. It would be incorrect to describe \(0.2941\) as the unweighted observed event proportion: it is the weighted proportion used by this estimating equation.
Diagnostics, Limitations, and Common Pitfalls
A fitted shift should be accompanied by checks on the data and the predictions. Confirm the horizon, prediction time, event definition, and target population match. Check that probabilities are finite and strictly between zero and one before taking logits; predictions exactly zero or one require a justified handling strategy, such as applying a prespecified small bound, because their logits are infinite. Inspect whether the estimated shift is driven by a few observations or large censoring weights, and quantify uncertainty using an approach appropriate to the validation design.
A common mistake is to see agreement between the adjusted mean risk and the observed event proportion and conclude that the predictions are now calibrated. The score equation guarantees only this overall agreement in the estimation data. It does not guarantee calibration within risk ranges, centers, or clinically relevant subgroups. A further diagnostic is to compare observed and predicted risks across groups or along the prediction range, with uncertainty accounted for; systematic patterns remaining after the shift indicate that an intercept-only correction is inadequate.
Another pitfall is estimating the shift and reporting performance on the same validation outcomes as if the adjustment had been fixed in advance. Because those outcomes were used to choose \(\widehat{\delta}\), performance assessed on them can be optimistic. Use an independent validation sample, or use a resampling or cross-validation design that repeats the recalibration within each training split and evaluates it on held-out data. Also remember that a common shift cannot correct changes in risk ordering, and an intercept estimated in one population may not transport to another.
| Approach | What it adjusts | Effect on ranking | Main limitation |
|---|---|---|---|
| No recalibration | Nothing; retains original absolute risk level | Unchanged | Systematic overall overprediction or underprediction remains |
| Intercept recalibration | One common shift in log-odds, with the prediction coefficient fixed at one | Unchanged | Cannot repair a changing prediction-outcome relationship across risk levels |
| Refitting the prediction model | May change multiple model parameters and the risk ordering | May change | Requires more data and creates greater risk of overfitting |
Intercept recalibration is most useful when evidence suggests a relatively uniform difference in baseline risk while the original relative ordering remains appropriate. It is not a substitute for diagnosing why predictions fail. If it does not adequately describe the calibration problem, a more flexible update may be considered, with its additional estimation and validation requirements made explicit.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- If every adjusted probability uses the same finite intercept shift, can a strictly higher original risk become lower than a strictly lower original risk?
- With complete outcomes, what equation does the maximum-likelihood intercept shift satisfy?
- Why should a participant censored event-free before the prediction horizon not automatically be coded as a non-event?
- A validation sample has no observed events by the horizon. Does the ordinary Bernoulli likelihood produce a finite maximum-likelihood intercept shift?
Solutions. (1) No. The expit transformation is strictly increasing, so the ordering is preserved. (2) The score equation is \(\sum_i(Y_i-p_i^{*})=0\), or equivalently \(\sum_i p_i^{*}=\sum_iY_i\). (3) Their event status at the horizon is unknown; the event could occur after censoring but before the horizon. (4) No. The likelihood increases as \(\delta\) decreases without bound, so the maximum occurs in the limit \(\delta\to-\infty\), rather than at a finite value.