Tutorials › Quantitative Systems Pharmacology (QSP) › Predictive Distributions for Placebo-Controlled Treatment Effects

Propagating Uncertainty to Clinical Predictions · Tutorial 738 of 799

Predictive Distributions for Placebo-Controlled Treatment Effects

Simulate both arms under the same uncertain QSP parameters, then distinguish uncertainty about the treatment contrast from patient-level and finite-trial variability.

Advanced 12 min read

What You'll Learn

  • Define predictive treatment effects for population means and finite randomized trials.
  • Simulate treatment and placebo arms under matched draws of uncertain model parameters.
  • Decompose contrast variance into parameter uncertainty and conditional trial variability.
  • Identify how shared parameter uncertainty induces covariance between arm predictions.
  • Calculate predictive probabilities for clinically meaningful treatment effects.
  • Recognize when independent marginal pairing or plug-in predictions misrepresent uncertainty.

Why the Treatment–Placebo Contrast Needs Joint Prediction

A clinical prediction often concerns a contrast: the difference between an outcome under treatment and the outcome under placebo. Uncertainty in that contrast depends not only on uncertainty in each arm, but also on how the two arm predictions vary together. In a QSP analysis, both arms usually depend on the same uncertain biological and clinical parameters. A parameter draw that raises the predicted outcome in one arm may also raise the outcome in the other. The resulting covariance can make the treatment–placebo contrast more or less uncertain than separate arm summaries suggest.

The goal is to preserve this dependence while propagating model uncertainty. For each draw of uncertain parameters, predict both arms, calculate their contrast, and then summarize the resulting distribution. If the target is a finite trial rather than a population mean, also simulate patient-level variability and the trial’s randomization and sampling process.

Definition: Let \(\theta\) denote uncertain QSP parameters, with a specified distribution representing parameter uncertainty. Let \(\mu_T(\theta)\) and \(\mu_P(\theta)\) be the predicted population mean outcomes under treatment and placebo, respectively, at those same parameter values. For the direction “treatment minus placebo,” the parameter-conditional treatment effect is \(\Delta(\theta)=\mu_T(\theta)-\mu_P(\theta)\). Its predictive distribution is the distribution of \(\Delta(\theta)\) as \(\theta\) varies. A finite-trial contrast, such as \(\bar{Y}_T-\bar{Y}_P\), additionally varies because patients and outcomes are sampled within each trial.

The parameter distribution may represent uncertainty in fitted parameters or another explicitly justified source of uncertainty. It is not automatically a distribution of patient-to-patient variability: the two sources have different meanings and enter predictions differently. The prediction target must also be stated. A distribution for the difference in population means is not the same as a distribution for the observed contrast in a finite randomized trial.

Constructing the Joint Predictive Distribution

For each simulation replicate, draw one parameter vector \(\theta^{(b)}\) and use it for both arms. Calculate \(\mu_T(\theta^{(b)})\), \(\mu_P(\theta^{(b)})\), and their difference. Repeating this for \(B\) draws gives \(B\) paired contrasts. Pairing here means that the two arm predictions in a replicate share the same uncertain parameters; it does not mean that one trial participant receives both treatments.

$$ \Delta^{(b)} = \mu_T(\theta^{(b)})-\mu_P(\theta^{(b)}), \qquad b=1,\ldots,B. $$

The empirical distribution of these contrasts approximates the predictive distribution of the population-mean effect. Its mean, spread, quantiles, or probability of exceeding a clinical threshold can be reported according to the decision question. If the outcome is one for which lower values are preferable, the contrast direction should be defined accordingly, or the sign should be reversed before interpretation.

For a finite-trial prediction, simulate patient outcomes and assign patients to arms according to the trial design, conditional on the same parameter draw. Let \(\bar{Y}_T\) and \(\bar{Y}_P\) be the simulated arm means, with sample sizes \(n_T\) and \(n_P\). If the arms are conditionally independent given \(\theta\), their contrast has conditional variance equal to the sum of their conditional sampling variances. More generally, the conditional covariance must be retained.

$$ \operatorname{Var}(\bar{Y}_T-\bar{Y}_P\mid\theta) = \operatorname{Var}(\bar{Y}_T\mid\theta) + \operatorname{Var}(\bar{Y}_P\mid\theta) - 2\operatorname{Cov}(\bar{Y}_T,\bar{Y}_P\mid\theta). $$

For independent patients sampled into the two arms, with conditional outcome variances \(\sigma_T^2(\theta)\) and \(\sigma_P^2(\theta)\), the conditional covariance is zero and the conditional variance is \(\sigma_T^2(\theta)/n_T+\sigma_P^2(\theta)/n_P\). This describes variability within a trial at fixed parameters. It does not include uncertainty about which parameter values are plausible.

Why Shared Parameter Draws Matter

The variance of the population-mean contrast follows directly from the variance formula for a difference. The two arm means are functions of the same random parameter vector, so their covariance is generally not zero.

