Linear Regression & Correlation Calculator
Least-squares linear regression: slope, intercept, Pearson correlation r, R² and prediction from paired x and y data.
How to use the Linear Regression & Correlation Calculator
- Enter or select: x values, y values.
- Fill in what you know of: Predict y at x = — leave the unknown empty.
- The results (Regression line, Slope, Intercept, Pearson r, R², Predicted y, Std. error of estimate) are calculated instantly as you type.
- Use “Copy link” to share the calculation with the same input values.
Formula
- m = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)²
- r = Sxy / √(Sxx·Syy)