Tutorials › Statistical Genetics › Bayesian Trans-Ancestry Posterior Probabilities

Fine-Mapping Across Ancestries · Tutorial 642 of 989

Bayesian Trans-Ancestry Posterior Probabilities

Build posterior probabilities for candidate causal variants across ancestries, and understand which modeling assumptions and priors drive those probabilities.

Advanced 10 min read

What You'll Learn

  • Define a shared causal-variant hypothesis while allowing effects to differ across ancestries.
  • Derive a single-variant Bayes factor from an LD-aware summary-statistic likelihood.
  • Combine ancestry-specific evidence and variant priors to calculate posterior inclusion probabilities.
  • Extend posterior inclusion probabilities from single-variant hypotheses to multi-variant configurations.
  • Identify how prior weights, null hypotheses, LD assumptions, and ancestry dependence affect interpretation.

From Ancestry-Specific Evidence to Posterior Probabilities

At a locus, a variant can appear associated in more than one ancestry because it is causal, because it is correlated through linkage disequilibrium (LD) with a causal variant, or both. Trans-ancestry fine-mapping compares candidate causal variants using the association evidence and LD structure in each ancestry. The result is not merely a list of the strongest association statistics: it is a probability distribution over causal hypotheses, conditional on the data and the model.

A key modeling distinction is between sharing a causal variant and sharing its effect. A model can assert that the same variant is causal across ancestries while allowing its effect size to differ. This tutorial constructs posterior probabilities under that distinction, then shows how a prior over variants and the option of no causal variant affect the calculation.

Definition: A posterior inclusion probability (PIP) for variant \(j\) is the posterior probability that variant \(j\) is included as causal, conditional on the observed data, the candidate variants, and the specified likelihood and prior. In a single-causal-variant model, it is the posterior probability that \(j\) is the causal variant. In a model allowing multiple causal variants, it is the posterior probability that \(j\) belongs to the causal set.

Likelihood, LD, and the Shared-Variant Hypothesis

Suppose \(A\) ancestries have harmonized summary statistics for the same \(m\) candidate variants. For ancestry \(a\), let \(z_a\) be the vector of association \(z\)-statistics, \(R_a\) the ancestry-specific LD correlation matrix, and \(N_a\) the sample size. Assume genotypes and the phenotype have been standardized in a way that supports the usual approximate summary-statistic likelihood. Under the null of no effects at the locus, take \(z_a\sim N(0,R_a)\). Under a vector of standardized genetic effects \(\beta_a\), use the approximation

$$ z_a\mid \beta_a \sim N\!\left(\sqrt{N_a}R_a\beta_a,\ R_a\right). $$

This approximation requires correctly aligned alleles and variants, appropriate ancestry-matched LD, and a sufficiently accurate summary-statistic model. The calculation below also assumes that ancestry-specific samples are independent, so their likelihoods multiply. If samples overlap, their cross-ancestry covariance must be modeled rather than ignored. For simplicity, assume \(R_a\) is positive definite in the derivation; the implications of singular LD matrices are noted below.

For a single shared causal variant \(j\), set \(\beta_a=\theta_a e_j\), where \(e_j\) is the vector with 1 in position \(j\) and 0 elsewhere. The causal indicator is shared, but the effect \(\theta_a\) may vary across ancestries. A simple prior is \(\theta_a\sim N(0,W_a)\), independently across ancestries. The variance \(W_a\) expresses the prior scale for effects in ancestry \(a\); it is not estimated from the observed \(z\)-statistic in this calculation.

The likelihood and prior yield an ancestry-specific Bayes factor \(BF_{aj}\): the marginal likelihood under the hypothesis that \(j\) is causal, divided by the null marginal likelihood. With standardized genotypes, \(R_{a,jj}=1\), and the factor is

$$ BF_{aj} = \frac{1}{\sqrt{1+N_aW_a}} \exp\!\left\{ \frac{N_aW_a z_{aj}^{\,2}}{2(1+N_aW_a)} \right\}. $$

The shared-variant model has \(BF_j=\prod_{a=1}^{A}BF_{aj}\) under the independence assumptions. LD is part of the likelihood: \(R_a\) determines the covariance of the vector of statistics and how effects at a variant produce association patterns across correlated variants. In the single-variant Bayes-factor ratio above, this dependence simplifies to the statistic at \(j\), because the model uses the \(j\)th LD column for the mean and the same \(R_a\) under the null and alternative. That simplification does not mean that LD is irrelevant or that the \(z\)-statistics can be interpreted as independent across variants.

Worked Example: Combining Evidence Across Two Ancestries

