Tutorials › Population Pharmacokinetics › Separating Between-Occasion and Between-Patient Variability

Therapeutic Drug Monitoring and Individual Predictions · Tutorial 544 of 599

Separating Between-Occasion and Between-Patient Variability

You will separate persistent patient differences from temporary occasion deviations and see how each changes a forecast for a new dosing occasion.

Advanced 11 min read

What You'll Learn

  • Define patient-level and occasion-specific random effects in a repeated-concentration model.
  • Use covariance across occasions to distinguish persistent variability from occasion variability.
  • Update a patient effect using repeated occasion summaries while accounting for occasion noise.
  • Construct a forecast for a new occasion that includes the appropriate occasion variability.
  • Recognize when the independence and equal-variance assumptions behind the separation are implausible.

Why the Source of Variability Matters

Repeated concentration measurements from one patient need not agree perfectly, even when the dose, sampling time, and clinical conditions appear unchanged. Some differences reflect a persistent characteristic of that patient, such as a consistently higher exposure than the population average. Other differences are temporary: a particular dosing occasion may produce concentrations above or below that patient’s usual level. Treating both sources as one undifferentiated patient effect can make forecasts for a new occasion too confident or can make a temporary deviation look like a permanent patient characteristic.

The distinction matters when using earlier observations to forecast a future dosing occasion. Evidence repeated across occasions is informative about a persistent patient effect. An unusually high result on just one occasion may instead reflect that occasion’s deviation. Even if the patient effect were known exactly, a future occasion can still differ from the patient’s usual level.

Definition: A between-patient random effect, written \(\eta_i\) for patient \(i\), represents a persistent departure of that patient from the population typical value. A between-occasion random effect, written \(\kappa_{ik}\) for patient \(i\) on occasion \(k\), represents a temporary departure specific to that patient and occasion. The same \(\eta_i\) applies across that patient’s occasions; a new \(\kappa_{ik}\) applies to each occasion.

A Model That Separates the Components

To make the distinction precise, consider a fixed dose regimen and fixed sampling design. Let \(Z_{ik}\) be a log-concentration summary for patient \(i\) on occasion \(k\), after accounting for the expected effect of the dose, sampling time, and recorded covariates. The summary could be a transformed concentration at a specified sampling time or a suitable occasion-level summary. Use the model

$$ Z_{ik}=\mu+\eta_i+\kappa_{ik}+\epsilon_{ik}. $$

Here \(\mu\) is the population typical value on the log scale. Assume \(\eta_i\sim N(0,\omega^2)\), \(\kappa_{ik}\sim N(0,\pi^2)\), and \(\epsilon_{ik}\sim N(0,\sigma^2)\). The three terms have mean zero, are mutually independent, and are independent across patients; occasion effects and residual errors are also independent across occasions. The residual \(\epsilon_{ik}\) represents remaining measurement-level variation in this simplified summary model. These assumptions are a working model, not facts guaranteed by repeated measurement. In this tutorial, forecast calculations isolate the random effects and do not develop propagation of assay or residual error.

Because the response is on the log scale, differences in \(\eta_i\) and \(\kappa_{ik}\) correspond to multiplicative differences on the concentration scale. The model assumes the same variance components across patients and occasions, and it assumes that occasion deviations do not persist from one occasion to the next. The dose history and sampling conditions must be represented adequately in the expected value; otherwise a systematic change can be mistaken for a random occasion effect.

Key result: For two different occasions \(k\ne l\) in the same patient, the model implies \(\operatorname{Cov}(Z_{ik},Z_{il})=\omega^2\). The persistent patient effect is shared across those observations; the occasion effects and residual errors are not. For a single observation, \(\operatorname{Var}(Z_{ik})=\omega^2+\pi^2+\sigma^2\).

Why Repeated Occasions Separate Persistent and Temporary Variation

The covariance result follows directly by centering each observation at \(\mu\):

$$ \begin{aligned} \operatorname{Cov}(Z_{ik},Z_{il}) &=\operatorname{Cov}(\eta_i+\kappa_{ik}+\epsilon_{ik}, \eta_i+\kappa_{il}+\epsilon_{il})\\ &=\operatorname{Var}(\eta_i)\\ &=\omega^2,\qquad k\ne l. \end{aligned} $$

All cross-covariances involving independent terms are zero. The variance of the difference between two occasions for the same patient gives another view:

