Question

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.

   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.
Show more…
Schaum's Outline of Probability and Statistics
Schaum's Outline of Probability and Statistics
John Schiller, R.… 3rd Edition
Chapter 8, Problem 53 ↓

Instant Answer

verified

Step 1

This needs to be shown for both a least-squares line and a least-squares parabola.  Show more…

Show all steps

lock
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
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.
Close icon
Play audio
Feedback
Powered by NumerAI
*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Least-Squares Regression
Least-squares regression is a method used to estimate the parameters of a regression model by minimizing the sum of the squares of the differences between the observed values and the predicted values. This technique is applicable to fitting various models such as linear, quadratic (parabolic), and higher-order curves, ensuring that the model best captures the underlying trend in the data by reducing overall prediction error.
Normal Equations
Normal equations are derived from setting the partial derivatives of the sum of squared residuals with respect to the model parameters to zero. These equations form the foundation for finding the best-fit parameters in least-squares regression. They ensure that the residuals are minimized overall and lead to properties that can be exploited to simplify proofs and decompose sums of squares in regression analysis.
Decomposition of Total Variation
Decomposition of total variation involves partitioning the total variability in the response variable into components attributable to the regression model (often called the explained variation) and the residual or error variation (unexplained variation). This concept is fundamental for understanding the performance of the model, as it further leads to metrics such as R-squared that quantify the proportion of variability captured by the model.
Orthogonality between Residuals and Fitted Values
Orthogonality between residuals and fitted values is a key property of least-squares estimators. It implies that the error terms (residuals) are uncorrelated with the fitted values, meaning the cross-product of the two vectors is zero. This property not only simplifies the algebra involved in proving decomposition results but also ensures that the model's systematic part is properly separated from the random error component.
Expectation and Linearity of Expectation
The expectation operator, particularly its linearity, plays an important role in statistical proofs and derivations. In the context of regression analysis, linearity of expectation allows splitting the expected value of a sum into the sum of the expected values, which is essential when proving variance decompositions and other related results in the analysis of regression models.

*

Recommended Videos

-
consider-the-general-linear-regression-model-y-xb-where-y-is-n-x-1-x-is-n-x-p-and-of-rank-8-is-p-x-1-is-n-x-1-and-is-no-021-a-the-hat-matrix-h-is-given-by-h-xxx-ix-show-that-i-h-is-idempoten-22016

Consider the general linear regression model Y = XB + ε where Y is n x 1, X is n x p and of rank 8 is p x 1, ε is n x 1, and ε is N(0, 021). (a) The hat matrix H is given by H = X(X'X)^(-1)X'. Show that (I - H) is idempotent where I is the identity matrix. (b) Using the least squares method, we minimize RSS = ε'ε = (Y - Xβ)'(Y - Xβ) to obtain β = (X'X)^(-1)XY. Show that RSS can also be written as Y'(I - H)Y. Obtain an expression for the variance-covariance matrix of the fitted values Yi, i = 1, 2, in terms of the hat matrix H: ε = Y - Xβ is the vector of residuals. Are the residuals statistically independent? Justify your answer with an explanation. Show that Hε = 0. Suppose we denote by hj the (i, j) element of the hat matrix H. Thus, ε can be written as ε = Xβ - Xh, where h = [h1, h2, ..., hn]' is the vector of leverage values. What does this equation of ε show? Suppose that we partition X and β as B1 β = B2 X = [X1 X2] where X1 is n x p1, X2 is n x p2, and p1 + p2 = p. B1 is p1 x 1, and B2 is p2 x 1. If the true model is Y = XB + ε, and we fit the model Y = X1B + ε, have we underspecified or overspecified the model? For the least squares part (E), β1 = (X1'X1)^(-1)X1'Y. If the true model is Y = XB + ε, compute E(β1). As a result of model misspecification in part (C), we could obtain an estimator of β which is larger than it should be. Does this affect inferences made about the model? Explain.

Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever