Tutorials › Bayesian Clinical Trials › Deriving the Robust Mixture Posterior

Robustness to Prior-Data Conflict · Tutorial 406 of 696

Deriving the Robust Mixture Posterior

Learn to derive the full posterior under a robust mixture prior and use its component-specific posteriors to calculate treatment-effect probabilities and summaries.

Advanced 10 min read

What You'll Learn

  • Express a robust prior as a weighted mixture of component priors.
  • Derive the overall marginal likelihood from the component marginal likelihoods.
  • Show why the posterior is a weighted mixture of component-specific posteriors.
  • Handle components with zero marginal likelihood without using an undefined posterior.
  • Calculate treatment-effect probabilities, means, and variances from the posterior mixture.
  • Recognize when component averaging is not equivalent to selecting one component or pooling prior summaries.

From a Mixture Prior to a Mixture Posterior

A robust mixture prior represents uncertainty about how well different sources of information apply to a treatment effect. One component might encode a borrowing model and another a protective model. After observing trial data, the posterior must reflect both the parameter values supported within each component and how well each component predicted the observed data. The result is a mixture of component-specific posteriors, with updated component weights.

This tutorial derives that result for a general likelihood. It does not require a normal model, a binary outcome, or a particular form of treatment effect. The key is to keep two operations distinct: updating the parameter within a component, and updating the probability assigned to that component.

Definition: Let \(\theta\) denote a treatment effect and \(y\) the observed data. A \(K\)-component mixture prior has the form \(\Pi(\theta)=\sum_{k=1}^{K}\omega_k\Pi_k(\theta)\), where \(\omega_k\geq 0\), \(\sum_{k=1}^{K}\omega_k=1\), and \(\Pi_k\) is the prior distribution in component \(k\). Here \(\Pi(\theta)\) denotes a distribution, not necessarily a density. The likelihood \(L(y\mid\theta)\) is the data model shared across components.

The component label can be viewed as a latent indicator: before seeing the data, component \(k\) has probability \(\omega_k\), and conditional on that component, \(\theta\) has distribution \(\Pi_k\). This representation is a way to express a prior distribution; it does not assert that the component label is an observed feature of the trial.

For a continuous observation, the marginal likelihood below is the density of the observation under a component, evaluated at the observed \(y\). For discrete data, it is the probability of the observed outcome. In either case, the likelihood must be defined under the same sampling model for all components. The component priors are proper, and the component marginal likelihoods used to form component posteriors are finite and strictly positive. The overall mixture marginal likelihood must also be positive. A component with zero marginal likelihood is treated separately below.

Deriving the Posterior Distribution

Define the component marginal likelihood by integrating the likelihood over that component's prior. The mixture marginal likelihood follows by averaging those component marginal likelihoods using the prior component weights.

$$ m_k(y)=\int L(y\mid\theta)\,\Pi_k(d\theta), \qquad m(y)=\sum_{k=1}^{K}\omega_k m_k(y). $$

For a component with \(m_k(y)>0\), Bayes' rule gives its component-specific posterior distribution. Applying Bayes' rule to the mixture prior gives the full posterior distribution.

$$ \Pi_k(A\mid y)= \frac{\int_A L(y\mid\theta)\,\Pi_k(d\theta)}{m_k(y)}, \qquad \Pi(A\mid y)= \frac{\sum_{k=1}^{K}\omega_k\int_A L(y\mid\theta)\,\Pi_k(d\theta)}{m(y)}. $$

Here \(A\) is any set of treatment-effect values. Substituting the component-posterior expression into the full-posterior expression yields the mixture representation. This is the central result: the posterior distribution is a mixture of component-specific posteriors, with weights updated by the data.

$$ \Pi(A\mid y)=\sum_{k=1}^{K}\widetilde{\omega}_k(y)\Pi_k(A\mid y), \qquad \widetilde{\omega}_k(y)=\frac{\omega_k m_k(y)}{\sum_{j=1}^{K}\omega_jm_j(y)}. $$
1
Calculate each component's evidence.
Integrate the likelihood against \(\Pi_k\) to obtain \(m_k(y)\). This measures how much predictive probability or density component \(k\) assigned to the observed data.
2
Update the component probabilities.
Multiply each prior weight \(\omega_k\) by its component marginal likelihood and normalize to obtain \(\widetilde{\omega}_k(y)\).
3
Update within each component.
Use Bayes' rule to obtain \(\Pi_k(\theta\mid y)\) for each component with positive marginal likelihood.
4
Combine the component posteriors.
For any event about \(\theta\), average its component-specific posterior probabilities using the updated weights.

The algebra also explains why the weights and the component posteriors are both necessary. The numerator for the probability of \(A\) in the full posterior is the sum of the component contributions \(\omega_k\int_A L(y\mid\theta)\Pi_k(d\theta)\). Each such contribution factors into \(\omega_km_k(y)\) times \(\Pi_k(A\mid y)\). Dividing by \(m(y)\) turns the first factor into \(\widetilde{\omega}_k(y)\), giving the stated mixture.

