Tutorials › Population Pharmacokinetics › Subject-Specific Residual Variability

Random-Effect Structure and Error Models · Tutorial 158 of 599

Subject-Specific Residual Variability

You will learn how to model subject-specific residual variability, interpret its scale parameter, and understand what repeated observations contribute to its estimation.

Intermediate 12 min read

What You'll Learn

  • Write a residual model with a subject-level random effect on the error scale
  • Distinguish variability in residual dispersion from variability in pharmacokinetic parameters
  • Interpret the conditional and population-level residual variances
  • Derive how a shared residual-scale effect induces dependence between squared residuals
  • Explain what repeated measurements contribute and where estimation can fail

Why Let Residual Variability Differ by Subject?

A population model often allows subjects to differ in pharmacokinetic parameters, such as clearance or volume. It may also allow concentrations from some subjects to be more dispersed around their own predicted concentration-time profiles than concentrations from other subjects. This second type of heterogeneity is subject-specific residual variability. It concerns the scale of the remaining observation error, not a subject’s typical pharmacokinetic trajectory.

The distinction matters when repeated concentrations from a subject repeatedly lie close to that subject’s predictions, or repeatedly show larger deviations, beyond what one common residual variance would explain. A single large deviation is not by itself evidence of a high-variability subject: it could simply be an ordinary residual draw, an outlier, or a poor prediction of the mean.

Definition: A subject-specific residual random effect is a subject-level random quantity that changes the conditional dispersion of observations around their model-predicted means. It is shared across that subject’s observations, but it does not, by definition, change the predicted mean concentration or the subject’s pharmacokinetic parameters.

A Random Effect on the Residual Scale

Let \(Y_{ij}\) be the concentration for subject \(i\) at observation \(j\), and let \(f_{ij}(\theta,\eta_i)\) be the predicted concentration from the structural model. Here, \(\theta\) denotes population parameters and \(\eta_i\) denotes the subject’s pharmacokinetic random effects. One simple model places a random effect \(b_i\) on the logarithm of the residual standard deviation:

$$ Y_{ij}=f_{ij}(\theta,\eta_i)+\varepsilon_{ij},\qquad \varepsilon_{ij}\mid b_i,\eta_i\sim N\!\left(0,\sigma^2\exp(2b_i)\right), \qquad b_i\sim N(0,\tau^2). $$

In this formulation, \(\sigma\) is the baseline residual standard deviation and \(\tau^2\) is the variance of the subject-level log-scale effect. The conditional standard deviation for subject \(i\) is \(\sigma_i=\sigma\exp(b_i)\); the conditional variance is \(\sigma_i^2=\sigma^2\exp(2b_i)\). Thus, \(b_i=0\) corresponds to the baseline scale, and a one-unit increase in \(b_i\) multiplies the standard deviation by \(\exp(1)\). Since \(b_i\) is normally distributed with mean zero, \(\sigma\) is the median subject-specific standard deviation under this model, not its population mean.

The model assumes the residuals have conditional mean zero and, given the random effects, are normally distributed and independent across observations. It also assumes the residual-scale effect is shared across observations for a subject, and that \(b_i\) is independent of the pharmacokinetic effects \(\eta_i\), unless a different dependence structure is explicitly specified. These are modeling assumptions, not automatic properties of concentration data. A known concentration-dependent residual variance function can be used in place of the constant baseline \(\sigma^2\); the subject-level multiplier then scales that variance function.

The residual model may instead be specified on a transformed scale, such as log concentration. In that case the observation, prediction, and residual variance are defined on that scale. A random effect on residual scale should not be confused with a random effect that changes the mean on the original concentration scale.

Worked Example: Translating the Random Effect Into a Subject’s Error Scale

Suppose the baseline residual standard deviation is \(0.10\) mg/L. For illustration, consider two hypothetical subjects whose residual-scale effects are \(b_1=\log(1.5)\) and \(b_2=\log(0.8)\). These values illustrate the model’s scale interpretation; they are not data from a real study.

For subject 1, the multiplier is \(\exp(b_1)=1.5\), so the conditional residual standard deviation is \(0.10\times1.5=0.150\) mg/L. Its conditional variance is \(0.150^2=0.0225\) \((\text{mg/L})^2\).

For subject 2, the multiplier is \(\exp(b_2)=0.8\), so the conditional residual standard deviation is \(0.10\times0.8=0.0800\) mg/L. Its conditional variance is \(0.0800^2=0.00640\) \((\text{mg/L})^2\).

The subjects have the same structural predictions in this example. The model distinguishes them only in the spread of their observations around those predictions; it does not say that subject 1 has higher clearance or a different expected concentration profile.

What the Random Effect Implies Across Observations

Although residuals from the same subject are conditionally independent in the stated model, their squared values are associated after accounting for the unobserved shared \(b_i\). If one residual from a subject is large in magnitude, that provides information about the subject’s residual scale and therefore about the expected magnitude of the subject’s other residuals. The signed residuals need not have nonzero covariance: conditional means remain zero.