$$ \operatorname{Var}(Z_{ik}-Z_{il}) =\operatorname{Var}(\kappa_{ik}-\kappa_{il}) +\operatorname{Var}(\epsilon_{ik}-\epsilon_{il}) =2\pi^2+2\sigma^2. $$

The patient effect cancels in this within-patient contrast. In practice, variance components are inferred from many patients and repeated occasions, rather than calculated exactly from a single pair. The covariance and contrast identities explain which features of the data inform each component. With only one occasion per patient, the total variance alone generally cannot identify all three components without additional information or assumptions.

Worked Example: Reading the Variance Components

Suppose a hypothetical fitted model for log-concentration summaries has \(\omega^2=0.16\), \(\pi^2=0.09\), and \(\sigma^2=0.04\). Assume the stated independence model is appropriate and compare two observations from the same patient on different occasions.

The variance of one observation is

$$ 0.16+0.09+0.04=0.29. $$

The covariance between the two occasions is \(0.16\), because only the patient effect is shared. Their correlation is therefore \(0.16/0.29=0.5517\). This is positive dependence from the persistent patient effect, not evidence that the occasions share the same occasion deviation.

The variance of their difference is

$$ 2(0.09)+2(0.04)=0.26. $$

Thus the patient-level component contributes to the total spread across patients but disappears from the within-patient contrast. The occasion and residual components remain in that contrast.

Updating a Patient Effect for a Future Occasion

Suppose the population mean \(\mu\) and variance components are treated as known for an individual forecast. Let \(Y_{ik}\) be an occasion summary with known measurement-error variance \(v\), so that after integrating over the occasion effect and summary error,

$$ Y_{ik}\mid\eta_i\sim N(\mu+\eta_i,\pi^2+v). $$

Assume the summaries are conditionally independent across occasions given \(\eta_i\). With \(K\) observed occasions, their mean is \(\bar{Y}_i\). The prior is \(\eta_i\sim N(0,\omega^2)\). Combining this normal prior with the normal likelihood gives a normal posterior. Its mean and variance are

$$ \begin{aligned} E(\eta_i\mid \mathbf{Y}_i) &=\frac{\omega^2}{\omega^2+(\pi^2+v)/K}(\bar{Y}_i-\mu),\\ \operatorname{Var}(\eta_i\mid \mathbf{Y}_i) &=\left(\frac{1}{\omega^2}+\frac{K}{\pi^2+v}\right)^{-1}. \end{aligned} $$

The posterior mean is a weighted version of the patient’s average deviation from \(\mu\). The weight is less than one because observed deviations include occasion variation and summary error as well as the persistent patient effect. More independent occasions reduce the contribution of temporary deviations to the average. A future occasion has a new independent effect \(\kappa_{i,\mathrm{new}}\); it is not the occasion effect estimated from a past occasion.

Worked Example: Updating From Two Occasions

For a hypothetical patient, let \(\mu=2.00\) log-concentration units, \(\omega^2=0.16\), \(\pi^2=0.09\), and \(v=0.04\). The two observed occasion summaries are \(2.30\) and \(2.10\). Assume the model above and the same sampling design on both occasions.

The observed mean is \(\bar{Y}_i=(2.30+2.10)/2=2.20\), so the mean deviation from the population value is \(0.20\). The variance of one summary conditional on \(\eta_i\) is \(\pi^2+v=0.13\). With \(K=2\), the posterior weight is

$$ \frac{0.16}{0.16+0.13/2} =\frac{0.16}{0.225} =0.7111. $$

Therefore the posterior mean of the patient effect is \(0.7111(0.20)=0.1422\) log units. Its posterior variance is

$$ \left(\frac{1}{0.16}+\frac{2}{0.13}\right)^{-1} =(6.25+15.3846)^{-1} =0.04622. $$

For a new occasion, the expected log-concentration summary is \(2.00+0.1422=2.142\) log units. Before adding any measurement-level error, its predictive variance is \(0.04622+0.09=0.1362\): posterior uncertainty about the persistent effect plus the new occasion variance. The new occasion effect contributes even though two past occasions were observed.

Worked Example: Why One High Occasion Should Not Be Carried Forward Unchanged

Use the same hypothetical population parameters and summary-error variance as above, but suppose only one occasion is observed, with \(Y_{i1}=2.50\). This is \(0.50\) log units above \(\mu=2.00\). Under the model, one occasion’s deviation includes both \(\eta_i\) and a new occasion deviation, so it does not establish that the patient’s persistent effect is \(0.50\).

The posterior weight on the observed deviation is

