Why One Observation Can Have More Than One Residual
A concentration measurement does not have a unique residual until the prediction used as its reference is specified. A prediction based on the typical subject in the population model answers a different question from one that incorporates an estimate of the subject’s individual characteristics. Both can be compared with the same observed concentration, so they generally produce different residuals.
This distinction matters when assessing a population PK model. A population prediction shows how the model performs without using a subject-specific random-effect estimate. An individual prediction incorporates information attributed to that subject and therefore describes how closely the model can represent the subject after that information is used. The comparisons are related, but they are not interchangeable measures of performance.
What the Two Predictions Represent
In a population PK model, \(\theta\) describes the population-level structural parameters, while \(\eta_i\) represents subject-level deviations under the model’s random-effects specification. The population prediction sets those deviations to zero while retaining the subject’s known covariates, dose, and sampling time. It is therefore a prediction for a typical subject with those covariates and dosing conditions—not necessarily for a subject who is typical in every respect.
The individual prediction substitutes an estimate \(\hat{\eta}_i\), commonly obtained as an empirical Bayes estimate, into the same structural model. That estimate reflects the model and the subject’s observed data. Some estimation approaches report a conditional mean and others a conditional mode; the precise estimate depends on the model-fitting method. In either case, \(IPRED\) is a subject-specific, data-informed prediction.
A population prediction with \(\eta_i=0\) is also not generally the same as the population-marginal mean prediction. The marginal mean averages predictions over the distribution of random effects. For a nonlinear function \(f\), evaluating at the mean random effect need not equal averaging over that distribution: \(f(\theta,0)\) is not generally \(E_{\eta}[f(\theta,\eta)]\). Thus, “population prediction” here means the conventional typical-subject prediction, not an automatic integration over all subjects.
These definitions assume the model, dosing history, covariates, time, and observation being compared are aligned. They also assume that each prediction and its residual are expressed on the same scale. If the model describes log concentrations, a residual on the log scale is \(\log(y_{ij})-\log(\widehat{y}_{ij})\), not \(y_{ij}-\log(\widehat{y}_{ij})\). The latter subtracts quantities with incompatible scales.
Residual Sign and the Difference Between Residuals
A raw residual is a signed difference in the measurement’s units. A positive observed-minus-predicted residual means the observation exceeds the prediction, so the model prediction is below the observed concentration for that record. A negative residual means the prediction exceeds the observation. A residual of zero means the prediction matches the observation exactly on the scale used.
The two residuals for one observation are connected by a simple identity. Subtracting the individual residual from the population residual gives:
Equivalently, the individual residual equals the population residual minus the change in prediction from population to individual:
This is an algebraic identity, not an assumption about how well either prediction performs. If the individual prediction moves toward the observed value, the magnitude of its residual decreases. If it moves away, the magnitude increases. The identity also shows why an individual residual cannot be interpreted without knowing which prediction was used.
Worked Example: One Concentration, Two Raw Residuals
Suppose a hypothetical subject has an observed concentration of \(8.0\) mg/L at a sampling time. For the subject’s covariates and dosing history, the population prediction is \(6.0\) mg/L and the individual prediction is \(7.5\) mg/L. Calculate and interpret both residuals.
Population residual: \(e=8.0-6.0=2.0\) mg/L. The observed concentration is \(2.0\) mg/L higher than the typical-subject prediction.
Individual residual: \(e^{IND}=8.0-7.5=0.5\) mg/L. The observed concentration is \(0.5\) mg/L higher than the subject-specific prediction.
The prediction difference is \(7.5-6.0=1.5\) mg/L. The identity gives \(e-e^{IND}=2.0-0.5=1.5\) mg/L, confirming the calculations. Both residuals refer to the same observed value; they differ because their prediction references differ. The smaller individual residual does not, by itself, establish that the population model will predict new subjects more accurately: the individual prediction used information from this subject.
Worked Calculations Across Records
For each record, calculate the residual using the observation and prediction that belong to the same subject, time, and scale. The following examples use hypothetical concentration data. They illustrate arithmetic and interpretation, not results from a real study.
Worked Example: Comparing Residuals at Two Sampling Times
For one hypothetical subject, consider two concentration observations. At the first time, the observed concentration is \(12.0\) mg/L, \(PRED\) is \(10.0\) mg/L, and \(IPRED\) is \(11.0\) mg/L. At the second time, the observed concentration is \(4.0\) mg/L, \(PRED\) is \(5.0\) mg/L, and \(IPRED\) is \(3.5\) mg/L. Calculate all four raw residuals.
At the first time, the population residual is \(12.0-10.0=2.0\) mg/L. The individual residual is \(12.0-11.0=1.0\) mg/L. Both are positive: both predictions are below the observed concentration.
At the second time, the population residual is \(4.0-5.0=-1.0\) mg/L. The individual residual is \(4.0-3.5=0.5\) mg/L. The population prediction exceeds the observation, whereas the individual prediction is below it.
The individual prediction has a smaller absolute residual at the first time (\(1.0\) rather than \(2.0\) mg/L), but not at the second (\(0.5\) rather than \(1.0\) mg/L). Thus, an individual prediction need not move closer to every observation. These record-level calculations do not establish an overall model comparison; that requires considering the chosen diagnostic and the full set of relevant observations.
Worked Example: Residuals on a Log-Concentration Scale
Suppose a hypothetical positive concentration is \(10.0\) mg/L, the population prediction is \(8.0\) mg/L, and the individual prediction is \(9.0\) mg/L. Calculate raw residuals on the concentration scale and log residuals using natural logarithms.
On the concentration scale, the population residual is \(10.0-8.0=2.0\) mg/L and the individual residual is \(10.0-9.0=1.0\) mg/L.
On the natural-log scale, the population residual is \(\log(10.0)-\log(8.0)=\log(10.0/8.0)\approx0.2231\). The individual residual is \(\log(10.0)-\log(9.0)=\log(10.0/9.0)\approx0.1054\). These log residuals are dimensionless and represent log ratios, not concentration differences.
The calculations answer different questions. A raw residual expresses an additive discrepancy in mg/L, while a log residual expresses a multiplicative discrepancy. The scale must be stated because residual magnitudes on these scales are not directly comparable.
Assumptions, Diagnostics, and Common Pitfalls
Calculating observed-minus-predicted residuals requires little beyond correctly matching the record to its prediction. Interpreting a pattern of residuals, however, depends on the model and the diagnostic purpose. Before interpreting them, check that the prediction uses the intended dose history, covariates, sampling time, and parameter estimates. Confirm that the observed and predicted values are on the same scale and that units match. A mismatch in any of these can produce apparent discrepancies that are calculation or data-alignment errors rather than evidence about model fit.
Raw residuals retain the original measurement units and may have different variability at different concentration levels. A residual of \(2\) mg/L has a different relative size when the prediction is \(3\) mg/L than when it is \(100\) mg/L. If the model is defined on a transformed scale, the corresponding residual should be calculated on that scale for analyses that require it. Standardized or weighted residuals are different quantities: they account for an error-scale model and should not be confused with the raw differences defined here.
Population and individual residuals also answer different diagnostic questions. Population residuals compare observations with predictions made without subject-specific random-effect estimates. Individual residuals show fit after incorporating estimates informed by a subject’s data. Because those estimates use the observations, individual residuals may appear smaller even when population-level predictions are not correspondingly improved. With limited information per subject, individual estimates may also be pulled toward the population value, so a small or large difference between prediction types should not be read as a direct measure of the amount of information in the data.
A frequent mistake is to call every observed-minus-predicted difference “the residual” without naming its prediction source. That hides whether the comparison is to \(PRED\) or \(IPRED\), which can change the magnitude and even the sign. Another common error is reversing the subtraction: predicted minus observed has the opposite sign. State the definition explicitly and retain the units.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- An observation is \(6.2\) mg/L, with \(PRED=7.0\) mg/L and \(IPRED=5.8\) mg/L. Calculate both raw residuals and interpret their signs.
- Why is a population prediction with random effects set to zero not generally equal to a prediction averaged over the random-effects distribution?
- For an observed concentration of \(15\) mg/L and a prediction of \(12\) mg/L, calculate the raw residual. What would reversing the subtraction do?
- A model is evaluated on the natural-log concentration scale. Explain why subtracting a log prediction from a raw concentration is not a valid residual on either scale.
- Why does a smaller individual residual for a subject not, by itself, prove better prediction for new subjects?
Solutions. (1) The population residual is \(6.2-7.0=-0.8\) mg/L, so the population prediction exceeds the observation. The individual residual is \(6.2-5.8=0.4\) mg/L, so the individual prediction is below it. (2) In general, \(f(\theta,0)\ne E_{\eta}[f(\theta,\eta)]\) when the model is nonlinear in the random effects. (3) The residual is \(15-12=3\) mg/L, meaning the observation is \(3\) mg/L above the prediction. Reversing the subtraction gives \(-3\) mg/L and reverses the sign interpretation. (4) The two values are on different scales; a log-scale residual must subtract log observation and log prediction, while a raw-scale residual subtracts concentrations. (5) The individual estimate uses information from that subject’s data, whereas prediction for a new subject does not have that same subject-specific information.