Tutorials › Population Pharmacokinetics › Using Replicate Concentrations To Identify Residual Variance

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

Using Replicate Concentrations To Identify Residual Variance

Use replicate concentrations to estimate residual variance and understand what that estimate can—and cannot—say about between-subject variability.

Intermediate 10 min read

What You'll Learn

  • State the assumptions that make replicate measurements informative about residual variance.
  • Derive the within-replicate sample-variance estimator and a pooled estimator.
  • Use replicate differences to remove shared subject-level concentration.
  • Separate residual variance from between-subject variation in a balanced example.
  • Recognize when replicate measurements do not provide an independent estimate of assay error.
  • Diagnose unequal variance, correlated replicates, and inappropriate pooling.

Why Replicates Help Separate Sources of Variation

A concentration measurement can vary because subjects differ in their pharmacokinetic parameters, because a subject’s concentration differs from the structural model prediction, or because repeated measurements of the same sample are not identical. Replicate measurements at the same time point are useful because they share the subject and the underlying concentration at that time. Under suitable assumptions, their differences therefore reveal within-sample residual variation without including between-subject variation.

The key is to distinguish a replicate measurement from a new subject or a new time point. Two concentrations from different subjects can differ because the subjects have different parameter values. Two measurements of the same sample at the same time share those subject-specific parameters and the same underlying concentration, so a difference between them can be attributed to measurement-level variation—provided the replicate errors are independent and the sample itself is genuinely shared.

Definition: A replicate concentration is an additional measurement of the same subject’s concentration at the same time point, under a specified sampling and assay procedure. The within-replicate residual variance is the variance among those measurements conditional on the shared underlying concentration and subject-level effects.

This interpretation depends on what “replicate” means in the data. Repeated assays of aliquots from one collected sample primarily inform assay-level error. Separate blood draws at nearly the same time may also include collection and short-term biological variation. The earlier material on Separating Assay Error From Structural Model Error is relevant here: replicate measurements do not automatically identify every source of model discrepancy.

Model and Estimator

Let \(Y_{ijr}\) be the \(r\)th replicate concentration for subject \(i\) at time \(t_{ij}\). Write the observation as a shared subject-and-time concentration plus a replicate-specific residual:

$$ Y_{ijr}=\mu_{ij}+\epsilon_{ijr}, \qquad \mu_{ij}=f(t_{ij},D_i,\eta_i;\theta). $$

Here \(f\) is the structural pharmacokinetic model, \(D_i\) denotes the subject’s dose information, \(\eta_i\) represents subject-level random effects, and \(\theta\) denotes population parameters. At a particular subject and time, all replicates have the same \(\mu_{ij}\). For the simplest variance calculation, assume that conditional on \(\mu_{ij}\), replicate residuals have mean zero, common variance \(\sigma^2\), and are independent:

$$ E(\epsilon_{ijr}\mid\mu_{ij})=0, \qquad \operatorname{Var}(\epsilon_{ijr}\mid\mu_{ij})=\sigma^2, \qquad \operatorname{Cov}(\epsilon_{ijr},\epsilon_{ijs}\mid\mu_{ij})=0 \quad(r\ne s). $$

For \(m_{ij}\) replicates in one subject-time cell, calculate their sample mean and sample variance. The mean describes the cell’s observed concentration level; the variance describes the spread around that mean.

$$ \bar{Y}_{ij}=\frac{1}{m_{ij}}\sum_{r=1}^{m_{ij}}Y_{ijr}, \qquad S_{ij}^{2}= \frac{\sum_{r=1}^{m_{ij}}(Y_{ijr}-\bar{Y}_{ij})^2}{m_{ij}-1}. $$

The sample variance uses deviations from the replicate mean, not from the population model prediction. That choice removes the unknown shared concentration from the calculation. If residual variance is constant across the cells being pooled, a pooled estimate is:

$$ \widehat{\sigma}^{2}_{\mathrm{within}}= \frac{\displaystyle\sum_{i,j}\sum_{r=1}^{m_{ij}} (Y_{ijr}-\bar{Y}_{ij})^2} {\displaystyle\sum_{i,j}(m_{ij}-1)}. $$

Why the Shared Concentration Cancels

The estimator’s justification follows directly from the replicate model. For one cell, \(Y_r=\mu+\epsilon_r\), so \(Y_r-\bar{Y}=\epsilon_r-\bar{\epsilon}\). The shared concentration \(\mu\), which includes the subject’s parameter effects, disappears. The expected sum of squared deviations is then:

$$ \begin{aligned} \sum_{r=1}^{m}(Y_r-\bar{Y})^2 &=\sum_{r=1}^{m}(\epsilon_r-\bar{\epsilon})^2\\ &=\sum_{r=1}^{m}\epsilon_r^2-m\bar{\epsilon}^{\,2},\\ E\left[\sum_{r=1}^{m}(Y_r-\bar{Y})^2\mid\mu\right] &=m\sigma^2-m\frac{\sigma^2}{m} =(m-1)\sigma^2. \end{aligned} $$

