Tutorials › High-Dimensional Genomic Data Analysis › Continuous Shrinkage With PRS-CS

Polygenic Risk Scores · Tutorial 569 of 795

Continuous Shrinkage With PRS-CS

You will derive the PRS-CS posterior update and see how its global and local shrinkage scales alter LD-aware effect estimates and polygenic score weights.

Advanced 12 min read

What You'll Learn

  • State the summary-statistic likelihood that links marginal GWAS effects to joint effects through an LD matrix.
  • Describe the PRS-CS continuous global-local prior and its assumptions.
  • Derive the conditional Gaussian posterior update for effect estimates.
  • Calculate how LD and shrinkage change score weights in hypothetical examples.
  • Identify practical checks and limitations of applying PRS-CS.

Why continuous shrinkage?

A marginal GWAS effect is not generally an estimate of only that variant’s joint effect: correlations among variants can make marginal estimates reflect nearby effects as well. Clumping discards some correlated variants, while a genome-wide shrinkage model retains them and uses linkage disequilibrium (LD) to estimate their effects jointly. PRS-CS does this using a continuous shrinkage prior: most effects are pulled toward zero, while the prior’s local scales allow some effects to remain comparatively large.

The result is a vector of posterior effect estimates that can be used as weights in a polygenic risk score. Those estimates depend on both the GWAS summary statistics and an LD reference. The method therefore relies on correctly aligned variants and a reference panel that represents the discovery GWAS population’s LD well enough for the model to be informative.

Summary-statistic model and prior

For a basic derivation, suppose there are \(p\) variants, the discovery-sample genotype columns have been centered and scaled to variance one, and the phenotype is centered. Let \(X\) be the \(n \times p\) genotype matrix, \(y\) the phenotype vector, and \(\beta\) the vector of joint effects. Assume the linear model \(y=X\beta+\epsilon\), with independent errors \(\epsilon\sim N(0,\sigma^2 I)\). Define the LD matrix \(R=X^\mathsf{T}X/n\) and the vector of marginal regression effects \(\hat b=X^\mathsf{T}y/n\). Conditional on \(X\), this model gives \(\hat b\mid\beta,\sigma^2\sim N(R\beta,\sigma^2 R/n)\). In applications, the LD matrix is estimated from a reference panel, and the summary-statistic likelihood is adapted to the available GWAS scales and sample sizes.

Definition: In PRS-CS, conditional on local scales \(\psi_j\), a global scale \(\phi\), and residual variance \(\sigma^2\), the joint effect at variant \(j\) has prior \(\beta_j\mid\psi_j,\phi,\sigma^2\sim N(0,\sigma^2\phi\psi_j)\). The local scales follow \(\psi_j\mid\delta_j\sim \operatorname{Exponential}(\delta_j^2/2)\), and \(\delta_j\sim\operatorname{Gamma}(a,1)\), using shape \(a\) and rate \(1\). The global parameter \(\phi\) controls overall shrinkage; the variant-specific \(\psi_j\) permit different degrees of shrinkage across variants.

This is a continuous prior, not a rule that assigns some variants exactly zero effects. Its scale mixture gives substantial concentration near zero while retaining heavier tails than a single normal prior. Consequently, weak signals tend to be strongly shrunk, but a variant with evidence for a larger effect can receive less shrinkage through its local scale. The prior does not itself establish that any variant has a nonzero causal effect.

In the basic model, the prior scales are independent across variants before seeing data. The posterior effects are not independent: the likelihood connects them through \(R\). This distinction is central to PRS-CS. Local scales determine how readily each effect can move away from zero under the prior, while LD in the likelihood determines how the variants’ evidence is jointly interpreted.

Deriving the LD-aware posterior update

Condition on \(\phi\), all local scales, and \(\sigma^2\). For this derivation assume \(R\) is positive definite. The likelihood density for \(\hat b\) is proportional to \(\exp\{-n(\hat b-R\beta)^\mathsf{T}R^{-1}(\hat b-R\beta)/(2\sigma^2)\}\). Expanding the quadratic in \(\beta\) gives a term \(\beta^\mathsf{T}R\beta-2\beta^\mathsf{T}\hat b\). The prior contributes the quadratic term \(\beta^\mathsf{T}D^{-1}\beta\), where \(D\) is diagonal with \(D_{jj}=\phi\psi_j\). Combining them yields a multivariate normal posterior:

