r Correlation Calculator
Calculate the Pearson correlation coefficient (r) and R² between two variables. Enter X and Y values as comma-separated lists of equal length and get instant interpretation.
| # | x | y | x² | y² | xy |
|---|
Pearson Correlation Formula
Where n is the number of pairs, Σxy is the sum of products, Σx and Σy are the sums of each variable. The result r ranges from −1 (perfect negative) to +1 (perfect positive).
How to Calculate Pearson r
-
1Enter Paired DataEach X value corresponds to a Y value at the same position. Both lists must be the same length.
-
2Compute SumsCalculate Σx, Σy, Σx², Σy², and Σxy from your data pairs.
-
3Apply the FormulaSubstitute sums into the Pearson r formula to get a value between −1 and +1.
-
4Interpret r and R²r tells the direction and strength of the linear relationship. R² tells what proportion of variance in Y is explained by X.
Worked Example
X = 1, 2, 3, 4, 5 — Y = 2, 4, 5, 4, 5
Frequently Asked Questions
Correlation measures the strength and direction of a linear relationship between two variables. The Pearson r coefficient ranges from −1 (perfect negative) to +1 (perfect positive), with 0 indicating no linear relationship.
An r of 0.8 indicates a strong positive correlation — as X increases, Y tends to increase substantially. About 64% of the variance in Y is explained by X (R² = 0.64).
Correlation shows that two variables move together, but does not prove one causes the other. A third hidden variable (confound) may drive both. Always be cautious about drawing causal conclusions from correlation alone.
R² is the square of the Pearson r and represents the proportion of variance in one variable explained by the other. An R² of 0.7 means 70% of the variation in Y is accounted for by its linear relationship with X.
Related Calculators
Regression Calculator
Calculate linear regression equation, slope, and intercept for any data set.
Standard Deviation Calculator
Calculate mean, variance, and standard deviation for any data set.
Variance Calculator
Calculate population and sample variance for any data set.