Tutorials › Population Pharmacokinetics › Calibration of External PK Predictions

Bootstrap and External Validation · Tutorial 428 of 599

Calibration of External PK Predictions

Learn to interpret calibration across concentration ranges and explain what calibration intercepts and slopes reveal about external PK predictions.

Advanced 10 min read

What You'll Learn

  • Define calibration using observed and predicted concentrations in an external dataset.
  • Interpret the ideal calibration intercept and slope on the concentration scale.
  • Calculate and interpret a calibration regression from paired predictions and observations.
  • Compare observed and predicted concentrations across prediction ranges without relying only on a global summary.
  • Check the assumptions and uncertainty of calibration estimates.
  • Recognize how scale, clustering, and range of predictions can distort calibration conclusions.

What Calibration Adds to External Validation

Prediction error metrics summarize discrepancies between predicted and observed concentrations, but a single summary can obscure how those discrepancies behave across the prediction range. A model might predict well on average while systematically underpredicting low concentrations and overpredicting high concentrations. Calibration analysis asks whether predictions agree with observations in level and scale, and whether that agreement changes across the range of predictions.

For each eligible external-validation observation, let \(C_{\mathrm{pred}}\) denote the prediction generated by the locked model and \(C_{\mathrm{obs}}\) the corresponding observed concentration. The prediction type must match the intended use: population predictions and conditional predictions answer different predictive questions. Calibration evaluates the predictions as generated; fitting a calibration line to the external data is a diagnostic and does not, by itself, update the PK model.

Definition: Calibration describes agreement between predictions and observations. On the original concentration scale, a simple calibration model regresses \(C_{\mathrm{obs}}\) on \(C_{\mathrm{pred}}\): \(C_{\mathrm{obs}}=a+bC_{\mathrm{pred}}+\varepsilon\). Here \(a\) is the calibration intercept, \(b\) is the calibration slope, and \(\varepsilon\) is the deviation from the fitted mean relationship. Ideal mean calibration corresponds to \(a=0\) and \(b=1\), over the prediction range being assessed.

The intercept describes the fitted observed concentration when the prediction is zero; the slope describes how much the fitted observed concentration changes for a one-unit increase in prediction. Both are expressed in the units and scale of the analysis. The intercept may be an extrapolation if no predictions are near zero, so it should not automatically be given a physical interpretation outside the observed range. Calibration concerns the mean relationship: an ideal intercept and slope do not establish that individual prediction errors are small, that errors are homoscedastic, or that prediction intervals have correct coverage.

Estimating and Interpreting a Calibration Line

For a simple ordinary least squares calibration regression with paired values \(x_i=C_{\mathrm{pred},i}\) and \(y_i=C_{\mathrm{obs},i}\), the fitted slope and intercept are

$$ \hat b=\frac{\sum_{i=1}^{n}(x_i-\bar{x})(y_i-\bar{y})}{\sum_{i=1}^{n}(x_i-\bar{x})^2}, \qquad \hat a=\bar{y}-\hat b\bar{x}. $$

The fitted line is \(\widehat{C}_{\mathrm{obs}}=\hat a+\hat b C_{\mathrm{pred}}\). These formulas assume the denominator is positive, meaning predictions are not all identical. For standard regression-based inference, observations should be independent, the mean relationship should be adequately linear, and residual variance should be suitably modeled; exact small-sample t-based inference additionally uses normally distributed errors. In PK data, repeated samples from the same participant are not independent, and residual variability often changes with concentration. Treating every sample as independent can make standard errors too small. The analysis should use an appropriate subject-level approach or variance model when the design requires it.

Worked Example: Calculate an External Calibration Line

Suppose a hypothetical external dataset contains five independent validation observations, each with one predicted and one observed concentration. Concentrations are in mg/L.

Predicted, \(x_i\) (mg/L)Observed, \(y_i\) (mg/L)
11.5
22.5
33.0
44.5
55.0

The means are \(\bar{x}=3.00\) mg/L and \(\bar{y}=3.30\) mg/L. The centered cross-products sum to \(3.6+0.8+0+1.2+3.4=9.0\), and the centered squared predictions sum to \(4+1+0+1+4=10\). Therefore,

$$ \hat b=\frac{9.0}{10}=0.900, \qquad \hat a=3.30-(0.900)(3.00)=0.600\ \text{mg/L}. $$

The fitted relationship is \(\widehat{C}_{\mathrm{obs}}=0.600+0.900C_{\mathrm{pred}}\), with both concentrations in mg/L. For a prediction of 2.5 mg/L, the fitted observed concentration is \(0.600+0.900(2.5)=2.85\) mg/L. Across the sampled range, the positive intercept and slope below 1 indicate a fitted line that is above the identity line at lower predictions and rises less steeply than the identity line. This is a pattern in these hypothetical data, not proof of a general mechanism or evidence that the PK model should be updated.