$$ \beta\mid\hat b,\phi,\psi,\sigma^2 \sim N\!\left( (nR+D^{-1})^{-1}n\hat b,\; \sigma^2(nR+D^{-1})^{-1} \right). $$

The derivation follows by collecting the quadratic and linear terms: the posterior precision, after factoring out \(1/\sigma^2\), is \(nR+D^{-1}\), and the corresponding linear term is \(n\hat b\). Completing the square gives the stated mean and covariance. The off-diagonal entries of \(R\) make the posterior update LD-aware: the estimate at one variant depends on the other variants’ effects as well as its own marginal association.

This is a conditional posterior distribution, given the scales. PRS-CS also infers the local scales, so the final posterior effect estimate reflects uncertainty over those scales rather than merely substituting one chosen scale into this formula. In practice, the method uses posterior computation to obtain effect estimates. The conditional update makes clear why a common global scale does not force every variant to have the same final weight.

Worked Example: A Single Variant’s Conditional Shrinkage

Suppose a hypothetical GWAS has \(n=1{,}000\) observations, standardized genotype and phenotype, a marginal effect \(\hat b=0.040\), and residual variance \(\sigma^2=1\). With one variant, \(R=1\). For illustration, condition on a prior variance \(\phi\psi=0.001\). These values satisfy the model’s scaling assumptions; the prior variance is a fixed conditional value for this calculation, not an estimated PRS-CS output.

The conditional posterior precision is \(nR+1/(\phi\psi)=1{,}000+1{,}000=2{,}000\). The posterior mean is therefore

$$ \frac{n\hat b}{n+1/(\phi\psi)} = \frac{1{,}000(0.040)}{1{,}000+1{,}000} = \frac{40}{2{,}000} = 0.020. $$

The conditional posterior variance is \(1/2{,}000=0.0005000\), so its standard deviation is \(\sqrt{0.0005000}=0.02236\). The estimate is half the marginal effect because the likelihood precision and prior precision are equal in this example. The effect is on the standardized phenotype scale per one standard-deviation increase in genotype dosage; the calculation does not establish a causal effect.

Worked Example: LD Changes the Joint Weights

Consider two hypothetical standardized variants with LD matrix \(R=\begin{pmatrix}1&0.8\\0.8&1\end{pmatrix}\), \(n=1{,}000\), and marginal effects \(\hat b=(0.10,0.09)^\mathsf{T}\). Assume the same discovery and reference LD, correctly aligned alleles, and the Gaussian model above. For a transparent conditional calculation, let each prior variance be \(0.01\), so \(D^{-1}=100I\), and take \(\sigma^2=1\). The matrix \(R\) is positive definite because its determinant is \(1-0.8^2=0.36>0\).

The conditional posterior mean solves \((nR+D^{-1})m=n\hat b\). Substituting gives

$$ \begin{pmatrix}1{,}100&800\\800&1{,}100\end{pmatrix} \begin{pmatrix}m_1\\m_2\end{pmatrix} = \begin{pmatrix}100\\90\end{pmatrix}. $$

The determinant of the matrix is \(1{,}100^2-800^2=570{,}000\). Thus

$$ m_1=\frac{1{,}100(100)-800(90)}{570{,}000} =\frac{38{,}000}{570{,}000}=0.06667,\qquad m_2=\frac{1{,}100(90)-800(100)}{570{,}000} =\frac{19{,}000}{570{,}000}=0.03333. $$

Both conditional estimates are smaller than their corresponding marginal effects, and the difference between them reflects their joint pattern given the high LD. These are conditional Gaussian posterior means for the stated prior scales, not fully integrated PRS-CS estimates. With a polygenic risk score, each estimated effect is multiplied by the corresponding target genotype dosage and the weighted contributions are summed.

How the global parameter changes weights

Holding a local scale \(\psi_j\) fixed, increasing \(\phi\) increases the prior variance \(\sigma^2\phi\psi_j\) and reduces prior precision. The likelihood then has more influence, so posterior effects generally move less toward zero. Decreasing \(\phi\) increases prior precision and generally shrinks effects more strongly. This is an overall tendency, not a guarantee that every coordinate’s posterior mean changes monotonically in a correlated multivariate model.

The local scale is what makes the shrinkage adaptive across variants. Even under a small global scale, a sufficiently large \(\psi_j\) can give one variant a less restrictive prior variance than its neighbours. Conversely, small local scales keep some effects strongly concentrated near zero. PRS-CS therefore differs from applying one identical fixed normal prior variance to every effect, even though \(\phi\) is shared.

