Why agreement and conflict matter
When a trial has few participants, historical response data may be useful, but they may not describe the current trial well. A robust mixture represents that uncertainty directly: one prior component permits borrowing from historical information, while another protective component limits borrowing when current outcomes are poorly aligned with that information. The current data update both components, and also update the probability assigned to each component.
This tutorial develops that calculation for a binary endpoint. The examples use hypothetical counts. The aim is to see precisely how agreement and conflict affect the posterior distribution of the current response probability, not to treat a historical response rate as automatically exchangeable with a current one.
Model and assumptions
The borrowing component may be specified by translating historical evidence into beta parameters; for example, a historical count can be combined with a prespecified beta baseline prior. The protective component is chosen to represent a defensible, less-borrowing distribution for \(p\). Neither component is guaranteed to be appropriate merely because it has been given a label. The endpoint definition, follow-up period, patient population, response ascertainment, and trial conduct must support the model and the historical information used to construct the borrowing component.
The mixture weight \(w\) is the prior probability assigned to the borrowing component, not the fraction of current participants who are historical participants. For the conjugate calculations below, the component parameters and \(w\) are specified before observing the current count. The binomial likelihood also assumes a fixed number \(n\) of evaluable participants and a common \(p\). Missing outcomes, varying follow-up, clustering, or important patient-level differences may require another likelihood.
Component updates and posterior mixture weights
For observed \(X=x\), the likelihood is proportional to \(p^x(1-p)^{n-x}\). Multiplication by a beta density gives a beta posterior within each component. The posterior probability of the borrowing component depends on how well that component predicted the observed count relative to the protective component.
Here \(Z\) denotes the component from which the prior for \(p\) was drawn. Define the beta function by \(B(a,b)=\int_0^1p^{a-1}(1-p)^{b-1}\,dp\). The probability of the observed count under a component is its beta-binomial marginal likelihood. The binomial coefficient is common to both components and cancels in the posterior weight:
Thus the posterior distribution is itself a mixture, with borrowing weight \(w_{\mathrm{post}}\). Its posterior mean is the weighted average of the two component posterior means. This average is also the model-based posterior predictive probability of response for one additional participant with the same response probability \(p\).
The calculation has a useful interpretation. The data affect the posterior in two ways: they change the response probability within each component, and they change the relative support for the components. Treating the mixture weight as fixed after observing the data misses the second update.
Worked Example: The Component-Weight Update
Suppose hypothetical historical information motivates a borrowing prior \(\operatorname{Beta}(8,12)\), with mean \(8/(8+12)=0.400\). Use a protective prior \(\operatorname{Beta}(1,9)\), with mean \(0.100\), and set \(w=0.5\). In a hypothetical current trial, \(x=2\) of \(n=4\) participants respond. The observed proportion, \(2/4=0.500\), is reasonably aligned with the borrowing prior mean.
The component posteriors are \(\operatorname{Beta}(10,14)\) and \(\operatorname{Beta}(3,11)\). For the borrowing component, the marginal likelihood is \(6B(10,14)/B(8,12)\). Using the beta-function ratio, \(B(10,14)/B(8,12)=(8\cdot9)(12\cdot13)/(20\cdot21\cdot22\cdot23)=11232/212520\). Thus \(m_B=6(11232/212520)=0.3171\).
For the protective component, \(B(3,11)/B(1,9)=(1\cdot2)(9\cdot10)/(10\cdot11\cdot12\cdot13)=180/17160\), so \(m_P=6(180/17160)=0.06294\). Therefore \(w_{\mathrm{post}}=0.5(0.3171)/[0.5(0.3171)+0.5(0.06294)]=0.8344\). The data raise the borrowing-component weight from 0.500 to 0.8344 because this component assigned greater predictive probability to the observed count.
The component posterior means are \(10/24=0.4167\) and \(3/14=0.2143\). The mixture posterior mean is \(0.8344(0.4167)+0.1656(0.2143)=0.3832\). Under the specified model, the posterior predictive probability that the next comparable participant responds is 0.3832. This is not a claim that the true response probability is known to equal that number.
Justifying the reweighting
The weight formula follows directly from conditioning on the component indicator. Before observing the count, \(P(Z=B)=w\) and \(P(Z=P)=1-w\). The probability of observing \(x\) responses, conditional on either component, is the likelihood averaged over that component’s beta prior. Applying Bayes’ rule gives:
For either component \(j\), the averaging step is \(\int_0^1\binom{n}{x}p^x(1-p)^{n-x} p^{a_j-1}(1-p)^{b_j-1}/B(a_j,b_j)\,dp\). Combining powers of \(p\) and \(1-p\) gives \(\binom{n}{x}B(a_j+x,b_j+n-x)/B(a_j,b_j)\), the stated beta-binomial marginal likelihood. This shows why the component weight responds to predictive agreement, rather than simply to whether the observed proportion lies above or below a prior mean.
Worked Example: Strong Conflict Reduces Borrowing
Keep the hypothetical priors \(\operatorname{Beta}(8,12)\) and \(\operatorname{Beta}(1,9)\), and the initial weight \(w=0.5\). Now suppose the current trial observes \(x=0\) responses among \(n=4\) participants. The result conflicts with the borrowing prior mean of 0.400 and is more compatible with the protective prior.
The component posteriors are \(\operatorname{Beta}(8,16)\) and \(\operatorname{Beta}(1,13)\). For the borrowing component, \(m_B=B(8,16)/B(8,12)=(12\cdot13\cdot14\cdot15)/(20\cdot21\cdot22\cdot23)=0.1541\). For the protective component, \(m_P=B(1,13)/B(1,9)=(9\cdot10\cdot11\cdot12)/(10\cdot11\cdot12\cdot13)=9/13=0.6923\). The common binomial coefficient is 1 because \(x=0\).
The updated borrowing weight is \(0.5(0.1541)/[0.5(0.1541)+0.5(0.6923)]=0.1821\). The component posterior means are \(8/24=0.3333\) and \(1/14=0.07143\). Consequently, the mixture posterior mean response probability is \(0.1821(0.3333)+0.8179(0.07143)=0.1191\). The low current count has shifted the mixture toward the protective component, while the borrowing component still contributes some probability.
Worked Example: The Starting Weight Still Matters
Using the same zero-response data and component marginal likelihoods as above, suppose the prespecified prior borrowing weight had instead been \(w=0.8\). The posterior borrowing weight would be \(0.8(0.1541)/[0.8(0.1541)+0.2(0.6923)]=0.4711\). Conflict reduces borrowing relative to the initial weight of 0.800, but it does not force the posterior weight to zero.
The posterior mean response probability is then \(0.4711(0.3333)+0.5289(0.07143)=0.1948\), higher than the 0.1191 obtained with \(w=0.5\). Thus conflict-driven reweighting does not erase the influence of prespecified choices. The starting mixture weight and both component distributions remain consequential, especially when the current sample is small.
Diagnostics, alternatives, and limitations
Before interpreting a posterior, check that the response count corresponds to the intended endpoint and analysis population, and that the assumed \(n\) and \(x\) are correct. Confirm that each component has positive shape parameters and that \(0<w<1\). Recalculate both component marginal likelihoods and verify that the posterior weights are nonnegative and sum to one. The component means and the mixture mean should lie between 0 and 1, and the mixture mean should lie between the two component means.
A very small posterior borrowing weight can indicate that the observed count is poorly predicted by the borrowing component, but it is not by itself proof that the historical and current populations differ. Conversely, a large weight does not establish exchangeability: two components can both fit poorly, or the protective component may not cover plausible current response rates. Review the endpoint, follow-up, eligibility criteria, and clinical context alongside the calculation. With very small samples, one or two outcomes can shift the weights substantially.
A single beta prior is simpler, but it cannot represent both the possibility of borrowing and a distinct protective alternative in this way. A pooled analysis that combines historical and current counts directly can amount to stronger borrowing and does not adapt its borrowing weight through this two-component update. The robust mixture makes the alternative component explicit, but it is not a substitute for checking the likelihood or justifying the prior components. In particular, a common-\(p\) binomial model can be inadequate with overdispersion, substantial patient heterogeneity, or time-varying response probabilities. More elaborate regression models address different structures and should not be inferred from this simple count model.
A common mistake is to calculate the two beta posterior means and then average them using the original weight \(w\). That leaves the component probabilities unchanged after seeing the data. The correction is to calculate each component’s marginal likelihood and update its weight with Bayes’ rule before averaging. Another mistake is to call \(w_{\mathrm{post}}\) the probability that the historical data are “true.” It is the posterior probability of a specified prior component under the model, not a general measure of historical validity.
Check Your Understanding
Answer each question, then compare with the solutions below.
- With prior components \(\operatorname{Beta}(8,12)\) and \(\operatorname{Beta}(1,9)\), what are the component posterior distributions after \(x=3\) responses among \(n=5\) participants?
- For the zero-response example with initial \(w=0.5\), why does the posterior borrowing weight fall below 0.5?
- For that same example, what posterior borrowing weight results if the initial weight is \(w=0.8\)?
- What does the mixture posterior mean represent for the next comparable participant, and what does it not establish?
Solutions. (1) Add the observed successes and failures to the corresponding beta shapes: the posteriors are \(\operatorname{Beta}(8+3,12+2)=\operatorname{Beta}(11,14)\) and \(\operatorname{Beta}(1+3,9+2)=\operatorname{Beta}(4,11)\). (2) The component marginal likelihoods are 0.1541 for borrowing and 0.6923 for protection. Hence \(w_{\mathrm{post}}=0.5(0.1541)/[0.5(0.1541)+0.5(0.6923)]=0.1821\); the observed zero responses were more predictive under the protective component. (3) Substitution gives \(0.8(0.1541)/[0.8(0.1541)+0.2(0.6923)]=0.4711\). (4) It is the model-based posterior predictive probability of response, obtained by averaging \(p\) under its posterior distribution. It does not prove that the true probability equals the mean or establish that historical and current participants are exchangeable.