The line can be compared with the identity line, \(C_{\mathrm{obs}}=C_{\mathrm{pred}}\). A positive intercept shifts the fitted relationship upward at low predictions; a negative intercept shifts it downward. A slope below 1 means the fitted observed concentration increases less than one-for-one as prediction rises. The combined intercept and slope determine the direction and size of fitted bias at any particular prediction: \(\widehat{C}_{\mathrm{obs}}-C_{\mathrm{pred}}=\hat a+(\hat b-1)C_{\mathrm{pred}}\). Thus, neither coefficient should be interpreted in isolation.

Justification: The least-squares line minimizes \(\sum_i(y_i-a-bx_i)^2\). Differentiating this sum with respect to \(a\) and setting the derivative to zero gives \(\sum_i(y_i-a-bx_i)=0\), or \(a=\bar y-b\bar x\). Substituting this relation into the derivative with respect to \(b\), and setting that derivative to zero, gives \(\sum_i(x_i-\bar x)(y_i-\bar y)=b\sum_i(x_i-\bar x)^2\). Solving yields the stated slope and intercept formulas, provided the predictions vary.

Check Agreement Across Prediction Ranges

A global calibration line is useful, but it can conceal local deviations or be unduly influenced by a few extreme predictions. A complementary descriptive check divides the prediction range into prespecified or clearly reported intervals and compares observed and predicted concentrations within each interval. For each range, report the number of observations and summaries such as mean observed concentration, mean predicted concentration, their difference, or their ratio when a ratio is meaningful. The summaries should use the same observations and units.

Worked Example: Compare Calibration Across Prediction Ranges

In a hypothetical external evaluation, observations are grouped into low, middle, and high predicted-concentration ranges. The table gives the mean prediction and mean observation in each range; these are descriptive summaries, not individual-level observations.

Prediction rangeMean predicted (mg/L)Mean observed (mg/L)
Low1.01.3
Middle4.04.0
High10.08.2

For the low range, the mean difference is \(1.3-1.0=0.3\) mg/L, so observations average 0.3 mg/L above predictions in that range. For the middle range, the difference is \(4.0-4.0=0\) mg/L. For the high range, it is \(8.2-10.0=-1.8\) mg/L, indicating that predictions average 1.8 mg/L above observations there. The pattern suggests that calibration is not uniform across these ranges. It does not establish that every individual in a range is biased in the same direction; within-range variation and sample counts matter.

Range summaries depend on how boundaries are chosen and how many observations fall in each group. Very narrow ranges can be noisy, while broad ranges can hide meaningful differences. State the boundaries and counts, and do not treat a pattern in grouped averages as a substitute for examining the paired data. A smooth calibration plot or a fitted line can complement these summaries, but neither eliminates the need to inspect the distribution of predictions and residuals.

Uncertainty, Scale, and Diagnostics

Calibration estimates are sample estimates. Confidence intervals help distinguish a precisely estimated deviation from a noisy estimate, but their validity depends on the design and model. For independent observations with an appropriate linear regression model, coefficient intervals can be constructed using a standard error and a t critical value with the relevant \(df\). With repeated observations per participant, uncertainty should reflect within-participant dependence; resampling participants rather than isolated samples is one possible bootstrap strategy. A narrow interval around a coefficient does not guarantee that the linear form is appropriate.

Worked Example: Interpret Uncertainty in a Calibration Slope

Suppose a hypothetical external validation analysis of 80 independent participants estimates a calibration slope of 0.82 with \(SE=0.07\). Assume the regression conditions support a t-based interval and use \(df=78\), for which the 95% critical value is approximately 1.99. The interval is

$$ 0.82\pm1.99(0.07)=0.82\pm0.1393, \qquad 95\%\ \mathrm{CI}=(0.681,\ 0.959). $$

The interval is below 1, so under the stated model and assumptions it provides evidence that the calibration slope differs from the ideal value of 1 in this external population. In context, the fitted observed concentration increases by about 0.82 mg/L for each 1 mg/L increase in prediction, with the interval indicating plausible slopes from about 0.681 to 0.959 mg/L per mg/L. This alone does not show whether the intercept differs from zero, nor whether the deviation is important for a particular dosing decision.

The analysis scale matters. Concentration-scale regression describes additive discrepancies in mg/L. If proportional differences are the scientific focus and concentrations are positive, a log-scale calibration model may be more suitable. For example, define \(z=\ln(C/(1\ \mathrm{mg/L}))\), a dimensionless log concentration, and regress observed \(z\) on predicted \(z\). On this scale, ideal calibration is again intercept 0 and slope 1, but the interpretation concerns multiplicative rather than additive differences. Zero or below-quantification observations cannot simply be logged; their handling requires a method suited to those data.

