Pearson Correlation is a statistical metric measuring the strength and direction of the linear relationship between two continuous variables, producing a coefficient r ranging from -1 (perfect negative correlation) to +1 (perfect positive correlation). In gene expression prediction, it quantifies how closely a model's predicted transcript abundance aligns with experimentally observed values from techniques like RNA-seq.
Glossary
Pearson Correlation

What is Pearson Correlation?
A foundational statistical measure for quantifying the linear relationship between two continuous variables, widely used in genomics to benchmark model accuracy.
The coefficient is calculated as the covariance of the two variables divided by the product of their standard deviations, making it sensitive only to linear dependencies. While a high Pearson r indicates strong agreement in the direction of expression changes, it does not capture non-linear relationships or systematic biases in magnitude, often necessitating complementary metrics like Spearman correlation for robust model evaluation.
Key Properties of Pearson Correlation
Pearson correlation quantifies the strength and direction of a linear relationship between two continuous variables. Understanding its core properties is essential for evaluating gene expression prediction models.
Scale Invariance
The Pearson coefficient is invariant to changes in the location and scale of the variables. Adding a constant to all values or multiplying by a positive constant does not alter the correlation.
- Formula basis: Standardization of values into z-scores (mean=0, std=1)
- Practical implication: Comparing TPM-normalized vs. raw count data yields the same correlation
- Exception: Non-linear transformations (log, square root) will change the coefficient
Sensitivity to Outliers
Pearson correlation is highly sensitive to extreme values. A single outlier can dramatically inflate or deflate the coefficient, making it an unreliable measure for noisy genomic data without preprocessing.
- A single data point far from the regression line can dominate the sum of squared deviations
- Mitigation: Winsorization or robust alternatives like Spearman's rank correlation
- In RNA-seq, lowly expressed genes with high variance often act as influential outliers
Linearity Assumption
Pearson correlation only captures linear relationships. It will fail to detect strong non-linear dependencies, returning a value near zero even when a clear functional relationship exists.
- Example: A perfect parabolic relationship (y = x²) can yield r ≈ 0
- Diagnostic: Always inspect scatter plots before relying on r alone
- Genomic context: Gene regulatory networks often exhibit sigmoidal or switch-like behavior that Pearson misses
Bounded Range
The coefficient is strictly bounded between -1 and +1, providing an intuitive, normalized measure of association strength and direction.
- +1: Perfect positive linear relationship
- 0: No linear relationship
- -1: Perfect negative linear relationship
- Interpretation benchmarks: |r| > 0.7 is generally considered strong, 0.3-0.7 moderate, < 0.3 weak in biological contexts
Symmetry Property
Pearson correlation is symmetric: the correlation between X and Y is identical to the correlation between Y and X. It does not imply directionality or causation.
- Corr(X, Y) = Corr(Y, X)
- This distinguishes it from regression coefficients, which are asymmetric
- Critical note: In gene expression prediction, high correlation between predicted and observed values does not mean the model captures causal regulatory mechanisms
Relationship to R-squared
The square of the Pearson correlation coefficient equals the coefficient of determination (R²) in simple linear regression, representing the proportion of variance explained.
- r = 0.8 implies R² = 0.64, meaning 64% of variance is explained
- This squared relationship penalizes moderate correlations: r = 0.5 explains only 25% of variance
- Model evaluation: R² provides a more interpretable measure of predictive power than r alone
Frequently Asked Questions
Clear, technical answers to common questions about using the Pearson correlation coefficient to evaluate gene expression prediction models.
Pearson correlation is a statistical metric that measures the linear relationship between predicted and experimentally observed gene expression values. In the context of sequence-to-expression models, it quantifies how well a model's continuous output (e.g., predicted log-transformed TPM or FPKM values) tracks with the ground truth from assays like RNA-seq. The coefficient, denoted as r, ranges from -1 to +1, where +1 indicates a perfect positive linear correlation, 0 indicates no linear correlation, and -1 indicates a perfect inverse correlation. For a model predicting transcript abundance across thousands of genes, the Pearson correlation is typically calculated per-gene across samples or per-sample across genes, providing a global measure of predictive accuracy that is sensitive to the direction and strength of the linear association, not just the absolute error magnitude.
Pearson vs. Other Genomic Evaluation Metrics
Comparison of statistical metrics used to evaluate the performance of sequence-to-expression prediction models against experimental ground truth.
| Metric | Pearson Correlation | Spearman Correlation | Mean Squared Error |
|---|---|---|---|
Measures | Linear relationship strength | Monotonic relationship strength | Absolute prediction error magnitude |
Output Range | -1.0 to 1.0 | -1.0 to 1.0 | 0 to ∞ (lower is better) |
Sensitive to Outliers | |||
Assumes Normal Distribution | |||
Captures Non-Linear Patterns | |||
Scale-Dependent | |||
Typical Use in Genomics | Comparing predicted vs. observed expression across genes | Ranking gene expression levels across conditions | Quantifying per-gene prediction deviation |
Interpretability for CTOs | Intuitive: 0.9 = strong linear agreement | Intuitive: 0.9 = strong rank agreement | Requires context: depends on expression units |
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
Essential statistical metrics and related concepts for evaluating the performance of gene expression prediction models.
Spearman's Rank Correlation
A non-parametric measure of monotonic relationship between predicted and observed expression values. Unlike Pearson, it operates on ranked data rather than raw values, making it robust to outliers and non-linear associations. Spearman's correlation assesses whether the relationship between variables can be described by any monotonic function, not just a straight line. It is often reported alongside Pearson to validate that high correlation is not driven by a few extreme expression values.
Coefficient of Determination (R²)
The square of the Pearson correlation coefficient, representing the proportion of variance in the observed expression that is predictable from the model's predictions. An R² of 0.90 indicates the model explains 90% of the variability in the experimental data. This metric is particularly sensitive to scale and bias errors; a model can have a high Pearson correlation but a low R² if predictions are systematically shifted from the diagonal identity line.
Mean Squared Error (MSE)
A foundational loss function that measures the average squared difference between predicted and observed expression levels. MSE heavily penalizes large prediction errors due to the squaring operation, making it sensitive to outliers. In gene expression prediction, MSE is often computed in log-transformed space (e.g., log(TPM+1)) to prevent highly expressed genes from dominating the error signal and to better reflect fold-change accuracy.
Concordance Correlation Coefficient
A reproducibility index that evaluates the agreement between two measurements by simultaneously assessing precision (how close points are to the fitted line) and accuracy (how close the fitted line is to the 45-degree identity line). Unlike Pearson, which only measures precision around any straight line, CCC penalizes systematic bias. This makes it a stringent metric for expression prediction where both the relative ranking and absolute value calibration matter.
Log-Transformation
A critical preprocessing step where raw expression counts are transformed using log2(TPM+1) or similar functions. This transformation stabilizes variance across the wide dynamic range of gene expression, making the data more normally distributed and reducing the disproportionate influence of highly expressed genes. Pearson correlation computed on log-transformed values reflects fold-change agreement rather than absolute count agreement, aligning with biological interpretation.
Cross-Tissue Evaluation
A validation strategy where Pearson correlation is computed per tissue type or aggregated across multiple tissues from resources like GTEx. This reveals whether a model captures tissue-specific regulatory programs or merely predicts a generic average expression profile. A model might achieve high genome-wide correlation by accurately predicting housekeeping genes while failing on tissue-specific genes, which are often of greater biological interest.

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