Tutorials › Bayesian Clinical Trials › Prior Predictive Implications of a Treatment Contrast

Prior Predictive Checks · Tutorial 77 of 696

Prior Predictive Implications of a Treatment Contrast

You will learn to assess the clinical implications of priors for a binary treatment contrast while keeping parameter uncertainty separate from trial-to-trial sampling variation.

Intermediate 12 min read

What You'll Learn

  • Define the latent treatment-minus-control response-rate contrast and distinguish its induced prior from prior predictive distributions of observable outcomes.
  • Calculate the mean and variance of a contrast under independent beta priors.
  • Derive prior predictive distributions for treatment and control event counts.
  • Compare the implications of a prior for latent effect sizes with those for observed rate differences.
  • Diagnose priors that imply implausibly broad clinical effects or predictive trial outcomes.

Why Examine the Contrast Before the Trial?

For a binary endpoint, a prior can imply treatment and control response rates that look reasonable when considered one at a time, yet imply implausibly large differences between them. A prior predictive check of treatment contrast makes that implication visible before trial outcomes are observed. For example, a prior may place substantial probability on treatment improving the response rate by 40 percentage points, even if the expected rates in each arm seem modest.

It is important to distinguish two quantities. The latent treatment contrast is a function of unknown response probabilities; its distribution under the parameter prior is an induced prior distribution. Future event counts, or a difference calculated from those counts, are observable random quantities; their distribution after averaging over the parameter prior is the prior predictive distribution. The latter includes both parameter uncertainty and sampling variation.

Definition: Let \(p_T\) and \(p_C\) be the probabilities of the specified binary response in the treatment and control arms. The latent treatment-minus-control contrast is \(\Delta=p_T-p_C\), measured in probability units (or percentage points after multiplying by 100). The induced prior distribution of \(\Delta\) is the distribution implied by the priors for \(p_T\) and \(p_C\). If \(X_T\) and \(X_C\) are future event counts, the prior predictive distribution of \((X_T,X_C)\) averages their sampling distribution over those priors.

The sign has a clinical interpretation only after the endpoint is defined. If the event is a desirable response, positive \(\Delta\) favors treatment; if the event is an adverse outcome, negative \(\Delta\) may favor treatment. The numerical contrast is always treatment minus control, but the clinical direction of benefit depends on what counts as an event.

Model and Assumptions

Suppose the trial will enroll fixed numbers \(n_T\) and \(n_C\) in the two arms, and each participant has a binary endpoint recorded once. Conditional on the arm-specific response probabilities, assume outcomes are independent within and between arms, with a common response probability within each arm. The sampling model is

$$ X_T\mid p_T\sim\operatorname{Binomial}(n_T,p_T),\qquad X_C\mid p_C\sim\operatorname{Binomial}(n_C,p_C). $$

For the calculations below, the priors are independent beta distributions:

$$ p_T\sim\operatorname{Beta}(a_T,b_T),\qquad p_C\sim\operatorname{Beta}(a_C,b_C),\qquad p_T\perp p_C. $$

These assumptions mean that each arm’s response probability is constant across its participants, that each participant contributes one binary outcome, and that the two arm probabilities are independent before data are observed. Independence of the priors is a modeling choice, not a consequence of randomization. If the design or prior specification instead links the arm probabilities, the induced contrast and prior predictive calculations must reflect that dependence. The calculations also concern the specified endpoint and follow-up definition; a change in either can change what response rates are clinically plausible.

Key distinction: The induced prior distribution of \(\Delta\) describes uncertainty about the latent response-rate difference. The prior predictive distribution describes future observable data, such as \((X_T,X_C)\), or \(D=X_T/n_T-X_C/n_C\). Even if the latent rates were known, \(D\) would vary from trial to trial because of sampling variation.

Summarizing the Induced Prior for the Contrast

For a beta random variable with parameters \(a,b\), the mean is \(a/(a+b)\), and the variance is \(ab/[(a+b)^2(a+b+1)]\). Under independent arm priors, linearity of expectation and independence give

$$ E(\Delta)=E(p_T)-E(p_C), \qquad \operatorname{Var}(\Delta)=\operatorname{Var}(p_T)+\operatorname{Var}(p_C). $$

The contrast mean alone is not a measure of how much prior probability lies on clinically large effects. Its variance, quantiles, and probabilities of crossing prespecified clinical thresholds are also informative. Because beta-distributed probabilities are bounded between zero and one, \(\Delta\) is bounded between negative one and one, but that mathematical bound does not guarantee clinical plausibility.

Worked Example: Two Arm Priors With the Same Mean

Consider a hypothetical trial with \(p_C\sim\operatorname{Beta}(2,8)\) and \(p_T\sim\operatorname{Beta}(4,16)\), independently. Both priors have mean response rate \(0.20\). Calculate the induced prior mean and standard deviation of \(\Delta\).

