What you can do
- Enter corresponding x and y data samples.
- Estimate intercept a and slope b for the model y = a + bx.
- Examine goodness of fit with R² and residual information.
- Review slope inference, confidence intervals and statistical assumptions.
Fit a simple least-squares line to paired measurements and interpret its statistics. Research Mode provides regression diagnostics and inferential information, useful for laboratory calibration, trends and student research.
Open Regression CalculatorLeast squares chooses a and b to minimize the sum of squared vertical residuals yᵢ − (a + bxᵢ). R² describes the fraction of sample y-variation explained by the fitted line under this model. A high R² alone does not establish causation, correct calibration or valid extrapolation.
For x = [1,2,3,4,5] and y = [3,5,7,9,11], all points follow y = 1 + 2x. Therefore the intercept is 1, slope is 2 and R² = 1. This deliberately simple case makes it easy to verify input order and the solver's fit before analysing noisy observations.
1,2,3,4,5 as x data and 3,5,7,9,11 as y data.