$30.00
Description
This homework is to practice on multiple linear regression and matrix manipulation. Attach the complete R codes for Problem 2 at the end of the homework. Total: 90 points.
1. (40 points) Matrix calculation. Consider the multiple linear regression model in the matrix

2
^
form Y = X + with E( ) = 0 and Var( ) =
I_{n}. Let be the least squares estimator of
^
^
^
, Y = X be the tted values, and e = Y
Y be the residuals.
(a)
^
^
2
and X. Detail the steps in
(30 pts) Express Var( ), Var(Y), and Var(e) in terms of
obtaining the expressions.
(b) (10 pts) Show that e^{T} 1_{n} = 0:
2. (50 points) Data analysis. A commercial real estate company evaluates age (X_{1}), operating expenses (X_{2}, in thousand dollar), vacancy rate (X_{3}, in percentage), total square footage (X_{4}, in ten thousand square feet) and rental rates (Y , in thousand dollar) for commercial properties in a large metropolitan area in order to provide clients with quantitative information upon which to make rental decisions. The data are taken from 81 suburban commercial properties. Consider the multiple linear regression model
iid 2
Y_{i} = _{0} + _{1}X_{1i} + _{2}X_{2i} + _{3}X_{3i} + _{4}X_{4i} + _{i}; i = 1; : : : ; n; with _{i} N(0; ):
We use matrix manipulation to t the model. (For numerical results, keep three digits after the decimal point.)

In R, create the design matrix X and the response vector Y. What are their dimensions? Compute X^{T} X, X^{T} Y, X^{T} X ^{1}, and least squares estimator of . Copy your results here. Compute the tted values and residuals. Copy those for the rst 6 cases here. Based on the residuals, give an estimate of ^{2}.

Test whether _{2} = 0 or not at 0.01 signi cance level.

Consider a property with the following characteristics: X_{1} = 4; X_{2} = 10; X_{3} = 10; X_{4} = 8. Give a 95% con dence interval for the expected rental rate of this property.

Give a 95% prediction interval for the rental rate of the property in (c).

Continue from part (c), suppose you are also interested in another property with X_{1} = 5; X_{2} = 11; X_{3} = 8; X_{4} = 12, provide prediction intervals for the rental rate of the two properties with at 0.95 family con dence level.
1