Tutorials › High-Dimensional Genomic Data Analysis › Sensitivity to Effect-Size Priors

Statistical Fine-Mapping and Credible Sets · Tutorial 715 of 795

Sensitivity to Effect-Size Priors

Compare fine-mapping support under alternative effect-size priors and determine whether variant-level conclusions are robust to those assumptions.

Advanced 12 min read

What You'll Learn

  • Explain how an effect-size prior changes the marginal evidence for a variant.
  • Calculate and compare Wakefield approximate Bayes factors under different prior variances.
  • Combine component Bayes factors correctly for a mixture prior.
  • Track how prior sensitivity changes posterior inclusion probabilities and posterior effect estimates.
  • Separate sensitivity to effect-size assumptions from changes to variant priors or causal-model assumptions.
  • Recognize diagnostics and limitations of prior-sensitivity comparisons.

Why Examine Effect-Size Priors?

Fine-mapping compares how well alternative causal explanations account for the observed association evidence. That comparison depends not only on the data, but also on assumptions about plausible effect sizes. A prior concentrated near zero favors small effects; a more dispersed prior assigns more probability to larger effects. Consequently, the same association statistic can yield different Bayes factors under different effect-size priors, and those differences can change posterior support for variants.

The purpose of this tutorial is to examine that dependence directly. In each comparison, keep the variant-specific prior probabilities and the causal model fixed, and change only the prior distribution for the effect size. This isolates the question of whether a fine-mapping conclusion relies on a particular effect-size assumption. It does not determine which prior is correct; that requires scientific justification and, where possible, external information or calibration.

Definition: Effect-size prior sensitivity is the change in fine-mapping evidence or posterior summaries that results when the prior distribution for causal effect sizes is changed while the observed data and other model assumptions are held fixed. A variant is prior-sensitive when its posterior support changes substantially across reasonable effect-size priors.

How the Prior Enters a Bayes Factor

For a single variant, let \(\hat{\beta}\) be its estimated effect, with estimated sampling variance \(V\), and let \(z=\hat{\beta}/\sqrt{V}\). Under the null of no effect, suppose \(\hat{\beta}\mid \beta=0\sim N(0,V)\). Under the causal alternative, use the normal prior \(\beta\sim N(0,W)\), where \(W\) is the prior variance of the effect. Assume the estimate is approximately normal with variance \(V\), and that this likelihood and prior are appropriate for the effect scale being analyzed.

Integrating over the prior gives the alternative marginal distribution \(\hat{\beta}\sim N(0,V+W)\). The Bayes factor \(BF\) is the alternative marginal density divided by the null density. Taking the ratio of the two normal densities gives:

$$ BF(W)=\sqrt{\frac{V}{V+W}}\, \exp\left\{\frac{\hat{\beta}^{\,2}}{2} \left(\frac{1}{V}-\frac{1}{V+W}\right)\right\} = \sqrt{\frac{V}{V+W}}\, \exp\left\{\frac{z^2}{2}\frac{W}{V+W}\right\}. $$

Equivalently, with \(r=W/V\), the prior variance relative to the sampling variance:

$$ \log BF(W)=\frac{1}{2} \left\{-\log(1+r)+z^2\frac{r}{1+r}\right\}. $$

The first term penalizes a more dispersed alternative prior because it spreads probability over a wider range of possible estimates. The second term rewards a prior that can accommodate the observed association. Thus, increasing \(W\) does not always increase the Bayes factor: the balance depends on the observed \(z\)-statistic. The prior variance \(W\) is measured in squared units of the effect, while \(V\) is the sampling variance in those same units. A numerical value for \(W\) is meaningful only in relation to the phenotype and effect scale.

With variant-specific prior probabilities \(\pi_j\), posterior probabilities are obtained by combining each variant’s Bayes factor with its prior probability, together with the probability assigned to the null or other allowed explanations. If the causal model and the \(\pi_j\) values are fixed, changing the effect-size prior changes the Bayes factors, not the prior probabilities themselves.

Worked Example: Comparing Two Variants Under Two Prior Variances

Suppose two candidate variants have independent summary-statistic estimates, each with sampling variance \(V=0.0100\). Their \(z\)-statistics are \(z_A=4.00\) and \(z_B=3.80\). For illustration, assign prior probability \(0.010\) to the possibility that one of these two variants is causal, split equally between them, and probability \(0.990\) to the null. Compare effect-size prior variances \(W=0.0025\) and \(W=0.0400\). The likelihood and the variant prior probabilities are held fixed.

For \(W=0.0025\), \(r=W/V=0.25\). For variant A:

$$ \log BF_A =\frac{1}{2}\left\{-\log(1.25)+16\left(\frac{0.25}{1.25}\right)\right\} =\frac{1}{2}(-0.22314+3.200) =1.48843, \qquad BF_A\approx 4.43. $$

For variant B, \(z_B^2=14.44\), so:

$$ \log BF_B =\frac{1}{2}\left\{-\log(1.25)+14.44\left(\frac{0.25}{1.25}\right)\right\} =\frac{1}{2}(-0.22314+2.888) =1.33243, \qquad BF_B\approx 3.79. $$