Worked Example: Interpret a Log-Scale Calibration Relationship

Suppose a hypothetical analysis on positive concentrations estimates \(\widehat{z}_{\mathrm{obs}}=-0.10+0.85z_{\mathrm{pred}}\), where \(z=\ln(C/(1\ \mathrm{mg/L}))\). For a predicted concentration of 10 mg/L, \(z_{\mathrm{pred}}=\ln(10)\). The fitted observed concentration is

$$ \widehat{C}_{\mathrm{obs}} =(1\ \mathrm{mg/L})\exp[-0.10+0.85\ln(10)] \approx 6.41\ \mathrm{mg/L}. $$

At a prediction of 1 mg/L, \(z_{\mathrm{pred}}=0\), so the fitted observed concentration is \(\exp(-0.10)(1\ \mathrm{mg/L})\approx0.905\) mg/L. The slope of 0.85 indicates a less-than-one-for-one relationship on the log scale: a multiplicative increase in prediction corresponds to a smaller multiplicative increase in fitted observation. These are fitted mean values under this hypothetical regression, not guarantees for individual observations.

Useful diagnostics include a plot of observed against predicted concentrations with the identity line, a view of residuals against predictions, and the distribution of predictions and observations. Look for curvature, changing residual spread, influential extreme points, and a restricted prediction range. A seemingly unusual intercept can result from extrapolating a fitted line far beyond the data. If the relationship is curved, a single slope and intercept may summarize it poorly. If prediction values occupy a narrow range, the slope may be imprecise even when observations are numerous.

Calibration is distinct from prediction error metrics: the latter summarize discrepancy magnitude, while calibration describes the relationship between predicted and observed values. It is also distinct from prediction-interval coverage, which assesses whether intervals contain observations at the stated frequency. A calibration line cannot establish coverage, and good calibration does not ensure low error for every patient.

Common Pitfalls and Practical Interpretation

  • Reading a slope below 1 as universal overprediction. The slope alone does not determine bias at every concentration. Calculate \(\hat a+(\hat b-1)C_{\mathrm{pred}}\) across the range and consider the intercept.
  • Calling a nonsignificant difference proof of ideal calibration. Failure to reject \(a=0\) or \(b=1\) is not proof that the coefficients equal their ideal values. Report estimates and uncertainty, and assess whether deviations matter clinically.
  • Ignoring the validation design. Repeated concentrations from a participant are correlated. Ordinary independent-observation standard errors can overstate precision if that dependence is ignored.
  • Using bins as the only analysis. Grouped averages can conceal individual variation and depend on bin boundaries. Report counts, inspect paired data, and use bins as a complementary description.
  • Changing the model after seeing external results and still calling it validation. A calibration regression can diagnose transport of predictions, but using external observations to alter predictions is model updating, not evaluation of the original locked predictions.

The most defensible conclusion combines the calibration line, uncertainty, prediction-range summaries, and design-aware diagnostics. State the prediction type, concentration scale, external population, and range with data support. Interpret deviations in units and context, and avoid claiming that an observed calibration pattern causes a clinical outcome.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. A calibration line is \(\widehat{C}_{\mathrm{obs}}=0.2+0.8C_{\mathrm{pred}}\), with concentrations in mg/L. What is the fitted observed concentration at a prediction of 3 mg/L, and what is the fitted difference from the prediction?
  2. Why can a slope below 1 not, by itself, establish overprediction at every concentration?
  3. In a validation dataset with repeated samples per participant, why might treating all samples as independent produce misleading coefficient uncertainty?
  4. What does a calibration intercept of zero and slope of one establish, and what does it not establish?
  5. Why should a calibration plot and prediction-range summaries be considered together?

Solutions. 1. The fitted observation is \(0.2+0.8(3)=2.6\) mg/L; the fitted difference is \(2.6-3.0=-0.4\) mg/L, so fitted observations are 0.4 mg/L below predictions at that point. 2. The bias is \(\hat a+(\hat b-1)C_{\mathrm{pred}}\); depending on the intercept and prediction value, the difference can be positive, zero, or negative. 3. Samples from one participant may be correlated, so counting them as independent can underestimate the standard error and make intervals too narrow. 4. It is the ideal linear mean-calibration relationship over the assessed range; it does not establish small individual errors, constant variance, correct prediction-interval coverage, or clinical usefulness. 5. The plot displays the paired relationship and possible curvature or influential values, while range summaries make local agreement easier to compare; each can reveal features obscured by the other.

Clinical Biostats