If \(m_k(y)=0\), then \(\omega_km_k(y)=0\), so that component contributes nothing to the full posterior, provided the overall marginal likelihood is positive. But the expression for \(\Pi_k(\theta\mid y)\) divides by \(m_k(y)\) and is not defined for that component. Omit it from the posterior-mixture formula; do not assign it a component posterior by dividing by zero. If \(\omega_k=0\), the component likewise contributes nothing, regardless of its marginal likelihood.

Worked Example: Combining Two Component Posteriors

Suppose a hypothetical treatment effect \(\theta\), measured in an arbitrary effect unit, can take values \(-1,0,1\). The observed data consist of a single categorical outcome \(y\), with likelihoods \(L(y\mid-1)=0.10\), \(L(y\mid0)=0.40\), and \(L(y\mid1)=0.50\). Two prior components and their mixture weights are:

Value of \(\theta\)Component 1 priorComponent 2 prior
\(-1\)0.100.60
00.200.30
10.700.10

Let the prior mixture weights be \(\omega_1=0.70\) and \(\omega_2=0.30\). The component marginal likelihoods are

$$ m_1(y)=(0.10)(0.10)+(0.20)(0.40)+(0.70)(0.50)=0.440, \qquad m_2(y)=(0.60)(0.10)+(0.30)(0.40)+(0.10)(0.50)=0.230. $$

The mixture marginal likelihood is \(m(y)=(0.70)(0.440)+(0.30)(0.230)=0.377\). Thus the updated component weights are

$$ \widetilde{\omega}_1(y)=\frac{0.70(0.440)}{0.377}=0.8170, \qquad \widetilde{\omega}_2(y)=\frac{0.30(0.230)}{0.377}=0.1830. $$

Within component 1, the posterior probabilities at \(-1,0,1\) are \(0.010/0.440=0.02273\), \(0.080/0.440=0.1818\), and \(0.350/0.440=0.7955\). Within component 2, they are \(0.060/0.230=0.2609\), \(0.120/0.230=0.5217\), and \(0.050/0.230=0.2174\).

Now combine these distributions. For example, the full posterior probability of \(\theta=-1\) is \[ (0.8170)(0.02273)+(0.1830)(0.2609)=0.06631. \] The corresponding calculations for \(0\) and \(1\) give \(0.2440\) and \(0.6897\). The probabilities sum to 1 (up to rounding). In this hypothetical analysis, the posterior probability that the effect is positive is therefore \(0.6897\). This probability is a posterior probability under the specified likelihood and mixture prior, not a frequentist error rate.

Zero-Contribution Components and Validity Conditions

Proper component priors do not, by themselves, guarantee that every component posterior can be calculated for every possible observation. A component may assign zero probability or density to the observed data. Its marginal likelihood is then zero, and its conditional posterior given those data is undefined. The full posterior can nevertheless be well-defined if another component assigns positive marginal likelihood to the observation.

Worked Example: A Component With Zero Marginal Likelihood

Consider a hypothetical binary observation \(Y\) and a treatment effect taking values \(\theta=0\) or \(\theta=1\). Suppose the observed outcome is \(Y=1\), with \(P(Y=1\mid\theta=0)=0\) and \(P(Y=1\mid\theta=1)=1\). Component 1 assigns all prior probability to \(\theta=0\), component 2 assigns all prior probability to \(\theta=1\), and their prior mixture weights are 0.25 and 0.75.

For component 1, \(m_1(y)=1(0)=0\). For component 2, \(m_2(y)=1(1)=1\). Therefore, the overall marginal likelihood is \(m(y)=(0.25)(0)+(0.75)(1)=0.75\), which is positive. The updated weight of component 1 is zero, while the updated weight of component 2 is \(0.75/0.75=1\). The full posterior puts probability 1 on \(\theta=1\).

It would be incorrect to form a component 1 posterior by dividing its likelihood-weighted prior by \(m_1(y)=0\). There is no component 1 posterior conditional on this observation under the displayed ratio; its contribution to the full posterior is simply zero.

In applications, check that the integrals defining the marginal likelihoods are finite. For each component used in a component-posterior formula, also check that its marginal likelihood is strictly positive. A positive overall marginal likelihood alone is not enough to establish positivity for every component. If all weighted components have zero marginal likelihood, the data receive zero marginal probability or density under the mixture, and Bayes' rule in this form cannot produce a posterior.

Posterior Summaries From a Mixture