$$ \frac{0.16}{0.16+0.13}=0.5517. $$

The posterior mean patient effect is \(0.5517(0.50)=0.2759\) log units, not \(0.50\). The posterior variance is

$$ \left(\frac{1}{0.16}+\frac{1}{0.13}\right)^{-1} =(6.25+7.6923)^{-1} =0.07172. $$

The predicted mean for a new occasion is \(2.00+0.2759=2.276\) log units, and its biological predictive variance is \(0.07172+0.09=0.1617\). The forecast is pulled toward the population value because one high occasion is noisy evidence about the persistent effect. It also retains the variance of a fresh occasion.

Forecasting, Diagnostics, and Alternatives

A forecast for the same already-observed occasion is not the same target as a forecast for a new occasion. If the target is the same occasion, its \(\kappa_{ik}\) is shared with observations from that occasion and may be informed by them. If the target is a future occasion, its random effect is a new draw under the independent-occasion model. For a new occasion, the predictive mean on the log scale is \(\mu+E(\eta_i\mid\mathbf{Y}_i)\), while the variance of the latent occasion summary is \(\operatorname{Var}(\eta_i\mid\mathbf{Y}_i)+\pi^2\). This expression deliberately excludes residual and assay error.

The model should be questioned when observed patterns conflict with its assumptions. Useful checks include whether within-patient differences vary systematically with time, dose history, or sampling conditions; whether occasion deviations appear correlated across successive occasions; and whether the spread differs substantially across patients or across the range of predicted concentrations. A systematic shift after a dose change or clinical change is not automatically random occasion variability. If such structure is ignored, the estimated \(\pi^2\) may absorb a predictable change and forecasts can be misleading.

The random-effects decomposition is not the only approach. A model with only \(\eta_i\) assumes no additional occasion-level variation beyond residual error; it may understate uncertainty for a future occasion when genuine occasion differences exist. A model with only an occasion effect but no \(\eta_i\) cannot represent persistent differences between patients. Occasion-specific fixed effects can be suitable when occasions represent a small set of scientifically meaningful conditions, but they do not by themselves describe a distribution of new occasion deviations. Covariates or a time-varying model may be preferable when occasion changes are systematic or correlated rather than independent random departures.

Separation also depends on the data. Many patients with repeated occasions are more informative about between-patient covariance than a small number of patients with many observations each. Repeated observations within occasions can help distinguish occasion shifts from measurement-level error, but identifying variance components remains difficult if the design has too few occasions or the components are very small. A fitted variance near zero can reflect limited information as well as a genuinely negligible component.

Common Mistake

Wrong reasoning: “This patient’s concentration was high on one occasion, so the patient effect must be equally high, and I should carry that level into the next occasion.” This assigns the entire observed deviation to \(\eta_i\), despite the model’s separate \(\kappa_{ik}\) and \(\epsilon_{ik}\) terms.

Correction: Update the persistent effect using the population prior and the uncertainty from occasion variation and measurement error. Then forecast a new occasion with a fresh occasion deviation. Repeatedly high or low results across occasions provide stronger evidence for a persistent patient difference than a single extreme occasion, while still not eliminating uncertainty about a future occasion.

Key takeaway: Patient effects persist across occasions; occasion effects do not. Repeated observations share information about the former, while forecasts for a new occasion must retain uncertainty from the latter.

Check Your Understanding

Answer each question using the model and assumptions in this tutorial. Brief solutions follow the questions.

  1. Which random effect is shared by two different occasions from the same patient, and what is their covariance under the model?
  2. If \(\omega^2=0.12\), \(\pi^2=0.05\), and \(\sigma^2=0.03\), what is the variance of one observation and the variance of a within-patient difference between two independent occasions?
  3. Why does averaging several occasion summaries make the patient-effect estimate more reliable?
  4. For a new occasion, should the forecast reuse the occasion effect from the most recent observed occasion? Explain.

Solutions. (1) The shared effect is \(\eta_i\), so the covariance is \(\omega^2\). (2) The single-observation variance is \(0.12+0.05+0.03=0.20\); the difference variance is \(2(0.05)+2(0.03)=0.16\), because the patient effect cancels. (3) Independent occasion deviations contribute less to the average as the number of occasions increases, while the same persistent effect contributes to every occasion. (4) No. Under the independent-occasion model, the future occasion receives a new \(\kappa_{i,\mathrm{new}}\); the past occasion effect is not carried forward.

Clinical Biostats