For control, \(E(p_C)=2/(2+8)=0.20\), and \[ \operatorname{Var}(p_C)=\frac{2(8)}{(2+8)^2(2+8+1)} =\frac{16}{1100}=0.01455. \] For treatment, \(E(p_T)=4/(4+16)=0.20\), and \[ \operatorname{Var}(p_T)=\frac{4(16)}{(4+16)^2(4+16+1)} =\frac{64}{8400}=0.007619. \]

Thus \(E(\Delta)=0.20-0.20=0\), while independence gives \[ \operatorname{Var}(\Delta)=\frac{16}{1100}+\frac{64}{8400}=0.0221645\ldots\approx0.02216, \qquad SD(\Delta)=\sqrt{0.02216}=0.1489. \] The induced prior is centered at no difference but is not concentrated near zero: its standard deviation is about 14.9 percentage points. This calculation does not determine an exact tail probability, but it signals that the implied contrast deserves a clinical plausibility check.

From Latent Contrasts to Prior Predictive Outcomes

Let \(D=X_T/n_T-X_C/n_C\) denote the observed difference in response proportions in a future trial. The prior predictive distribution is obtained by averaging the conditional sampling distribution over the prior for the arm probabilities. In integral form,

$$ P(X_T=x_T,X_C=x_C)= \int_0^1\int_0^1 P(X_T=x_T\mid p_T)P(X_C=x_C\mid p_C) \,\pi_T(p_T)\pi_C(p_C)\,dp_C\,dp_T. $$

Here \(\pi_T\) and \(\pi_C\) are the prior densities. Under the independent beta priors and binomial sampling model, integrating each arm separately gives beta-binomial probabilities:

$$ P(X_j=x)= {n_j\choose x} \frac{B(a_j+x,b_j+n_j-x)}{B(a_j,b_j)}, \qquad j\in\{T,C\}, $$

where \(B(\cdot,\cdot)\) is the beta function. The joint prior predictive probability is the product of the two arm probabilities under the stated independence assumptions. The distribution of \(D\) follows by summing joint probabilities for all count pairs that produce the same difference. It is generally not the same distribution as the induced prior of \(\Delta\).

Justification for the predictive variance: Conditional on \(p_j\), \(E(X_j\mid p_j)=n_jp_j\) and \(\operatorname{Var}(X_j\mid p_j)=n_jp_j(1-p_j)\). Therefore, \[ \operatorname{Var}(X_j)=E\{\operatorname{Var}(X_j\mid p_j)\}+ \operatorname{Var}\{E(X_j\mid p_j)\} =n_j\mu_j(1-\mu_j)+n_j(n_j-1)\operatorname{Var}(p_j), \] where \(\mu_j=E(p_j)\). The first term is average binomial sampling variation; the second reflects uncertainty in the response probability. With independent arms, \(\operatorname{Var}(D)=\operatorname{Var}(X_T)/n_T^2+\operatorname{Var}(X_C)/n_C^2\).

Worked Example: An Exact Contrast Check With Uniform Priors

In a hypothetical binary-endpoint trial, let \(p_T\) and \(p_C\) be independent \(\operatorname{Beta}(1,1)\) variables. First calculate the induced prior probability that the treatment response rate exceeds control by at least 0.50.

Each rate is uniform on \([0,1]\). For a specified contrast \(d\) between 0 and 1, the density of \(\Delta=p_T-p_C\) is \(1-d\): the set of pairs in the unit square with difference \(d\) has length \(1-d\). Hence \[ P(\Delta\geq 0.50)=\int_{0.50}^{1}(1-d)\,dd =\left[d-\frac{d^2}{2}\right]_{0.50}^{1}=0.125. \] So the prior assigns 12.5% probability to a latent improvement of at least 50 percentage points. Whether that is plausible depends on the endpoint and clinical context; the calculation is a prompt for that assessment, not a judgment by itself.

Now suppose the future trial has \(n_T=n_C=10\). Under a uniform beta prior, each arm’s beta-binomial event count is uniform on \(0,1,\ldots,10\), because \[ P(X_j=x)={10\choose x}\frac{B(x+1,11-x)}{B(1,1)}=\frac{1}{11}. \] The two counts are independent, so there are \(11^2=121\) equally likely count pairs. The observed difference \(D\) is at least 0.50 when \(X_T-X_C\geq5\). For \(X_C=0,1,2,3,4,5\), the numbers of eligible treatment counts are respectively \(6,5,4,3,2,1\), totaling 21. Thus \[ P(D\geq0.50)=\frac{21}{121}=0.1736. \] This predictive probability differs from \(P(\Delta\geq0.50)=0.125\): \(D\) includes binomial sampling variation, whereas \(\Delta\) is a contrast between latent rates.

Worked Example: How Trial Size Affects the Predictive Difference

Return to the hypothetical independent priors \(p_C\sim\operatorname{Beta}(2,8)\) and \(p_T\sim\operatorname{Beta}(4,16)\). Suppose each arm enrolls 50 participants. Calculate the prior predictive mean and standard deviation of the observed difference \(D\).

