Find the best-fit line for a dataset using least squares regression.
Find the best-fit line for a dataset using least squares regression.
Least squares: m=(nΣxy-ΣxΣy)/(nΣx²-(Σx)²)
X:1,2,3,4 Y:2,4,5,4 → y=0.8x+1.5.
Enter values above and click Calculate. All computation happens locally in your browser — no data is sent to any server.
What is Linear Regression Calculator?
Find the best-fit line for a dataset using least squares regression.
Formula used?
Least squares: m=(nΣxy-ΣxΣy)/(nΣx²-(Σx)²)
Is it free?
Yes! All CalcNest AI tools are 100% free.
Is my data safe?
All calculations run locally. We never store or transmit your data.