Tutorials › Pharmacometric Workflows and Reproducible Modeling › Sources Of Parameter Uncertainty In Simulation

Simulation Pipelines · Tutorial 236 of 399

Sources Of Parameter Uncertainty In Simulation

Learn to identify parameter uncertainty, individual variability, and residual error, and decide which belong in a simulation for a specified target.

Advanced 12 min read

What You'll Learn

  • Distinguish uncertainty in estimated population parameters from variation among individuals and residual error.
  • Identify what the estimate covariance describes—and what it does not.
  • Map each uncertainty source to a simulation target.
  • Calculate a prediction’s approximate parameter uncertainty using a derivative.
  • Diagnose when a simulation includes the wrong sources or relies on unsupported assumptions.
  • Compare fixed-estimate predictions with simulations that propagate additional uncertainty.

Why the Source of Uncertainty Matters

A simulation can vary for several different reasons. The population parameter estimates may be uncertain because the data are finite; individuals may differ from one another under the population model; and observed measurements may depart from their model-predicted values because of residual error. These sources are not interchangeable. Including the wrong one can make a simulation answer a different question from the one intended.

For example, a prediction for a typical individual at the fitted population parameters is not the same target as a prediction for a new individual, nor is either the same as a prediction that also reflects uncertainty in the fitted parameters. Before drawing any values, specify the target: what quantity is to be simulated, for whom, and which sources of variation or uncertainty it is intended to represent?

Definition: Parameter uncertainty is uncertainty about the values of model parameters, arising because they were estimated from finite or otherwise limited data. Individual variability is variation among individuals represented by random effects in the population model. Residual error is variation between an observation and the model prediction for that individual, conditional on the model parameters and individual effects.

Three Sources, Three Interpretations

Let \(\theta\) denote the population parameters, such as typical clearance or the population mean of a covariate effect. The fitted estimate is \(\hat{\theta}\). A measure such as \(\widehat{\operatorname{Cov}}(\hat{\theta})\) describes uncertainty in the estimated parameters, conditional on the model and estimation procedure. It is not the same object as \(\Omega\), the covariance matrix of individual random effects \(\eta\). Residual error is represented by a separate model for \(\epsilon\), whose form and scale depend on the specified observation model.

In a common hierarchical representation, an individual parameter depends on both the population parameters and that individual’s random effect. An observation then depends on the individual parameter and may also include residual error. For example, a log-normal clearance model can be written as \(CL_i=CL_{\mathrm{pop}}\exp(\eta_i)\), where \(CL_{\mathrm{pop}}\) is typical clearance and \(\eta_i\) is an individual random effect. An observation model might then add residual error to the predicted concentration. The random effect describes differences among individuals; it is not a draw from uncertainty in the estimated \(CL_{\mathrm{pop}}\).

The distinction is clearest when the target is stated explicitly. A typical-individual prediction at \(\hat{\theta}\) holds the parameters fixed and sets individual effects to their typical values. A new-individual prediction allows individual effects to vary. A simulated future observation may also include residual error. A prediction that propagates estimation uncertainty additionally represents uncertainty about \(\theta\), rather than treating \(\hat{\theta}\) as known.

SourceWhat variesTypical representationInclude when the target asks for
Parameter uncertaintyUnknown population parameters around their estimatesUncertainty measure for \(\hat{\theta}\)Prediction uncertainty due to estimating the model
Individual variabilityIndividual effects around the population model\(\eta_i\) with covariance \(\Omega\)Outcomes or parameters for new individuals
Residual errorObservation around the individual-level prediction\(\epsilon\) under the residual error modelFuture measured observations

These sources can coexist, but they answer different questions. Individual variability and residual error are generally included by the model for the simulated individual or observation; parameter uncertainty is included only when uncertainty in the fitted population parameters belongs to the target. The targets introduced in conditional and unconditional simulation are useful here: a simulation conditional on fixed parameters does not, by itself, propagate uncertainty in those parameter estimates.

A Justification for Combining Uncertainty Sources

A simple decomposition shows why the sources should be identified before combining them. Suppose a scalar outcome is \(Y=\theta+\eta+\epsilon\), where \(\theta\) is uncertain given the fitted data \(D\), and \(\eta\) and \(\epsilon\) have conditional means zero. Assume, for this illustration, that the two error terms are independent of each other and of \(\theta\), with variances \(\sigma_\eta^2\) and \(\sigma_\epsilon^2\). The law of total variance gives

$$ \operatorname{Var}(Y\mid D) = \operatorname{E}\!\left[\operatorname{Var}(Y\mid\theta,D)\mid D\right] + \operatorname{Var}\!\left(\operatorname{E}[Y\mid\theta,D]\mid D\right). $$

Given \(\theta\), the conditional variance is \(\sigma_\eta^2+\sigma_\epsilon^2\), and the conditional mean is \(\theta\). Substitution therefore yields