Both arm means are \(0.20\), so \(E(X_T)=E(X_C)=50(0.20)=10\), and \(E(D)=10/50-10/50=0\). Using the variance identity above, the control count variance is \[ \operatorname{Var}(X_C)=50(0.20)(0.80)+50(49)\left(\frac{16}{1100}\right) =8+35.63636\ldots=43.63636\ldots\approx43.64. \] For treatment, \[ \operatorname{Var}(X_T)=50(0.20)(0.80)+50(49)(0.007619) =8+18.67=26.67. \] Therefore, under independent arms, \[ \operatorname{Var}(D)=\frac{43.63636}{50^2}+\frac{26.66667}{50^2} =0.0281212, \qquad SD(D)=\sqrt{0.0281212}=0.1677. \]

The predictive standard deviation of about 16.8 percentage points exceeds the induced prior standard deviation of \(\Delta\), about 14.9 percentage points, because \(D\) also contains sampling variation. These standard deviations summarize spread; they do not, by themselves, specify a predictive interval or a probability of a particular clinically important outcome.

Practical Checks and Common Pitfalls

A useful check starts with clinical thresholds stated in the units of the response-rate difference. If an improvement of 10 percentage points is considered important, for example, inspect the induced prior probability of \(\Delta>0.10\) for a desirable event, as well as the probability of contrasts in the opposite direction. Also examine predictive probabilities for future observable summaries when the intended question concerns what trial results may look like. These are different checks and should be labeled accordingly.

When an exact distribution or tail probability is inconvenient, simulation can approximate it. For each simulated replicate, draw \(p_T\) and \(p_C\) from their joint prior, calculate \(\Delta\), then independently draw \(X_T\) and \(X_C\) from their conditional binomial models. Summaries of the \(\Delta\) draws describe its induced prior; summaries of \(X_T,X_C\), or \(D\), describe prior predictive quantities. Keeping these outputs separate prevents a common terminology and interpretation error.

  • Check the event definition. Confirm that a positive treatment-minus-control contrast corresponds to the intended clinical direction, rather than assuming that all events are beneficial.
  • Check the contrast, not only the arm means. Plausible prior means do not ensure plausible differences, as the first worked example illustrates.
  • Check dependence assumptions. If arm probabilities are dependent under the prior, the contrast variance includes a covariance term: \(\operatorname{Var}(\Delta)=\operatorname{Var}(p_T)+\operatorname{Var}(p_C)-2\operatorname{Cov}(p_T,p_C)\). Independent-arm calculations would then be inappropriate.
  • Check the predictive design. Event-count predictions depend on sample sizes and the binomial sampling model. Different allocation, follow-up, or outcome definitions require corresponding changes to the predictive calculation.

A frequent mistake is to call the distribution of \(p_T-p_C\) the prior predictive distribution. That is incorrect: it is the induced prior distribution of a latent parameter contrast. The correction is to reserve “prior predictive” for future observable quantities, such as the counts or their observed difference, which average sampling variation over the parameter prior. Another mistake is to infer that a prior is clinically sensible because its expected contrast is reasonable. The expectation gives only a center; tail probabilities, spread, and the predictive implications for the planned design also matter.

The main alternatives are complementary rather than interchangeable. Analytic beta-binomial calculations give exact event-count probabilities under independent beta priors and fixed sample sizes. Simulation is flexible for more complicated joint priors or derived summaries, but its Monte Carlo error should be considered when probabilities are small. Directly specifying a prior on a treatment contrast can focus elicitation on the clinical effect of interest, while priors on arm response probabilities make the baseline rates explicit; either approach must imply valid response probabilities and a coherent joint model. This tutorial’s independent beta-binomial calculations do not address dependence, covariate adjustment, missing outcomes, or changing event risk over time.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. Under independent priors, how does \(\operatorname{Var}(\Delta)\) relate to the arm-specific prior variances?
  2. For independent uniform priors on \(p_T\) and \(p_C\), what is \(P(\Delta\geq0.50)\)?
  3. With those same priors and 10 participants per arm, how many count pairs yield an observed difference \(D\geq0.50\), and what is its prior predictive probability?
  4. Why can the prior predictive distribution of \(D\) be more dispersed than the induced prior distribution of \(\Delta\)?
  5. If positive \(\Delta\) denotes an increase in an adverse event, does positive \(\Delta\) favor treatment?

Solutions. (1) Independence gives \(\operatorname{Var}(\Delta)=\operatorname{Var}(p_T)+\operatorname{Var}(p_C)\). (2) Integrating the triangular density gives \(\int_{0.50}^1(1-d)\,dd=0.125\). (3) There are \(6+5+4+3+2+1=21\) qualifying pairs among 121 equally likely pairs, so the probability is \(21/121=0.1736\). (4) \(D\) includes binomial sampling variation in addition to uncertainty about the latent rates. (5) No. If the event is adverse, a positive treatment-minus-control difference means a higher adverse-event rate under treatment; whether that is clinically important depends on the endpoint and context.

Clinical Biostats