Tutorials › Quantitative Systems Pharmacology (QSP) › Separating Epistemic Uncertainty From Patient Variability

Propagating Uncertainty to Clinical Predictions · Tutorial 718 of 799

Separating Epistemic Uncertainty From Patient Variability

Learn to represent shared parameter uncertainty and patient variability separately, propagate them through predictions, and interpret their distinct effects on individuals and populations.

Advanced 12 min read

What You'll Learn

  • Define shared epistemic uncertainty and patient-level variability in a QSP prediction.
  • Distinguish an individual prediction from a conditional population distribution and a population mean.
  • Derive the variance decomposition separating parameter uncertainty from patient variability.
  • Calculate how the two sources affect an individual prediction and a simulated cohort mean.
  • Diagnose common simulation errors that confuse uncertainty about the model with variation among patients.

Two Sources of Spread, Two Different Questions

A QSP model can produce a broad range of predicted clinical outcomes for two fundamentally different reasons. The model may be uncertain about a biological parameter shared by all patients, such as a drug-effect coefficient. Even if that parameter were known, patients may differ in their physiology, baseline state, or other patient-level characteristics. These sources can both spread predictions, but they answer different questions and should not be treated as interchangeable.

The distinction matters when interpreting a virtual population. A prediction for one patient concerns both what is unknown about the shared model and how that patient differs from others. A prediction of the population distribution describes patient-to-patient differences under a specified model. A prediction of the population mean asks how uncertain that mean remains when shared model parameters are uncertain. Keeping those targets distinct prevents a model from turning uncertainty about one shared mechanism into artificial differences among patients.

Definition: Epistemic parameter uncertainty is uncertainty about the value of a model parameter that is shared across the patients represented by the model. Represent the uncertain parameter vector by \(\boldsymbol{\Theta}\), with an ensemble or probability distribution describing plausible parameter values. Patient variability is variation in patient-level quantities, represented by a random vector \(U\) with a specified population distribution. For a clinical prediction \(Y=g(\boldsymbol{\Theta},U)\), the parameter draw is shared across a simulated cohort, while \(U\) varies across patients.

This representation distinguishes the roles of the two inputs, not necessarily their scientific origins. For example, individual random effects may describe patient variability, while uncertain parameters governing the mean or spread of those effects are epistemic. A population distribution for \(U\) is treated as specified in the calculations below; uncertainty about that distribution would be another source of epistemic uncertainty.

The distinction also depends on the prediction target. Conditional on a fixed parameter value, the distribution of \(Y\) across \(U\) describes patient variability. Across plausible parameter values, the conditional population mean may itself vary. If the target is one future patient's outcome, both sources matter. If the target is the expected outcome in an effectively infinite population, patient variability determines the distribution of individual outcomes but does not by itself make that population mean uncertain once the parameters are fixed.

A Decomposition for a Clinical Prediction

Assume that \(Y=g(\boldsymbol{\Theta},U)\) has finite variance, that the parameter ensemble represents uncertainty about shared parameters, and that the distribution of \(U\) represents patient variability. Define the conditional population mean and conditional patient variance as

$$ m(\boldsymbol{\Theta})=E[Y\mid\boldsymbol{\Theta}], \qquad v(\boldsymbol{\Theta})=\operatorname{Var}(Y\mid\boldsymbol{\Theta}). $$

The conditional quantities describe a population under one fixed parameter draw. Averaging \(m(\boldsymbol{\Theta})\) across parameter draws gives the overall predictive mean. The variance of an individual prediction across both sources has the exact decomposition

$$ \operatorname{Var}(Y) = \operatorname{Var}_{\boldsymbol{\Theta}}\!\bigl(m(\boldsymbol{\Theta})\bigr) + E_{\boldsymbol{\Theta}}\!\bigl[v(\boldsymbol{\Theta})\bigr]. $$

The first term is the spread in conditional population means across plausible shared parameter values. The second is the average patient-to-patient variance within a fixed parameter draw. This identity separates the sources of spread for an individual prediction; it does not say that the two terms have the same scientific interpretation.

Why the Decomposition Holds

Write \(Y-E[Y]\) as the sum of a between-parameter component and a within-parameter component:

$$ Y-E[Y] = \bigl(m(\boldsymbol{\Theta})-E[Y]\bigr) + \bigl(Y-m(\boldsymbol{\Theta})\bigr). $$

Squaring and taking expectations gives the variance of \(Y\). The cross-product has expectation zero because its conditional expectation given \(\boldsymbol{\Theta}\) is zero:

$$ E\!\left[ \bigl(m(\boldsymbol{\Theta})-E[Y]\bigr) \bigl(Y-m(\boldsymbol{\Theta})\bigr) \right] = E\!\left[ \bigl(m(\boldsymbol{\Theta})-E[Y]\bigr) E\!\left[Y-m(\boldsymbol{\Theta})\mid\boldsymbol{\Theta}\right] \right] =0. $$