Each variant has prior probability \(0.005\). The posterior denominator is \(0.990+0.005(4.43+3.79)=1.0311\). Therefore, the posterior probabilities for A and B are approximately \(0.005(4.43)/1.0311=0.0215\) and \(0.005(3.79)/1.0311=0.0184\), respectively.

Now use \(W=0.0400\), so \(r=4\). The log Bayes factors are:

$$ \log BF_A=\frac{1}{2}\{-\log(5)+16(4/5)\}=5.59528, \qquad BF_A\approx269.1, $$
$$ \log BF_B=\frac{1}{2}\{-\log(5)+14.44(4/5)\}=4.97128, \qquad BF_B\approx144.1. $$

The posterior denominator is now \(0.990+0.005(269.1+144.1)=3.056\). The posterior probabilities are approximately \(1.3455/3.056=0.440\) for A and \(0.7205/3.056=0.236\) for B. The ranking is unchanged, but the posterior support for each candidate and the total probability assigned to a causal variant are much higher under the more dispersed prior. Those results are conditional on the stated two-variant model and priors; they do not establish that either variance is scientifically preferable.

Changing the Shape of the Prior

Sensitivity is not limited to changing \(W\) in a single normal prior. A prior may, for example, put most of its probability on small effects but retain a smaller component for larger effects. Such a mixture can represent uncertainty about the scale of plausible effects. If the prior assigns weight \(a_k\) to a normal component with variance \(W_k\), where the nonnegative weights sum to one, the marginal likelihood averages the component marginal likelihoods. Therefore, the mixture Bayes factor is the weighted average of the component Bayes factors, not the exponential of a weighted average of their log Bayes factors.

Key result: For a prior mixture with component weights \(a_k\), the Bayes factor is \(BF_{\mathrm{mix}}=\sum_k a_k BF(W_k)\). The weights are prior probabilities for the effect-size components; after observing the data, the posterior weight for component \(k\) is proportional to \(a_k BF(W_k)\).

Worked Example: A Normal Prior Versus a Two-Component Mixture

Suppose an estimate has \(\hat{\beta}=2.00\) effect units and sampling variance \(V=1.00\), so \(z=2.00\). Compare a single normal prior with \(W=1.00\) to a mixture that assigns weight \(0.80\) to \(W=0.10\) and weight \(0.20\) to \(W=4.00\).

For the single normal prior, \(r=1\):

$$ \log BF(1)=\frac{1}{2}\{-\log(2)+4(1/2)\} =0.65343, \qquad BF(1)\approx1.922. $$

For the mixture’s narrow component, \(r=0.10\):

$$ \log BF(0.10)=\frac{1}{2} \left\{-\log(1.10)+4\left(\frac{0.10}{1.10}\right)\right\} =0.13416, \qquad BF(0.10)\approx1.144. $$

For its wider component, \(r=4\):

$$ \log BF(4)=\frac{1}{2}\{-\log(5)+4(4/5)\} =0.79528, \qquad BF(4)\approx2.215. $$

The mixture Bayes factor is \(0.80(1.144)+0.20(2.215)=1.358\), not a weighted average of the log Bayes factors. If the prior probability of a causal effect is \(0.100\), the posterior probability against the null is \(0.100(1.358)/\{0.900+0.100(1.358)\}=0.131\). Under the single normal prior it is \(0.100(1.922)/\{0.900+0.100(1.922)\}=0.176\). Thus, the mixture and single normal prior give different posterior probabilities for the same data and causal prior probability.

The mixture also updates belief about the effect-size scale. Its posterior component weights are \(0.80(1.144)/1.358=0.674\) and \(0.20(2.215)/1.358=0.326\). The data increase the relative weight of the wider component, but do not make it certain.

Posterior Effect Estimates Also Depend on the Prior

Prior sensitivity can affect effect estimates as well as variant support. Under the normal likelihood and normal prior above, the posterior distribution for the effect is normal, with mean \(W\hat{\beta}/(V+W)\) and variance \(VW/(V+W)\). This follows by multiplying the likelihood density in \(\beta\), proportional to \(\exp\{-(\hat{\beta}-\beta)^2/(2V)\}\), by the prior density, proportional to \(\exp\{-\beta^2/(2W)\}\), and completing the square in \(\beta\).

In the previous example, the single prior \(W=1\) gives posterior mean \(1(2)/(1+1)=1.00\) effect units. In the mixture, the narrow and wide components give posterior means \(0.10(2)/1.10=0.182\) and \(4(2)/5=1.60\). Averaging these component means using the updated weights gives approximately \(0.674(0.182)+0.326(1.60)=0.645\) effect units. This is an illustration of model-conditional shrinkage, not a claim that the more strongly shrunk estimate is necessarily closer to the unknown true effect.

Worked Example: Translating a Bayes Factor Into Posterior Support