Consider two candidate variants and two independent ancestries. Suppose the standardized summary statistics are \(z_1=(3.0,2.4)\) and \(z_2=(1.0,2.2)\). For both ancestries, let \(N_aW_a=1\). Assume each candidate has equal prior probability and that exactly one of the two candidates is causal. These are hypothetical values.

For either ancestry, the Bayes factor for a variant with statistic \(z\) is \(BF=2^{-1/2}\exp(z^2/4)\). For candidate 1, the ancestry-specific factors are

$$ BF_{11}=2^{-1/2}\exp(3.0^2/4)=6.709,\qquad BF_{21}=2^{-1/2}\exp(1.0^2/4)=0.908. $$

Thus \(BF_1=6.709(0.908)=6.09\). For candidate 2,

$$ BF_{12}=2^{-1/2}\exp(2.4^2/4)=2.984,\qquad BF_{22}=2^{-1/2}\exp(2.2^2/4)=2.371, $$

so \(BF_2=2.984(2.371)=7.08\). Equal prior probabilities make the posterior odds equal to the Bayes-factor ratio. Therefore,

$$ P(C=1\mid z)=\frac{6.09}{6.09+7.08}=0.462,\qquad P(C=2\mid z)=\frac{7.08}{6.09+7.08}=0.538. $$

Although candidate 1 has the larger statistic in the first ancestry, candidate 2 has slightly more combined support under this model. The posterior probabilities describe relative support between these two hypotheses, conditional on the assumption that exactly one candidate is causal and on the stated priors and likelihood.

Deriving the Single-Variant Bayes Factor

The formula can be justified by integrating over the uncertain effect size rather than plugging in an estimated effect. For ancestry \(a\), under candidate \(j\), integrating \(\theta_a\sim N(0,W_a)\) gives a normal distribution with mean zero and covariance \(R_a+N_aW_a R_a e_j e_j^{T}R_a\). Under the null, the covariance is \(R_a\). The matrix determinant lemma gives the ratio of determinants as \(1+N_aW_a\), since \(e_j^TR_ae_j=R_{a,jj}=1\).

For the quadratic form in the density ratio, the rank-one inverse identity gives

$$ \left(R_a+N_aW_aR_ae_je_j^TR_a\right)^{-1} = R_a^{-1} - \frac{N_aW_a}{1+N_aW_a}e_je_j^T. $$

Consequently, the alternative-minus-null log density is

$$ -\frac{1}{2}\log(1+N_aW_a) +\frac{1}{2}z_a^T \left[ R_a^{-1}- \left(R_a+N_aW_aR_ae_je_j^TR_a\right)^{-1} \right]z_a = -\frac{1}{2}\log(1+N_aW_a) +\frac{N_aW_a z_{aj}^2}{2(1+N_aW_a)}. $$

Exponentiating yields the stated \(BF_{aj}\). This argument uses \(R_a^{-1}\), so positive definiteness is required for this full-rank derivation. A correlation matrix with unit diagonal can still be singular. If LD is singular, do not apply the inverse formula as written: formulate the likelihood on its support using a reduced-rank representation or suitable pseudoinverse, and define the likelihood ratio on the common support of the null and alternative. In practice, the likelihood and any handling of near-singular LD must be specified consistently.

From Bayes Factors to PIPs

Let \(C=j\) denote the hypothesis that candidate \(j\) is the shared causal variant, and let \(\pi_j=P(C=j)\) be its prior probability. Bayes' rule gives

$$ P(C=j\mid z) = \frac{\pi_j BF_j}{\sum_{k=1}^{m}\pi_k BF_k}. $$

The denominator shown assumes the model assigns probability one across the listed single-causal hypotheses. If there may be no causal variant in the region, include a null hypothesis with prior probability \(\pi_0\) and Bayes factor \(BF_0=1\). Then the denominator is \(\pi_0+\sum_k\pi_kBF_k\). Variant priors need not be equal: annotation-informed priors can give higher prior weight to variants with specified functional features. Such weights affect posterior probabilities, but do not turn an annotation into proof of causality.

Worked Example: Changing the Variant Prior

Use the hypothetical Bayes factors \(BF_1=6.09\) and \(BF_2=7.08\) from the preceding calculation, but now suppose external annotation information motivates prior probabilities \(\pi_1=0.80\) and \(\pi_2=0.20\). Continue to assume exactly one causal candidate.

The unnormalized posterior weights are \(\pi_1BF_1=0.80(6.09)=4.872\) and \(\pi_2BF_2=0.20(7.08)=1.416\). Normalizing gives

$$ P(C=1\mid z)=\frac{4.872}{4.872+1.416}=0.775,\qquad P(C=2\mid z)=\frac{1.416}{4.872+1.416}=0.225. $$

