Tutorials › Adaptive Clinical Trial Design › Bayesian Credible Intervals and Frequentist Coverage

Estimation and Confidence Intervals After Adaptation · Tutorial 301 of 799

Bayesian Credible Intervals and Frequentist Coverage

Learn to distinguish posterior credibility from frequentist coverage and calculate how treatment selection and prior shrinkage change coverage in a normal model.

Advanced 11 min read

What You'll Learn

  • Define a posterior credible interval and repeated-sampling coverage, and distinguish the two guarantees.
  • Derive the normal-normal posterior for an arm selected using its observed estimate.
  • Calculate frequentist coverage when the selected arm is the one with the largest estimate.
  • Assess how the number of candidate arms and prior shrinkage affect coverage in a specified model.
  • Identify when complete-data Bayesian inference differs from analysis of only the selected result.
  • Recognize model and reporting choices that can make an interval's interpretation misleading.

Two Different Meanings of “95%”

When a trial selects the treatment arm with the most favorable observed result, an interval for that arm must be understood in relation to the selection rule. A Bayesian credible interval and a frequentist confidence interval answer different probability questions. The distinction matters even when both intervals are calculated from the same normal model and both are labelled “95%.”

A Bayesian credible interval assigns posterior probability to a parameter, conditional on the observed data and the prior model. Frequentist coverage instead describes how often a procedure contains a fixed parameter over repeated trials. Selection can change that repeated-trial probability: among several noisy estimates, the largest tends to be above its true value. A prior can shrink the selected estimate toward its prior center, changing that effect but not automatically guaranteeing nominal coverage.

Definition: A \(100(1-\alpha)\%\) posterior credible interval \(C(X)\) has posterior probability \(1-\alpha\) given the observed data \(X\): \(P(\theta\in C(X)\mid X)=1-\alpha\), under the stated prior and likelihood. A \(100(1-\alpha)\%\) frequentist confidence procedure has coverage \(P_{\theta}\{\theta\in C(X)\}=1-\alpha\), or at least \(1-\alpha\) when the guarantee is conservative, with probability taken over repeated data sets at a fixed parameter value \(\theta\).

These statements do not conflict. The credible interval probability is conditional on the data and prior model; the coverage probability is evaluated before observing the data, with the parameter held fixed. Neither statement, by itself, guarantees the other.

A Normal Model for Selection

Consider \(K\) treatment arms with estimated effects \(X_1,\ldots,X_K\). To isolate selection from other complications, suppose the estimates are independent and \(X_j\mid\theta_j\sim N(\theta_j,v)\), where the sampling variance \(v\) is known and common across arms. Larger effects are favorable, and the selected arm is \(J=\arg\max_j X_j\); write \(M=X_J=\max_j X_j\). Assume a proper, independent normal prior \(\theta_j\sim N(0,\tau^2)\) for each arm. The prior center is zero, representing no effect on the chosen effect scale. These assumptions are simplifying: real trials may have correlated estimates, unequal variances, unknown variance, or a selection rule involving interim data and sample size.

For each arm, conjugacy gives a normal posterior. Define the shrinkage factor \(\kappa=\tau^2/(\tau^2+v)\) and posterior variance \(w=\tau^2v/(\tau^2+v)=\kappa v\). Conditional on all observed estimates, the posterior for the selected arm’s effect is \(N(\kappa M,w)\). Therefore its equal-tailed \(100(1-\alpha)\%\) credible interval is \(\kappa M\pm z_{1-\alpha/2}\sqrt{w}\), where \(z_{1-\alpha/2}\) is the standard normal quantile.

$$ \theta_j\mid X_j=x_j\sim N(\kappa x_j,w), \qquad C_J(X)= \left[\kappa M-z_{1-\alpha/2}\sqrt{w},\ \kappa M+z_{1-\alpha/2}\sqrt{w}\right]. $$

This is a posterior interval conditional on the complete vector of estimates and the specified model. Since the selected index \(J\) is determined by that vector, selection does not add information once the full vector is already observed. It would be different to report only the winning estimate and discard the other results: then the fact that it won is part of the information, and a likelihood for the reported maximum must account for selection.

Why Coverage Changes After Choosing the Maximum

For a frequentist calculation, first hold the true effects fixed. In the special case \(\theta_1=\cdots=\theta_K=\theta\), the estimates are independent \(N(\theta,v)\), and the distribution function of their maximum is \(P_\theta(M\le m)=\Phi((m-\theta)/\sqrt v)^K\). Here \(\Phi\) is the standard normal distribution function. The selected arm has true effect \(\theta\), so its credible interval covers that effect exactly when \(\kappa M-z\sqrt{w}\le\theta\le\kappa M+z\sqrt{w}\). For \(\kappa>0\), this is equivalent to \((\theta-z\sqrt{w})/\kappa\le M\le(\theta+z\sqrt{w})/\kappa\). The coverage is the probability of this interval for \(M\), namely the CDF at the upper endpoint minus the CDF below the lower endpoint.

