Correlation Coefficient Calculator
Measure how strongly two variables move together.
–
Result
- Correlation r
- R²
- Regression line
- P-value for r
- Pairs
- Work
Saved Calculations
Items you add are saved in this browser.
| Name | Calculation | Result | Remove |
|---|
Correlation and Regression Formulas
r = Σ(x − x̄)(y − ȳ) ÷ √(Σ(x − x̄)² × Σ(y − ȳ)²)
Slope b = Σ(x − x̄)(y − ȳ) ÷ Σ(x − x̄)² Intercept a = ȳ − b x̄
Test of r: t = r√((n − 2) ÷ (1 − r²)), df = n − 2
Worked Example
Tips
Correlation isn’t causation, and r only measures straight-line relationships. Check the scatter plot for curves and outliers. Matches Excel’s CORREL, SLOPE, INTERCEPT and RSQ.