Pearson Correlation
Overview
The Pearson product-moment correlation coefficient is the most basic correlation measure, expressing how strongly two quantities move together in a straight-line (linear) fashion, on a scale from to .
- It approaches when one increases proportionally as the other increases.
- It approaches when one decreases proportionally as the other increases.
- It approaches when they do not move together (no correlation).
A larger absolute value means a stronger linear co-movement.
Formula
For two series and with means :
It is the covariance of the two quantities divided by the product of their standard deviations. Subtracting the means from each value measures whether the deviations from the mean move in the same direction. Dividing by the product of the standard deviations cancels out scale, normalizing the value to .
Characteristics
Strengths:
- Scale-independent (normalized to ).
- Simple and fast to compute.
Limitations:
- Captures only linear co-movement. A non-linear (curved) relationship can yield a small even when the relationship is strong.
- Sensitive to outliers (uses raw values, so it is pulled by extreme points).
To robustly capture non-linear but monotonic relationships, apply Pearson correlation to the rank series rather than the raw values — see Spearman rank correlation.
Where It Is Used in the App
- Scatter Matrix: the correlation coefficient of each variable pair (upper-triangle cells) is computed as the Pearson correlation of the raw values → Scatter Matrix
- Spearman rank correlation: Spearman is simply Pearson correlation applied to the rank series → Spearman rank correlation
References
- Pearson, K. (1895). Note on regression and inheritance in the case of two parents. Proceedings of the Royal Society of London, 58, 240–242. https://doi.org/10.1098/rspl.1895.0041