Least Squares Calculator
Enter your (X, Y) data pairs into the Least Squares Calculator to find the best-fit line through your data. Input your data points as comma-separated or newline-separated values, and get back the slope (m), Y-intercept (b), the full regression equation (ŷ = mx + b), and the R² (coefficient of determination) showing how well the line fits your data.
Results
Regression Equation
--
Slope (m)
--
Y-Intercept (b)
--
R² (Coefficient of Determination)
--
Correlation Coefficient (r)
--
Number of Data Points (n)
--
Predicted Y (for given X)
--