Result: Under the parameter distribution used for prediction, $$ \operatorname{Var}(\Delta) = \operatorname{Var}(\mu_T(\theta)) + \operatorname{Var}(\mu_P(\theta)) - 2\operatorname{Cov}(\mu_T(\theta),\mu_P(\theta)). $$ The covariance is calculated across shared parameter draws. It is not a covariance between two outcomes observed in the same person.

This result follows by expanding the square of the centered contrast. Write \(A=\mu_T(\theta)\) and \(C=\mu_P(\theta)\). Then \(\Delta-E(\Delta)=(A-E(A))-(C-E(C))\). Squaring and taking expectations gives the variance of \(A\), plus the variance of \(C\), minus twice their covariance. Thus even if each arm’s marginal predictive distribution is estimated correctly, subtracting independently paired draws from those distributions generally gives the wrong contrast variance: it replaces the actual covariance with zero.

For a finite-trial contrast, the law of total variance separates two sources of variation. If the conditional mean of the simulated contrast is \(\Delta(\theta)\), then

$$ \operatorname{Var}(\bar{Y}_T-\bar{Y}_P) = \operatorname{Var}_{\theta}(\Delta(\theta)) + E_{\theta}\!\left[ \operatorname{Var}(\bar{Y}_T-\bar{Y}_P\mid\theta) \right]. $$

The first term is uncertainty in the population-mean contrast across parameter values. The second is expected trial-to-trial variability conditional on those values, including patient-level variability and finite sample sizes. This decomposition assumes the conditional mean of the trial contrast is the stated population contrast; if the design, estimand, or analysis changes that target, the conditional mean must be defined accordingly.

Worked Example: Shared Parameters Reduce Contrast Uncertainty

Suppose three equally weighted parameter draws give predicted treatment means of 4, 5, and 6 mg/L and placebo means of 1, 3, and 5 mg/L. These are hypothetical population-mean predictions; no patient-level variability is included. Calculate the treatment-effect distribution and compare its variance with independent pairing of the arm predictions.

Using the same draw in both arms, the contrasts are \(4-1=3\), \(5-3=2\), and \(6-5=1\) mg/L. Their mean is \((3+2+1)/3=2\) mg/L. Their variance under the equally weighted parameter distribution is

$$ \operatorname{Var}(\Delta) = \frac{(3-2)^2+(2-2)^2+(1-2)^2}{3} = \frac{2}{3} \approx 0.667\text{ (mg/L)}^2. $$

The treatment-arm mean is 5 mg/L, with variance \(\bigl[(-1)^2+0^2+1^2\bigr]/3=2/3\text{ (mg/L)}^2\). The placebo-arm mean is 3 mg/L, with variance \(\bigl[(-2)^2+0^2+2^2\bigr]/3=8/3\text{ (mg/L)}^2\). Their covariance across the shared draws is

$$ \operatorname{Cov}(\mu_T,\mu_P) = \frac{(-1)(-2)+0(0)+(1)(2)}{3} = \frac{4}{3}\text{ (mg/L)}^2. $$

Substituting the exact values confirms the contrast variance:

$$ \frac{2}{3}+\frac{8}{3}-2\left(\frac{4}{3}\right) = \frac{2}{3} \approx 0.667\text{ (mg/L)}^2. $$

If treatment and placebo predictions were instead paired independently from their marginal lists, the induced covariance would be zero. The resulting variance would be \(2/3+8/3=10/3\approx3.333\text{ (mg/L)}^2\), not the variance of the shared-parameter contrast. The marginal arm predictions have not changed; the dependence needed to calculate the contrast has been discarded.

Adding Patient and Trial Variability

A population-mean effect does not show how much observed trial contrasts may vary because of finite enrollment and variable outcomes. The next example adds that source while keeping it separate from parameter uncertainty. Assume a parallel trial with 25 patients per arm, independent patients across arms conditional on the parameter draw, and outcome variances of 4 and 9 (mg/L)\(^2\) in the treatment and placebo arms, respectively, at either parameter setting.

Worked Example: Decomposing a Finite-Trial Contrast

Consider two equally likely parameter settings. At setting A, the treatment and placebo means are 10 and 8 mg/L; at setting B, they are 8 and 7 mg/L. For each setting, simulate both arms under that same setting. Find the predictive mean and variance of the trial contrast.

The conditional treatment effects are \(10-8=2\) mg/L and \(8-7=1\) mg/L. Their mean is 1.5 mg/L, and their parameter-uncertainty variance is

$$ \operatorname{Var}_{\theta}(\Delta) = \frac{(2-1.5)^2+(1-1.5)^2}{2} = 0.25\text{ (mg/L)}^2. $$

At either setting, independent arm sampling gives conditional trial-contrast variance \(4/25+9/25=13/25=0.52\text{ (mg/L)}^2\). The expected conditional variance is therefore also 0.52 (mg/L)\(^2\). By the law of total variance, the predictive variance of the finite-trial contrast is \(0.25+0.52=0.77\text{ (mg/L)}^2\), giving a predictive standard deviation of \(\sqrt{0.77}\approx0.8775\) mg/L.

