Tutorials › Nonlinear Mixed-Effects Models (NLME) › Residual Variance From Assay Coefficients of Variation

Between-Subject, Between-Occasion and Residual Variability · Tutorial 128 of 797

Residual Variance From Assay Coefficients of Variation

Convert assay precision summaries into a residual variance function and evaluate whether that function is appropriate for an NLME likelihood.

Intermediate 12 min read

What You'll Learn

  • Convert a concentration-specific coefficient of variation into an assay standard deviation and variance.
  • Derive a residual variance function from a concentration-dependent CV curve.
  • Distinguish a CV-based variance specification from an assumption about the residual distribution.
  • Identify when assay precision data can reasonably inform the residual variance in an NLME likelihood.
  • Recognize common scale, bias, and data-dependence errors when using assay CVs.

From Assay Precision to Residual Variance

Assay performance is often reported as a coefficient of variation (CV), such as “the assay CV is 8% at 2 mg/L.” In an NLME model, however, the residual component is usually specified as a variance conditional on the model-predicted concentration. Converting a CV into that variance is straightforward once the scale and reference concentration are clear. The harder question is whether the reported assay CV describes the residual variation that the likelihood is meant to represent.

Let \(Y_{ij}\) be the measured concentration for subject \(i\) at observation \(j\), and let \(f_{ij}\) be the model-predicted concentration for that observation, conditional on the subject’s random effects. For a CV defined on the original concentration scale, the basic conversion uses the mean concentration as the denominator. In a model, the conditional mean \(f_{ij}\) supplies that reference value.

Definition: At a concentration with mean \(c>0\), the arithmetic-scale coefficient of variation is \(\operatorname{CV}(c)=\operatorname{SD}(Y\mid c)/c\). If the CV is \(q(c)\) as a proportion rather than a percentage, the corresponding residual standard deviation is \(q(c)c\), and the residual variance is \(v(c)=[q(c)c]^2\). Thus, a reported CV of 8% is entered as \(q=0.08\), not \(q=8\).

The conversion gives a variance function; it does not, by itself, specify a probability distribution. For example, a Gaussian residual model might use \(Y_{ij}\mid b_i\sim N(f_{ij},v(f_{ij}))\), where \(b_i\) denotes the subject-level random effects. That likelihood also assumes that the conditional mean is correctly specified and that the residual distribution is appropriate. A CV summary alone establishes neither Gaussianity nor independence.

Deriving and Using a CV-Based Function

When the assay CV varies with concentration, write it as a function \(q(c)\). Under an unbiased assay model, the conditional standard deviation at concentration \(c\) is \(q(c)c\). Squaring gives the residual variance function used in the likelihood. In an NLME model, this function is typically evaluated at the individual prediction \(f_{ij}\), not at the observed value \(Y_{ij}\).

$$ \operatorname{SD}(Y_{ij}\mid b_i)=q(f_{ij})f_{ij}, \qquad \operatorname{Var}(Y_{ij}\mid b_i)=v(f_{ij})=[q(f_{ij})f_{ij}]^2. $$

This substitution treats the prediction as the conditional mean concentration. It is appropriate only if the assay CV applies to the relevant assay, concentration range, sample matrix, and laboratory conditions, and if the measurement error represented by that CV is the residual component being modeled. For a Gaussian likelihood, the residuals are additionally assumed to be conditionally Gaussian and independent across observations, unless the model specifies another dependence structure.

A useful special case is a power-shaped CV curve. To keep units explicit, choose a reference concentration \(c_0\), and express the curve as \(q(c)=q_0(c/c_0)^{-b}\), where \(q_0\) and \(b\) are dimensionless. The implied variance is then:

$$ v(c)=\left[q_0c\left(\frac{c}{c_0}\right)^{-b}\right]^2 =q_0^2c^2\left(\frac{c}{c_0}\right)^{-2b}. $$

The exponent matters: a CV that falls as concentration increases does not imply that absolute residual variance must fall. Since the standard deviation is the CV multiplied by concentration, absolute variability can still increase, decrease, or remain roughly constant depending on the rate at which the CV changes.

Worked Example: Converting a CV at One Concentration

Suppose a hypothetical assay has an arithmetic-scale CV of 8% at a concentration of 2.00 mg/L. Assume the reported precision applies to the samples in the model and treat the conditional mean at this observation as \(f_{ij}=2.00\) mg/L. Calculate the residual standard deviation and variance.

First convert the percentage to a proportion: \(q=8/100=0.08\). The standard deviation is \(qf_{ij}\):

$$ \operatorname{SD}(Y_{ij}\mid b_i)=0.08(2.00\ \mathrm{mg/L}) =0.160\ \mathrm{mg/L}. $$