$$ P_\theta\{\theta\in C_J(X)\} = \Phi\!\left(\frac{\theta+z\sqrt{w}-\kappa\theta}{\kappa\sqrt v}\right)^K - \Phi\!\left(\frac{\theta-z\sqrt{w}-\kappa\theta}{\kappa\sqrt v}\right)^K. $$

This expression follows by substituting the two bounds for \(M\) into its maximum distribution. In particular, it is a difference of two CDF values, not just the probability that \(M\) is below the upper endpoint. It depends on the number of candidate arms, the prior through \(\kappa\) and \(w\), and the fixed true effect relative to the prior center.

When the true effects differ, the selected arm’s true effect is itself determined by the random winner. Under the independent normal model, arm \(j\) wins with estimate \(x\) in a small interval with density \(f_j(x)\prod_{\ell\ne j}F_\ell(x)\), where \(f_j\) and \(F_j\) are the density and CDF of \(N(\theta_j,v)\). Thus coverage of the selected-arm interval is

$$ \sum_{j=1}^{K}\int_{-\infty}^{\infty} \mathbf{1}\!\left\{\theta_j\in [\kappa x-z\sqrt{w},\,\kappa x+z\sqrt{w}]\right\} f_j(x)\prod_{\ell\ne j}F_\ell(x)\,dx. $$

The indicator is one when the interval based on the winning estimate \(x\) contains the true effect of the winning arm, and zero otherwise. This formula makes clear why a coverage claim cannot generally be inferred from the posterior probability alone.

Worked Example: A 95% Credible Interval for the Selected Arm

Suppose a hypothetical trial compares three arms. Their estimated effects, in points on a prespecified clinical scale, are \(0.2\), \(1.1\), and \(0.5\), with independent sampling distributions \(X_j\mid\theta_j\sim N(\theta_j,1)\). Use independent priors \(\theta_j\sim N(0,4)\), and report the interval for the arm with the largest estimate.

The model gives \(v=1\), \(\tau^2=4\), and \(\kappa=4/(4+1)=0.8\). The selected estimate is \(M=1.1\) points. The posterior variance is \(w=4(1)/(4+1)=0.8\), so its posterior mean is \(0.8(1.1)=0.88\) points and its posterior standard deviation is \(\sqrt{0.8}=0.8944\) points.

For a 95% equal-tailed interval, \(z_{0.975}=1.96\). Its half-width is \(1.96\sqrt{0.8}=1.753\) points. Therefore,

$$ 0.88\pm1.96\sqrt{0.8} =0.88\pm1.753 =[-0.873,\ 2.633]\ \text{points}. $$

Under the specified likelihood and prior, the posterior probability that the selected arm’s effect lies between \(-0.873\) and \(2.633\) points, conditional on the observed estimates, is 95%. This calculation does not establish that this procedure covers the selected arm’s fixed true effect in 95% of repeated trials.

Worked Example: Coverage With Five Equally Effective Arms

Now suppose, hypothetically, that five independent arms all have true effect \(\theta=0\) points, with \(v=1\), and the trial selects the largest estimate. Retain the \(N(0,4)\) prior, so \(\kappa=0.8\) and \(w=0.8\). Calculate the repeated-sampling coverage of the 95% posterior interval for the selected effect.

The interval is \(0.8M\pm1.96\sqrt{0.8}\) points. Since the true effect is zero, it covers precisely when \(-1.96\sqrt{0.8}/0.8\le M\le1.96\sqrt{0.8}/0.8\). The cutoff is \(1.96\sqrt{0.8}/0.8\approx2.191346\) points. With five independent \(N(0,1)\) estimates, the CDF of \(M\) at \(m\) is \(\Phi(m)^5\). Hence the coverage is the CDF at the upper cutoff minus the CDF below the lower cutoff:

$$ \begin{aligned} P(-2.191346\le M\le2.191346) &=\Phi(2.191346)^5-\Phi(-2.191346)^5\\ &\approx 0.9309. \end{aligned} $$

Thus, under these assumptions, the interval’s repeated-sampling coverage is about 93.09%, not 95%. The posterior statement remains 95% for each observed data vector under the model; it is the distinct repeated-trial coverage calculation that gives about 93.09%.

Worked Example: Changing the Prior Changes Coverage

