Tutorials › Bayesian Clinical Trials › Prior Predictive Tail Probabilities And Their Limits

Prior Predictive Checks · Tutorial 96 of 696

Prior Predictive Tail Probabilities And Their Limits

You will learn how to calculate and interpret prior predictive tail probabilities, and how to recognize what they can and cannot say about a clinical trial model.

Intermediate 12 min read

What You'll Learn

  • Define an upper-tail probability for a chosen discrepancy statistic.
  • Derive the prior predictive distribution by averaging over the prior.
  • Calculate tail probabilities in normal, beta-binomial, and Gamma-Poisson examples.
  • Interpret discrete and two-sided tail areas with care.
  • Distinguish a prior predictive diagnostic from posterior evidence and a pass-fail test.
  • Identify modeling and design choices that can make a tail probability misleading.

What a Prior Predictive Tail Probability Measures

A prior predictive check asks what outcomes a specified prior and sampling model imply before the trial data are used to update beliefs about model parameters. A tail probability summarizes how often a chosen feature of those generated outcomes is at least as extreme as the feature observed in a hypothetical or actual trial. Its purpose is diagnostic: it can flag outcomes that are unusual under the model, but it does not by itself identify why they are unusual.

Let \(\theta\) denote the model parameters, with prior density \(\pi(\theta)\), and let \(Y\) denote the trial data under the sampling model \(p(y\mid\theta)\). Generate a replicated dataset \(Y^{\mathrm{rep}}\) by first drawing \(\theta\) from the prior and then drawing outcomes from the sampling model conditional on that \(\theta\). This is a description of the prior predictive distribution, not a posterior update using observed trial data.

Definition: For a specified discrepancy statistic \(T\), an upper-tail prior predictive probability at observed data \(y_{\mathrm{obs}}\) is \(P\{T(Y^{\mathrm{rep}})\geq T(y_{\mathrm{obs}})\}\), where the probability is taken over both the prior draw of \(\theta\) and the sampling distribution of \(Y^{\mathrm{rep}}\mid\theta\). The statistic, direction of the tail, model, prior, and trial design determine the value.

The statistic \(T\) turns a potentially complex dataset into a feature to check. It might be an event count, a treatment-effect estimate, or a discrepancy from a clinical benchmark. Choosing \(T\) is therefore part of defining the diagnostic, not a neutral final step. An upper-tail probability counts replicated statistics equal to or larger than the observed statistic. A lower-tail probability reverses the inequality. For a two-sided check, a distance from a stated reference may be used; the reference and distance should be made explicit.

Deriving the Prior Predictive Tail Area

The prior predictive distribution averages the sampling distribution over prior uncertainty. For any set of possible outcomes \(A\), the law of total probability gives the marginal probability of that set by integrating over the parameter values:

$$ P(Y\in A) = \int P(Y\in A,\theta\in d\theta) = \int P(Y\in A\mid\theta)\,\pi(\theta)\,d\theta. $$

In the first integral, \(P(Y\in A,\theta\in d\theta)\) is the joint probability measure for \(Y\in A\) and a parameter value in the infinitesimal region \(d\theta\). Equivalently, it is \(P(Y\in A\mid\theta)\pi(\theta)d\theta\). It is not the probability of an event written as \(Y\in A\) and \(\theta\) itself.

Apply this averaging to the event that the replicated discrepancy is at least as large as the observed one. For a continuous parameter with prior density, the tail probability is

$$ P\{T(Y^{\mathrm{rep}})\geq T(y_{\mathrm{obs}})\} = \int P\{T(Y^{\mathrm{rep}})\geq T(y_{\mathrm{obs}})\mid\theta\}\, \pi(\theta)\,d\theta. $$

This identity shows why the tail area reflects both parameter uncertainty under the prior and sampling variability conditional on each parameter value. It is not generally the tail probability calculated at a single “average” parameter: mixing distributions can have different tail behavior from the sampling distribution at their average parameter.

1
Specify the outcome model and design.
State what data the trial would generate, conditional on the parameters, and include relevant sample sizes, follow-up, or exposure.
2
Choose a clinically relevant statistic.
Define the feature \(T(Y)\) and what counts as more extreme, including how ties are handled.
3
Average over the prior.
Calculate or simulate the probability of the specified tail event under prior draws and replicated outcomes.
4
Interpret as a diagnostic signal.
Ask whether the model often generates outcomes like the observed one, then investigate any surprising result in context.