Squaring gives the variance:

$$ v(f_{ij})=(0.160\ \mathrm{mg/L})^2 =0.0256\ (\mathrm{mg/L})^2. $$

Under a Gaussian residual model, the conditional distribution would therefore be \(Y_{ij}\mid b_i\sim N(2.00,\ 0.0256)\), with the mean in mg/L and the variance in \((\mathrm{mg/L})^2\). The CV conversion supports the variance value; it does not establish that the Gaussian model is adequate.

Worked Example: Turning a Declining CV Curve Into a Variance Function

Consider hypothetical assay validation results summarized by a CV of 20% at \(c_0=1.00\) mg/L and 8% at 4.00 mg/L. Suppose a power curve \(q(c)=q_0(c/c_0)^{-b}\) is used to interpolate between these concentrations. Find \(b\), then calculate the implied variance at 2.00 mg/L.

At the reference concentration, \(q_0=0.20\). At 4.00 mg/L, the curve must satisfy \(0.08=0.20(4.00)^{-b}\), since \(4.00/1.00=4.00\). Taking logarithms and solving gives:

$$ b=\frac{\ln(0.20/0.08)}{\ln(4.00)} =\frac{\ln(2.5)}{\ln(4.00)} \approx 0.661. $$

At 2.00 mg/L, the estimated CV is \(0.20(2.00)^{-0.661}\approx0.126\), or 12.6%. The corresponding standard deviation is \(0.126(2.00\ \mathrm{mg/L})\approx0.253\ \mathrm{mg/L}\), so the variance is:

$$ v(2.00\ \mathrm{mg/L}) \approx(0.253\ \mathrm{mg/L})^2 \approx0.0640\ (\mathrm{mg/L})^2. $$

This is an interpolation based on two hypothetical summaries and an assumed power-curve form; it is not evidence that the power curve is correct outside the measured range. The estimated CV at 2.00 mg/L should be understood as a model-based value, not a directly observed validation result.

Assumptions for Use in an NLME Likelihood

A residual variance function enters the conditional likelihood for each observation. For a Gaussian specification, the contribution depends on both the residual \(Y_{ij}-f_{ij}\) and the variance \(v(f_{ij})\). The model’s random effects are then accounted for according to the NLME likelihood. Consequently, a variance function calibrated from assay data is suitable only if the assay information is compatible with the model’s conditional measurement process.

  • Comparable precision conditions. The CV must be relevant to the assay method, concentration range, sample matrix, and handling conditions represented in the modeled data. Precision from a different context may not transfer.
  • Correct scale and definition. Confirm whether the CV is the arithmetic standard deviation divided by the arithmetic mean on the concentration scale. A CV defined after a logarithmic transformation is not converted by the same formula.
  • Suitable mean reference. The conversion assumes that the assay mean at concentration \(c\) is \(c\), or that any assay bias has been handled. A systematic offset or concentration-dependent bias affects the mean model; it is not corrected by changing the variance alone.
  • Appropriate residual interpretation. Assay precision must describe the observation-level error being modeled. It should not be assumed to represent every source of unexplained variability in the data.
  • Distribution and dependence assumptions. A variance specifies only a second moment. A Gaussian likelihood additionally assumes conditional normality; independent residual contributions additionally require conditional independence. These assumptions need scientific and data-based support.

If the CV curve is estimated from a finite validation data set, its estimates are themselves uncertain. Treating an estimated curve as fixed in the NLME likelihood ignores that uncertainty. This may be a reasonable approximation when validation is extensive and precision estimates are stable, but it should be recognized as an approximation. A model that estimates residual parameters from the pharmacometric data instead answers a different question and may not reproduce the external assay information exactly.

Worked Example: Checking Residual Scaling at Two Predictions

Suppose a hypothetical assay CV curve gives a CV of 10% at 1.00 mg/L and 6% at 5.00 mg/L. For two observations, the NLME model predicts 1.00 and 5.00 mg/L, and the observed residuals are respectively \(+0.10\) and \(-0.30\) mg/L. Under the proposed Gaussian model, calculate each variance and standardized residual, then assess whether the residual sizes are consistent with their different scales.

At 1.00 mg/L, \(q=0.10\), so \(v=(0.10\times1.00)^2=0.0100\ (\mathrm{mg/L})^2\). The standardized residual is \(0.10/\sqrt{0.0100}=1.00\).

At 5.00 mg/L, \(q=0.06\), so \(v=(0.06\times5.00)^2=0.0900\ (\mathrm{mg/L})^2\). The standardized residual is \(-0.30/\sqrt{0.0900}=-1.00\).

