Tutorials › Population Pharmacokinetics › Residual Error On Original And Log Concentration Scales

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

Residual Error On Original And Log Concentration Scales

Learn how the error scale determines the distribution and variability of observed concentrations, and how to check which scale is more appropriate.

Intermediate 11 min read

What You'll Learn

  • Write additive and log-scale residual models for a predicted concentration
  • Derive the normal and lognormal concentration distributions implied by those models
  • Distinguish constant absolute variability from constant relative variability
  • Interpret the mean, median, and coefficient of variation under log-scale error
  • Diagnose scale mismatch using residual patterns and concentration positivity
  • Compare the assumptions and limitations of the two error scales

Why the Error Scale Matters

A residual error model describes how an observed concentration varies around a model-predicted concentration. The scale on which the error is defined changes the implied distribution of observations, not just the numerical size of a residual. Additive error treats a given absolute deviation in concentration the same way at low and high predictions. Log-scale error treats a given proportional deviation the same way, so it naturally represents constant relative variability.

Let \(f\) denote the positive concentration predicted for a particular observation, conditional on the structural model and its individual parameter values. Let \(C\) denote the corresponding observed concentration. The residual models below describe the conditional distribution of \(C\) given \(f\); they do not by themselves describe variation in \(f\) caused by differences between individuals.

Definition: Under an additive error model, \(C=f+\epsilon\), where \(\epsilon\) is a residual error on the original concentration scale. Under a log-scale error model, \(\log(C/f)=\epsilon_{\log}\), or equivalently \(C=f\exp(\epsilon_{\log})\), where the residual error is defined on the log concentration scale.

Additive Error on the Original Concentration Scale

The usual additive model assumes that, conditional on \(f\), the residuals are independent and normally distributed with mean zero and a common variance:

$$ C=f+\epsilon,\qquad \epsilon\mid f\sim N(0,\sigma_{\mathrm{add}}^2). $$

Here \(\sigma_{\mathrm{add}}\) has concentration units, such as mg/L. The zero-mean assumption makes \(f\) the conditional mean of \(C\), and the constant variance assumption gives the same conditional standard deviation at every predicted concentration:

$$ C\mid f\sim N(f,\sigma_{\mathrm{add}}^2),\qquad E(C\mid f)=f,\qquad \operatorname{Var}(C\mid f)=\sigma_{\mathrm{add}}^2. $$

Thus, additive error represents constant absolute variability. Its conditional coefficient of variation, the conditional standard deviation divided by the conditional mean, is \(\sigma_{\mathrm{add}}/f\). It is not constant: with a fixed \(\sigma_{\mathrm{add}}\), relative variability increases as \(f\) decreases.

A normal distribution also assigns positive probability to negative concentrations, even though physical concentrations are nonnegative. This may be negligible when \(f\) is many residual standard deviations above zero, but it can matter when \(f\) is small relative to \(\sigma_{\mathrm{add}}\). The probability is

$$ P(C<0\mid f)=\Phi\left(-\frac{f}{\sigma_{\mathrm{add}}}\right), $$

where \(\Phi\) is the standard normal cumulative distribution function. A substantial value is a warning that an untruncated additive normal model may not represent the observations well near zero.

Worked Example: Negative Values Under Additive Error

Suppose a hypothetical concentration prediction is \(f=2.00\) mg/L and the additive residual standard deviation is \(\sigma_{\mathrm{add}}=1.50\) mg/L. Assume the conditional normal model above holds. Find the probability that an observation is below zero.

Standardizing \(C\) gives

$$ P(C<0\mid f=2.00) =P\left(Z<\frac{0-2.00}{1.50}\right) =P(Z<-1.333333\ldots), $$

where \(Z\sim N(0,1)\). The standard normal probability is approximately \(0.0912\). Thus, this model assigns about a 9.12% probability to a negative concentration at this prediction. This is not a claim that a measured concentration will physically be negative; it is a feature of the proposed probability model and a reason to examine whether additive normal error is suitable at this concentration. The conditional coefficient of variation is \(1.50/2.00=0.750\), or 75.0%.

Normal Error on the Log Concentration Scale

The log-scale model assumes that the log ratio of observed to predicted concentration is normally distributed with mean zero and a common variance:

$$ \log(C/f)=\epsilon_{\log},\qquad \epsilon_{\log}\mid f\sim N(0,\sigma_{\log}^2). $$

The ratio \(C/f\) is dimensionless, and \(\sigma_{\log}\) is dimensionless. Equivalently, \(C=f\exp(\epsilon_{\log})\). Because the exponential of any real number is positive, this model assigns probability zero to nonpositive concentrations. It makes multiplicative, rather than additive, deviations symmetric on the modeled scale: residuals of \(+a\) and \(-a\) correspond to concentration ratios \(\exp(a)\) and \(\exp(-a)\).

