Consider a regression model $Y=E(Y|X)+Prediction \ Error$ i.e $Prediction \ error = Y-E(Y|X)$. Now, define an estimate of the regression function $E(Y|X)=\hat{Y}+ Fitted \ error$ i.e. Fitted error = $E(Y|X)-\hat{Y}$. Further, define residual = $Y-\hat{Y}$. Now, we have $Total \ error = Residual \ error + Fitted \ error$.
Therefore, the total error can be expressed as $Total \ error = Prediction \ error + 2 \times Fitted \ error$.
Is the above derivation regarding errors, is right or wrong?