The absolute residual is three times larger at the higher prediction, but the predicted residual standard deviation is also three times larger: 0.30 mg/L rather than 0.10 mg/L. Both standardized residuals therefore have magnitude 1.00. This calculation illustrates the variance scaling; two observations alone cannot establish that the Gaussian, independence, or CV-curve assumptions hold.

Short Justification and Alternatives

The variance conversion follows directly from the definition of CV. If the conditional mean is \(c\) and the arithmetic CV is \(q(c)\), then \(q(c)=\operatorname{SD}(Y\mid c)/c\). Multiplying both sides by \(c\) gives \(\operatorname{SD}(Y\mid c)=q(c)c\). Variance is the square of standard deviation, so \(v(c)=[q(c)c]^2\). The conversion therefore requires a positive concentration reference; at or near zero, a CV may be undefined or unstable, and an additive component or another measurement model may be needed.

A CV-derived variance function is one option among several. Constant additive error specifies a variance that does not depend on prediction; constant-CV proportional error specifies a standard deviation proportional to prediction; combined additive and proportional error includes both a baseline and a prediction-dependent component. A power error model allows a more flexible concentration pattern. A directly specified assay CV curve is attractive when reliable validation data describe precision over the relevant range, but may be less stable if those data are sparse. The choice should reflect the measurement process and supported evidence, rather than a preference for a more elaborate formula.

The formula above is for an arithmetic-scale CV and variance. If assay precision is instead summarized on a log scale, or if a lognormal residual model is intended, the observation model and parameterization must be matched to that scale. Simply squaring an arithmetic CV and inserting it as a log-scale variance is generally incorrect. Likewise, an observed value should not ordinarily be substituted for \(f_{ij}\) to make the variance depend on the outcome itself: that changes the likelihood’s dependence on the data and does not represent the stated conditional measurement model.

Common Mistakes and Practical Checks

  • Using a percentage as a proportion. Substituting 8 instead of 0.08 makes the standard deviation 100 times too large and the variance 10,000 times too large.
  • Forgetting to square. The residual variance is \([q(c)c]^2\), not \(q(c)c\). The unsquared product is the standard deviation and has concentration units.
  • Assuming a falling CV means falling variance. The variance depends on the square of the product \(q(c)c\); inspect that product rather than the CV alone.
  • Treating a CV as a complete likelihood. A CV determines a scale, not the distribution shape, conditional independence, or absence of assay bias.
  • Applying validation precision without checking comparability. A reported CV may not apply at the modeled concentrations or to the model’s samples and procedures.

A practical check is to compute \(q(f_{ij})f_{ij}\) at several representative predictions, verify the resulting units, and compare the implied residual standard deviations with assay knowledge. Values that are implausibly small, large, or sharply changing can signal a percentage conversion error, a poor interpolation or extrapolation, or a mismatch between the validation conditions and the modeled data. These checks do not replace assessment of the full observation model.

Key takeaway: For an arithmetic-scale assay CV \(q(c)\), the corresponding residual variance at conditional mean \(c\) is \(v(c)=[q(c)c]^2\). Using that function in an NLME likelihood also requires a suitable mean model, comparable assay conditions, and defensible distribution and dependence assumptions.

Check Your Understanding

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

  1. A hypothetical assay has a CV of 5% at a predicted concentration of 4.00 mg/L. What are the implied residual standard deviation and variance on the arithmetic scale?
  2. A CV curve is \(q(c)=0.10(c/2.00)^{-0.5}\), with \(c\) expressed in mg/L. Calculate the CV and variance at 8.00 mg/L.
  3. Why does a CV summary alone not justify a Gaussian likelihood?
  4. Why is substituting the observed concentration \(Y_{ij}\) for the prediction \(f_{ij}\) in the variance function generally not the same model?

Solutions. (1) The CV proportion is 0.05. The standard deviation is \(0.05(4.00)=0.200\) mg/L, and the variance is \(0.200^2=0.0400\ (\mathrm{mg/L})^2\). (2) The concentration ratio is \(8.00/2.00=4\), so \(q(8.00)=0.10(4^{-0.5})=0.0500\), or 5.00%. The standard deviation is \(0.0500(8.00)=0.400\) mg/L, giving variance \(0.160\ (\mathrm{mg/L})^2\). (3) A CV specifies the standard deviation relative to the mean, and hence a variance, but does not specify the shape of the residual distribution. Gaussianity is an additional assumption. (4) The intended conditional variance is a function of the model-predicted conditional mean. Making it a function of the observed outcome makes the variance depend on the realized response and changes the likelihood specification.