If \(f\) is expressed in a fixed concentration unit, the distribution of \(C\) is lognormal. To derive its density, set \(u=\log(c/f)\), so that \(c=f\exp(u)\) and \(du/dc=1/c\). Transforming the normal density of \(u\) gives

$$ p(c\mid f)= \frac{1}{c\sigma_{\log}\sqrt{2\pi}} \exp\left[-\frac{\{\log(c/f)\}^2}{2\sigma_{\log}^2}\right], \qquad c>0. $$

The factor \(1/c\) is the change-of-variable Jacobian. This density is generally asymmetric on the original concentration scale. In particular, \(f\) is the conditional median, not the conditional arithmetic mean. The moments follow from the normal moment-generating function: if \(U\sim N(0,\sigma_{\log}^2)\), then \(E[\exp(tU)]=\exp(t^2\sigma_{\log}^2/2)\). Taking \(t=1\) and \(t=2\) yields

$$ E(C\mid f)=f\exp(\sigma_{\log}^2/2),\qquad \operatorname{Var}(C\mid f)= f^2\exp(\sigma_{\log}^2)\{\exp(\sigma_{\log}^2)-1\}. $$

Consequently, the conditional coefficient of variation is

$$ \frac{\sqrt{\operatorname{Var}(C\mid f)}}{E(C\mid f)} =\sqrt{\exp(\sigma_{\log}^2)-1}. $$

It does not depend on \(f\). This is the precise sense in which a zero-mean normal error on the log scale gives constant relative variability on the concentration scale. The conditional arithmetic mean exceeds \(f\) because exponentiation is nonlinear; this is sometimes called retransformation bias.

Important distinction: In \(C=f\exp(\epsilon_{\log})\) with a zero-mean log residual, \(f\) is the conditional median and geometric mean. If a model instead requires \(f\) to be the conditional arithmetic mean, it can use \(C=f\exp(\epsilon_{\log}-\sigma_{\log}^2/2)\). That adjustment changes the median, but the coefficient of variation remains \(\sqrt{\exp(\sigma_{\log}^2)-1}\).

Worked Example: A Log-Scale Prediction Interval

For a hypothetical observation, let \(f=20.0\) mg/L and \(\sigma_{\log}=0.250\). Assume the log residual is normal with mean zero and that this is the unadjusted model \(C=f\exp(\epsilon_{\log})\). Find the central 95% interval for an observation, conditional on \(f\).

The central 95% interval for a standard normal residual is approximately \([-1.96,1.96]\) standard deviations. Therefore, the corresponding concentration limits are

$$ 20.0\exp\{-1.96(0.250)\} \quad\text{and}\quad 20.0\exp\{1.96(0.250)\}. $$

The exponent magnitude is \(1.96(0.250)=0.490\). Hence the limits are \(20.0\exp(-0.490)\approx12.25\) mg/L and \(20.0\exp(0.490)\approx32.65\) mg/L. This interval is symmetric around \(20.0\) on the log-ratio scale, but not on the concentration scale. It is an interval for a future observation under the specified model, not an interval estimating an unknown parameter.

The conditional arithmetic mean is \(20.0\exp(0.250^2/2)=20.0\exp(0.03125)\approx20.63\) mg/L, while the median is \(20.0\) mg/L. The difference is expected under the unadjusted lognormal model.

What “Constant Variability” Means

The two models imply different patterns as the prediction changes. Additive error holds the absolute standard deviation fixed, whereas log-scale error holds the coefficient of variation fixed. These are different scientific assumptions, not competing ways to label the same residual.

FeatureAdditive errorNormal error on log scale
Model\(C=f+\epsilon\)\(C=f\exp(\epsilon_{\log})\)
Conditional distributionNormal on concentration scaleLognormal on concentration scale
Conditional centerMean \(f\)Median \(f\); mean \(f\exp(\sigma_{\log}^2/2)\)
Variability held constantAbsolute SD \(\sigma_{\mathrm{add}}\)Relative SD as a fraction of the mean
SupportCan include negative valuesStrictly positive
Residual scaleConcentration unitsLog ratio; dimensionless

Worked Example: Comparing Relative Variability Across Predictions

Consider hypothetical predictions of \(2.00\) and \(10.0\) mg/L. Compare an additive model with \(\sigma_{\mathrm{add}}=0.400\) mg/L to a log-scale model with \(\sigma_{\log}=0.200\). Assume the stated residual distributions hold at both predictions.

For the additive model, the conditional standard deviation is \(0.400\) mg/L at both predictions. At \(2.00\) mg/L, its coefficient of variation is \(0.400/2.00=0.200\), or 20.0%. At \(10.0\) mg/L, it is \(0.400/10.0=0.0400\), or 4.00%. Thus relative variation declines as the prediction rises.

For the log-scale model, the coefficient of variation at either prediction is

$$ \sqrt{\exp(0.200^2)-1} =\sqrt{\exp(0.0400)-1} \approx0.202, $$

