set. seed (10)
A cbind (rep (1,9), rnorm (9))
(a) Find the matrix H = A(A'A)-¹A'.
(b) Using R show that H is symmetric. That is H' = H.
(c) Using R show that H is idempotent. That is HH = H.