The last equality uses independent, zero-mean residuals with variance \(\sigma^2\), which imply \(E(\bar{\epsilon}^{\,2}\mid\mu)=\sigma^2/m\). Dividing by \(m-1\) therefore gives an unbiased estimate of the conditional residual variance. Summing these within-cell sums of squares and dividing by their total degrees of freedom gives the pooled estimator when the same residual variance applies to every included cell.

Replicate differences give the same cancellation in another form. For two replicates, \(Y_r-Y_s=\epsilon_r-\epsilon_s\), so under independence its variance is \(2\sigma^2\). A large difference is evidence of substantial within-sample residual variation; it is not evidence that the subject’s parameters changed between those two measurements.

Worked Example: Estimating Variance From One Triplicate

Suppose three replicate assays of one hypothetical sample at one time point give 8.8, 9.2, and 9.0 ng/mL. Assume they share the same underlying concentration and have independent errors with a common variance.

The replicate mean is \(\bar{Y}=(8.8+9.2+9.0)/3=9.0\) ng/mL. The sample variance is:

$$ S^2= \frac{(8.8-9.0)^2+(9.2-9.0)^2+(9.0-9.0)^2}{3-1} =\frac{0.04+0.04+0}{2} =0.0400\;(\mathrm{ng/mL})^2. $$

The estimated within-sample standard deviation is \(\sqrt{0.0400}=0.200\) ng/mL. This calculation estimates local residual spread for measurements made under the stated conditions. It does not estimate how much subjects’ clearance, volume, or other parameters vary in the population.

Worked Example: Pooling Replicate Variances Across Cells

In a hypothetical data set, three subjects each have triplicate measurements at one time point. The measurements, in ng/mL, are A: 9.8, 10.0, 10.2; B: 19.7, 20.0, 20.3; and C: 29.9, 30.1, 30.0. Suppose a common residual variance is reasonable across these cells.

The three cell means are 10.0, 20.0, and 30.0 ng/mL. Their within-cell sums of squares are:

$$ \begin{aligned} SS_A&=(-0.2)^2+0^2+(0.2)^2=0.0800,\\ SS_B&=(-0.3)^2+0^2+(0.3)^2=0.1800,\\ SS_C&=(-0.1)^2+(0.1)^2+0^2=0.0200. \end{aligned} $$

There are \(3(3-1)=6\) within-cell degrees of freedom. Thus:

$$ \widehat{\sigma}^{2}_{\mathrm{within}} =\frac{0.0800+0.1800+0.0200}{6} =\frac{0.2800}{6} =0.04667\;(\mathrm{ng/mL})^2, \qquad \widehat{\sigma}_{\mathrm{within}}=0.2160\;\mathrm{ng/mL}. $$

The cell means differ greatly, but those between-subject differences do not enter the pooled numerator. Pooling is justified here only if the residual variance can be treated as common across the cells. If variability changes with concentration, this single pooled number may conceal that pattern.

Replicate Variation Versus Between-Subject Variation

The within-cell estimator removes the shared subject-time level. To see how a between-subject component can be distinguished in a simple balanced setting, consider a model at one fixed time:

$$ Y_{ir}=\mu+b_i+\epsilon_{ir}, \qquad \operatorname{Var}(b_i)=\omega^2, \qquad \operatorname{Var}(\epsilon_{ir})=\sigma^2. $$

Here \(b_i\) is a subject-level deviation and \(\epsilon_{ir}\) is replicate residual error. Assume subjects are independent, residuals are independent of subject effects, and each subject has the same number \(m\) of independent replicates. A subject’s replicate mean then has variance \(\omega^2+\sigma^2/m\): averaging reduces residual variance, but it does not remove the subject effect. This gives a simple method-of-moments estimate of \(\omega^2\), the variance among subjects’ concentration levels at that time:

$$ \widehat{\omega}^{2}_{\mathrm{mom}} =S_{\bar{Y}}^2-\frac{\widehat{\sigma}^{2}_{\mathrm{within}}}{m}, $$

where \(S_{\bar{Y}}^2\) is the sample variance of the subject replicate means. This is a simple decomposition, not a general replacement for fitting the population model. In particular, \(\omega^2\) at one time point is not itself the variance of a specific pharmacokinetic parameter; the mapping from parameter variation to concentration variation depends on the structural model and time.

Worked Example: A Simple Between-Subject Variance Decomposition

Four hypothetical subjects each have two replicates at the same time. Their measurements, in ng/mL, are (9, 11), (19, 21), (14, 16), and (24, 26). Assume a common residual variance and the balanced random-intercept model above.