The remaining squared terms are \(\operatorname{Var}_{\boldsymbol{\Theta}}(m(\boldsymbol{\Theta}))\) and \(E_{\boldsymbol{\Theta}}[\operatorname{Var}(Y\mid\boldsymbol{\Theta})]\), which yields the stated result. The justification requires finite second moments and well-defined conditional distributions; it does not require a linear model or normally distributed predictions.

Worked Example: A Shared Biomarker Effect and Patient Differences

Suppose a hypothetical QSP prediction of biomarker change, in arbitrary biomarker units, is \(Y=\Theta+U\). The shared parameter ensemble assigns equal weight to \(\Theta=8,10,12\). Within the patient population, \(U=-2\) or \(U=2\) with equal probability, independently of the parameter draw. Calculate the two variance components and describe what they mean.

The parameter mean is \((8+10+12)/3=10\). Its variance is

$$ \operatorname{Var}(\Theta) = \frac{(8-10)^2+(10-10)^2+(12-10)^2}{3} = \frac{8}{3} \approx 2.667\ \text{biomarker units}^2. $$

Since \(E[U]=0\), the conditional population mean is \(m(\Theta)=E[Y\mid\Theta]=\Theta\). Thus the epistemic contribution to the variance of an individual prediction is \(8/3\). The patient-level variance at any fixed \(\Theta\) is \(\operatorname{Var}(U)=4\ \text{biomarker units}^2\). Therefore,

$$ \operatorname{Var}(Y) = \frac{8}{3}+4 = \frac{20}{3} \approx 6.667\ \text{biomarker units}^2. $$

The \(8/3\) component describes uncertainty about the population mean across parameter draws. The 4 component describes variation among patients under any one fixed draw. For example, under \(\Theta=10\), individual predictions are 8 or 12; that within-population spread is not evidence that the shared parameter differs from patient to patient.

Individual Outcomes and Population Means

A population distribution and its mean are different prediction targets. With a fixed parameter draw, patient variability determines how dispersed individual outcomes are around the conditional mean. In an infinitely large population, that mean is \(m(\boldsymbol{\Theta})\). Across parameter draws, \(m(\boldsymbol{\Theta})\) can change, so the population mean can remain uncertain even when patient-to-patient variation averages away.

For a simulated cohort of \(N\) patients, the average outcome has an additional finite-cohort component. If patients are independent draws from the specified patient distribution conditional on the shared parameter, then

$$ \operatorname{Var}(\bar{Y}_N) = \operatorname{Var}_{\boldsymbol{\Theta}}\!\bigl(m(\boldsymbol{\Theta})\bigr) + E_{\boldsymbol{\Theta}}\!\left[\frac{v(\boldsymbol{\Theta})}{N}\right]. $$

The first term does not shrink as more patients are simulated: drawing more patients under the same uncertain parameter does not reveal which shared parameter value is correct. The second term is the sampling variation of a finite cohort mean and decreases with \(N\) under the stated conditional independence assumption. This is a property of the simulated mean, not a claim that biological variability in individuals disappears.

Worked Example: Why a Larger Virtual Cohort Does Not Resolve Parameter Uncertainty

Suppose a hypothetical clinical endpoint in milligrams per litre is \(Y=\Theta+U\). The shared parameter is equally likely to be 5 or 7 mg/L, and patient deviations are \(U=-1\) or \(1\) mg/L with equal probability. Consider a cohort of \(N=100\) independent patients conditional on the shared parameter. Find the variance of an individual prediction and of the cohort mean.

The parameter mean is 6 mg/L and its variance is \(((5-6)^2+(7-6)^2)/2=1\ (\text{mg/L})^2\). The patient variance is \(1\ (\text{mg/L})^2\). For one individual, the total predictive variance is \(1+1=2\ (\text{mg/L})^2\).

For the cohort mean, the shared parameter contribution remains 1. The patient contribution is divided by the cohort size:

$$ \operatorname{Var}(\bar{Y}_{100}) = 1+\frac{1}{100} = 1.01\ (\text{mg/L})^2. $$

Increasing the cohort size would further reduce the \(0.01\) patient-sampling contribution, but would not reduce the 1 \((\text{mg/L})^2\) contribution from uncertainty about \(\Theta\). Simulating a very large cohort under one parameter draw can estimate that draw's population mean precisely; it cannot establish that the draw is the correct parameter value.

Nonlinearity Can Make Patient Spread Depend on the Parameter

The two sources need not contribute additively in the model equation. If a parameter changes how strongly a patient characteristic affects the endpoint, then the patient variance can differ across parameter draws. The decomposition still applies, but the conditional patient variance \(v(\boldsymbol{\Theta})\) must be evaluated at each draw rather than assumed constant.

Worked Example: A Parameter Changes the Effect of Patient Size

