Measure the strength of a straight-line relationship between two variables: Pearson's r with its p-value, 95% confidence interval, r² and a scatter plot.
r = Σ(x − x̄)(y − ȳ) ÷ √(Σ(x − x̄)² Σ(y − ȳ)²)
In the same order, so each X lines up with its Y. At least 3 pairs.
Pearson's r measures how closely two variables follow a straight line, on a scale from −1 to +1. +1 is a perfect rising line, −1 a perfect falling line and 0 no straight-line pattern at all.
It's covariance with the units stripped out, so height in centimetres or inches gives the same r. That makes it easy to compare relationships measured in completely different units.
r only captures straight-line patterns. A perfect U-shape can have r = 0, and a single outlier can create or destroy a strong r, which is why the scatter plot matters as much as the number.
As given in OpenStax Introductory Statistics, sections 12.3 and 12.4; Fisher's z interval as in Fisher (1915). See Sources.
r² = 98.9%: almost all the variation in marks lines up with revision time in this small class. Real classes are rarely this tidy, and a strong r still wouldn't prove revision caused the marks.
Two-tailed, 5% level. With small samples only strong correlations reach significance; with large ones, even weak ones do.
| Pairs (n) | |r| needed |
|---|---|
| 5 | 0.878 |
| 10 | 0.632 |
| 20 | 0.444 |
| 30 | 0.361 |
| 50 | 0.279 |
| 100 | 0.197 |
| 1,000 | 0.062 |
Rough guide for |r|: below 0.3 weak, 0.3–0.5 moderate, 0.5–0.7 fairly strong, above 0.7 strong. What counts as strong depends on the field.
The share of variation in one variable that lines up with the other in a straight-line fit. r = 0.7 gives r² = 49%.
No. r is symmetric: swapping X and Y gives the same value.
Independent pairs, a roughly straight-line relationship and approximately normal data. Outliers can distort it badly.
For ranked or ordinal data, for curved but steadily rising or falling relationships, or when outliers are a worry.
r is bounded by −1 and 1, so intervals near the ends are squeezed. Fisher’s z transformation handles this.
=CORREL(x_range, y_range) or =PEARSON(x_range, y_range).
Yes. With 1,000 pairs, r = 0.07 is significant at 5% but explains under 1% of the variation.
Related Tools
Linear relationship strength.
Rank correlation.
Regression fit quality.
Parabolic curve fit.
Third-degree polynomial fit.
Higher degree curve fit.