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.