or about 20.2%. The conditional standard deviation on the concentration scale is \(f\exp(0.0200)\sqrt{\exp(0.0400)-1}\). It is approximately \(0.412\) mg/L when \(f=2.00\) mg/L and \(2.06\) mg/L when \(f=10.0\) mg/L. The standard deviation grows with concentration while the relative variability remains the same. This is the defining contrast between constant absolute and constant relative variability.

Choosing and Checking the Scale

The model assumptions should be assessed against the pattern of observations and predictions, not selected solely because one scale is familiar. Under additive error, residuals \(C-f\) should have roughly zero mean, a stable spread in concentration units, and a shape reasonably consistent with a normal distribution. Under log-scale error, residuals \(\log(C/f)\) should have roughly zero mean, a stable spread on the log scale, and a shape reasonably consistent with normality. These are conditional checks: predictions should account for the systematic concentration-time pattern before residual spread is interpreted.

A useful diagnostic is to examine residuals against predicted concentration. A fan-shaped increase in the spread of original-scale residuals can contradict constant additive variance. If the spread of log-ratio residuals is more stable across predictions, that pattern supports considering log-scale error. Conversely, roughly constant absolute residual spread may support an additive model, while log residuals may show changing spread or strong asymmetry. Neither visual pattern proves a model true; sparse observations, measurement limits, or misspecified predictions can obscure the pattern.

The log-scale model requires positive observed concentrations because \(\log(C/f)\) is undefined for \(C\leq0\). A recorded zero or a value below an assay quantification limit cannot simply be logged as though it were an ordinary positive observation. How to model such data requires an explicit treatment appropriate to the observation process. The additive normal model avoids that logarithm but has the negative-tail issue described above. Neither model should be used without considering its support and assumptions.

A combined additive and proportional error model is another common alternative when neither constant absolute nor constant relative variability is adequate. A power variance function provides a different way to let residual variance change with prediction. These alternatives do not remove the need to specify what scale is modeled and to check the resulting variance pattern. In particular, a model with a changing variance is not automatically evidence for a log-scale residual distribution; distributional shape and the mean–median distinction still matter.

These residual models are also limited by their conditional assumptions. They do not establish that the structural predictions are correct, and an apparent residual pattern can reflect structural misspecification as well as an unsuitable error scale. They assume the specified conditional distribution and variance behavior apply across the observations being modeled. They do not, by themselves, represent serial dependence, individual-specific residual variability, or distinct sources of error.

Common Mistakes

  • Calling log-scale error “constant standard deviation in concentration.” Its concentration-scale standard deviation increases with \(f\); the coefficient of variation is constant.
  • Treating \(f\) as the arithmetic mean under zero-mean log error. In \(C=f\exp(\epsilon_{\log})\), \(f\) is the median, and the mean is \(f\exp(\sigma_{\log}^2/2)\).
  • Ignoring units. \(\sigma_{\mathrm{add}}\) is measured in concentration units, while \(\sigma_{\log}\) describes variation in a log ratio and is dimensionless.
  • Assuming a normal additive model cannot produce impossible predictions. It assigns positive probability below zero; calculate or assess that probability when predictions are low.
  • Taking logarithms of zero or negative observations. The log-scale model requires positive concentrations and needs a deliberate approach to nonpositive or censored data.
  • Choosing a scale from a single residual or the largest likelihood alone. Check the assumptions and residual patterns over the relevant prediction range, and compare models on an appropriate basis.
Key takeaway: Additive normal error on the original scale implies a normal concentration distribution with constant absolute standard deviation. Normal error in the log ratio implies a lognormal concentration distribution with constant relative variability, positive support, and a median equal to \(f\) under the zero-mean formulation.

Check Your Understanding

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

  1. An additive model has \(f=4.00\) mg/L and \(\sigma_{\mathrm{add}}=0.500\) mg/L. What are the conditional mean, standard deviation, and coefficient of variation?
  2. For a log-scale model with \(\sigma_{\log}=0.300\), is \(f\) the conditional mean or median? Calculate the conditional mean as a multiple of \(f\).
  3. Why does log-scale normal error imply positive concentrations but additive normal error can imply negative concentrations?
  4. If absolute residual spread is similar at low and high predictions, which of the two models is more directly consistent with that pattern? Explain.

Solutions. (1) The mean is \(4.00\) mg/L and the standard deviation is \(0.500\) mg/L. The coefficient of variation is \(0.500/4.00=0.125\), or 12.5%. (2) \(f\) is the conditional median. The mean is \(f\exp(0.300^2/2)=f\exp(0.0450)\approx1.046f\). (3) In the log model, \(C=f\exp(\epsilon_{\log})\), and both \(f>0\) and \(\exp(\epsilon_{\log})>0\), so \(C>0\). An additive normal residual can be less than \(-f\), making \(C=f+\epsilon<0\). (4) Additive error is more directly consistent because it assumes constant absolute standard deviation in concentration units. A log-scale model instead implies increasing absolute spread as predicted concentration increases.

Clinical Biostats