Tutorials › Bayesian Clinical Trials › Posterior Probability That an Event Rate Exceeds a Benchmark

Posterior Inference for Trial Endpoints · Tutorial 4 of 696

Posterior Probability That an Event Rate Exceeds a Benchmark

Calculate and interpret posterior tail probabilities for a binary event rate, including an exact binomial-tail shortcut when the posterior parameters are integers.

Beginner 9 min read

What You'll Learn

  • Update a beta prior after observing binary trial outcomes.
  • Express the probability that the event rate exceeds a benchmark as a beta-distribution tail.
  • Use an exact binomial cumulative probability when posterior parameters are integers.
  • Interpret posterior probability as uncertainty about the underlying rate, not a future patient's outcome.
  • Check model assumptions, numerical calculations, and the role of the benchmark.
  • Distinguish a posterior tail probability from a credible interval or frequentist p-value.

Why Ask Whether a Rate Exceeds a Benchmark?

In a clinical trial, a binary endpoint might indicate whether a participant experienced an adverse event or achieved a response during a specified follow-up period. A useful question is not only what event rate is estimated, but also how much posterior support there is for the rate being above a clinically relevant benchmark. For example, a safety review may ask whether the adverse-event rate exceeds 10%.

The answer is a probability about the unknown event-rate parameter, conditional on the model, prior information, and observed trial data. It is not the probability that a particular participant will experience the event, and it is not a frequentist p-value. The calculation in this tutorial uses the beta-binomial model from the earlier material on deriving the beta-binomial posterior.

Definition: Let \(\theta\) be the probability of the binary event for each participant under the trial conditions, and let \(x\) events be observed among \(n\) participants. For a prespecified benchmark \(c\), where \(0<c<1\), the posterior probability that the event rate exceeds the benchmark is \(P(\theta>c\mid x,n)\). Under a beta prior \(\theta\sim\operatorname{Beta}(a,b)\), with \(a,b>0\), and a binomial likelihood, the posterior is \(\theta\mid x,n\sim\operatorname{Beta}(a+x,b+n-x)\).

Model, Assumptions, and the Tail Probability

The beta-binomial model assumes that, conditional on a common event rate \(\theta\), the \(n\) binary outcomes are independent and have the same event probability. Thus \(X\mid\theta\sim\operatorname{Binomial}(n,\theta)\). It also assumes a beta prior distribution with positive shape parameters \(a\) and \(b\). The observed count \(x\) must satisfy \(0\leq x\leq n\). In a trial application, the endpoint definition and follow-up window should be sufficiently consistent that one common event probability is a meaningful model.

Given these assumptions, the posterior parameters are \(A=a+x\) and \(B=b+n-x\). The posterior density is proportional to \(\theta^{A-1}(1-\theta)^{B-1}\) on \(0<\theta<1\). Integrating this density above the benchmark gives the desired probability:

$$ P(\theta>c\mid x,n) =\int_c^1 \frac{\theta^{A-1}(1-\theta)^{B-1}}{\mathrm{B}(A,B)}\,d\theta =1-I_c(A,B), \qquad A=a+x,\quad B=b+n-x, $$

Here \(\mathrm{B}(A,B)\) is the beta function, the normalizing constant for the beta density, and \(I_c(A,B)\) is the regularized incomplete beta function, equivalently the beta-distribution cumulative probability from 0 to \(c\). Statistical software can evaluate this tail directly. The calculation uses the entire posterior distribution, rather than only a point estimate such as its mean.

An Exact Binomial-Tail Identity

When the posterior parameters \(A\) and \(B\) are positive integers, the beta tail also has a binomial-probability representation. This identity can make the computation especially transparent and gives a useful independent check on a numerical beta calculation.

Theorem: If \(A\) and \(B\) are positive integers and \(W\sim\operatorname{Binomial}(A+B-1,c)\), then \(P(\theta>c\mid x,n)=P(W\leq A-1)\), when the posterior for \(\theta\) is \(\operatorname{Beta}(A,B)\).

