Measure the strength and direction of the linear relationship between two numeric variables. Paste the X and Y values in the same order to get Pearson’s r with its p-value, r², a 95% confidence interval and a scatter plot with the least-squares line. Spearman’s ρ and Kendall’s τ are shown alongside for comparison.
Interpreting r
| |r| | Strength |
|---|---|
| 0.00 – 0.29 | Negligible to weak |
| 0.30 – 0.49 | Weak to moderate |
| 0.50 – 0.69 | Moderate |
| 0.70 – 0.89 | Strong |
| 0.90 – 1.00 | Very strong |
The sign gives the direction. A positive r means both variables rise together; a negative r means one falls as the other rises. r² is the proportion of variance in one variable explained by its linear relationship with the other.
Formula and significance test
r = Σ(x − x̄)(y − ȳ) ÷ √[ Σ(x − x̄)² Σ(y − ȳ)² ], t = r√(n − 2) ÷ √(1 − r²), df = n − 2
The confidence interval uses Fisher’s z-transformation, so it is correctly asymmetric when r is close to ±1.
Pearson, Spearman or Kendall?
- Pearson r: linear relationships between roughly normal numeric variables.
- Spearman ρ: monotonic relationships, ranked data, or data with outliers. See the Spearman calculator.
- Kendall τ-b: small samples or many tied values. It has a direct interpretation in terms of concordant pairs.
Frequently asked questions
Does correlation mean causation?
No. A strong correlation can come from a third variable that affects both, from reverse causation, or from coincidence. Only a controlled experiment can establish cause and effect.
Why is my r significant but tiny?
With a large sample, even a weak correlation such as r = 0.1 can be statistically significant. Always report r and its confidence interval, not just the p-value.