Why the Residual-Error Model Changes an Individual Posterior
An individual PK posterior combines information from a patient’s concentration observations with a prior distribution for that patient’s PK parameters. The likelihood determines how strongly each observation contributes. That contribution depends not only on the distance between the observed and predicted concentration, but also on the residual-error model: an observation with a larger assumed residual variance is generally less precise and receives less weight.
This tutorial compares additive, proportional, and combined residual-error models. The distinction matters when concentrations cover a wide range. A constant absolute error may be plausible near the assay’s lower range, while the variability of an observation may increase with its predicted concentration. The chosen model therefore changes both the likelihood’s shape and, in general, the resulting posterior.
For the models below, assume that observations are conditionally independent given \(\theta\), that the PK predictions are positive, and that the residuals are normally distributed. Treat the residual-error parameters as fixed and known for the individual update. These assumptions are modeling choices, not automatic properties of concentration data. In particular, independence is conditional on the PK parameters; it does not claim that observations are unconditionally independent after accounting for the shared uncertainty in \(\theta\).
Three Common Error Models
In an additive model, the residual standard deviation is constant on the concentration scale. Write its value as \(\sigma_a\), in the same units as concentration. In a proportional model, residual standard deviation is proportional to the prediction: \(\sigma_p f_j(\theta)\), where \(\sigma_p\) is a dimensionless coefficient of variation. In a combined model, the additive and proportional components contribute to the variance.
Here \(N(\mu,\sigma^2)\) uses variance as its second argument. The combined variance is the sum of the component variances; this convention corresponds to independent additive and proportional error components. It is not the square of the sum of their standard deviations. With positive predictions, the proportional model describes constant relative variability, while the additive model describes constant absolute variability. The combined model allows both components to matter.
For any of these models, denote the conditional variance at observation \(j\) by \(v_j(\theta)\). The likelihood contribution is
The residual’s squared distance is scaled by its variance, but the variance also appears in the normalizing factor. Equivalently, the negative twice log likelihood, omitting a constant that does not depend on \(\theta\), is
The ratio \(1/v_j(\theta)\) acts as a precision weight in the squared-residual term. However, when the variance depends on the prediction, it is not correct to compare candidate parameter values using only weighted squared residuals: the \(\log v_j(\theta)\) term is part of the likelihood too.
From Likelihood to Posterior
Let \(p(\theta)\) be the individual prior density, perhaps obtained from a population PK model and conditioned on patient covariates. For conditionally independent observations, the posterior density is proportional to the prior density multiplied by the likelihood contributions:
This is the Bayesian updating principle used in individual PK estimation. The residual model controls the likelihood factors. If a model assigns a small variance to an observation, a substantial residual is penalized strongly; if it assigns a larger variance, that same residual is less surprising. In a proportional or combined model, changing \(\theta\) can change both the predicted concentration and the variance. The resulting posterior need not be a simple normal distribution, even if the prior is normal.
Worked Example: Comparing the Weight of One Concentration
Suppose a hypothetical observation is \(y=12\) mg/L and the PK model predicts \(f(\theta)=10\) mg/L. Compare three hypothetical error specifications: additive standard deviation \(\sigma_a=2\) mg/L; proportional coefficient \(\sigma_p=0.20\); and combined error using both values.
Additive model. The variance is \(v=2^2=4\) (mg/L)\(^2\), so the precision is \(1/v=0.25\) (mg/L)\(^{-2}\). The residual is \(r=12-10=2\) mg/L, and its squared-residual contribution is \(r^2/v=4/4=1\).
Proportional model. The standard deviation is \(0.20(10)=2\) mg/L, giving \(v=4\) (mg/L)\(^2\), precision \(0.25\) (mg/L)\(^{-2}\), and squared-residual contribution \(4/4=1\). At this particular prediction, the proportional and additive models assign the same variance.
Combined model. The variance is \(v=2^2+[0.20(10)]^2=4+4=8\) (mg/L)\(^2\). Its precision is \(1/8=0.125\) (mg/L)\(^{-2}\), and the squared-residual contribution is \(4/8=0.5\). Thus this model treats the same two-unit residual as less informative than either single-component model.
The variance alone does not give the full likelihood: each normal density also contains \(1/\sqrt{2\pi v}\). The comparison here is specifically about the weighting of the squared residual. Because the variances happen to match for the first two models at 10 mg/L, their full likelihood contributions match at this prediction as well.
How Additive Error Produces a Precision-Weighted Update
A simple derivation shows how residual variance translates into posterior precision. Suppose a scalar parameter \(\theta\) has prior \(\theta\sim N(\mu_0,\tau^2)\), and observations follow the additive-error model \(y_j=\theta+\epsilon_j\), with independent \(\epsilon_j\sim N(0,\sigma_a^2)\). This is a simplified measurement model in which the prediction equals \(\theta\); it illustrates the weighting, rather than representing a general nonlinear PK model.
The prior contributes a squared deviation \((\theta-\mu_0)^2/\tau^2\) to negative twice the log density. Each observation contributes \((y_j-\theta)^2/\sigma_a^2\). Collecting the terms involving \(\theta\) gives a quadratic with posterior precision equal to prior precision plus observation precision. Completing the square yields:
The result makes the role of residual variance explicit: reducing \(\sigma_a^2\) increases the data’s precision and pulls the posterior mean more strongly toward the observations. For a general PK model, \(f_j(\theta)\) is usually nonlinear and may depend on several parameters, so this closed-form expression need not apply. The likelihood still follows the same variance-weighting principle, but the posterior may require numerical approximation or sampling.
Worked Example: Updating a Scalar Parameter Under Additive Error
Consider hypothetical observations \(y_1=11\) and \(y_2=13\) mg/L from the simplified model \(y_j=\theta+\epsilon_j\). Let the prior be \(\theta\sim N(10,2^2)\), and let the additive residual standard deviation be \(\sigma_a=2\) mg/L. The prior precision is \(1/4=0.25\) (mg/L)\(^{-2}\); the two observations together contribute \(2/4=0.50\) (mg/L)\(^{-2}\).
The posterior variance and mean are therefore
The posterior is \(N(11.33,1.333)\), with standard deviation \(\sqrt{1.333}=1.155\) mg/L. The observation mean is 12 mg/L, but the posterior mean remains between the prior mean of 10 mg/L and the observation mean because the prior retains positive precision. This calculation assumes the stated normal prior, independent normal errors with known constant variance, and the simplified prediction \(f(\theta)=\theta\).
Prediction-Dependent Variance and Posterior Shape
With proportional or combined error, the variance depends on \(f_j(\theta)\). Consequently, a candidate parameter value changes the residual and the scale against which that residual is judged. The following calculation illustrates why both parts of the likelihood must be retained.
Worked Example: Comparing Candidate Values Under Combined Error
Suppose one hypothetical observation is \(y=12\) mg/L, the prediction is \(f(\theta)=\theta\) mg/L, and the prior is \(\theta\sim N(10,2^2)\) mg/L. Use a combined error with \(\sigma_a=1\) mg/L and \(\sigma_p=0.10\). For candidate values \(\theta=8,10,12\) mg/L, calculate the negative twice log posterior up to a constant:
At \(\theta=8\), \(v=1.64\) (mg/L)\(^2\), so \(S=1+\log(1.64)+4/1.64=1+0.4947+2.439=3.934\). At \(\theta=10\), \(v=2.00\) (mg/L)\(^2\), so \(S=0+\log(2)+4/2=2.693\). At \(\theta=12\), \(v=2.44\) (mg/L)\(^2\), so \(S=1+\log(2.44)+0/2.44=1.892\).
Among these three candidate points, \(\theta=12\) has the largest unnormalized posterior density because it has the smallest \(S\). For example, its density relative to the value at \(\theta=10\) is \(\exp[-(1.892-2.693)/2]=1.493\). This is a pointwise density ratio, not a posterior probability that \(\theta=12\), and it does not establish that 12 mg/L is the posterior mode over all possible values. The calculation also shows why omitting \(\log v(\theta)\) would use an incomplete likelihood.
Diagnostics, Alternatives, and Limitations
A residual-error model should be assessed against the scale and pattern of the observations, not selected only because it is familiar. Useful checks include plotting residuals against predicted concentrations, examining standardized residuals \(r_j/\sqrt{v_j(\theta)}\), and checking whether their spread changes systematically across the concentration range. Under the stated model, standardized residuals should not show a pronounced trend in spread against prediction. These checks are descriptive: a small individual data set may provide little power to distinguish the models, and parameter estimation itself affects the residual pattern.
The three structures make different assumptions. Additive error is often a reasonable description when absolute assay variability is approximately constant. Proportional error is appropriate when relative variability is more nearly constant, but it implies that the residual variance approaches zero as the predicted concentration approaches zero. Combined error avoids relying on only one scale over the entire range, while adding parameters that need adequate data to estimate. If the data contradict the normality or independence assumptions, changing from additive to proportional variance does not by itself resolve those problems.
A practical comparison is to fit or evaluate the same PK model under each plausible residual structure, then inspect predictive and residual behavior as well as the individual posterior. The choice is not merely a technical adjustment to standard errors: it can change which observations dominate, the posterior location, and its uncertainty. In nonlinear models, a different error structure can also change the posterior’s shape.
No one of these models is universally correct. The normal additive model can assign positive probability to negative concentrations, particularly when predictions are near zero. The proportional model can be problematic at or near zero predictions and may overstate precision at low concentrations. The combined model can be more flexible, but its parameters may be weakly identified with sparse individual observations. In practice, residual-error parameters are often informed by population data; treating them as fixed in the update ignores uncertainty in those parameters. These limitations should be considered when interpreting an individual posterior rather than hidden by a seemingly precise numerical result.
Write \(f_j(\theta)\) and identify whether the residual variability is plausibly constant in absolute units, relative to the prediction, or a combination.
For each observation, calculate \(v_j(\theta)\) using the chosen model and retain its units.
Use both the standardized squared residual and the normalizing term involving \(\log v_j(\theta)\).
Combine the likelihood with the individual prior, then inspect whether the assumed residual spread is consistent with the concentration range and residual pattern.
Check Your Understanding
Answer each question, then compare with the short solutions below.
- An observation has prediction 20 mg/L. Under a proportional model with \(\sigma_p=0.15\), what are its residual standard deviation and variance?
- For the same prediction, use an additive standard deviation of 2 mg/L and the proportional model in Question 1. What combined variance follows the independent-component convention?
- Why is weighted squared residual alone insufficient for comparing parameter values in a proportional-error model?
- Under additive error, what happens to the likelihood precision weight when the residual standard deviation is doubled?
- Name one diagnostic pattern that could indicate that a constant additive variance is inadequate.
Solutions. (1) The standard deviation is \(0.15(20)=3\) mg/L and the variance is \(3^2=9\) (mg/L)\(^2\). (2) The combined variance is \(2^2+3^2=13\) (mg/L)\(^2\). (3) The variance changes with the prediction, so the likelihood includes both \(r^2/v(\theta)\) and \(\log v(\theta)\); omitting the latter gives an incomplete comparison. (4) The variance increases by a factor of four, so the precision \(1/\sigma_a^2\) decreases to one quarter. (5) For example, residual spread that systematically increases with predicted concentration suggests nonconstant absolute variance.