My book on Linear regression: During prediction of $Y_0= \beta_0+\beta_1x_0+\epsilon_0$ from a new $x_0$ we have $var[\hat{Y}_0-Y_0]=var[\hat{Y}_0]+var[Y_0]$ since the covariance terms vanisces as $\epsilon_0$ is independent of $\epsilon_1, .., \epsilon_n$
hence it turns out $var[\hat{Y}_0-Y_0]=\sigma^2h_{00}+\sigma^2 = \sigma^2(1+h_{00})$.
however, later on, when calculating the variance of the residues it says: $var(R_i)=var(Y_i-\hat{Y}_i)=var[\hat{Y}_0]+var[Y_0]-2cov(Y_i, \hat{Y}_i)$
First of all: why $-2cov(Y_i, \hat{Y}_i)$ instead of $+2cov(Y_i, \hat{Y}_i)$?
Secondly, why the variance doesn't vanish here? The only thing that changes is that before we had a new observation, and afterwards we are studying the variance of the residuals (hence we are only using the original observations and the responses). But in any case we all know that $\epsilon_i \sim N(0, \sigma^2)$ IID, hence they are all independent of each other! For this reason surely the reason given by the book on why the covariance vanishes in the first case, is false.