The following derivation makes the role of repeated observations explicit. Write \(R_{ij}=Y_{ij}-f_{ij}(\theta,\eta_i)\). Given \(b_i\), distinct residuals are independent, and \(E(R_{ij}^2\mid b_i)=\sigma^2\exp(2b_i)\). Therefore:

$$ \begin{aligned} \operatorname{Cov}(R_{ij}^2,R_{ik}^2) &=\operatorname{Cov}\!\left(E(R_{ij}^2\mid b_i),E(R_{ik}^2\mid b_i)\right)\\ &=\operatorname{Var}\!\left(\sigma^2\exp(2b_i)\right),\qquad j\ne k. \end{aligned} $$

For \(b_i\sim N(0,\tau^2)\), the normal moment-generating function gives \(E[\exp(tb_i)]=\exp(t^2\tau^2/2)\). Applying this result at \(t=2\) and \(t=4\) yields the population mean and variance of the subject-specific residual variance:

$$ E(\sigma^2\exp(2b_i))=\sigma^2\exp(2\tau^2),\qquad \operatorname{Var}(\sigma^2\exp(2b_i)) =\sigma^4\left\{\exp(8\tau^2)-\exp(4\tau^2)\right\}. $$

Consequently, for distinct observations from the same subject, the covariance of their squared residuals is \(\sigma^4\{\exp(8\tau^2)-\exp(4\tau^2)\}\). It is zero when \(\tau^2=0\) and positive when \(\tau^2>0\). This is a dependence in residual magnitudes induced by a shared scale effect, not a serial correlation in signed residuals.

Worked Example: Expected Variance and Dependence in Squared Residuals

Suppose, hypothetically, that the baseline residual standard deviation is \(\sigma=0.20\) mg/L and the subject-level log-scale variance is \(\tau^2=0.10\). The population mean of the subject-specific residual variance is:

$$ E(\sigma_i^2)=0.20^2\exp(2\times0.10) =0.0400\exp(0.20) =0.04886\;(\text{mg/L})^2. $$

This exceeds the baseline variance \(0.0400\) \((\text{mg/L})^2\), because the lognormal subject-specific variances have a right-skewed distribution. The baseline variance is not the average variance across subjects when \(\tau^2>0\).

For two distinct observations from the same subject, the covariance of squared residuals is:

$$ \begin{aligned} \operatorname{Cov}(R_{ij}^2,R_{ik}^2) &=0.20^4\{\exp(8\times0.10)-\exp(4\times0.10)\}\\ &=0.001600\{2.22554-1.49182\}\\ &=0.001174\;(\text{mg/L})^4. \end{aligned} $$

The positive covariance means that the squared residuals tend to be jointly larger or jointly smaller than average within a subject. It does not mean that a positive residual tends to be followed by another positive residual.

Why Replication Within Subjects Matters

A subject-specific residual variance describes a subject’s dispersion, which is a feature of a collection of observations rather than of one signed residual. Repeated observations allow the model to compare how widely a subject’s residuals vary with how widely residuals vary for other subjects. For this comparison to be informative, residuals must be calculated relative to adequate predictions: systematic mean-model misspecification can look like excess residual dispersion.

With only one observation per subject, there is no within-subject sample variance. Across many singleton subjects, a model with a specified residual distribution may still contain information about \(\tau^2\) through the shape of the marginal residual distribution. But that information depends heavily on distributional assumptions, and an unusually large residual cannot be separated cleanly into a high subject-specific scale, a chance residual draw, or a mean-model problem. Repeated measurements provide direct within-subject evidence and are generally important for reliable estimation and interpretation.

Worked Example: Comparing Residual Dispersion With Replicates

Suppose a hypothetical experiment has replicate observations for two subjects at conditions where the model-predicted concentrations are the same within each subject. After subtracting those predictions, the residuals are \( -0.10,\ 0.10,\ -0.20,\ 0.20\) mg/L for subject A and \( -0.30,\ 0.30,\ -0.40,\ 0.40\) mg/L for subject B. The residual means are zero for both subjects.

The sample residual variance for A is:

$$ s_A^2=\frac{(-0.10)^2+(0.10)^2+(-0.20)^2+(0.20)^2}{4-1} =\frac{0.100}{3}=0.03333\;(\text{mg/L})^2. $$

For B, it is:

$$ s_B^2=\frac{(-0.30)^2+(0.30)^2+(-0.40)^2+(0.40)^2}{4-1} =\frac{0.500}{3}=0.1667\;(\text{mg/L})^2. $$

