Tutorials › Population Pharmacokinetics › Calibration of Individual Forecasts Across Patients

Therapeutic Drug Monitoring and Individual Predictions · Tutorial 551 of 599

Calibration of Individual Forecasts Across Patients

Evaluate forecasts across patients by comparing observed coverage and standardized errors with their predictive targets, then interpret overall and stratified results without confusing them with a single patient’s fit.

Advanced 11 min read

What You'll Learn

  • Define empirical coverage for patient-specific prediction intervals and estimate its uncertainty.
  • Calculate and interpret standardized prediction errors across patients.
  • Use strata to find calibration patterns hidden by an overall summary.
  • Distinguish population-level calibration from an individual patient’s forecast assessment.
  • Recognize dependence, small-sample uncertainty, and other reasons calibration summaries can mislead.

Calibration Is a Property of Forecasts Across Patients

A patient-specific forecast may be a predictive distribution or an interval for a future concentration, conditional on the dosing history, covariates, and concentrations available when the forecast is made. Its uncertainty can differ from one patient to another. Calibration asks whether forecasts and subsequently observed outcomes agree at the stated frequency across an appropriate set of patients. It is not the same as asking whether one patient’s observed concentration falls inside that patient’s interval.

For a meaningful evaluation, forecasts must be recorded before the future concentration is observed, and the target must be defined consistently. For example, the target might be the next trough concentration measured under a specified dosing schedule. The predictive distribution should represent uncertainty relevant to that target, including assay or residual variability when the forecast is intended to predict a measured concentration. Comparing an observed concentration with an interval for a different target, such as a latent typical concentration, does not evaluate the intended forecast.

Definition: For patient \(i\), let \(Y_i\) be a future observed concentration and let \([L_i,U_i]\) be a prediction interval issued for that concentration before it is observed. The coverage indicator is \(I_i=1\) if \(L_i\leq Y_i\leq U_i\), and \(I_i=0\) otherwise. For \(n\) patients, empirical coverage is \(\hat{q}=\frac{1}{n}\sum_{i=1}^{n}I_i\). A nominal 90% interval is calibrated marginally when its long-run coverage across the relevant patient population is 90%.

The word marginally matters: the target is the proportion of outcomes covered across patients, averaged over the population and forecast situations represented in the evaluation. A well-calibrated overall percentage can still conceal poor performance in a clinically important subgroup or at a particular forecast horizon. Calibration is also distinct from sharpness. Two methods might both achieve approximately 90% coverage, while one produces substantially wider intervals. Coverage alone cannot establish that forecasts are as informative as they could be.

Estimating Coverage and Its Uncertainty

If there is one forecast-and-outcome pair per independent patient, the indicators \(I_i\) can be treated as Bernoulli observations with coverage probability \(q\). The empirical coverage \(\hat{q}\) estimates \(q\). Its approximate standard error is \(\sqrt{\hat{q}(1-\hat{q})/n}\), but this approximation can be unreliable with small samples or coverage near zero or one. A Wilson interval is a useful alternative for expressing sampling uncertainty.

For a nominal confidence level with standard normal critical value \(z\), the Wilson interval is

$$ \frac{\hat{q}+\frac{z^2}{2n}\ \pm\ z\sqrt{\frac{\hat{q}(1-\hat{q})}{n}+\frac{z^2}{4n^2}}}{1+\frac{z^2}{n}}. $$

This interval follows by inverting the score test for a binomial proportion: retain values \(q\) for which \((\hat{q}-q)/\sqrt{q(1-q)/n}\) is no farther than \(z\) from zero, then solve the resulting quadratic inequality in \(q\). It quantifies uncertainty about the coverage rate under the binomial sampling assumptions; it does not turn a nominal interval into an individual guarantee.

Worked Example: Coverage of Nominal 90% Intervals

Suppose a hypothetical validation set contains 20 independent patients, each with one prospectively recorded nominal 90% prediction interval and one subsequent concentration. Eighteen observed concentrations fall within their respective intervals. The empirical coverage is

$$ \hat{q}=\frac{18}{20}=0.900. $$

The observed rate matches the nominal 0.90, but the sample is too small to establish precise calibration. For a 95% Wilson interval, use \(z=1.96\):

$$ \frac{0.900+\frac{1.96^2}{2(20)}\ \pm\ 1.96\sqrt{\frac{0.900(0.100)}{20}+\frac{1.96^2}{4(20^2)}}}{1+\frac{1.96^2}{20}} \approx (0.699,\ 0.972). $$

