Define the residual from a regression (one independent variable) algebraically and show that:
a. the mean of the residuals is zero
b. the correlation of the residuals and the independent variable is zero.

Any help would be greatly appreciated, thanks!