Fit a straight line to paired values accurately. See slope, intercept, errors, correlation, and diagnostics. Plot points, inspect residuals, and export polished model summaries.
| Observation | X | Y |
|---|---|---|
| 1 | 1 | 2.1 |
| 2 | 2 | 2.9 |
| 3 | 3 | 4.2 |
| 4 | 4 | 5.1 |
| 5 | 5 | 5.8 |
| 6 | 6 | 7.2 |
| 7 | 7 | 8.1 |
| 8 | 8 | 9.0 |
Linear model: y = a + bx
Slope: b = Σ[(x - x̄)(y - ȳ)] / Σ[(x - x̄)²]
Intercept: a = ȳ - b x̄
Prediction: ŷ = a + bx
Residual: e = y - ŷ
R²: 1 - SSE / SST
SSE: Σ(y - ŷ)²
MSE: SSE / n
RMSE: √MSE
MAE: Σ|y - ŷ| / n
When the origin option is enabled, the intercept is fixed at zero and the slope becomes b = Σ(xy) / Σ(x²).
It estimates a straight-line relationship between one predictor and one response variable. The tool returns slope, intercept, fit quality, residual errors, and predicted values.
R² measures how much variation in Y is explained by the fitted line. Values closer to 1 usually indicate a stronger linear relationship.
Use that option only when theory or measurement design clearly requires zero response at zero input. Otherwise, let the model estimate the intercept.
Residuals show the difference between actual and predicted Y values. They help reveal bias, unusual observations, and non-linear patterns the line cannot explain.
Yes. The calculator accepts commas, spaces, semicolons, and line breaks. Each X value must still align with one Y value.
A usable linear model cannot be fitted because the slope denominator becomes zero. The tool will show an error instead of misleading output.
MAE gives average absolute error, while RMSE penalizes larger errors more strongly. Together, they describe model accuracy from different perspectives.
No. This page fits one predictor against one response. Multiple regression needs several predictors and a different model structure.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.