Rewriting these equations, one obtains the normal equations:
(5.7)(5.7)Solving the normal equations simultaneously for aand byields the least
squares regression estimates:
(5.8)(5.8)(5.8)(5.8)An estimation of the regression line’s coefficients and “goodness of fit”
also can be found in terms of expressing the dependent and independent
variables in terms of deviations from their means, their sample moments.
The sample moments will be denoted by M.
MxxxNX XXX i
iNiNii
iNiN==−=−= == =∑ ∑
∑ ∑
1221 11 12()bˆXY X YNX Xii
iN
i
iN
i
iNiN
i
iN=−−=====∑∑∑
∑∑
11112112aˆXY XYNX XiN
i
iN
ii
iNiN
i
iN=−−== ===∑∑ ∑
∑∑
1211 1121121 1 112
1 1 1YabX
YX a X b X
ii
iNiNiNii i
iNiNiN=+
=+
= = == = =∑ ∑ ∑
∑ ∑ ∑