For a hypothetical endpoint \(Y=\Theta U\), let \(\Theta\) be equally likely to equal 1 or 2. Let patient size \(U\) be equally likely to equal 2 or 4, independently of \(\Theta\). Both quantities are in arbitrary units. Calculate the mean, the epistemic contribution, and the average patient-variability contribution.

The patient mean is \(E[U]=(2+4)/2=3\), and its variance is \(((2-3)^2+(4-3)^2)/2=1\). Conditional on \(\Theta\), the population mean is \(m(\Theta)=3\Theta\), so it equals 3 or 6 with equal probability. Its overall mean is 4.5, and its variance is

$$ \operatorname{Var}_{\Theta}(m(\Theta)) = \frac{(3-4.5)^2+(6-4.5)^2}{2} = 2.25. $$

For a fixed \(\Theta\), \(\operatorname{Var}(Y\mid\Theta)=\Theta^2\operatorname{Var}(U)=\Theta^2\). It is 1 when \(\Theta=1\) and 4 when \(\Theta=2\), so its average over the parameter ensemble is \((1+4)/2=2.5\). The total variance of an individual prediction is therefore \(2.25+2.5=4.75\) endpoint-units squared. This calculation shows why one should compute patient variability conditional on each parameter draw before averaging it.

Simulation Practice, Diagnostics, and Limitations

A direct simulation should preserve the shared-versus-patient distinction. For each parameter draw, use that same draw for every patient in its simulated cohort; then draw patient-level characteristics according to the specified population distribution. Summarize outcomes within each parameter draw to inspect conditional population predictions, and compare those summaries across draws to inspect epistemic uncertainty. Pooling all simulated outcomes can be useful for an individual predictive distribution, but by itself it obscures which source produced the spread.

Two common alternatives answer narrower questions. A plug-in prediction fixes parameters at one selected value and varies patients, thereby describing patient variability conditional on that value but omitting parameter uncertainty. A parameter ensemble with no patient variation shows how the population prediction changes across plausible parameters but omits the distribution of individual outcomes. Neither is a complete substitute when the goal is to describe both sources. A nested simulation represents both, provided its sampling structure matches the clinical target.

Check the simulation design and summaries for these failure modes:

  • Resampling the shared parameter for every patient. This makes patients appear to have different values of a parameter that is supposed to be shared. It converts epistemic uncertainty into artificial patient heterogeneity. Keep a parameter draw fixed across the cohort it represents.
  • Calling the pooled spread “patient variability.” A pooled outcome distribution can contain both parameter uncertainty and patient differences. Compare within-draw patient distributions with the variation in their conditional means.
  • Assuming a larger virtual cohort resolves every source of uncertainty. Conditional patient-sampling variation in a cohort mean can shrink with cohort size; uncertainty in a shared parameter does not shrink merely because more patients are simulated.
  • Assuming patient variance is constant across parameter draws. This can fail when the model is nonlinear or when parameters change the response to patient characteristics. Evaluate the conditional spread at each draw.

These calculations are conditional on the chosen model, parameter ensemble, and patient distribution. They do not automatically include structural model uncertainty, uncertainty in the patient distribution itself, measurement error, or other sources not represented in \(Y=g(\boldsymbol{\Theta},U)\). Nor does the variance decomposition determine whether the ensemble or patient distribution is scientifically adequate; those require separate evaluation. The decomposition organizes represented uncertainty and variability rather than validating their inputs.

Key takeaway: A shared parameter draw shifts or reshapes predictions for a cohort; patient-level inputs generate differences among members of that cohort. For an individual prediction, both can contribute to spread. For a population mean, patient variation averages out only to the extent that the target is a large population or a sufficiently large independent cohort; uncertainty in shared parameters remains.

Check Your Understanding

Answer each question, then compare with the brief solutions.

  1. A parameter is uncertain but shared by all patients in a simulated cohort. Should it be redrawn separately for every patient? Explain.
  2. At a fixed parameter value, individual outcomes have mean 20 and variance 9. Across parameter draws, the conditional means have variance 4. What is the variance of an individual prediction under the decomposition?
  3. In a cohort mean, which component decreases as the number of independent patients increases: variation in conditional population means across parameter draws, or patient-sampling variation?
  4. Why can the average patient-variability contribution depend on the parameter draw in a nonlinear model?

Solutions. (1) No. A shared draw represents one plausible model parameter value for the cohort; redrawing it by patient falsely creates between-patient parameter variation. (2) The total is \(4+9=13\) outcome-units squared. (3) The patient-sampling component decreases as \(1/N\) under conditional independence; variation in the shared-parameter conditional means does not decrease just by enlarging the cohort. (4) The parameter can alter how patient-level characteristics affect the outcome, changing \(\operatorname{Var}(Y\mid\boldsymbol{\Theta})\) across draws.

Clinical Biostats