Prove mean of predicted values in OLS regression is equal to the mean of original values
In OLS estimation, we can summarize response \(y\) as \[
y_i=\hat{y}_i+e_i
\] where residual \(e_i\) is assumed to follow a normal distribution \(N(0,\sigma^2)\)\[
\sum e_i=\overline{e}=0
\] thereby, we have \[
\sum_{i=1}^ny_i=\sum_{i=1}^n(\hat{y}_i+e_i)\\
=\sum_{i=1}^n\hat{y}_i
\]
Residual standard error:0.192 on 146 degrees of freedom Multiple R-squared:0.9379, Adjusted R-squared:0.9366 F-statistic:734.4 on 3 and 146 DF, p-value:<2.2e-16