Question: what is the equation of the least squares line?
Answer: What is a Least Squares Regression Line? fits that relationship. That line is called a Regression Line and has the equation ŷ= a + b x. The Least Squares Regression Line is the line that makes the vertical distance from the data points to the regression line as small as possible.