$$ \operatorname{Var}(Y\mid D) = \sigma_\eta^2+\sigma_\epsilon^2+\operatorname{Var}(\theta\mid D). $$

The three terms have different interpretations: variability among individuals, residual variability in observations, and uncertainty in the population parameter. This sum depends on the stated assumptions and the additive example. In nonlinear models, transformations of random effects, heteroscedastic residual error, or dependence among sources can change the calculation. The general lesson remains: define the target and model first; do not add variance components mechanically.

Worked Example: Parameter Uncertainty in a Typical-Individual Prediction

Suppose a one-compartment bolus model has a fitted typical clearance of \(\widehat{CL}_{\mathrm{pop}}=5.00\) L/h and volume \(V=50.0\) L. For a 100 mg dose, the concentration at \(t=2.00\) h for a typical individual is \(C(t)=\frac{\mathrm{Dose}}{V}\exp(-CL_{\mathrm{pop}}t/V)\). Assume, for this calculation, that \(V\) and the dose are fixed and that the standard error of \(\widehat{CL}_{\mathrm{pop}}\) is 0.500 L/h. The target is uncertainty in this typical-individual prediction due to estimating clearance only.

At the fitted value,

$$ \hat{C}(2) = \frac{100\ \mathrm{mg}}{50.0\ \mathrm{L}} \exp\!\left(-\frac{(5.00\ \mathrm{L/h})(2.00\ \mathrm{h})}{50.0\ \mathrm{L}}\right) = 2.00\exp(-0.200) = 1.637\ \mathrm{mg/L}. $$

A first-order approximation to the standard error of a smooth function \(C(CL_{\mathrm{pop}})\) is the absolute derivative at the estimate multiplied by the standard error of the estimate. Here,

$$ \frac{\partial C}{\partial CL_{\mathrm{pop}}} = -\frac{t}{V}C, \qquad SE(\hat{C}) \approx \left|\frac{\partial C}{\partial CL_{\mathrm{pop}}}\right| SE(\widehat{CL}_{\mathrm{pop}}) = \left(\frac{2.00\ \mathrm{h}}{50.0\ \mathrm{L}}\right) (1.637\ \mathrm{mg/L})(0.500\ \mathrm{L/h}) = 0.0327\ \mathrm{mg/L}. $$

Thus the approximate standard error due to clearance-estimation uncertainty is 0.0327 mg/L. This is not the between-individual standard deviation of concentration and is not the residual standard deviation of a measured concentration. The calculation holds \(V\) fixed and excludes individual effects and residual error, as required by the stated target. It is a local approximation, most defensible when uncertainty is modest and the prediction changes smoothly over plausible clearance values.

Worked Example: A Log-Normal Individual Effect Is Not Parameter Uncertainty

Suppose the fitted typical clearance is 5.00 L/h and an individual’s clearance is modeled as \(CL_i=5.00\exp(\eta_i)\) L/h, with \(\eta_i\sim N(0,0.25^2)\). A log-normal random effect with log-scale standard deviation \(\omega\) implies an original-scale coefficient of variation \(\sqrt{\exp(\omega^2)-1}\). Therefore, the clearance coefficient of variation among individuals is

$$ \sqrt{\exp(0.25^2)-1} = \sqrt{\exp(0.0625)-1} = 0.254, $$

or about 25.4%. This describes individual variability under the model, not uncertainty in the fitted typical clearance. Now consider a hypothetical individual with \(\eta_i=0.200\). Their clearance is \(5.00\exp(0.200)=6.107\) L/h. With \(V=50.0\) L and a 100 mg bolus dose, their predicted concentration at 2.00 h, before residual error, is

$$ C_i(2) = \frac{100}{50.0}\exp\!\left(-\frac{(6.107)(2.00)}{50.0}\right) = 2.00\exp(-0.2443) = 1.567\ \mathrm{mg/L}. $$

If the residual model is additive with standard deviation 0.200 mg/L, a hypothetical residual draw of \(+0.100\) mg/L gives an observation of \(1.567+0.100=1.667\) mg/L. The individual effect changed the predicted concentration; the residual draw changed the observation around that prediction. Neither draw represents uncertainty in the fitted 5.00 L/h estimate.

Worked Example: Choosing Sources for a Future-Individual Target

For a transparent variance calculation, suppose a future individual’s scalar outcome follows \(Y=\theta+\eta+\epsilon\), in outcome units. The fitted population value is \(\hat{\theta}=10.0\), its standard error is 0.300, the individual-effect standard deviation is 0.500, and the residual standard deviation is 0.200. Assume the three sources are independent, have mean zero around the stated population value where applicable, and the target is a future measured outcome for one new individual.

For a single future measured outcome, the variance accounting for all three sources is

$$ 0.300^2+0.500^2+0.200^2 = 0.0900+0.250+0.0400 = 0.380. $$

