Question: Least squares prediction equations: 9 = 4.44 + 0.261 3.) Write down the model in a matrix notation. Specify X and ,3. (Hint: See R

Least squares prediction equations: 9 = 4.44 + 0.261 3.) Write down the model in a matrix notation. Specify X and ,3. (Hint: See R code from class). b) Using R, compute X 'X . What is the dimension of this matrix? c) Using R, compute (X'X )\"1X'y. d) Is this result in (c) the same as the coefcients from Exercise 3.12 that used 11110? e) Using R, compute the hat matrix, H = X (X'X)'1X'. Obtain the leverage points. f) Explain the geometrical meaning of g = Hy. g) Using R, obtain using Hy. What do these numbers from the output represent? Explain
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