Keep the five-arm setting and true effects from the preceding example, but use the more diffuse prior \(\theta_j\sim N(0,19)\). The sampling variance remains \(v=1\), and the interval is still a 95% posterior interval. Compute its coverage under this fixed frequentist scenario.

Now \(\kappa=19/(19+1)=0.95\) and \(w=19/(19+1)=0.95\). At \(\theta=0\), the interval covers if \(|M|\le1.96\sqrt{0.95}/0.95\approx2.011\). Thus,

$$ \begin{aligned} P_\theta\{0\in C_J(X)\} &=\Phi(2.011)^5-\Phi(-2.011)^5\\ &\approx0.894. \end{aligned} $$

The coverage in this example is about 89.4%. With the prior variance of 4, it was about 93.09%. The more diffuse prior shrinks the selected estimate less toward zero, leaving more of the upward selection effect in the posterior center. This comparison is specific to the stated model and true effects; it is not a universal rule that changing a prior always moves coverage in one direction.

Assumptions, Diagnostics, and Alternatives

The calculations above require a correctly specified normal sampling model, independent arm estimates with known common variance, the stated prior, and selection by the largest observed estimate. The examples also assume the true effects are equal when using the simple maximum-CDF calculation. If estimates are correlated, variances differ, the winner is chosen using an interim statistic, or the trial changes its allocation or sample size, the distribution of the selected estimate must reflect that design. Using the formula for independent, equal-variance estimates in those settings can give an incorrect coverage calculation.

A practical diagnostic is to write down the actual selection rule and trace which observations determine both the winner and the reported interval. Check that the likelihood includes the data collected under the adaptation and that the prior is stated on the same effect scale as the estimates. For frequentist assessment, repeated simulation under fixed parameter configurations can estimate the procedure’s coverage, provided each simulated trial repeats the full adaptation and selection rule. Such simulation diagnoses performance for the scenarios examined; it does not prove a universal guarantee.

The main alternatives target different inferential goals. A Bayesian analysis can retain the posterior interval and report its model-conditional interpretation, possibly with sensitivity analyses over reasonable priors. A frequentist analysis can instead use an interval procedure calibrated to the selection design and evaluate its coverage under prespecified fixed effects. A simple interval that ignores the winner’s selection may be easier to calculate but should not be presented as having nominal post-selection coverage without justification. These approaches are not interchangeable: the appropriate choice depends on whether posterior probability under a model or repeated-sampling error control is the primary goal.

A further limitation is that nominal posterior credibility is only as relevant as the model and prior are to the scientific question. A prior centered at zero may be reasonable in one setting and poorly calibrated in another; independence may be implausible when arms share a control group. If only the selected result is available, conditioning on the fact that it was selected cannot be replaced by treating it as an unselected single-arm observation. The information lost by withholding the other estimates can materially change inference.

Common Mistake

Common mistake: “The interval is a 95% Bayesian credible interval, so it covers the selected treatment’s true effect in 95% of repeated trials.” The first clause concerns posterior probability conditional on the data and prior; the second is a frequentist coverage claim. The five-arm calculation shows that the latter can be about 93.09% under a particular fixed-effect scenario. State the inferential guarantee actually established, and assess coverage separately if it is needed.

A related arithmetic error is to calculate only \(P(M\le U)\) for an upper endpoint \(U\). For coverage between lower endpoint \(L\) and upper endpoint \(U\), the correct probability is \(P(M\le U)-P(M<L)\). Omitting the lower-tail probability does not give interval coverage.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. In one sentence each, state what a 95% posterior credible interval and a 95% frequentist confidence procedure guarantee.
  2. For \(K\) independent estimates \(X_j\sim N(\theta,v)\), write the CDF of \(M=\max_j X_j\).
  3. With \(\kappa=0.8\), \(w=0.8\), and a 95% interval, write the condition on \(M\) for the interval to cover \(\theta=0\).
  4. Why does observing the complete vector of arm estimates differ from reporting only the winning estimate?

Solutions. (1) A 95% credible interval has posterior probability 0.95 conditional on data and prior; a 95% confidence procedure covers a fixed parameter in 95% of repeated trials under its stated sampling conditions. (2) \(P(M\le m)=\Phi((m-\theta)/\sqrt v)^K\), because all \(K\) independent estimates must be at most \(m\). (3) Coverage requires \(-1.96\sqrt{0.8}/0.8\le M\le1.96\sqrt{0.8}/0.8\), or approximately \(-2.191346\le M\le2.191346\). (4) With the complete vector, the winner is already a known function of observed data; with only the winner reported, the fact that it was the largest supplies additional selection information that must be represented in the likelihood.

Clinical Biostats