The corresponding standard deviation is \(\sqrt{0.380}=0.616\) outcome units. If instead the target were the model-predicted outcome for a new individual before measurement error, exclude the residual term: the variance is \(0.0900+0.250=0.340\), and the standard deviation is \(\sqrt{0.340}=0.583\) outcome units. If the target were a typical-individual prediction with fixed fitted parameters, both \(\eta\) and \(\epsilon\) would be excluded, and the prediction would be 10.0 outcome units; that target does not claim to include parameter uncertainty.

These calculations depend on the simple additive model and independence assumptions. In an actual nonlinear pharmacometric model, one should define whether the target is a model prediction or a future observation, and then include only the relevant mechanisms under the specified model.

Assumptions, Diagnostics, and Failure Modes

A simulation that represents these sources is only as meaningful as its assumptions. Parameter uncertainty is conditional on the fitted model, available data, and estimation procedure; it does not automatically capture uncertainty about model structure, omitted covariates, data quality, or whether the target population is appropriate. Likewise, \(\Omega\) describes the individual variability encoded in the model, and the residual error model describes deviations conditional on that model. Neither should be interpreted as a general allowance for every unmodeled difference.

Before interpreting results, check that the uncertainty measure refers to the parameters actually varied, that units are consistent, and that the simulated quantity matches the target. A standard error for clearance in L/h cannot be used as a residual standard deviation in mg/L. If the target is a typical-individual prediction, adding \(\eta\) or \(\epsilon\) changes the target; if it is a future observation, omitting both may understate the variation the target is meant to include. A useful diagnostic is to label every source in the simulation specification and verify that each simulated quantity has a clear interpretation.

For nonlinear predictions, a first-order uncertainty approximation can be inaccurate when parameter uncertainty is large, the prediction is strongly curved, or a parameter is near a constraint. Compare the approximate calculation with direct evaluations over a plausible range of parameter values. If estimates are strongly dependent, treating each parameter’s uncertainty as unrelated can also misrepresent prediction uncertainty. The uncertainty representation should preserve relevant dependence; the mechanics of generating correlated parameter draws are a separate topic.

A point prediction at fitted parameters is the simplest alternative. It is appropriate when the target is explicitly conditional on those estimates, but it does not express parameter uncertainty. A simulation with individual effects addresses between-individual variability; adding residual error addresses future observed values. Methods based on resampling fitted data or Bayesian posterior draws can provide other representations of estimation uncertainty, but they have their own assumptions and are not interchangeable without regard to the target or estimation framework.

Common Mistake: Calling Every Spread “Parameter Uncertainty”

A frequent error is to see a wide simulated distribution and describe it as uncertainty in the estimated population parameters. That conclusion is not justified if the spread came from drawing individual random effects or residual error while keeping the fitted parameters fixed. Conversely, a narrow distribution from repeated predictions at one fixed estimate does not establish that the parameter estimates are precise; the simulation may simply have omitted parameter uncertainty.

The correction is to state what was held fixed and what was varied. For example: “This distribution varies individual random effects and residual error at the fitted population estimates; it does not propagate estimation uncertainty in those estimates.” That wording identifies what the simulation can support without overstating its interpretation.

Key takeaway: Match uncertainty sources to the target. Parameter uncertainty concerns estimated population parameters; individual variability concerns differences among individuals; residual error concerns observations around individual-level predictions. Name the included and excluded sources when reporting a simulation.

Check Your Understanding

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

  1. A simulation holds \(\hat{\theta}\) fixed but draws new individual random effects. Which source is represented, and which is not?
  2. A study wants the distribution of future measured concentrations for new individuals. Which of the three sources may be relevant, and what target distinction should be stated?
  3. In the additive example \(Y=\theta+\eta+\epsilon\), suppose the parameter standard error is 0.400, the individual-effect standard deviation is 0.300, and the residual standard deviation is 0.100. Under the independence assumptions, what is the standard deviation for a future measured outcome for one individual?
  4. Why is a concentration residual standard deviation not an appropriate substitute for the standard error of a clearance estimate?
  5. State one limitation of interpreting uncertainty in fitted parameters as a complete measure of uncertainty in a prediction.

Solutions. (1) The simulation represents individual variability through the random effects, but not parameter uncertainty because the fitted population parameters are held fixed. Residual error is also absent unless separately simulated. (2) Individual variability and residual error are relevant for a future measured concentration; parameter uncertainty is also relevant if the target includes uncertainty from estimating the population parameters. State whether the target is a model-predicted concentration before measurement error or a future observation. (3) The variance is \(0.400^2+0.300^2+0.100^2=0.160+0.0900+0.0100=0.260\), so the standard deviation is \(\sqrt{0.260}=0.510\) outcome units. (4) They refer to different quantities and generally have different units: the residual standard deviation describes measurement-scale deviations, while the clearance standard error describes uncertainty in an estimated clearance parameter. (5) Parameter uncertainty is conditional on the fitted model and estimation framework; it does not automatically include model misspecification, omitted variables, or uncertainty about the target population.

Clinical Biostats