Worked Example: Comparing Two Global Scales

Return to a hypothetical single-variant model with \(n=1{,}000\), \(\hat b=0.050\), \(R=1\), \(\sigma^2=1\), and fixed local scale \(\psi=1\). The genotypes and phenotype are standardized, and the likelihood assumptions are as in the earlier derivation. First let \(\phi=0.001\), giving prior variance \(0.001\). The conditional posterior mean is

$$ \frac{1{,}000(0.050)}{1{,}000+1/0.001} = \frac{50}{2{,}000} = 0.02500. $$

Now let \(\phi=0.010\), leaving all other values unchanged. The prior variance is \(0.010\), and the mean becomes

$$ \frac{1{,}000(0.050)}{1{,}000+1/0.010} = \frac{50}{1{,}100} = 0.04545. $$

The larger global scale yields a conditional estimate closer to the marginal estimate \(0.050\), as expected from the reduced prior precision. These numbers isolate the effect of \(\phi\) by holding \(\psi\) fixed; actual PRS-CS inference also updates local scales and accounts for LD.

Assumptions, diagnostics, and alternatives

The derivation depends on a suitable summary-statistic likelihood, aligned alleles, and an LD matrix that describes correlations in the discovery sample. The idealized version also assumes standardized genotypes, a linear phenotype model with independent Gaussian errors, and a well-conditioned positive-definite \(R\). Real GWAS may involve different phenotype scales, sample sizes, covariates, or imprecise LD estimates; their summary statistics and LD reference must be put on compatible scales for the implemented method.

Before interpreting weights, check that variant identifiers, effect alleles, genome build, and genotype scaling agree between the GWAS and LD reference. Confirm that the reference contains the variants used in the analysis and that the LD blocks are plausible. Marked discrepancies between expected and reference allele frequencies or LD patterns can indicate mismatched populations or variant alignment errors. Unstable computations or highly sensitive effects can also arise when the LD matrix is nearly singular or poorly estimated. These checks flag potential problems; a plausible-looking score alone does not validate the reference or model.

The earlier material on infinitesimal-prior shrinkage uses a common Gaussian prior scale, which gives a simple form of shrinkage. PRS-CS adds variant-specific continuous local scales, allowing a heavier-tailed prior and adaptive shrinkage. LDpred2, covered in the earlier material on genome-wide effect shrinkage, provides a different Bayesian modelling approach to joint effect estimation. These methods differ in their prior constructions and computational procedures; none removes the need for compatible summary statistics and LD information. PRS-CS also does not guarantee accurate prediction when the discovery and target populations differ or when the phenotype model is inadequate.

Common pitfall: It is incorrect to say that PRS-CS simply multiplies each marginal GWAS effect by one common shrinkage factor. A shared \(\phi\) controls overall prior scale, but local scales vary by variant and the LD likelihood jointly links effect estimates. Nor does a posterior weight by itself show that a variant is causal.

Check Your Understanding

Work through these questions, then compare your reasoning with the solutions.

  1. In the standardized linear model, what does the off-diagonal entry \(R_{jk}\) represent, and why does it matter for estimating \(\beta_j\)?
  2. For one variant, let \(n=500\), \(\hat b=0.020\), \(\sigma^2=1\), and \(\phi\psi=0.002\). Find the conditional posterior mean.
  3. What changes when \(\phi\) increases while \(\psi_j\) is held fixed? Does that mean every posterior effect must increase?
  4. Name two checks that can reveal whether the LD reference is unsuitable for the GWAS summary statistics.

Solutions. (1) \(R_{jk}\) is the correlation between standardized genotypes at variants \(j\) and \(k\) in the model. Because the likelihood couples effects through \(R\), the evidence for \(\beta_j\) depends on correlated variants’ effects, not only on \(\hat b_j\). (2) The mean is \(n\hat b/[n+1/(\phi\psi)]=500(0.020)/(500+500)=10/1{,}000=0.01000\). (3) Increasing \(\phi\) increases prior variance and reduces shrinkage pressure, all else equal. In a correlated multivariate model it does not guarantee that every coordinate’s posterior mean increases monotonically. (4) Check allele alignment and genome build, and compare allele frequencies or LD patterns between the GWAS and reference; discrepancies can indicate mismatched variants or populations.

Clinical Biostats