To justify the identity, set \(N=A+B-1\). The binomial upper-tail probability \(P(W\geq A)\) is \(\sum_{k=A}^{N}\binom{N}{k}c^k(1-c)^{N-k}\). Differentiating this sum with respect to \(c\) makes the terms telescope: adjacent positive and negative terms cancel, leaving \[ \frac{d}{dc}P(W\geq A) =N\binom{N-1}{A-1}c^{A-1}(1-c)^{N-A}. \] Because \(N=A+B-1\), the coefficient is \[ N\binom{N-1}{A-1} =\frac{(A+B-1)!}{(A-1)!(B-1)!} =\frac{1}{\mathrm{B}(A,B)}. \] This is exactly the beta density at \(c\). Both \(P(W\geq A)\) and \(I_c(A,B)\) equal zero at \(c=0\), so their equal derivatives imply \(P(W\geq A)=I_c(A,B)\). Taking complements gives \(P(\theta>c\mid x,n)=P(W\leq A-1)\).

Worked Example: An Adverse-Event Rate Above 10%

Suppose a hypothetical trial observes 8 participants with a specified adverse event among 50 participants. Use a uniform prior, \(\theta\sim\operatorname{Beta}(1,1)\), and ask for the posterior probability that the event rate exceeds \(c=0.10\). The binary outcomes are treated as independent with a common event rate, and the event definition and observation period are the same for all 50 participants, as required by the model.

The posterior is \(\operatorname{Beta}(1+8,1+50-8)=\operatorname{Beta}(9,43)\). Here \(A=9\), \(B=43\), and \(N=A+B-1=51\). Applying the integer-parameter identity,

$$ P(\theta>0.10\mid x=8,n=50) =P\{\operatorname{Binomial}(51,0.10)\leq 8\} =\sum_{k=0}^{8}\binom{51}{k}(0.10)^k(0.90)^{51-k} \approx 0.935705. $$

Thus the posterior probability is approximately 0.936, or 93.6%. Under the specified prior and model, the observed data leave substantial posterior probability that the underlying adverse-event rate is above 10%. This does not say that there is a 93.6% chance that any particular participant will experience the event; that participant-level probability is represented by \(\theta\), whose uncertainty is summarized by this posterior.

Worked Example: A Response Rate Above 20%

In a second hypothetical trial, 3 of 20 participants achieve a binary response by a common assessment time. With the uniform \(\operatorname{Beta}(1,1)\) prior, calculate the posterior probability that the response rate exceeds \(0.20\). The binomial model is appropriate here only if each participant has a defined response status at that assessment and outcomes are conditionally independent with a common response probability.

The posterior is \(\operatorname{Beta}(1+3,1+20-3)=\operatorname{Beta}(4,18)\). The integer identity gives \(N=4+18-1=21\), so the required probability is a binomial cumulative probability through 3:

$$ \begin{aligned} P(\theta>0.20\mid x=3,n=20) &=P\{\operatorname{Binomial}(21,0.20)\leq 3\}\\ &=(0.80)^{21} +21(0.20)(0.80)^{20}\\ &\quad+\binom{21}{2}(0.20)^2(0.80)^{19} +\binom{21}{3}(0.20)^3(0.80)^{18}\\ &\approx 0.009223+0.048423+0.121057+0.191673\\ &\approx 0.370376. \end{aligned} $$

The posterior probability that the response rate exceeds 20% is therefore about 37.0%. This is not a claim that the rate is below 20%; it quantifies posterior uncertainty on both sides of the benchmark. The count data and prior do not place most of the posterior probability above this particular threshold.

Worked Example: A Direct Beta-Integral Calculation

Consider a third hypothetical illustration with 1 event among 2 participants and a \(\operatorname{Beta}(1,1)\) prior. Suppose the benchmark is \(c=0.60\). The posterior is \(\operatorname{Beta}(2,2)\), whose density is \(6\theta(1-\theta)\). The common-rate, independent-outcome assumptions are the same as above; the small sample is used only to make the integral easy to evaluate by hand.

