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.
Glossary
LDpred

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Explore the foundational methods and advanced algorithms that complement LDpred in the construction and refinement of polygenic risk scores.
Clumping and Thresholding
The standard baseline method for polygenic risk score calculation. It first applies a p-value threshold to select significant SNPs from a GWAS summary statistic and then performs LD clumping to retain only independent variants. The final score is a simple sum of the allele counts weighted by their marginal effect sizes. While computationally fast, it ignores the complex correlation structure that LDpred models explicitly.
SBayesR
A Bayesian method that applies a sparse mixture prior on SNP effect sizes, assuming they come from a mixture of normal distributions including a point mass at zero. Unlike LDpred's infinitesimal or point-normal prior, SBayesR models a more flexible genetic architecture by allowing for multiple non-zero effect size distributions. It operates on summary statistics and a shrunk LD matrix for computational tractability.
PRS-CS
A Bayesian polygenic prediction method that places a continuous shrinkage prior on SNP effect sizes. Unlike the discrete mixture priors in LDpred, PRS-CS uses a global-local scale mixture of normals, allowing for a smooth and adaptive shrinkage profile. The method infers the posterior effect sizes using a Gibbs sampler with an efficient block update, modeling the LD structure directly from an external reference panel.
MegaPRS
A computationally efficient approach that constructs polygenic scores by modeling effect sizes as a mixture of a sparse causal component and an infinitesimal polygenic background. It directly estimates the parameters of this mixture model from summary statistics and an LD reference, avoiding the need for iterative MCMC sampling. This allows it to scale to biobank-scale datasets with millions of markers.
Lassosum
A method that reframes polygenic score construction as a LASSO regression problem using summary statistics and a reference LD panel. It applies an L1 penalty to shrink most coefficients to exactly zero, performing automatic feature selection. The tuning parameter is optimized via a pseudovalidation approach that does not require a separate validation dataset, making it a robust alternative to LDpred's Bayesian shrinkage.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us