The evidence from the summary statistics has not changed; the posterior has changed because the prior odds changed. The larger posterior for candidate 1 is therefore conditional on both the data and the annotation-informed prior. Reporting only the posterior, without stating the prior construction, can conceal an important source of variation in the result.

When more than one causal variant is allowed, the hypothesis is a configuration \(C\), a set of included variants. Give configurations prior probabilities \(\pi(C)\), calculate their marginal likelihoods relative to a null configuration, and normalize:

$$ P(C\mid z)=\frac{\pi(C)BF(C)}{\sum_{C'}\pi(C')BF(C')}, \qquad P(j\text{ included}\mid z)=\sum_{C:\,j\in C}P(C\mid z). $$

The second expression is the PIP for variant \(j\): it adds the posterior probabilities of every configuration containing that variant. The configuration Bayes factor must use the joint LD-aware likelihood; multiplying single-variant Bayes factors is generally not valid when causal effects and correlated signals are modeled jointly.

Worked Example: Including a Null Hypothesis

Return to the two candidate Bayes factors \(BF_1=6.09\) and \(BF_2=7.08\). Suppose the prior probabilities are \(\pi_0=0.20\), \(\pi_1=0.40\), and \(\pi_2=0.40\), where the null means neither candidate is causal and exactly one is causal under either non-null hypothesis. The unnormalized weights are \(0.20(1)=0.20\), \(0.40(6.09)=2.436\), and \(0.40(7.08)=2.832\). Their sum is \(5.468\). Thus

$$ P(C=0\mid z)=\frac{0.20}{5.468}=0.0366,\quad P(C=1\mid z)=\frac{2.436}{5.468}=0.446,\quad P(C=2\mid z)=\frac{2.832}{5.468}=0.518. $$

The unrounded candidate posterior mass is \((2.436+2.832)/5.468=0.9634236\) (approximately \(0.963\)); the separately rounded displayed candidate probabilities sum to \(0.964\). The remaining posterior probability is on the null (\(0.0366\)). Omitting the null and renormalizing over variants would make their probabilities sum to 1 and would answer a different conditional question.

What the Probabilities Depend On

A trans-ancestry PIP is conditional on a model, not an unconditional probability that a variant is biologically causal. Its value can be affected by the LD matrices, sample sizes, effect-size prior variances, variant priors, candidate set, and assumptions about effect sharing and sample independence. A shared causal indicator does not require identical effects: here, \(\theta_a\) can differ by ancestry. Conversely, if a model requires a common effect, that is an additional restriction and should not be silently substituted for the shared-variant assumption.

LD differences matter because the same causal variant can generate different patterns of marginal associations across ancestries. Joint modeling can use those patterns to distinguish candidates that are difficult to distinguish in one ancestry alone. However, if a candidate is absent, poorly measured, or inconsistently harmonized in one ancestry, the apparent cross-ancestry evidence may not represent comparable data. The likelihood, variant set, allele orientation, and LD references must correspond to the same candidate-variant definitions.

Key takeaway: A trans-ancestry PIP is obtained by multiplying or jointly modeling ancestry-specific evidence under an explicit causal configuration, weighting that evidence by prior probabilities, and normalizing over all hypotheses—including a null hypothesis when appropriate. Interpret it as model-conditional posterior support, not as proof of causality.

Common Mistakes

  • Equating shared causality with an identical effect. The shared-variant hypothesis specifies which variant is causal; it does not, by itself, require equal effect sizes across ancestries.
  • Multiplying \(z\)-statistics or treating correlated variants as independent. The likelihood uses ancestry-specific LD covariance. Independent ancestry samples justify multiplying ancestry likelihoods, not treating variants within an ancestry as independent.
  • Leaving out a plausible null state without noticing. If the candidate hypotheses do not exhaust the prior probability, include the null or other relevant configurations in the normalization.
  • Assuming the prior has no effect. Posterior odds equal prior odds multiplied by Bayes factors. A strong prior can shift the posterior even when the data are unchanged.
  • Inverting a singular LD matrix as if it were positive definite. A unit diagonal does not guarantee invertibility. Use a likelihood defined on the appropriate support or another explicitly justified treatment.

Check Your Understanding

Answer each question by referring to the model and calculations in this tutorial.

  1. What is the distinction between a shared causal variant and a shared effect size?
  2. Under what independence assumption can ancestry-specific Bayes factors be multiplied?
  3. If two candidate variants have equal Bayes factors but different prior probabilities, which has the larger posterior probability, and why?
  4. How does the posterior normalization change when the model includes a null hypothesis?
  5. Why is a positive-definiteness assumption needed for the displayed full-rank Bayes-factor derivation?
Clinical Biostats