Each subject’s replicate mean is 10, 20, 15, and 25 ng/mL. The within-subject sums of squares are 2, 2, 2, and 2, so the pooled within estimate is \(\widehat{\sigma}^{2}_{\mathrm{within}}=8/[4(2-1)]=2.000\;(\mathrm{ng/mL})^2\).

The mean of the four subject means is 17.5 ng/mL. Their squared deviations sum to \(56.25+6.25+6.25+56.25=125\), giving \(S_{\bar{Y}}^2=125/(4-1)=41.67\;(\mathrm{ng/mL})^2\). Since each mean averages two replicates:

$$ \widehat{\omega}^{2}_{\mathrm{mom}} =41.67-\frac{2.000}{2} =40.67\;(\mathrm{ng/mL})^2. $$

The between-subject spread of replicate means is much larger than the residual contribution to their variance, which is estimated as \(2/2=1.000\;(\mathrm{ng/mL})^2\). This calculation separates the two components under the stated model. It does not establish that any particular PK parameter has a variance of 40.67; that would require relating concentration variation to the parameter model.

Assumptions, Diagnostics, and Alternatives

Before interpreting a replicate-based estimate, check what was replicated and whether the assumptions fit the design. In particular, the measurements should share the same underlying concentration, and replicate errors should be independent conditional on it. If replicates are correlated, then:

$$ \operatorname{Var}(Y_r-Y_s\mid\mu) =2\sigma^2-2\operatorname{Cov}(\epsilon_r,\epsilon_s\mid\mu). $$

Positive correlation makes replicate differences smaller than they would be under independence. Treating those differences as independent evidence can therefore underestimate the residual variance. Shared batch effects, use of the same preparation step, or other common measurement processes can create this problem.

Useful checks include examining within-cell spreads across subjects and concentration levels, confirming the number of replicates contributing to each estimate, and checking for data-entry or assay anomalies. A single extreme replicate can strongly affect a sample variance, especially when there are only two or three measurements. A negative method-of-moments estimate of \(\omega^2\) can also occur when subject-mean variation is small relative to the estimated residual contribution; it signals weak evidence for a positive component under this calculation, not a physically negative variance.

ApproachWhat it usesMain interpretation or limitation
Within-cell replicate varianceDeviations among measurements sharing subject and timeDirectly estimates local residual variance under the replicate assumptions
Between-subject spread of replicate meansDifferences among subjects’ averaged concentrationsIncludes subject-level variation and the reduced residual contribution
Single measurement per subject-timeOne observation in each cellCannot isolate within-cell variance by calculating a cell-specific replicate variance
Population-model likelihood estimationThe full concentration data and specified random-effect and residual modelsUses the PK structure, but its conclusions depend on model specification and identifiability

Replicates are most informative when they are genuine repeated measurements of a shared sample and the residual model is appropriate. A constant-variance estimate should not be pooled indiscriminately across a range of concentrations if residual spread changes with concentration. In that case, estimate or model variability in a way that respects the scale and variance assumptions of the data. Replicate information can clarify the residual component, but it does not by itself resolve every ambiguity between structural error and other sources of variability.

Key takeaway: Measurements that share subject, time, and underlying concentration can isolate within-sample residual variation because their pairwise differences cancel the shared level. Between-subject differences require a separate comparison and remain distinct from variability in any particular PK parameter.

Check Your Understanding

Answer each question using the assumptions stated in the tutorial. Solutions follow the questions.

  1. Two replicates from one sample are 4.7 and 5.3 ng/mL. What is their sample variance?
  2. Why does the within-cell sample variance not include the shared subject-specific concentration?
  3. For \(m=4\) independent replicates, how many within-cell degrees of freedom contribute to a pooled variance estimate?
  4. In the balanced variance-component model, the subject-mean variance is 12.0 and the within estimate is 3.0, with \(m=3\). Calculate the method-of-moments estimate of between-subject variance.
  5. What happens to the variance of replicate differences if two replicate errors have positive covariance?

Solutions. (1) The mean is 5.0 ng/mL, so \(S^2=[(4.7-5.0)^2+(5.3-5.0)^2]/(2-1)=0.1800\;(\mathrm{ng/mL})^2\). (2) Subtracting the replicate mean removes the common concentration: \(Y_r-\bar{Y}=\epsilon_r-\bar{\epsilon}\). (3) The degrees of freedom are \(m-1=3\). (4) \(\widehat{\omega}^2_{\mathrm{mom}}=12.0-3.0/3=11.0\) in the squared concentration units. (5) The difference variance is \(2\sigma^2-2\operatorname{Cov}(\epsilon_r,\epsilon_s)\), so positive covariance reduces it relative to the independent-error value.

Clinical Biostats