Least Square Fit
q
Coefficients a and b are chosen such that the error Q is minimum:
q
This leads to:
q
Solve the above equations, we get the linear regression coefficients:
where
variance of
x