Why Compare Patient Data With the Population Model?
An individual concentration may differ from the population-model prediction without indicating a problem. Population models allow patients to vary, and measured concentrations also contain observation error. The diagnostic question is therefore not simply whether an observation differs from a typical prediction. It is whether the observation is surprising relative to the full distribution of observations the model predicts before using that patient’s data.
This comparison is useful because it can flag a mismatch that merits investigation: perhaps the recorded dose or sampling time is wrong, the assay result is unusual, or the individual is not well represented by the model. It does not, by itself, identify the cause. Nor does a surprising concentration prove that the population model is wrong; rare observations occur even when a model is appropriate.
Constructing a Prior-Predictive Residual
Let \(\eta\) denote an individual’s model parameters or random effects, with population prior distribution \(p(\eta)\). At a specified sampling time and under a specified dose history, let the model predict concentration \(C(\eta)\), and let the observed concentration be \(Y\). The observation model describes how \(Y\) varies around \(C(\eta)\). For example, an additive-error model is \(Y=C(\eta)+\epsilon\), where \(\epsilon\) has mean zero and variance \(\sigma^2\), independently of \(\eta\).
The prior-predictive mean and variance follow from the law of total expectation and the law of total variance:
Thus, the predictive variance includes both observation uncertainty and variation in the model-predicted concentration across the population prior. If the model is nonlinear, these quantities can be calculated by integrating over the prior or approximated by drawing parameter values from it and simulating observations. The resulting distribution need not be normal.
When the prior-predictive distribution is adequately approximated by a normal distribution, with mean \(m\) and standard deviation \(s_{\mathrm{pred}}\), a standardized prior-predictive residual is:
This residual reports how far the observed concentration \(y\) lies from the prior-predictive mean, in prior-predictive standard deviation units. It is not automatically a standard normal statistic: that interpretation depends on the predictive distribution being approximately normal and on the model assumptions being adequate. If the distribution is skewed, bounded, or heavy-tailed, a predictive quantile or tail probability can be more informative than a z-score.
For the additive-error model, the variance calculation has a short justification. Conditional on \(\eta\), the expected observation is \(C(\eta)\) and its variance is \(\sigma^2\). Substitution into the total-variance identity gives:
This addition is appropriate when observation error is independent of the individual parameters. Omitting either term can make the predictive distribution too narrow and make ordinary observations appear spuriously conflicting.
Worked Example: A Single Concentration Against Its Prior Prediction
Suppose a hypothetical population model, at a specified dose and sampling time, has a prior-predictive concentration mean of \(10.0\) mg/L. The standard deviation across individual model predictions is \(2.0\) mg/L, and the independent additive observation-error standard deviation is \(1.0\) mg/L. A patient’s measured concentration is \(14.5\) mg/L. Assume the normal approximation is reasonable for this calculation.
The predictive variance includes both sources of uncertainty:
The standardized prior-predictive residual is:
The observed concentration is about \(2.01\) prior-predictive standard deviations above the mean. Under the assumed normal predictive distribution, a two-sided tail probability is approximately \(0.044\). This is a signal to check the data and assumptions, not a 4.4% probability that the model is true or false. The interpretation depends on the assumed dose history, timing, population distribution, and error model being appropriate.
Reading Patterns, Not Just Individual Residuals
With multiple observations, calculate each prior-predictive residual using the prediction for its dose history and sampling time. Their signs and sizes can reveal patterns that a single concentration cannot. Several observations consistently above their predictions may suggest a shared mismatch, while one isolated large residual may be more consistent with a local measurement or recording issue. These are clues to investigate, not diagnoses.
Observations from the same patient are often correlated because they share individual parameters, and their errors may also be correlated. Therefore, a collection of marginal z-scores should not automatically be treated as independent evidence. If the joint prior-predictive distribution is available, a vector of residuals \(r=y-m\) can be assessed using its covariance matrix \(S\), for example through the quadratic discrepancy \(r^\mathsf{T}S^{-1}r\). Its reference distribution depends on the assumed joint predictive distribution. Ignoring dependence can exaggerate how much evidence a set of observations provides.
A further distinction matters: prior-predictive residuals assess compatibility before using the patient’s observations to update individual parameters. Residuals calculated after fitting those same observations are conditioned on the data and can be smaller simply because the individual fit has adapted to them. Such post-fit residuals answer a different diagnostic question and should not replace the prior-predictive comparison when asking whether the observations conflict with the population prior.
Worked Example: A Consistent Direction Across Several Samples
Suppose a hypothetical patient has three concentrations measured at different times under a verified dose history. The model’s prior-predictive means and standard deviations are \(12.0\), \(8.0\), and \(4.0\) mg/L, with standard deviations \(2.0\), \(1.5\), and \(1.0\) mg/L, respectively. The observed values are \(15.0\), \(10.4\), and \(4.8\) mg/L. Assume each marginal predictive distribution is approximately normal.
The three marginal standardized residuals are:
All three observations are above their marginal predictive means. None is individually more than \(1.60\) standard deviations above its mean, but the shared direction is worth noticing. It could reflect a coherent individual difference, an incorrect shared input such as the dose history, or a model feature that does not represent this patient well. Because the samples share individual parameters, these three values must not be treated as independent tests or combined by summing their squares without the joint covariance. The calculation identifies a pattern for follow-up; it does not establish its cause.
Posterior Shifts: How the Data Move an Individual Estimate
A concentration that conflicts with the population prior can pull an individual parameter estimate away from its prior center. The size and direction of that movement depend not only on the residual but also on how informative the observation is about the parameter. A low-precision observation can be surprising yet produce a limited update; a precise observation can move the estimate substantially.
For a simple, exactly solvable illustration, let \(\theta\) be a scalar quantity representing the model-predicted concentration for a fixed regimen and sampling time. Assume a normal prior \(\theta\sim N(\mu,\tau^2)\), and an observation model \(Y\mid\theta\sim N(\theta,\sigma^2)\), with \(\theta\) and observation error independent. The posterior mean is:
To see why, the posterior density is proportional to the product of the prior density and the likelihood. Keeping only terms involving \(\theta\), its log density is proportional to:
Collecting the quadratic and linear terms in \(\theta\) gives posterior precision \(1/\tau^2+1/\sigma^2\) and posterior mean \((\mu/\tau^2+y/\sigma^2)/(1/\tau^2+1/\sigma^2)\). Rearranging that mean yields the expression above. The multiplier \(\tau^2/(\tau^2+\sigma^2)\) lies between zero and one: the posterior mean is between the prior mean and the observed value. This result is exact under the stated scalar normal model; it is not a general formula for nonlinear PK models.
Worked Example: A Surprising Observation Produces a Large Shift
Use the hypothetical values from the first example, interpreting the latent quantity as the concentration predicted for the fixed regimen and time: \(\theta\sim N(10.0,2.0^2)\) mg/L, with \(y=14.5\) mg/L and observation-error standard deviation \(\sigma=1.0\) mg/L. The assumptions are a normal prior, a normal observation error independent of \(\theta\), and the observation model \(Y\mid\theta\sim N(\theta,1.0^2)\).
The posterior mean is:
The posterior shift is \(13.60-10.0=3.60\) mg/L, or \(3.60/2.0=1.80\) prior standard deviations. The posterior variance is:
Thus the posterior standard deviation is \(\sqrt{0.800}=0.8944\) mg/L. The data substantially shift this simplified individual prediction, while the posterior remains uncertain. In a full PK model, a concentration may depend on several parameters and the posterior shift can be difficult to attribute to one parameter; a shift alone does not establish which physiological feature differs.
Worked Example: Similar Residual, Different Posterior Response
Now consider a different hypothetical setting. The prior mean predicted concentration is \(8.0\) mg/L with prior standard deviation \(1.0\) mg/L. The observation-error standard deviation is \(2.0\) mg/L, and the measured concentration is \(12.0\) mg/L. Assume the same scalar normal model as in the preceding derivation.
The prior-predictive standard deviation and residual are:
The posterior mean is:
The observation is about \(1.79\) prior-predictive standard deviations above the mean, but the posterior shifts by only \(0.800\) mg/L, or \(0.800\) prior standard deviations. The relatively large observation error limits its influence. This illustrates why standardized residual size and posterior shift answer related but distinct questions.
Investigating Conflict and Recognizing Failure Modes
A large standardized residual is a reason to check the assumptions and inputs before changing a dose or rejecting the population model. In practice, plausible causes include:
- Incorrect or incomplete dosing history: the recorded amount, administration time, or recent missed dose may not match what occurred.
- Incorrect sample timing: a recorded collection time may be wrong, or the interval from the most recent dose may have been miscalculated.
- Unusual observation error: assay, sample handling, or transcription problems may affect a result.
- Patient-model mismatch: the individual may have characteristics or clinical changes not represented adequately by the model or its population prior.
- Mis-specified variability: the population or observation-error variance may be too small, making the model’s predictive distribution too narrow.
These possibilities have different implications and should not be collapsed into a single conclusion. For instance, a verified outlying assay result suggests a different follow-up from several reproducible concentrations that remain systematically above prediction after the dose history and timing are checked. A concentration should not be discarded merely because it is unusual: doing so can remove genuine information about an individual who differs from the population average.
A normal z-score threshold is only a convenient screen when the predictive distribution is approximately normal. In skewed or heavy-tailed settings, compare the observation with simulated prior-predictive draws or calculate its position in the predictive distribution. For repeated measurements, consider their joint distribution and dependence. If many patients or time points are screened, some apparently extreme values will occur by chance; investigate the pattern and context rather than applying a universal cutoff as an automatic decision rule.
The alternatives serve different purposes. A prior-predictive residual asks whether the observed data were expected before the patient-specific update. A posterior predictive check asks whether a model updated using the data can reproduce relevant features of those data; it may be less sensitive to a prior mismatch because the update has already adapted to the observations. Direct review of records and assays can identify concrete data problems that neither predictive calculation can establish. None of these checks alone proves a causal explanation.
The main limitations are that diagnostics depend on the model and inputs being checked, and that a single residual cannot reveal which parameter or process caused a mismatch. A moderate residual does not guarantee that a model is adequate, while a large residual does not prove that it is defective. Interpret the predictive comparison alongside data verification, the pattern across observations, and clinical context.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- A predictive model has mean concentration \(6.0\) mg/L, individual-model standard deviation \(1.5\) mg/L, and independent observation-error standard deviation \(2.0\) mg/L. A measured concentration is \(9.5\) mg/L. Calculate the standardized prior-predictive residual under a normal approximation.
- Why is it generally incorrect to assess conflict using a residual divided only by the observation-error standard deviation?
- Two concentrations from one patient both lie above their marginal prior-predictive means. Why should their z-scores not automatically be treated as independent evidence?
- In the scalar normal example, what happens to the posterior mean’s movement toward the observation as observation-error variance increases?
- A large prior-predictive residual is found. Give two plausible explanations other than a flawed population model.
Solutions. (1) The predictive standard deviation is \(\sqrt{1.5^2+2.0^2}=\sqrt{6.25}=2.50\) mg/L, so \(z_{\mathrm{pred}}=(9.5-6.0)/2.50=1.40\). (2) That calculation omits variation in model-predicted concentration across individuals, usually understating total predictive uncertainty and overstating conflict. (3) The observations share individual parameters and may also share correlated errors, so their joint predictive covariance matters. (4) The weight \(\tau^2/(\tau^2+\sigma^2)\) decreases as \(\sigma^2\) increases, so the posterior mean moves less toward the observation. (5) Examples include a wrong dose or sample time, an unusual assay or transcription error, an unrecorded clinical change, or an individual not well represented by the population prior.