Least Squares Calculator

Least Squares Regression is a way of finding a straight line that best fits the data, called the "Line of Best Fit".

Enter your data as (x, y) pairs, and find the equation of a line that best fits the data.

images/least-squares.js