Inferensys

Glossary

Variance Explained (R²)

The proportion of phenotypic variance in a target dataset accounted for by a polygenic risk score, quantifying the model's overall predictive power.
Risk analyst performing AI risk assessment on laptop, risk matrices visible, casual office risk session.
PREDICTIVE POWER METRIC

What is Variance Explained (R²)?

Variance Explained (R²) quantifies the proportion of phenotypic variance in a target dataset that is accounted for by a polygenic risk score, serving as the primary measure of a model's overall predictive power.

Variance Explained (R²) is a statistical metric representing the proportion of phenotypic variance in a target dataset accounted for by a polygenic risk score (PRS). It quantifies the degree to which the aggregated genetic variants in the model predict the observed trait or disease outcome, directly measuring the model's overall predictive power on a scale from 0 to 1.

In PRS modeling, R² is often calculated on the liability scale for binary traits to estimate the variance explained in the underlying continuous risk distribution. This metric is fundamentally bounded by SNP heritability, as a PRS cannot explain more variance than the total additive genetic contribution to the trait, and is used to benchmark different PRS construction methods such as LDpred2 and PRS-CS.

VARIANCE EXPLAINED (R²)

Frequently Asked Questions

Clarifying the statistical metric that quantifies how well a polygenic risk score captures the heritable component of a complex trait.

Variance Explained (R²) is the proportion of phenotypic variance in a target dataset that is statistically accounted for by the polygenic risk score (PRS). In quantitative genetics, it directly quantifies the predictive power of a model by measuring how much the dispersion of a trait—such as body mass index or height—is reduced when conditioning on the genetic score. A higher R² indicates that the PRS captures a larger fraction of the SNP heritability tagged by the assayed variants. It is calculated as the squared Pearson correlation between the predicted phenotype and the observed phenotype in an independent validation cohort, ensuring the metric is not inflated by overfitting to the discovery sample.

PREDICTIVE POWER COMPARISON

Variance Explained vs. Other Key PRS Metrics

A comparison of Variance Explained (R²) against other common metrics used to evaluate the performance and clinical utility of a Polygenic Risk Score.

MetricVariance Explained (R²)AUC-ROCOdds Ratio (OR)

Core Question Answered

How much phenotypic variance does the score capture?

How well does the score rank cases vs. controls?

How much does risk increase per PRS unit?

Primary Interpretation

Model goodness-of-fit and total predictive power

Discriminative ability

Effect size and relative risk

Scale

0 to 1 (or percentage)

0.5 to 1.0

1 to infinity

Dependence on Disease Prevalence

Highly dependent

Independent

Independent

Direct Clinical Utility Assessment

Sensitive to Absolute Risk Calibration

Primary Use Case

Model development and heritability estimation

Population screening and risk stratification

Communicating individual-level risk impact

VARIANCE EXPLAINED

Key Properties of R² in Genomic Prediction

The coefficient of determination (R²) is the primary metric for quantifying how much phenotypic variation a polygenic risk score captures. Understanding its properties is essential for evaluating model utility and comparing PRS methodologies.

01

Definition and Scale

R² represents the proportion of phenotypic variance in the target dataset that is accounted for by the PRS. It is calculated as the squared Pearson correlation between the predicted genetic risk and the observed phenotype in a continuous trait setting.

  • Scale: Ranges from 0 to 1 (or 0% to 100%)
  • Interpretation: An R² of 0.05 means the PRS explains 5% of the variance in the trait
  • Upper bound: Constrained by SNP heritability (h²_SNP), which is the maximum variance explainable by all common SNPs
  • Binary traits: For case-control studies, a pseudo-R² such as Nagelkerke's R² is often reported on the liability scale
02

Relationship to AUC-ROC

While R² measures variance explained, AUC-ROC measures discriminative ability. These metrics are mathematically related but capture distinct aspects of predictive performance.

  • For binary traits, R² on the liability scale can be derived from AUC using the variance of the standard logistic distribution (π²/3)
  • A PRS with a modest R² (e.g., 2-5%) can still achieve a clinically meaningful AUC when the trait has high heritability
  • Key distinction: R² is sensitive to the scale of the phenotype, while AUC is rank-based and scale-invariant
  • Both metrics should be reported together for a complete picture of model performance
03

Sample Size Dependence

R² estimates are highly sensitive to the sample size of the validation cohort and the discovery GWAS used to derive effect sizes.

  • Winner's curse: R² in the discovery dataset is often inflated due to overfitting; out-of-sample validation is mandatory
  • As GWAS sample sizes increase, the precision of effect size estimates improves, directly increasing the achievable R²
  • Standard error: Confidence intervals around R² narrow with larger validation cohorts, enabling more precise comparisons between PRS methods
  • Small validation samples can produce noisy, unreliable R² estimates that fail to generalize
04

Ancestry and Population Stratification

R² is not a universal constant for a given PRS; it is population-specific and degrades when the validation cohort's ancestry diverges from the GWAS discovery population.

  • Cross-ancestry portability: R² typically drops by 2-5 fold when applying a European-derived PRS to non-European populations
  • Differences in linkage disequilibrium (LD) patterns and allele frequencies between populations reduce predictive accuracy
  • Population stratification can artificially inflate R² if not corrected via principal components or linear mixed models
  • Reporting ancestry-stratified R² values is essential for transparent evaluation of PRS equity
05

Incremental R² and Clinical Utility

The incremental R² quantifies the additional variance explained when a PRS is added to an existing clinical model, directly measuring its practical value.

  • ΔR² = R²(clinical + PRS) - R²(clinical only)
  • Even a small incremental R² can translate to meaningful net reclassification improvement (NRI) in risk categories
  • For traits with established non-genetic risk factors (e.g., cardiovascular disease), the incremental R² over models like the Framingham Risk Score is the key metric
  • Absolute risk models combine baseline incidence rates with PRS-derived relative risks to produce clinically actionable probabilities
06

Comparison with Other Metrics

R² should be interpreted alongside complementary metrics to avoid over-reliance on a single summary statistic.

  • Mean squared error (MSE): Measures absolute prediction error; R² is a scaled, relative metric
  • Correlation coefficient (r): R² is simply r² for continuous traits, but r retains directional information
  • Odds ratio per standard deviation: For binary traits, this quantifies risk discrimination in epidemiological terms
  • Calibration slope: Assesses whether predicted risks match observed risks across the probability spectrum; a model can have high R² but poor calibration
  • Report multiple metrics to satisfy both statistical rigor and clinical interpretability requirements
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.