Inferensys

Glossary

LDpred

A Bayesian polygenic risk score method that infers the posterior mean effect size of all genetic markers by accounting for the local linkage disequilibrium pattern and a prior on the genetic architecture.
Risk analyst performing AI risk assessment on laptop, risk matrices visible, casual office risk session.
POLYGENIC RISK SCORE METHOD

What is LDpred?

LDpred is a Bayesian method for computing polygenic risk scores that infers the posterior mean effect size for all genetic markers by explicitly modeling linkage disequilibrium and a prior on the genetic architecture of the trait.

LDpred is a Bayesian polygenic risk score (PRS) method that adjusts genome-wide association study (GWAS) summary statistics for local linkage disequilibrium (LD) patterns. Unlike simple clumping and thresholding, it computes the posterior mean effect size for all variants simultaneously by using a point-normal prior on effect sizes and a reference LD matrix from a population-matched panel.

The algorithm operates by iterating over a Gibbs sampler to estimate the fraction of causal variants (the p parameter), shrinking non-causal marker effects toward zero while re-weighting causal ones. This LD-aware shrinkage produces more accurate out-of-sample prediction than naive approaches, making LDpred a foundational tool for translating GWAS results into clinically relevant genetic risk stratification.

BAYESIAN POLYGENIC RISK SCORING

Key Features of LDpred

LDpred is a Bayesian method that computes polygenic risk scores by inferring the posterior mean effect size for all genetic markers, explicitly modeling local linkage disequilibrium and a flexible prior on the genetic architecture of the trait.

01

Bayesian Posterior Mean Estimation

LDpred computes the posterior mean effect size for every genetic marker rather than selecting only genome-wide significant hits. It starts with GWAS summary statistics and a reference LD panel, then applies a Gibbs sampler to integrate over the posterior distribution. This yields a continuous effect size estimate for all SNPs, including those that fall below strict significance thresholds. The key insight is that many true causal variants have small effects and are missed by p-value thresholding; by modeling the full posterior, LDpred recovers signal from these sub-threshold markers and produces more predictive polygenic scores.

All SNPs
Markers Modeled Simultaneously
Gibbs Sampler
Inference Algorithm
02

Linkage Disequilibrium-Aware Modeling

Unlike simple clumping and thresholding, LDpred explicitly accounts for the local correlation structure between genetic variants. It uses an external reference panel such as the 1000 Genomes Project to estimate the LD matrix for each genomic region. During inference, the model re-weights effect sizes to distinguish between a causal variant and a non-causal variant that is merely in high LD with a causal one. This prevents the double-counting of genetic effects and avoids inflating risk scores in regions of high LD. The result is a more accurate partitioning of genetic signal across correlated markers.

1000 Genomes
Typical LD Reference Panel
03

Flexible Prior on Genetic Architecture

LDpred models the genetic architecture using a point-normal mixture prior. A parameter p represents the fraction of all genetic markers that are causal, while the remaining markers have zero effect. The variance of the causal effects is determined by the heritability of the trait. This prior can be tuned: setting p to a small value assumes a sparse architecture with few large-effect variants, while a larger p corresponds to a polygenic architecture where many variants contribute small effects. The LDpred2 extension further refines this by using a grid of p values or a continuous shrinkage prior, removing the need to specify a single fixed proportion of causal variants.

Point-Normal
Prior Distribution Type
p parameter
Proportion of Causal Variants
04

Infinitesimal vs. Non-Infinitesimal Modes

LDpred offers two operational modes that reflect different assumptions about trait architecture. In infinitesimal mode, all markers are assumed to have a non-zero effect drawn from a Gaussian distribution, which is equivalent to setting p=1. This mode is computationally simpler and performs well for highly polygenic traits like height. In non-infinitesimal mode, only a fraction p of markers are causal, and the model performs variable selection via the Gibbs sampler. The optimal mode depends on the trait: psychiatric disorders often benefit from the non-infinitesimal model, while anthropometric traits may be well-served by the infinitesimal assumption.

2 Modes
Genetic Architecture Options
05

LDpred2: Computational Improvements

LDpred2 is a complete reimplementation that addresses the computational bottlenecks of the original method. Key improvements include: sparse LD matrices that ignore small correlations below a threshold to reduce memory usage, a warm-start Gibbs sampler that initializes from a computationally cheap analytic solution, and support for summary statistics with varying sample sizes across SNPs. LDpred2 also introduces a model that uses a continuous shrinkage prior instead of the discrete point-normal mixture, allowing the data to determine the appropriate amount of regularization for each marker without pre-specifying p. These enhancements make LDpred2 scalable to biobank-scale datasets with millions of individuals and tens of millions of variants.

Sparse LD
Memory Optimization
Biobank-Scale
Scalability Target
06

Validation and Predictive Performance

LDpred scores are typically validated in an independent holdout cohort not used for GWAS discovery or LD estimation. The predictive performance is measured by the incremental R² over covariates such as age, sex, and principal components, or by the area under the receiver operating characteristic curve for binary traits. Empirical studies across traits including coronary artery disease, type 2 diabetes, and breast cancer have demonstrated that LDpred consistently outperforms simple clumping and thresholding. The method's ability to incorporate sub-threshold association signal is the primary driver of this improvement, particularly for traits where GWAS loci explain only a fraction of the estimated heritability.

Incremental R²
Primary Performance Metric
Independent Cohort
Validation Requirement
LDpred

Frequently Asked Questions

Clear, technically precise answers to the most common questions about the Bayesian polygenic risk score method, its mechanisms, and its application in genomic prediction.

LDpred is a Bayesian polygenic risk score (PRS) method that infers the posterior mean effect size for all genetic markers by jointly modeling linkage disequilibrium (LD) and a prior on the genetic architecture of the trait. Unlike simple clumping and thresholding, which selects only independent, genome-wide significant variants, LDpred assumes that all markers contribute to the phenotype, with effect sizes drawn from a point-normal mixture prior. The algorithm first computes GWAS marginal effect sizes, then uses a reference LD matrix from a matched population panel to adjust these effects. The core computation solves a variational Bayes optimization to estimate the posterior mean effect size for each SNP, effectively 're-weighting' the marginal statistics by accounting for the local correlation structure. This process recovers the underlying causal signal that is blurred by LD in standard GWAS outputs, producing a single genome-wide predictor that can be applied to new individuals for risk stratification.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.