Thus, under the independent-patient binomial model, the data are compatible with a broad range of population coverage rates. The point estimate is 90%, but this small validation set does not rule out appreciably lower or higher true coverage. The interval is a confidence interval for the coverage probability, not a statement that there is a 95% probability that the fixed population coverage lies inside these particular limits.

Standardized Prediction Errors

Coverage reduces each forecast to covered or not covered. Standardized prediction errors retain more information about the direction and magnitude of discrepancies. Let \(m_i\) and \(s_i\) be the predictive mean and predictive standard deviation for patient \(i\)’s future observed concentration. Define the standardized prediction error as

$$ z_i=\frac{Y_i-m_i}{s_i}. $$

A positive value means the observed concentration exceeded the forecast mean; a negative value means it was below. The scale is the forecast’s predictive standard deviation, in the same units as the concentration, so \(z_i\) is dimensionless. If the predictive distributions are correctly specified and approximately normal, their standardized errors should, across comparable forecasts, have mean near zero and standard deviation near one. These are diagnostic reference patterns, not requirements that a small finite sample match exactly. With skewed or otherwise non-normal predictions, a mean and standard deviation near zero and one do not by themselves establish calibration.

Worked Example: Summarizing Standardized Errors

For five hypothetical patients, suppose standardized prediction errors are \(-1.2,\ 0.4,\ 1.1,\ 2.0,\ -0.3\). Their mean is

$$ \bar{z}=\frac{-1.2+0.4+1.1+2.0-0.3}{5}=\frac{2.0}{5}=0.400. $$

The sample standard deviation is calculated from the deviations from 0.400:

$$ s_z=\sqrt{\frac{(-1.6)^2+0^2+(0.7)^2+(1.6)^2+(-0.7)^2}{5-1}} =\sqrt{\frac{6.10}{4}}=1.235. $$

The average error is positive, suggesting that the observations in this small set tended to exceed their forecast means. The spread is also somewhat larger than the reference value of one. These five observations are not enough to characterize population calibration reliably; the summaries identify a pattern to investigate rather than prove bias or underestimation of uncertainty. In particular, a large positive \(z_i\) identifies a discrepancy relative to that patient’s predictive standard deviation, not its clinical importance by itself.

Stratified Summaries Reveal Conditional Miscalibration

Overall coverage averages over the mix of patients and forecast conditions in the validation set. To check whether that average hides a pattern, calculate coverage and standardized-error summaries in clinically meaningful strata. Possible strata include forecast horizon, concentration range, dosing situation, or a prespecified covariate group, provided the groups are defined in a way that is available and interpretable for the intended use. Report each stratum’s numerator and denominator as well as its percentage: a coverage of 80% from 4 of 5 patients is much less precise than 80% from 80 of 100.

Stratification should answer a focused question, not create many small groups until an apparently unusual result appears. When several strata are examined, chance fluctuations are more likely to produce an extreme rate somewhere. Small denominators also make subgroup rates unstable. A descriptive pattern can motivate further evaluation, but it is not by itself proof that a clinical characteristic caused the discrepancy.

Worked Example: Overall Coverage Hides a Horizon Pattern

In a hypothetical set of 20 patients, suppose a model issues nominal 90% normal prediction intervals of the form \(m_i\pm1.645s_i\). For ten short-horizon forecasts, the standardized errors are \(-1.2,-0.8,-0.5,-0.2,0.1,0.3,0.5,0.8,1.0,1.4\). All ten satisfy \(|z_i|\leq1.645\), so short-horizon coverage is \(10/10=1.00\).

For ten long-horizon forecasts, suppose the standardized errors are \(-2.1,-1.2,-0.9,-0.6,-0.3,0.2,0.5,0.8,1.1,1.8\). Eight satisfy \(|z_i|\leq1.645\), while \(-2.1\) and \(1.8\) fall outside. Long-horizon coverage is \(8/10=0.800\). Pooling gives

$$ \hat{q}_{\mathrm{overall}}=\frac{10+8}{10+10}=\frac{18}{20}=0.900. $$

The pooled rate equals the nominal 90%, yet the subgroup estimates point in opposite directions: all short-horizon observations are covered, compared with 80% of long-horizon observations. Because each subgroup has only ten patients, these rates are imprecise and should not be treated as conclusive evidence of a horizon effect. They do show why an overall result should be accompanied by relevant stratified summaries. The normal-interval threshold used here is appropriate only because the example specifies symmetric normal predictive intervals.