Suppose two analyses use different effect-size priors but retain the same prior causal probability, \(0.100\), for a particular variant versus the null. Assume the resulting Bayes factors are \(1.241\) and \(1.100\). These values are inputs from the two analyses; the calculation here shows how each updates the same prior probability.

For \(BF=1.241\):

$$ P(\text{causal}\mid\text{data}) =\frac{0.100(1.241)}{0.900+0.100(1.241)} =\frac{0.1241}{1.0241} \approx0.121. $$

For \(BF=1.100\):

$$ P(\text{causal}\mid\text{data}) =\frac{0.100(1.100)}{0.900+0.100(1.100)} =\frac{0.1100}{1.0100} \approx0.109. $$

Both Bayes factors favor the causal explanation over the null, but only modestly; the posterior probabilities remain close to the prior probability of \(0.100\). A Bayes factor is not itself a posterior probability, and the size of the posterior change depends on the prior odds as well as the Bayes factor.

A Practical Comparison and Its Diagnostics

A focused comparison changes one effect-size assumption at a time. For instance, compare a set of plausible prior variances on the same effect scale, then compare a single normal prior with a scientifically defensible mixture. Keep the observed summary statistics, LD information, variant-specific prior probabilities, and causal model unchanged. For every fit, record the Bayes factors, posterior inclusion probabilities (PIPs), and the leading variants. A useful report states both what remains stable and what changes.

ComparisonWhat changesWhat to inspect
Normal priors with different variancesSpread of plausible effectsBayes factors and PIPs across the variance range
Single normal versus mixtureShape of the prior, including mass on different scalesMixture Bayes factor and posterior component weights
Effect-size prior versus variant priorEffect distribution versus prior probability by variantWhich assumption changed before attributing a PIP shift

Large changes in PIPs across reasonable priors are a warning that variant-level conclusions depend on the assumed effect-size distribution. They may be especially consequential when variants have similar association evidence: modest changes to relative Bayes factors can alter their posterior ranking. Conversely, stable PIPs across a meaningful range of effect priors provide evidence of robustness to this particular assumption, not proof that all model assumptions are correct.

Check that the effect scale is consistent across analyses, that \(W\) is expressed in squared units matching \(V\), and that mixture weights sum to one. Inspect whether conclusions change smoothly as \(W\) varies or jump because of a coding, numerical, or model-comparison error. Confirm that a mixture Bayes factor was computed by averaging Bayes factors, and that posterior probabilities were normalized over the same set of hypotheses in every comparison. If changing the effect prior also changes the variant priors, LD inputs, or causal model, the comparison no longer isolates effect-size sensitivity.

Limitations and a Common Mistake

The normal approximation and the Bayes factor formula require a suitable approximately normal effect estimate with a valid sampling variance, and a prior defined on the same effect scale. The approximation may be unreliable if the summary statistics are poorly calibrated, the sampling variance is wrong, or the likelihood is materially non-normal. A normal prior also may not represent scientific knowledge about effect sizes. A mixture broadens the range of possibilities, but its component variances and weights still require justification.

Common mistake: “The more dispersed prior produced the larger Bayes factor, so larger effect sizes must be more plausible and the variant is more likely causal.” This reasoning confuses a model comparison conditional on a chosen prior with evidence that the prior is true. The Bayes factor can change because the prior redistributes probability across effect sizes; the posterior also depends on prior causal odds and the other candidate explanations. The correction is to report the prior assumptions, compare defensible alternatives, and describe any resulting PIP change as sensitivity rather than as confirmation.

Effect-size prior sensitivity is distinct from changing how many causal variants are allowed or how prior probability is allocated among variants. Those changes answer different modeling questions. Keep them separate when interpreting an analysis so that the source of a changed posterior is identifiable.

Key takeaway: Effect-size priors determine how association evidence is averaged over plausible causal effects. Compare Bayes factors and posterior support under clearly stated, scientifically defensible alternatives, holding other inputs fixed; substantial changes identify conclusions that are prior-sensitive.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. For \(z=3\) and \(W/V=1\), calculate the log Bayes factor and Bayes factor under a normal effect-size prior.
  2. If that Bayes factor is used with prior causal probability \(0.050\), what is the posterior probability of causality versus the null?
  3. A mixture prior has component weights \(0.75\) and \(0.25\), with component Bayes factors \(1.20\) and \(4.00\). Calculate its Bayes factor.
  4. Name two checks that help determine whether a comparison isolates effect-size prior sensitivity.

Solutions. (1) With \(z^2=9\) and \(r=1\), \(\log BF=\frac{1}{2}\{-\log(2)+9/2\}=\frac{1}{2}(-0.69315+4.500)=1.9034\), so \(BF=\exp(1.9034)\approx6.710\). (2) The posterior is \(0.050(6.710)/\{0.950+0.050(6.710)\}=0.3355/1.2855\approx0.261\). (3) \(BF_{\mathrm{mix}}=0.75(1.20)+0.25(4.00)=1.90\). (4) Check that the effect prior and sampling variance use the same effect scale and that variant priors, data, and causal model are held fixed; also verify that mixture Bayes factors are averaged on the Bayes-factor scale.

Clinical Biostats