Prove that
$$
E\left[(Y-\bar{Y})^2\right]=E\left[\left(Y-Y_{\text {est }}\right)^2\right]+\left[\left(Y_{\text {est }}-\bar{Y}\right)^2\right]
$$
for the case of (a) a least-squares line, (b) a least-squares parabola.
We have $$
Y-\bar{Y}=\left(Y-Y_{\text {ed }}\right)+\left(Y_{\text {ed }}-\bar{Y}\right)
$$
Then
$$
(Y-\bar{Y})^2=\left(Y-Y_{\text {est }}\right)^2+\left(Y_{\text {est }}-\bar{Y}\right)^2+2\left(Y-Y_{\text {est }}\right)\left(Y_{\text {est }}-\bar{Y}\right)
$$
and so
$$
E\left[(Y-\bar{Y})^2=E\left[\left(Y-Y_{\text {ess }}\right)^2\right]+E\left[\left(Y_{\text {est }}-\bar{Y}\right)^2\right]+2 E\left[\left(Y-Y_{\text {est }}\right)\left(Y_{\text {est }}-\bar{Y}\right)\right]\right.
$$
The required result follows if we can show that the last term is zero.
(a) For linear regression, $Y_{\text {est }}=\alpha+\beta X$. Then
$$
\begin{aligned}
E\left[\left(Y-Y_{\text {est }}\right)\left(Y_{\text {est }}-\bar{Y}\right)\right] & =E[(Y-\alpha-\beta X)(\alpha+\beta X-\bar{Y})] \\
& =(\alpha-\bar{Y}) E(Y-\alpha-\beta X)+\beta E\left(X Y-\alpha X-\beta X^2\right) \\
& =0
\end{aligned}
$$
because of the normal equations
$$
\mathrm{E}(\mathrm{Y}-\alpha-\beta \mathrm{X})=0, \mathrm{E}\left(\mathrm{XY}-\alpha \mathrm{X}-\beta \mathrm{X}^2\right)=0
$$
(Compare Problem 8.3.)
(b) For parabolic regression, $Y_{\text {est }}=\alpha+\beta \mathrm{X}+\gamma \mathrm{X}^2$. Then
$$
\begin{aligned}
E\left[\left(Y-Y_{\text {eut }}\right)\left(Y_{\text {es }}-\bar{Y}\right)\right]= & E\left[\left(Y-\alpha-\beta X-\gamma X^2\right)\left(\alpha+\beta X+\gamma X^2-\bar{Y}\right)\right] \\
= & (\alpha-\bar{Y}) E\left(Y-\alpha-\beta X-\gamma X^2\right)+\beta E\left[X\left(Y-\alpha-\beta X-\gamma X^2\right)\right] \\
& +\gamma E\left[X^2\left(Y-\alpha-\beta X-\gamma X^2\right)\right] \\
= & 0
\end{aligned}
$$
because of the normal equations
$$
\begin{gathered}
\mathrm{E}\left(\mathrm{Y}-\alpha-\beta \mathrm{X}-\gamma \mathrm{X}^2\right)=0, \mathrm{E}\left[\mathrm{X}\left(\mathrm{Y}-\alpha-\beta \mathrm{X}-\gamma \mathrm{X}^2\right)\right]=0, \mathrm{E}\left[\mathrm{X}^2(\mathrm{Y}-\alpha-\beta \mathrm{X}-\right. \\
\left.\left.\gamma \mathrm{X}^2\right)\right]=0
\end{gathered}
$$
Compare equations (19), page 269.
The result can be extended to higher-order least-squares curves.