For any event \(A\), the full posterior probability is the updated-weighted average of the component probabilities. The same averaging rule applies to posterior expectations when the expectations exist. In particular, if the component posterior means are \(\mu_k(y)=E(\theta\mid y,k)\), then \(E(\theta\mid y)=\sum_k\widetilde{\omega}_k(y)\mu_k(y)\). Other summaries require care: a mixture's variance includes both within-component uncertainty and variation between component means. A quantile must be obtained from the full mixture distribution, not by averaging component quantiles.

Worked Example: Posterior Mean, Probability, and Variance

Suppose \(\theta\) is a hypothetical treatment effect in effect units and can equal 0 or 2. The observed categorical outcome \(y\) has likelihoods \(L(y\mid0)=0.20\) and \(L(y\mid2)=0.80\). Two components have equal prior weights. Component 1 assigns prior probabilities 0.75 and 0.25 to 0 and 2; component 2 assigns probabilities 0.25 and 0.75.

The marginal likelihoods are \(m_1(y)=(0.75)(0.20)+(0.25)(0.80)=0.350\) and \(m_2(y)=(0.25)(0.20)+(0.75)(0.80)=0.650\). With prior weights of 0.50 each, the overall marginal likelihood is \(0.50(0.350)+0.50(0.650)=0.500\), and the posterior component weights are \(0.350\) and \(0.650\).

The component 1 posterior probability of \(\theta=2\) is \(0.25(0.80)/0.350=4/7\). For component 2 it is \(0.75(0.80)/0.650=12/13\). Thus the full posterior probability is \[ P(\theta=2\mid y)=(0.350)(4/7)+(0.650)(12/13)=0.200+0.600=0.800. \] It follows that \(P(\theta=0\mid y)=0.200\), and the posterior mean is \(E(\theta\mid y)=(0)(0.200)+(2)(0.800)=1.600\) effect units.

The second moment is \(E(\theta^2\mid y)=(0^2)(0.200)+(2^2)(0.800)=3.200\) effect units squared. Consequently, the posterior variance is \(3.200-(1.600)^2=0.6400\) effect units squared. The posterior standard deviation is \(\sqrt{0.6400}=0.8000\) effect units. These are summaries of the full posterior mixture.

Comparisons, Diagnostics, and Limitations

The posterior mixture is not the same as selecting the component with the largest updated weight. Selection discards posterior uncertainty about which component applies; the mixture retains that uncertainty. Nor is it generally equivalent to averaging prior means and then updating one prior: the data update each component according to its own marginal likelihood and its own likelihood-weighted parameter distribution.

ApproachWhat it representsWhat it leaves out or changes
Full posterior mixtureA weighted combination of component posteriors using updated weightsDepends on the specified components, prior weights, and likelihood
Select one componentInference conditional on a single chosen componentDoes not propagate uncertainty across components
Pool prior summaries, then updateA single prior constructed from a summary such as a meanGenerally does not preserve the component-specific updating or mixture shape

Useful checks are algebraic as well as substantive. Confirm that the prior component weights sum to 1, the updated weights are nonnegative and sum to 1, each included component posterior is normalized, and the resulting posterior probabilities of disjoint exhaustive events sum to 1. In numerical work, a component with a very small marginal likelihood can have a very small updated weight; rounding too early can make that component appear to have weight zero. Compute with adequate precision before rounding reported results.

The mixture construction does not guarantee robustness to every kind of model failure. It only averages over the components actually specified. If the likelihood is misspecified, if the treatment-effect parameter is not comparable across components, or if all components predict the observation poorly, the posterior mixture does not repair that problem automatically. Component choices and prior mixture weights remain assumptions that affect inference.

Common mistake: “The updated weight of a component is its posterior probability, so I can report that weight as the treatment-effect posterior.” The weight is the posterior probability of the component, not the distribution of \(\theta\) within that component. The treatment-effect posterior is obtained by combining the component-specific posteriors using those updated weights. If a component has zero marginal likelihood, omit its zero contribution; do not display a conditional component posterior formed by dividing by zero.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. There are two components with prior weights 0.60 and 0.40 and marginal likelihoods 0.20 and 0.50. What are the posterior component weights?
  2. If a component has zero marginal likelihood but another component has a positive marginal likelihood and positive prior weight, what happens to the zero-marginal component in the full posterior?
  3. For an event \(A\), component posterior probabilities are 0.30 and 0.80, and the updated component weights are 0.25 and 0.75. Find the full posterior probability of \(A\).
  4. Why is averaging component posterior variances alone generally insufficient to obtain the full posterior variance?

Solutions. For question 1, the overall marginal likelihood is \(0.60(0.20)+0.40(0.50)=0.32\), so the weights are \(0.12/0.32=0.375\) and \(0.20/0.32=0.625\). For question 2, that component has updated weight zero and contributes nothing; its component posterior given the data is undefined by the usual ratio. For question 3, the full probability is \(0.25(0.30)+0.75(0.80)=0.675\). For question 4, the full variance includes both within-component variance and between-component variation in the component means.

Clinical Biostats