If the baseline variance were known to be \(0.0400\) \((\text{mg/L})^2\), a rough subject-level scale summary based on each sample variance would be \(b_i\approx\frac12\log(s_i^2/\sigma^2)\). For A, this is \(\frac12\log(0.03333/0.0400)=-0.0912\). For B, it is \(\frac12\log(0.1667/0.0400)=0.7136\). The corresponding sample standard deviations are \(0.1826\) and \(0.4082\) mg/L.

These summaries suggest greater dispersion for B, but four observations per subject give noisy variance estimates. They are not, by themselves, a reliable estimate of the population variance \(\tau^2\). Estimating \(\tau^2\) requires information across subjects as well as repeated observations within subjects, and must account for uncertainty in both the baseline scale and the pharmacokinetic predictions.

Distinguishing Residual-Scale Effects From Other Effects

A random effect on a pharmacokinetic parameter changes the predicted profile. For example, a subject-specific clearance effect can alter the predicted concentrations over time, and its influence is structured by the pharmacokinetic model. A residual-scale effect instead leaves the conditional predicted profile unchanged and changes the expected dispersion around it. If a subject’s residuals consistently shift in one direction or follow a time pattern, a scale effect alone is not an adequate explanation.

An occasion effect is also distinct. It is attached to an occasion or dosing period and can change a parameter or residual scale for observations in that occasion. A subject-level residual effect is shared across that subject’s observations, including across occasions if that is how the model is defined. The level at which an effect is shared must match the scientific question and sampling design.

The main alternatives are to retain one common residual scale, to use a fixed variance function that changes with predicted concentration, or to specify occasion-specific residual variances. A common scale is simpler but cannot represent persistent between-subject differences in dispersion. A fixed variance function describes systematic changes in spread with a measured predictor or predicted concentration, not unexplained subject-to-subject scale differences. Occasion-specific variances allow group-level differences between occasions, but do not by themselves represent individual subjects having persistently different residual scales.

Model featureWhat varies?Evidence it may be needed
PK random effectSubject-specific predicted mean profilePersistent differences in concentration-time pattern
Subject-specific residual effectSubject-specific spread around predictionsRepeatedly different within-subject residual dispersion
Fixed residual variance functionResidual scale with a specified predictor or predictionSpread changes systematically with that predictor
Occasion-specific residual varianceResidual scale by occasion or groupConsistent dispersion differences between occasions

Diagnostics, Failure Modes, and Limitations

Inspect residual patterns at both the subject and population levels. If subjects with large residual magnitudes tend to have large magnitudes repeatedly, the shared-scale idea may be relevant. Plotting residuals against predictions and time can reveal a variance trend, a systematic mean pattern, or an occasion effect that a subject-specific scale cannot explain. Assess whether a few extreme observations dominate the apparent heterogeneity; a heavy-tailed residual distribution or data-quality issue can be mistaken for subject-specific variability.

The model also has limits. It assumes a chosen distribution for the subject-level effect and a chosen conditional residual distribution. A lognormal scale distribution permits very large scales, so a small number of subjects can have substantial influence. Sparse sampling weakens the information about each subject’s dispersion, while a misspecified mean model can inflate the estimated residual-scale variability. If the subject-scale effect is correlated with pharmacokinetic random effects, assuming independence may also distort estimates; that dependence must be considered explicitly rather than inferred from residual spread alone.

A common mistake is to call a subject with one large residual a “high residual-variance subject.” One residual supplies evidence about a particular error draw, not a direct estimate of a subject’s variance. The correction is to distinguish the residual realization from the latent subject-level scale, use repeated observations to assess persistent dispersion, and check that mean predictions and other variance patterns are adequate before attributing the spread to this random effect.

Key takeaway: A subject-specific residual random effect multiplies the conditional residual scale across a subject’s observations. It is not a random effect on the pharmacokinetic mean, and repeated within-subject observations are central to distinguishing persistent dispersion from chance residual draws.

Check Your Understanding

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

  1. If \(b_i=0\), what is subject \(i\)’s conditional residual standard deviation? If \(b_i=\log(2)\), by what factor does it change?
  2. Under the model, do two residuals from the same subject necessarily have nonzero covariance? What about their squared residuals?
  3. Why is one unusually large residual insufficient to establish high subject-specific residual variability?
  4. Name one way a fixed concentration-dependent variance function differs from a subject-specific residual effect.

Solutions. (1) The standard deviation is \(\sigma\) when \(b_i=0\); when \(b_i=\log(2)\), it is \(2\sigma\). (2) Conditional on the random effects, residuals are independent and have mean zero, so distinct signed residuals have zero conditional covariance. Their squared residuals have positive population covariance when \(\tau^2>0\), because they share \(b_i\). (3) A single large residual could be a chance draw, an outlier, or a consequence of a poor mean prediction; it does not provide a within-subject dispersion estimate. (4) A fixed variance function changes spread systematically with a specified predictor or prediction, whereas a subject-specific effect represents persistent unexplained differences in scale across subjects.

Clinical Biostats