Why Colocalization Uses Five Posterior Probabilities
At a genomic region associated with both a phenotype and a molecular trait, the association results alone do not establish whether the same variant underlies both signals. Colocalization addresses that question by comparing five hypotheses: neither trait is associated, only the first trait is associated, only the second is associated, both are associated through distinct variants, or both share one causal variant. The posterior probabilities quantify support for these alternatives after combining the association evidence with prior weights.
The calculation has two ingredients. For each candidate variant, a Bayes factor summarizes how well that variant’s causal model explains the evidence for one trait relative to that trait’s null model. Prior weights then represent the relative plausibility of the hypotheses and variant configurations before observing the association evidence. The resulting weights are normalized to sum to one.
Here, trait 1 and trait 2 refer to the two traits being compared, and the candidate variants are indexed \(i=1,\ldots,m\). The five hypotheses are as follows. H0 means neither trait has a causal variant in the region. H1 means only trait 1 is associated. H2 means only trait 2 is associated. H3 means both traits are associated, but their causal variants are distinct. H4 means both traits are associated and share the same causal variant.
The derivation below uses the single-causal-variant assumption: each trait has either no causal variant in the region or exactly one. It also assumes the two traits’ evidence can be factored into trait-specific evidence once a causal configuration is specified. The candidate variants must refer to the same set of genomic positions for both traits, and the Bayes factors must be calculated against their respective trait-specific null models.
From Variant Evidence to Hypothesis Weights
Let \(p_1\) and \(p_2\) be the per-variant prior weights for a causal effect on trait 1 and trait 2, respectively. Let \(p_{12}\) be the prior weight for a shared causal variant. These are small prior weights, not posterior probabilities. Take the all-null configuration as the reference with weight 1. A configuration in which variant \(i\) is causal only for trait 1 has prior weight \(p_1\); its evidence relative to the all-null configuration is \(BF_{1i}\). Thus its unnormalized posterior weight is \(p_1 BF_{1i}\). Summing over possible causal variants gives the H1 weight. The other hypotheses follow by the same logic.
For H3, the indices must differ: if \(i\) is causal for trait 1, then \(j\ne i\) is causal for trait 2. The prior weight for that pair is \(p_1p_2\), and the joint evidence factor is \(BF_{1i}BF_{2j}\). For H4, the same variant \(i\) is causal for both traits, so the evidence factor is \(BF_{1i}BF_{2i}\), with shared-variant prior weight \(p_{12}\). This distinction between matching and different indices is the central calculation in the posterior derivation.
The H3 sum can also be evaluated using two simpler sums. Every product formed by selecting one variant for trait 1 and one for trait 2 is either a same-variant product or a distinct-variant product. Therefore,
Rearranging gives the usual compact expression for the H3 evidence term. The subtraction removes the same-variant configurations, which belong to H4 rather than H3.
Finally, the \(W_k\) values are unnormalized weights. Bayes’ rule says that the posterior probability of a hypothesis is proportional to its prior weight times the evidence under that hypothesis. Dividing each weight by their sum yields probabilities that add to one:
where \(D\) denotes the association evidence for both traits. This normalization is necessary: a large H4 weight by itself does not equal the H4 posterior probability, because the other four hypotheses also contribute to the denominator.
Worked Calculations
Worked Example: Separating Shared and Distinct Variant Evidence
Suppose a hypothetical region has three candidate variants. The trait-specific Bayes factors are \(BF_1=(4,2,1)\) and \(BF_2=(1,3,2)\). Use \(p_1=0.010\), \(p_2=0.020\), and \(p_{12}=0.001\). First calculate the aggregate evidence terms.
For trait 1, the Bayes factors sum to \(4+2+1=7\); for trait 2, they sum to \(1+3+2=6\). The same-variant products sum to \(4(1)+2(3)+1(2)=12\). The product of the two aggregate sums is \(7(6)=42\), so the distinct-variant sum is \(42-12=30\).
The unnormalized weights are therefore \(W_0=1\), \(W_1=0.010(7)=0.070\), \(W_2=0.020(6)=0.120\), \(W_3=0.010(0.020)(30)=0.006\), and \(W_4=0.001(12)=0.012\). The normalizing total is \(1+0.070+0.120+0.006+0.012=1.208\).
Thus \(P(H_4\mid D)=0.012/1.208=0.00993\), or about 0.993%. The H3 posterior is \(0.006/1.208=0.00497\), or about 0.497%. In this example, the evidence and specified prior weights leave most posterior probability on H0, H1, and H2; the data provide little posterior support for either form of joint association.
Worked Example: Why the Same-Variant Products Must Be Removed From H3
Consider two hypothetical variants with \(BF_1=(10,1)\) and \(BF_2=(8,4)\). Let \(p_1=p_2=0.010\) and \(p_{12}=0.001\). The aggregate sums are \(10+1=11\) and \(8+4=12\), so their product is \(11(12)=132\).
The matching-index products are \(10(8)=80\) and \(1(4)=4\), giving a same-variant sum of \(80+4=84\). The distinct-index products are \(10(4)=40\) and \(1(8)=8\), so their sum is \(40+8=48\). This agrees with the subtraction: \(132-84=48\).
The weights are \(W_0=1\), \(W_1=0.010(11)=0.110\), \(W_2=0.010(12)=0.120\), \(W_3=0.010(0.010)(48)=0.0048\), and \(W_4=0.001(84)=0.084\). Their total is \(1+0.110+0.120+0.0048+0.084=1.3188\).
Normalizing gives \(P(H_4\mid D)=0.084/1.3188=0.06369\), about 6.369%, and \(P(H_3\mid D)=0.0048/1.3188=0.00364\), about 0.364%. Although variant 1 has the larger Bayes factor for each trait, H4 is not certain: the H4 posterior also depends on the prior weight and on the weights for all competing hypotheses.
Worked Example: Normalizing All Five Hypotheses
For a further hypothetical region, suppose the prior weights are \(p_1=p_2=0.010\) and \(p_{12}=0.001\). Assume the trait-specific Bayes factors have aggregate sums \(\sum_i BF_{1i}=103\) and \(\sum_i BF_{2i}=84\), with same-variant product sum \(\sum_i BF_{1i}BF_{2i}=8007\). These aggregate values could arise from evidence across several candidate variants. The distinct-variant sum is \(103(84)-8007=8652-8007=645\).
The hypothesis weights are \(W_0=1\), \(W_1=0.010(103)=1.03\), \(W_2=0.010(84)=0.84\), \(W_3=0.010(0.010)(645)=0.0645\), and \(W_4=0.001(8007)=8.007\). The normalizing total is \(1+1.03+0.84+0.0645+8.007=10.9415\).
The posterior probabilities are obtained by dividing each weight by 10.9415: \(P(H_0\mid D)=1/10.9415=0.09140\); \(P(H_1\mid D)=1.03/10.9415=0.09414\); \(P(H_2\mid D)=0.84/10.9415=0.07677\); \(P(H_3\mid D)=0.0645/10.9415=0.005895\); and \(P(H_4\mid D)=8.007/10.9415=0.7318\). The rounded values sum to 1.000.
Under these specified priors and model assumptions, H4 has posterior probability about 73.18%, the largest of the five. This is substantial support for a shared causal variant relative to the alternatives, but it is not a claim that sharing is certain. The remaining posterior probability is distributed across H0, H1, H2, and H3.
Interpretation, Assumptions, and a Common Pitfall
A colocalization posterior is conditional on the candidate region, the evidence summarized by the Bayes factors, the prior weights, and the model assumptions. In particular, the single-causal-variant assumption matters: if either trait has multiple causal variants in the region, the five-hypothesis calculation may not represent the data-generating possibilities adequately. The calculation also depends on having aligned variant identities across the two traits; otherwise, same-index products do not refer to the same genomic variant.
The posterior \(P(H_4\mid D)\) is the probability assigned to the shared-variant hypothesis under the specified model and priors, after observing the evidence. It is not the probability that the traits are causally related to one another, and it does not show that changing the molecular trait would change the phenotype. Colocalization concerns whether the association signals share a variant, not whether one trait mediates the effect of the variant on the other.
A common mistake is to calculate H3 as \(p_1p_2(\sum_i BF_{1i})(\sum_j BF_{2j})\), then also calculate H4 separately. That reasoning counts same-variant configurations in H3 and again in H4, inflating the total evidence for joint association. The correction is to subtract the matching-index sum from the product of aggregate sums before multiplying by \(p_1p_2\). Another mistake is to call the largest unnormalized weight a posterior probability; normalize all five weights first.
Check Your Understanding
Work through these questions using the definitions and formulas above.
- In one sentence each, distinguish H3 from H4 in terms of the causal variant indices.
- For \(BF_1=(2,1)\) and \(BF_2=(3,4)\), calculate the same-variant product sum and the distinct-variant product sum.
- Why is the product \((\sum_i BF_{1i})(\sum_j BF_{2j})\) not, by itself, the evidence term for H3?
- If all five unnormalized weights are multiplied by the same positive constant, do their normalized posterior probabilities change? Explain using the normalization formula.
- State two model or data conditions on which the interpretation of the H4 posterior depends.