Why Prior Calibration Matters
Shrinkage methods use assumptions about the sizes and prevalence of genetic effects to moderate noisy GWAS estimates. Two assumptions are especially consequential: the total genetic variance attributed to the variants being modeled, and the fraction of those variants expected to have nonzero effects. They work together. If the expected total variance is held fixed while fewer variants are assumed causal, the prior must allow larger effects among those variants.
This relationship is useful both for specifying a model and for understanding its behavior. It also explains why a score can change when either assumption changes, even when the other is held constant. A sensitivity analysis makes that dependence visible; it does not, by itself, establish that one setting is biologically correct or predicts better.
From Heritability to Prior Effect Variance
For a precise derivation, suppose the phenotype has been standardized to variance 1, the \(M\) genotype columns are centered and scaled to variance 1, and the additive genetic component is \(g=X\beta\). Write \(R\) for the genotype correlation matrix in the modeled population. Then the genetic variance for a fixed effect vector is \(\operatorname{Var}(g\mid\beta)=\beta^\mathsf{T}R\beta\). Assume the effects are independent across variants, each has mean zero, and each has variance \(\pi\tau^2\) across the full mixture, since it is nonzero with probability \(\pi\). Also assume the diagonal entries of \(R\) are 1.
The expected genetic variance across draws from this prior is
The cross-products have expectation zero because distinct effects are independent and centered. Equating this expected genetic variance to the target \(h^2\) gives \(\tau^2=h^2/(M\pi)\). This calibrates the prior’s expected genetic variance; it does not require every realized effect vector to have genetic variance exactly \(h^2\).
The assumptions matter. The formula uses a defined set of \(M\) modeled variants, standardized genotype columns, and an effect prior with the stated independence and zero-mean properties. Linkage disequilibrium appears in \(R\), but does not alter this expectation under those assumptions: the off-diagonal terms vanish in expectation. The formula is not a license to replace \(M\) with an informal “effective number” of variants. Such a substitution changes the prior and requires a clearly defined model. If genotype or phenotype scales differ from those assumed here, the effect variances must be interpreted or transformed on the corresponding scales.
For an infinitesimal normal prior, every variant is assigned a nonzero effect from a zero-mean normal distribution, so \(\pi=1\) and the variance is \(h^2/M\). A sparse mixture instead has \(\pi<1\), giving larger variance among the nonzero effects when \(h^2\) is held fixed. The overall effect variance across variants remains \(\pi\tau^2=h^2/M\) in either calibration.
Worked Example: Calibrating a Sparse Prior
Suppose a hypothetical analysis includes \(M=100{,}000\) standardized variants, targets SNP heritability \(h^2=0.20\), and assumes \(\pi=0.01\). Assume the standardized phenotype, genotype scaling, and independent zero-mean mixture effects described above.
The expected number of nonzero effects is \(M\pi=100{,}000(0.01)=1{,}000\). The variance among nonzero effects is
The corresponding prior standard deviation among nonzero effects is \(\sqrt{0.000200}=0.01414\) phenotype standard deviations per genotype standard deviation. For comparison, the infinitesimal calibration with the same \(M\) and \(h^2\) has variance \(0.20/100{,}000=0.00000200\), and standard deviation \(0.001414\) per variant. The sparse prior therefore assigns a larger scale to its nonzero effects, while retaining the same expected total genetic variance under the model.
How Prior Variance Changes Shrinkage
A one-variant normal model isolates the variance’s direct effect on shrinkage. Suppose an unbiased estimated effect \(b\) has sampling model \(b\mid\beta\sim N(\beta,s_b^2)\), where \(s_b\) is its standard error. Under a normal prior \(\beta\sim N(0,\tau^2)\), the posterior mean is a weighted version of the estimate:
The multiplier lies between 0 and 1. Increasing \(\tau^2\) increases the multiplier and reduces shrinkage toward zero; decreasing \(\tau^2\) does the opposite. In a multi-variant model with LD, the posterior calculations involve the joint information across variants, so this scalar expression is an illustration of the mechanism, not a replacement for the full model.
Worked Example: Effect of the Calibrated Variance on a Noisy Estimate
Consider a hypothetical standardized effect estimate \(b=0.030\) with standard error \(s_b=0.020\). Use the sparse-prior variance \(\tau^2=0.000200\) from the previous example. Assume the normal sampling model and normal prior just stated; this example uses the nonzero-effect normal component and does not include uncertainty about whether the variant is nonzero.
The sampling variance is \(s_b^2=0.020^2=0.000400\), so the shrinkage multiplier is
Thus the posterior mean is \((1/3)(0.030)=0.0100\) phenotype standard deviations per genotype standard deviation. If the prior variance were smaller, the multiplier and posterior mean would also be smaller; if it were larger, they would be larger. The result illustrates the conditional normal component only: a mixture prior also changes the probability assigned to inclusion.
Polygenicity and the Mixture Prior
In a mixture model, \(\pi\) affects two parts of the prior. It sets the prior probability that an effect is nonzero, and, if \(h^2\) is held fixed, it also changes \(\tau^2=h^2/(M\pi)\). Lowering \(\pi\) therefore makes nonzero effects larger on average but makes any particular variant less likely to be included. These effects can pull a posterior estimate in different directions, so “less polygenic” does not automatically mean more or less shrinkage for every observed variant.
This can be seen with a single estimate \(b\) having sampling variance \(s_b^2\). Under a point mass at zero versus a normal slab \(N(0,\tau^2)\), the Bayes factor for the slab against the null is
The posterior inclusion probability is \(\pi BF_{10}/(1-\pi+\pi BF_{10})\). The posterior mean under this mixture equals that inclusion probability multiplied by the slab’s conditional posterior mean, \(\{\tau^2/(\tau^2+s_b^2)\}b\). Thus both the inclusion probability and the conditional effect size matter. This single-variant calculation illustrates the trade-off; LD-aware genome-wide methods use information across variants as well.
Worked Example: Same Expected Variance, Different Polygenicity
Use \(M=1{,}000\) and a hypothetical estimate \(b=0.100\) with standard error \(s_b=0.100\). Compare two priors: setting A has \(h^2=0.20,\ \pi=0.010\); setting B has \(h^2=0.10,\ \pi=0.005\). Both satisfy \(h^2/(M\pi)=0.020\), so both have the same slab variance \(\tau^2=0.020\), despite different inclusion probabilities and target heritabilities. Assume the one-variant normal likelihood and point-mass/normal-slab prior above.
For either setting, \(s_b^2=0.010\). The Bayes factor is
The slab conditional posterior mean is \(\{0.020/(0.020+0.010)\}(0.100)=0.06667\). For setting A, the posterior inclusion probability is
so its mixture posterior mean is approximately \(0.008073(0.06667)=0.0005382\). For setting B, the inclusion probability is
giving a mixture posterior mean of approximately \(0.004033(0.06667)=0.0002689\). The slab variance is identical, but the lower prior inclusion probability in setting B roughly halves this estimate. Matching \(h^2/\pi\) therefore does not make two mixture priors equivalent.
Using Sensitivity Analysis to Assess Score Stability
A sensitivity analysis evaluates a prespecified range of plausible prior settings and records what changes. A useful grid varies \(h^2\) and \(\pi\) separately, rather than varying only their ratio: the ratio determines the slab variance under this calibration, while \(\pi\) also determines the prior inclusion probability. For each setting, record the resulting effects and scores using the same variants, alleles, genotype scaling, and analysis sample. Those controls make differences more interpretable.
State the phenotype scale, the variants counted in \(M\), and the target range for \(h^2\) and \(\pi\). Confirm that the calibration assumptions match the model’s effect and genotype scales.
For each pair, calculate \(\tau^2=h^2/(M\pi)\). Check that the implied nonzero-effect standard deviations are plausible on the stated scale.
Inspect changes in effect signs and magnitudes, and compare scores across individuals using correlation or rank changes. Also report scale changes: correlation alone can hide a uniform rescaling.
Identify which variants or individuals drive instability and whether it occurs when \(h^2\), \(\pi\), or both change. Treat stability as robustness to these assumptions, not evidence of predictive accuracy or biological truth.
For comparison, an infinitesimal prior fixes \(\pi=1\) and spreads variance across all modeled variants. A spike-and-slab prior explicitly represents a nonzero fraction and separates inclusion from effect size. Continuous-shrinkage priors allow a range of effect scales without a single literal inclusion fraction, while penalization methods such as lassosum use a penalty parameter rather than this exact probability model. Their tuning parameters are not interchangeable with \(h^2\), \(\pi\), or \(\tau^2\); comparisons should focus on the assumptions and resulting scores, not on matching parameter labels.
A common mistake is to lower \(\pi\) at fixed \(h^2\) and conclude that all effects must be less shrunk because \(\tau^2\) increases. That reasoning considers only the slab: the prior probability of inclusion falls at the same time. Another mistake is to interpret similar scores across a narrow grid as proof that the chosen heritability is correct. Similarity only indicates limited sensitivity over the settings examined. Conversely, instability can signal that conclusions depend strongly on prior assumptions, but it does not identify which setting is right.
Assumptions, Diagnostics, and Limits
The calibration is most directly interpretable when the phenotype and genotype scales are explicit, the modeled variants are clearly defined, and the prior assumptions are reasonable approximations. Diagnostics include checking whether the implied nonzero-effect standard deviations are extreme, whether score rankings or effect signs change substantially across plausible settings, and whether results are driven by a small subset of variants. A large change in score scale with stable rank correlation should be reported as scale sensitivity, not as full stability.
Heritability and polygenicity are often uncertain, and their values may depend on the population, phenotype definition, and variant set. A prior can be internally consistent and still be misspecified. The calibration also describes a model expectation, not a guarantee about the realized genetic variance, and a stable score need not be well calibrated or predictive. Sensitivity analysis is therefore a disciplined way to expose dependence on assumptions; it cannot replace appropriate evaluation of the score.
Check Your Understanding
Answer each question, then compare with the solutions below.
- With \(M=20{,}000\), \(h^2=0.10\), and \(\pi=0.02\), what are the expected number of nonzero effects and the nonzero-effect variance?
- If \(M\) and \(h^2\) stay fixed while \(\pi\) is halved, how does \(\tau^2\) change? What other part of the mixture prior changes?
- For a normal prior with \(\tau^2=0.0001\) and an estimate with sampling variance \(s_b^2=0.0003\), calculate the posterior-mean multiplier.
- Why can two mixture priors with the same \(h^2/(M\pi)\) give different posterior means?
Solutions. (1) The expected number is \(M\pi=20{,}000(0.02)=400\). The variance among nonzero effects is \(0.10/400=0.000250\). (2) Since \(\tau^2=h^2/(M\pi)\), halving \(\pi\) doubles \(\tau^2\); the prior probability of inclusion also halves. (3) The multiplier is \(0.0001/(0.0001+0.0003)=0.25\). (4) The ratio fixes the slab variance, but the priors have different inclusion probabilities; those change posterior inclusion probabilities and hence the mixture posterior means.