Assumptions, Diagnostics, and Alternatives

A useful calibration assessment depends on more than arithmetic. Forecasts must be evaluated against the outcomes they were designed to predict, with the forecast information fixed before those outcomes are known. The validation patients should represent the population and conditions to which conclusions will be applied. For binomial uncertainty calculations, one forecast per independent patient is a simple setting. If there are multiple forecast outcomes per patient, those outcomes may be correlated; treating every row as independent can make uncertainty appear too small. Summaries and uncertainty calculations should then account for patient-level clustering, or use a clearly defined patient-level evaluation.

Look for systematic signs that calibration summaries are inadequate: many more observations outside intervals than their nominal rate allows; standardized errors concentrated above or below zero; unusually large standardized errors; or marked changes in coverage across important strata. Also check that intervals are not compared with outcomes on mismatched scales or time points, and that the reported interval includes the relevant observation error. A high overall coverage rate is not automatically desirable: very wide intervals can cover nearly everything while offering little decision value.

Coverage and standardized errors answer different questions. Coverage is directly interpretable as a frequency but discards how far an outcome lies beyond an interval. Standardized errors show direction and relative size but depend on a meaningful predictive center and scale; their normal reference interpretation is not universal. Point-error measures such as mean absolute error or root mean squared error summarize distances from a point forecast, but do not check whether predictive uncertainty is calibrated. For asymmetric predictive distributions, quantile-based checks or probability integral transform summaries can assess features that a standardized error alone may miss. These alternatives complement, rather than replace, assessment against the intended clinical target.

Population-level calibration also differs from fit to a single patient. A patient’s observed value inside a forecast interval is one covered outcome, not evidence that the forecasting method is calibrated. Conversely, one observed value outside an interval does not establish population-wide failure. Patient-level predictive checks assess whether a particular patient’s observations are compatible with that patient’s forecast; calibration across patients evaluates whether forecast performance has the stated frequency over many patients. The earlier material on patient-level posterior predictive checks addresses the former perspective. Neither perspective should be substituted for the other.

Common mistake: “All three observed concentrations for this patient fell in their 90% intervals, so the model has 100% calibration.” This confuses a few outcomes from one patient with the long-run coverage rate across the target population. Calibration is estimated across appropriately sampled forecast-and-outcome pairs; an individual patient’s results can be described, but cannot establish the population rate.

Practical Interpretation

A concise report should identify the forecast target, nominal interval level, number of independent patients, number covered, empirical coverage, and uncertainty around that estimate. It should also state how repeated outcomes were handled and show prespecified strata relevant to use. Standardized errors can be summarized by their mean, spread, and notable extremes, with care about distributional assumptions. These summaries support a measured conclusion: for example, “Observed coverage was close to nominal overall, but long-horizon forecasts showed lower empirical coverage in this small validation sample.” They do not justify claiming that every patient’s forecast is reliable or that a particular subgroup difference is causal.

Check Your Understanding

Use the definitions and assumptions in this tutorial. Solutions follow the questions.

  1. For 40 independent patients, 34 observed concentrations fall within nominal 90% intervals. Calculate empirical coverage and state what it means.
  2. A forecast has predictive mean 12 mg/L and predictive standard deviation 2 mg/L. The observed concentration is 15 mg/L. Calculate the standardized prediction error and interpret its sign.
  3. Two strata each contain 20 patients. Coverage is 19/20 in one and 15/20 in the other. Find overall coverage and explain why the stratified results are still useful.
  4. Why is observing one concentration inside one patient’s nominal 95% interval insufficient to establish 95% calibration?

Solutions. (1) \(\hat{q}=34/40=0.850\), or 85.0%. In this validation sample, 85% of the outcomes fell inside their corresponding intervals; this is below the 90% nominal rate, but uncertainty must be considered before drawing a strong conclusion. (2) \(z=(15-12)/2=1.50\). The observed concentration is 1.50 predictive standard deviations above the forecast mean. (3) Overall coverage is \((19+15)/(20+20)=34/40=0.850\), or 85.0%. The strata reveal that the pooled rate combines 95% and 75% empirical coverage, a potentially important pattern that the overall percentage alone conceals; both subgroup estimates remain uncertain. (4) One covered outcome is a single Bernoulli observation, not a long-run frequency estimate. Calibration concerns the proportion covered across an appropriate set of forecast outcomes, not a guarantee for every patient.

Clinical Biostats