Here 0.25 (mg/L)\(^2\) quantifies uncertainty in the population-mean effect across parameter settings. The additional 0.52 (mg/L)\(^2\) is expected sampling variability at fixed parameters. The standard deviation of 0.8775 mg/L describes the combined predictive spread of trial contrasts under these assumptions; it is not an estimate of within-arm patient variability alone.

A useful diagnostic is to check that the simulation reflects the intended layers of uncertainty. At fixed parameters, replicate trials should vary because patients and outcomes vary. Across parameter draws, the conditional arm means may shift together or in different directions. If the simulated treatment and placebo means move together but the calculated contrasts do not preserve that movement, inspect whether both arms actually used the same parameter draw.

Predictive Probabilities and Practical Summaries

A decision may depend on whether the effect exceeds a meaningful threshold rather than on its mean alone. Estimate such a probability by counting shared-draw contrasts that meet the specified criterion and dividing by the number of draws. The threshold, contrast direction, prediction target, and source of uncertainty should be reported. For finite-trial probabilities, use simulated trial contrasts; for a probability about the population-mean effect, use \(\Delta(\theta)\) draws instead.

Worked Example: Probability of a Clinically Meaningful Effect

Suppose five equally weighted, hypothetical shared parameter draws produce the following treatment and placebo population means, in mg/L. Assume a reduction is beneficial and define the effect as placebo minus treatment, so positive values favor treatment.

DrawTreatment mean (mg/L)Placebo mean (mg/L)Effect, placebo minus treatment (mg/L)
110111
211132
312142
413163
518257

If a reduction of at least 2 mg/L is the decision threshold, four of the five draws meet it. The empirical predictive probability is \(4/5=0.800\). The mean effect is \((1+2+2+3+7)/5=3\) mg/L. These summaries answer different questions: the mean is the average effect over the specified parameter distribution, while 0.800 is the fraction of draws with an effect at or above the stated threshold. With only five draws, the fraction is a coarse approximation, not a precise probability estimate.

Alternatives, Limitations, and Common Pitfalls

A plug-in prediction calculates both arms at one selected parameter estimate. It can be useful as a central scenario, but it produces no parameter-uncertainty distribution and cannot by itself quantify the chance of crossing a clinical threshold. Drawing separately from each arm’s marginal predictive distribution is also inadequate for a contrast unless independence is justified by the model and design; in general, it removes the covariance induced by shared parameters. A paired-patient simulation can represent a different estimand or design, such as a within-person comparison, but should not be substituted for a parallel randomized trial without justification.

Common random numbers may be used when simulating stochastic outcomes to reduce numerical noise in a comparison, but this computational choice is not a license to impose an incorrect patient-level dependence. The simulation must still reflect the intended trial design. Likewise, if randomization, stratification, or shared design features create conditional covariance between arm summaries, the conditional covariance term must be included rather than assuming independent arm means.

  • Wrong reasoning: “The two arms have their own predictive distributions, so I can independently pair their draws and subtract.” Correction: Use the same uncertain parameter draw for both arms, then subtract. Independent pairing generally destroys the parameter-induced covariance.
  • Wrong reasoning: “The variance of the treatment contrast is just the variance within the treatment arm plus the variance within placebo.” Correction: For a contrast, subtract twice the covariance; for a finite trial, also distinguish conditional sampling variance from parameter uncertainty.
  • Wrong reasoning: “The spread of simulated trial contrasts is all parameter uncertainty.” Correction: Trial contrasts also vary because of patient outcomes and finite sample sizes. Use the conditional-variance decomposition to report these components separately.

The predictive distribution is only as relevant as its assumptions: the parameter distribution, patient population, endpoint definition, trial design, and outcome model must match the intended use. A simulation cannot repair an inappropriate target population or an implausible parameter distribution. Summaries should therefore identify whether they concern population means or finite trials and whether parameter uncertainty, patient variability, or both were propagated.

Check Your Understanding

Answer each question, then check the solutions below.

  1. Two parameter draws give treatment means 6 and 8 mg/L and placebo means 4 and 7 mg/L. What paired contrasts do they produce?
  2. If the two arm means have variances 3 and 5 (mg/L)\(^2\), with covariance 2 (mg/L)\(^2\) across shared parameter draws, what is the variance of their contrast?
  3. A finite-trial contrast has parameter-uncertainty variance 0.30 and expected conditional sampling variance 0.70, both in units squared. What is its total predictive variance, and what does each component represent?
  4. Why is independently pairing marginal arm draws generally not appropriate for a placebo-controlled contrast?

Solutions. (1) The shared-draw contrasts are \(6-4=2\) and \(8-7=1\) mg/L. (2) The contrast variance is \(3+5-2(2)=4\text{ (mg/L)}^2\). (3) The total is \(0.30+0.70=1.00\) units squared; 0.30 is uncertainty in the population-mean contrast across parameters, and 0.70 is expected finite-trial variability conditional on parameters. (4) Independent pairing sets the covariance between the arm predictions to zero by construction, which generally discards the dependence induced by their shared uncertain parameters and can misstate contrast uncertainty.

Clinical Biostats