# What is the general formate for the equation of a least-squares regression line?

##### 1 Answer

Feb 17, 2015

Equation for least-squares linear regression:

where

and

for a collection of

This looks horrible to evaluate (and it is, if you are doing it by hand); but using a computer (with, for example, a spreadsheet with columns :