The formula for linear regression is as follows:
$y_i= \beta_0 + \beta_1 x_i + \epsilon_i$, where $e_i \sim \mathcal{N}(0, \sigma^2)$
Please correct me if the above is wrong.
However, from various posts and notes, I've also read that the residuals of a linear regression (with an intercept term) always sum to zero. Therefore, by definition the residuals are NOT iid. How can $e_i \sim \mathcal{N}(0, \sigma^2)$ and sum to zero at the same time?
I know I am making an incorrect statement somewhere, just not sure where. Thanks.