Some OLS results
Summary
Given an OLS trendline with intercept
y=b1+b2x
where b1,b2 are determined by the OLS formula and ei,^yi are the OLS residuals and the OLS fitted values,
- ∑ni=1ei=0
- ¯e=0
- ∑ni=1xiei=0
- The sample correlation between the explanatory variable and the residuals is zero
- ∑ni=1^yi=∑ni=1yi
- ¯^y=¯y
- ∑ni=1^yiei=0
- The sample correlation between the fitted values and the residuals is zero
Note: These results do not hold if the trendline has no intercept.