Consider regression on explanatory variables with data for .
This exercise will lead you to another interpretable equation for the vector . It is a partial review of some of the theory (before the final exam).

First consider shifting the th variable to , that is, for .
Let be the least squares vector of coefficients for the original data and let be the least squares vector of coefficients for the shifted data.

Part a)
Which of the following are correct statements?













For the remaining questions below, suppose for , that is, are now centred variables with sample means of 0.
Part b)
Which of the following are correct statements?













Part c)
Continuing from (b), let be the matrix with the original x variables and let be the matrix with the shifted x variables without a column of 1s at the beginning. and let be the vector.
What is . Which of the following are correct statements? It is:










Part d)
What is . Which of the following are correct statements? The th component of is:










Part e)
Now consider the vector . Let be an matrix of the original unshifted explanatory variables, and let be an vector of the response variables. Then the vector of slopes (without intercept) can be computed in R as solve(mat1,mat2), where
mat1=
and mat2=

(Because WebWork will match on answers that are strings, the exact string is needed; please do not use spaces in the middle of your strings.)

Part f)
The derivation on this page shows that the least squares coefficients can all be computed as functions of sample means and sample . [Fill in one suitable word.]

Hint:

You can earn partial credit on this problem.