Statistics
Linear regression calculator
Enter x,y pairs to find the best-fit line, correlation, R², error, and a scatter plot.
One pair per line. Separate x and y with a comma or space.
Regression line
y = 1.99x + 0.05
R²
0.9973053289
r
0.9986517556
RMSE
0.1462873884
n
5
Scatter plot and best-fit line
Prediction from the fitted line
ŷ = 11.99
Frequently asked questions
What does linear regression calculate?
Finds the line y=mx+b that minimizes the squared error between the data and the predictions.
What does R ² mean?
It shows the proportion of the observed variation in y explained by the linear model.
Can I make predictions?
Yes. Enter a new x value to calculate ŷ using the fitted line.