What you are doing (in effect) is showing that X and e are orthogonal to each other.
Use Sum(Xe) where e=(Y-Yhat).
So, Sum(X(Y-Yhat)).
Standardize: SumZX(Zy - rZX) because Yhat_ZY= rZX where r is the correlation coefficient.
Hence, Sum(ZXZY - rZX^2) = SumZXZY - rSumZX^2 = r(N-1) -r(N-1) = 0.
And this in one way to show that SumXe=0.




Reply With Quote


)