A proper prior is needed for this probability calculation in the usual setting: it must define a normalized probability distribution. The sampling model must also describe the outcomes and design relevant to the check. If the statistic or tail direction is selected only after seeing an unexpected result, the resulting number should not be presented as though it were a prespecified diagnostic.

Worked Examples

Worked Example: A Normal Treatment-Effect Estimate

Suppose, hypothetically, that a trial estimates a treatment effect \(D\) in millimetres of mercury, with the conditional sampling model \(D\mid\theta\sim N(\theta,4^2)\). The prior is \(\theta\sim N(0,5^2)\). Consider the upper-tail probability for the observed estimate \(D=12\) mmHg.

The assumptions are that the normal prior and normal sampling distribution are appropriate for this illustration, the conditional standard error is 4 mmHg, and the estimate’s sampling distribution is centered at \(\theta\). Under the prior predictive distribution, \(D\) is the sum of the prior-distributed effect and independent normal sampling error. Therefore \(D\sim N(0,5^2+4^2)=N(0,41)\), with variance measured in squared mmHg.

$$ P(D^{\mathrm{rep}}\geq 12) = 1-\Phi\left(\frac{12-0}{\sqrt{41}}\right) = 1-\Phi(1.874) \approx 0.0305. $$

Thus, about 3.05% of the prior predictive estimates are at least 12 mmHg. If the prespecified question instead concerns an estimate at least as far from zero in either direction, symmetry gives \(2(0.0305)\approx0.0610\). These are different tail events and answer different diagnostic questions. Neither probability is the probability that the treatment effect exceeds 12 mmHg after observing the trial.

Worked Example: A Beta-Binomial Event Count

For a hypothetical control arm, let the event probability be \(p\sim\mathrm{Beta}(1,1)\), a uniform prior on probabilities from 0 to 1. Let \(K\mid p\sim\mathrm{Binomial}(10,p)\). Suppose the discrepancy is the event count itself and the hypothetical observed count is 9. The assumptions are a common event probability for the 10 participants and conditionally independent Bernoulli outcomes given \(p\).

For \(k=0,\ldots,10\), integrating the binomial probability over the uniform prior gives

$$ P(K=k) = \int_0^1 {10\choose k}p^k(1-p)^{10-k}\,dp = {10\choose k}B(k+1,11-k) = \frac{1}{11}. $$

The predictive distribution is uniform over the 11 possible counts. The upper-tail probability, including equality with the observed count, is

$$ P(K^{\mathrm{rep}}\geq 9) = P(K^{\mathrm{rep}}=9)+P(K^{\mathrm{rep}}=10) = \frac{1}{11}+\frac{1}{11} = \frac{2}{11} \approx 0.1818. $$

So 18.18% of the prior predictive control-arm counts are 9 or 10. Because this count is discrete, including equality matters: the probability of a count exactly equal to 9 is \(1/11\), not zero. The uniform prior is used here for transparent arithmetic; it need not be a clinically suitable prior for a real trial. A tail probability diagnoses the implications of the stated prior and model, not the suitability of that prior in isolation.

Worked Example: A Poisson Count with a Gamma Prior

Suppose a hypothetical trial’s safety count \(Y\), over a fixed exposure, is modeled as \(Y\mid\lambda\sim\mathrm{Poisson}(\lambda)\). Let \(\lambda\sim\mathrm{Gamma}(2,\text{ rate }1)\), with density \(\lambda e^{-\lambda}\) for \(\lambda>0\). Here \(\lambda\) is the expected count over that exposure. Assume the exposure is the same for the observed and replicated counts. If 5 events are observed, calculate the upper-tail prior predictive probability.

Integrating the conditional Poisson probability against the Gamma prior yields

$$ P(Y=y) = \int_0^\infty \frac{e^{-\lambda}\lambda^y}{y!}\lambda e^{-\lambda}\,d\lambda = \frac{\Gamma(y+2)}{y!\,2^{y+2}} = \frac{y+1}{2^{y+2}}, \qquad y=0,1,\ldots. $$

The probability of a count of at least 5 is one minus the probabilities of counts 0 through 4:

$$ P(Y^{\mathrm{rep}}\geq5) = 1-\left(\frac14+\frac28+\frac3{16}+\frac4{32}+\frac5{64}\right) = 1-0.890625 = 0.109375 = \frac{7}{64}. $$