$$ \begin{aligned} P(\theta>0.60\mid x=1,n=2) &=\int_{0.60}^{1}6\theta(1-\theta)\,d\theta\\ &=\left[3\theta^2-2\theta^3\right]_{0.60}^{1}\\ &=1-\{3(0.60)^2-2(0.60)^3\}\\ &=1-(1.08-0.432)=0.352. \end{aligned} $$

The posterior probability that the event rate exceeds 60% is 35.2%. The answer is not the posterior mean, which is \(2/(2+2)=0.50\): a mean is a summary of location, whereas the requested probability is the area of the posterior density above a specified threshold.

Interpreting and Checking the Result

A posterior tail probability is tied to a particular benchmark, endpoint, prior, and data set. The benchmark should be clinically interpretable and specified for the question at hand; changing it changes the probability. For example, the probability that a response rate exceeds 20% need not resemble the probability that it exceeds 40%. Reporting the benchmark alongside the probability is essential.

A credible interval answers a related but different question by giving an interval containing a specified amount of posterior probability. The tail probability directly quantifies the posterior mass beyond one threshold. A frequentist p-value instead describes how unusual data at least as extreme as those observed would be under a specified null model; it is not the probability that the parameter exceeds a benchmark. These summaries should not be substituted for one another.

Before reporting a result, check that the event count and denominator match the endpoint definition, the posterior parameters include the observed events and non-events in the correct order, and the threshold is on the event-rate scale between 0 and 1. If using the integer identity, check that \(A\) and \(B\) are integers and that the binomial size is \(A+B-1\), not \(A+B\). For difficult numerical tails, compare a direct beta survival probability with a binomial cumulative probability when the identity applies. Also examine whether reasonable alternative prior choices materially change the conclusion, especially when data are limited.

Why the Model Can Fail

The beta-binomial calculation is not automatically appropriate for every clinical endpoint. If participants have substantially different event probabilities, outcomes may not be conditionally independent, or follow-up differs in a way that changes the chance of observing an event, a single common \(\theta\) and a binomial count may not describe the data adequately. Missing endpoint statuses also cannot simply be treated as non-events without justification. Such features call for a model that represents the design and data structure; the simple beta-binomial tail alone does not resolve them.

Another pitfall is interpreting a large posterior probability as an automatic clinical decision. A probability such as 0.936 addresses uncertainty about whether the rate exceeds the stated benchmark under the model. A decision to stop a trial, change treatment, or accept a safety risk also depends on the consequences of the possible outcomes and the decision rules in use. Posterior probability is evidence for that decision, not the decision itself.

Common mistake: “The posterior probability is 93.6%, so 93.6% of future participants will have the event.” This confuses uncertainty about the underlying rate \(\theta\) with the event outcomes of future participants. The correct interpretation is that, conditional on the model, prior, and observed data, 93.6% of the posterior probability for \(\theta\) lies above 0.10. A future participant’s event probability depends on \(\theta\), and predicting future outcomes requires a posterior predictive calculation.

Check Your Understanding

Try each question, then compare with the brief solutions below.

  1. With prior \(\operatorname{Beta}(2,3)\), 6 events among 18 participants, and benchmark \(c=0.25\), what is the posterior distribution? State the beta-tail expression, but do not evaluate it.
  2. For a posterior \(\operatorname{Beta}(5,12)\), give the binomial distribution and cutoff used to calculate \(P(\theta>0.30)\).
  3. Does \(P(\theta>c\mid x,n)=0.80\) mean there is an 80% chance that the next participant experiences the event? Explain.
  4. Name two assumptions of the beta-binomial model that may be questionable in a clinical trial.

Solutions. (1) The posterior is \(\operatorname{Beta}(2+6,3+18-6)=\operatorname{Beta}(8,15)\), so the requested probability is \(1-I_{0.25}(8,15)\). (2) Here \(A=5\), \(B=12\), and \(A+B-1=16\), so use \(P\{\operatorname{Binomial}(16,0.30)\leq4\}\). (3) No. It means 80% of the posterior mass for the unknown rate is above \(c\); it does not directly give the probability for one future outcome. (4) Examples include conditional independence of participants’ outcomes, a common event probability, and consistent endpoint observation and follow-up. A violation can make the simple binomial likelihood inappropriate.

Clinical Biostats