Why Binary Noninferiority Needs a Directional Contrast
An active-control trial asks whether a new treatment retains an acceptable amount of the established treatment’s benefit. For a binary efficacy outcome, such as whether a patient responds by a fixed assessment time, the comparison is between two response probabilities. Noninferiority is not established merely because the observed response rates look similar: the trial must address how much lower the new treatment’s response probability could plausibly be.
Let \(p_E\) denote the probability of a favorable outcome under the experimental treatment and \(p_C\) the probability under the active control. Use the risk difference \(\Delta=p_E-p_C\). A positive value favors the experimental treatment; a negative value means its response probability is lower. Let \(M>0\) be the prespecified noninferiority margin, expressed as a probability difference. The noninferiority region is \(\Delta>-M\). For example, \(M=0.08\) allows a loss of up to 8 percentage points in response probability. The margin should be justified clinically and fixed before examining the trial results.
This sign convention depends on the outcome being favorable. If the event is undesirable, such as a complication, either define the contrast so that larger values remain favorable or reverse the inequality. A sign error can turn a correct calculation into the wrong clinical conclusion.
Binomial Model and Posterior Distribution
Suppose \(x_E\) of \(n_E\) randomized participants in the experimental arm have the favorable outcome, and \(x_C\) of \(n_C\) participants in the control arm do. Conditional on each arm’s outcome probability, model the counts as binomial:
This simple model assumes a fixed binary assessment for every participant, independent outcomes within each arm conditional on its probability, and no unmodeled clustering that would materially change the uncertainty. It also assumes the analysis population and handling of missing outcomes have been specified appropriately. In a randomized trial, randomization supports a treatment comparison, but it does not by itself correct outcome misclassification, informative missingness, or major departures from the intended treatment strategy.
For a basic conjugate analysis, assign independent beta priors \(p_E\sim\operatorname{Beta}(a_E,b_E)\) and \(p_C\sim\operatorname{Beta}(a_C,b_C)\). A beta distribution has density proportional to \(p^{a-1}(1-p)^{b-1}\) for \(0<p<1\). Its parameters must be chosen and justified before looking at the trial outcomes. With independent priors and the binomial likelihoods, the posterior distributions are:
The update follows directly by multiplying prior density by likelihood. In one arm, the likelihood is proportional to \(p^x(1-p)^{n-x}\). Multiplication by the beta prior gives a density proportional to \(p^{a+x-1}(1-p)^{b+n-x-1}\), which is the kernel of a \(\operatorname{Beta}(a+x,b+n-x)\) distribution. Under the independent model, the two arm posteriors remain independent.
For a posterior \(\operatorname{Beta}(A,B)\), the mean is \(A/(A+B)\) and the variance is \(AB/[(A+B)^2(A+B+1)]\). Therefore the posterior mean of \(\Delta\) is the experimental-arm posterior mean minus the control-arm posterior mean. Because the arm posteriors are independent, the posterior variance of \(\Delta\) is the sum of their posterior variances. These summaries describe the center and spread of the contrast, but the noninferiority decision concerns a probability relative to the margin, not just the mean contrast.
Calculating the Noninferiority Probability
The exact posterior probability can be obtained from the two beta distributions. Conditional on a value of \(p_E\), the condition \(\Delta>-M\) is equivalent to \(p_C<p_E+M\). Let \(f_E\) be the posterior density of \(p_E\), and let \(F_C\) be the posterior cumulative distribution function of \(p_C\). Then:
This one-dimensional integral can be evaluated by numerical integration. Alternatively, draw paired independent values from the two arm-specific posterior distributions, calculate their differences, and estimate the probability by the proportion exceeding \(-M\). Numerical integration is deterministic up to numerical precision; simulation has Monte Carlo error, which should be checked by using enough draws and, where relevant, repeated runs or an estimated Monte Carlo standard error.
A useful approximation for a quick calculation is to treat the posterior difference as normal with its calculated posterior mean and variance. If the mean is \(\mu_\Delta\) and the posterior standard deviation is \(s_\Delta\), this gives:
where \(\Phi\) is the standard normal cumulative distribution function. This is an approximation to the posterior probability, not a change to the model’s exact beta posteriors. It is most credible when both arm posteriors are away from the boundaries and are reasonably concentrated. With sparse outcomes, very small probabilities, or substantial posterior skewness, use the beta integral or posterior simulation instead.
Worked Example: Noninferiority With Similar Response Rates
Consider a hypothetical randomized trial with 178 favorable outcomes among 200 experimental-arm participants and 184 among 200 active-control participants. Use independent uniform priors, \(\operatorname{Beta}(1,1)\), and a prespecified margin \(M=0.08\), or 8 percentage points. The binomial model is a reasonable starting point here if each participant contributes one fixed-time binary outcome and outcomes are treated as independent within arms.
The posterior distributions are \(p_E\mid\text{data}\sim\operatorname{Beta}(179,23)\) and \(p_C\mid\text{data}\sim\operatorname{Beta}(185,17)\). Their posterior means are \(179/202=0.8861\) and \(185/202=0.9158\). Thus the posterior mean risk difference is \(0.8861-0.9158=-0.02970\), or about \(-2.97\) percentage points.
The posterior variances are \(179(23)/[202^2(203)]=0.0004971\) and \(185(17)/[202^2(203)]=0.0003798\). Independence gives \(s_\Delta=\sqrt{0.0004971+0.0003798}=0.02961\). The normal approximation to the posterior probability is therefore \(\Phi[(-0.02970+0.08)/0.02961]=\Phi(1.699)\approx0.955\).
Under this approximation, the posterior probability that the experimental response probability is no more than 8 percentage points below the control probability is about 95.5%. This supports a noninferiority conclusion under a decision rule requiring at least that probability, if such a rule was prespecified. It does not show that the treatments are equal or that the experimental treatment is superior.
Worked Example: A Posterior Probability That Does Not Meet a High Threshold
In a second hypothetical trial, 160 of 200 experimental-arm participants and 176 of 200 active-control participants have the favorable outcome. Keep independent \(\operatorname{Beta}(1,1)\) priors, but suppose the clinically justified margin is \(M=0.05\), or 5 percentage points. The fixed-time binary endpoint and independence assumptions are taken to hold for this illustration.
The posteriors are \(\operatorname{Beta}(161,41)\) and \(\operatorname{Beta}(177,25)\). The posterior means are \(161/202=0.7970\) and \(177/202=0.8762\), giving \(\mu_\Delta=-0.07921\). The posterior variances are \(161(41)/[202^2(203)]=0.0007968\) and \(177(25)/[202^2(203)]=0.0005340\). Hence \(s_\Delta=\sqrt{0.0007968+0.0005340}=0.03648\).
The approximate posterior probability is \(\Phi[(-0.07921+0.05)/0.03648]=\Phi(-0.801)\approx0.212\). Only about 21.2% of the approximate posterior distribution lies above the noninferiority threshold \(-0.05\). Under a rule requiring a high posterior probability of noninferiority, these data do not support noninferiority. The observed difference alone is not the decision: the margin and uncertainty both matter.
Worked Example: A Wider Margin Changes the Probability, Not the Data
A third hypothetical trial has 88 favorable outcomes among 100 experimental-arm participants and 90 among 100 active-control participants. With the same independent uniform priors, the posteriors are \(\operatorname{Beta}(89,13)\) and \(\operatorname{Beta}(91,11)\). Suppose the margin, justified before analysis, is \(M=0.10\), or 10 percentage points. Assume the endpoint and independent-binomial conditions described above are appropriate.
The posterior means are \(89/102=0.8725\) and \(91/102=0.8922\), so \(\mu_\Delta=-0.01961\). The posterior variances are \(89(13)/[102^2(103)]=0.001080\) and \(91(11)/[102^2(103)]=0.0009343\). Therefore \(s_\Delta=\sqrt{0.001080+0.0009343}=0.04488\).
The approximate probability is \(\Phi[(-0.01961+0.10)/0.04488]=\Phi(1.791)\approx0.963\). The data yield an approximate 96.3% posterior probability that the response-rate difference exceeds \(-10\) percentage points. A wider margin makes the criterion easier to meet, but it does not make the trial more informative. This is why a margin must be justified clinically and prespecified rather than selected to obtain a favorable result.
Checks, Alternatives, and Limits
Before reporting a result, confirm that the outcome direction, contrast, and margin all match the clinical question. For a favorable endpoint, \(\Delta=p_E-p_C\) and the threshold is \(-M\); the probability being reported is the posterior mass above that threshold. Report the margin in percentage points and describe the posterior probability in context. If the decision rule requires, for example, at least 0.95 posterior probability, state that rule explicitly and distinguish it from the calculated probability.
The normal approximation is a diagnostic shortcut, not a substitute for checking the posterior shape. Compare it with numerical integration or posterior simulation if either arm has few events, many outcomes at one boundary, or a visibly skewed posterior. For simulation, inspect Monte Carlo precision: an estimate based on too few draws can fluctuate enough to affect a decision near its probability threshold. Also check the prior’s implications. A \(\operatorname{Beta}(1,1)\) prior is uniform for each arm probability, but it is not automatically noninformative for every contrast or for a clinical decision.
The binomial analysis can be misleading if participants’ outcomes are dependent, assessment times differ, or missing outcomes are handled in a way that could favor one arm. The active control must also have been used in circumstances that make its expected effect credible; inadequate adherence or poor execution can make both arms look alike without demonstrating that the experimental treatment preserves meaningful benefit. Sensitivity analyses for reasonable prior and missing-data assumptions may be important. The basic calculation does not repair flaws in trial conduct or endpoint definition.
A frequentist noninferiority analysis typically assesses a confidence interval relative to the same margin, with its own prespecified testing procedure. The Bayesian analysis instead reports posterior probability under an explicit model and prior. Neither approach makes margin choice automatic, and neither should be described as showing “no difference” just because noninferiority is supported. Noninferiority also differs from superiority: it allows an acceptable loss and does not require evidence that the experimental treatment improves the outcome.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- For a favorable binary outcome, define the risk difference and state the noninferiority region when the margin is 6 percentage points.
- In one arm, 42 of 50 participants have the favorable outcome under a \(\operatorname{Beta}(1,1)\) prior. Give the posterior distribution and posterior mean.
- Why is the posterior variance of the risk difference the sum of the arm-specific posterior variances in the independent-prior model?
- A reported posterior probability of noninferiority is 0.91, and the prespecified decision rule requires at least 0.95. What conclusion follows under that rule?
- Why can a larger noninferiority margin increase the probability of meeting the criterion without adding information to the trial?
Solutions. 1. Define \(\Delta=p_E-p_C\); with \(M=0.06\), noninferiority is \(\Delta>-0.06\). 2. The posterior is \(\operatorname{Beta}(43,9)\), with mean \(43/52=0.8269\). 3. The arm-specific posterior probabilities are independent, so the covariance of \(p_E\) and \(p_C\) is zero; thus \(\operatorname{Var}(p_E-p_C)=\operatorname{Var}(p_E)+\operatorname{Var}(p_C)\). 4. The probability is below the required threshold, so the decision rule is not met; this does not prove inferiority. 5. Increasing \(M\) moves the threshold \(-M\) downward, so more posterior values of \(\Delta\) exceed it. The observations and their uncertainty remain unchanged.