The prior predictive probability of 5 or more events is about 10.94%. The calculation depends on the stated exposure, prior, and Poisson sampling model. If follow-up or exposure differed, the model would need to represent that difference before comparing a count with this predictive tail.

Interpretation, Alternatives, and Limits

A small upper-tail probability says that replicated outcomes with a statistic at least as large as the observed value are uncommon under the specified prior predictive distribution. It does not say that the model is false, that a particular assumption is responsible, or that the observed data are impossible. A large tail probability says the specified tail event is not unusual under that distribution; it does not certify that the model captures every important feature of trial outcomes.

Tail probabilities are not posterior evidence. They are calculated by averaging over the prior and the sampling model, rather than by updating parameter uncertainty with the observed data. They are also not universal pass-fail tests: there is no single cutoff that automatically makes a model acceptable or unacceptable. Interpretation depends on the clinical importance of the statistic, the direction and definition of extremeness, and the consequences of model-implied outcomes.

ApproachWhat it emphasizesHow it differs from a tail probability
Prior predictive tail probabilityProbability of a specified event in the tail of a statistic’s prior predictive distributionCompresses the check to one event and one number; depends on statistic and tail definition
Prior predictive plots or quantilesRange, shape, and location of generated outcomes relative to clinical benchmarksCan reveal features hidden by a single tail area, though visual judgments still require context
Posterior predictive checkReplicated outcomes generated using parameter uncertainty updated by observed dataUses a posterior distribution, whereas the prior predictive check concerns implications before data update

For discrete outcomes, tail probabilities can only take certain values, and ties can contribute substantially. For two-sided checks, “twice the smaller one-sided tail” is appropriate only under suitable symmetry; it is not a general definition. A defensible two-sided check specifies a reference and a measure of distance, such as \(|T(Y)-t_0|\), then calculates the probability that the replicated distance is at least the observed distance.

A tail area also inherits weaknesses in the prior, sampling model, and design representation. If the model omits overdispersion, dependence, differential follow-up, or an important subgroup structure, a tail probability based on it cannot repair that omission. Multiple statistics can be examined, but selecting an extreme result from many checks makes an isolated tail area less informative unless the selection is acknowledged. Graphs and clinically chosen benchmarks can complement the number by showing which outcomes drive the apparent surprise.

Common Mistake: Treating a Tail Area as a Verdict

Wrong reasoning: “The prior predictive tail probability is 0.03, so there is a 3% probability that the model is correct, and the model must be rejected.” This confuses a probability of replicated outcomes conditional on a model with a probability assigned to the model itself.

Correction: “Under the specified prior, likelihood, design, and statistic, 3% of replicated datasets have a statistic at least this large.” That result may motivate review of the prior, likelihood, design assumptions, or the clinical benchmark. It does not assign a probability to the model being true and does not prescribe an automatic decision.

Key takeaway: A prior predictive tail probability is a model-based diagnostic for a clearly defined feature of trial outcomes. Its value is interpretable only together with the prior, sampling model, design, statistic, and tail event that produced it.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. If \(p\sim\mathrm{Beta}(1,1)\) and \(K\mid p\sim\mathrm{Binomial}(4,p)\), what is \(P(K^{\mathrm{rep}}\geq3)\)?
  2. An estimate has prior predictive distribution \(D^{\mathrm{rep}}\sim N(0,3^2)\). What is the upper-tail probability at an observed estimate of \(+6\), approximately?
  3. Why should equality be included in an upper-tail event for a discrete count?
  4. A tail probability is 0.04. State a correct contextual interpretation and one conclusion it does not justify.

Solutions. 1. The beta-binomial predictive count is uniform over 0, 1, 2, 3, 4, so \(P(K^{\mathrm{rep}}\geq3)=2/5=0.4000\). 2. Standardizing gives \(z=6/3=2\), so \(P(D^{\mathrm{rep}}\geq6)=1-\Phi(2)\approx0.0228\). 3. Discrete counts have positive probability at individual values, so omitting equality would exclude replicated counts exactly matching the observed count. 4. Under the specified prior, sampling model, design, and statistic, 4% of replicated outcomes have a statistic at least as extreme in the stated direction. This does not mean the model has a 4% probability of being true or automatically require rejecting it.

Clinical Biostats