kirbykirby
  • kirbykirby
Linear Algebra/Linear Regression: The Hat matrix is defined as \(H=X(X^TX)^{-1}X^T\). Messing with it a bit I found that it was equal to the identity matrix o_O? Can you show me where I went wrong?
Mathematics
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
kirbykirby
  • kirbykirby
It shouldn't be though since this matrix is significant for linear regression. (I mean why would they define such a long expression?). \[X(X^TX)^{-1}X^T\]=\(X(X^{-1}(X^T)^{-1})X^T\)\[=X(X^{-1}(X^{-1})^{T})X^T\]\[=XX^{-1}(X^{-1})^TX^T\]\[=I(X^{-1})^TX^T\]\[=I(XX^{-1})^T\]\[=II=I\]
KingGeorge
  • KingGeorge
Took a little research, but you're correct. However, if \(X\) does not have an inverse, this does not result in the identity.
KingGeorge
  • KingGeorge
See here for a little more information http://en.wikipedia.org/wiki/Moore%E2%80%93Penrose_pseudoinverse

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

kirbykirby
  • kirbykirby
o_o interesting. Hmm lol this Hat matrix is a lot more special than I thought lol
KingGeorge
  • KingGeorge
Same here.

Looking for something else?

Not the answer you are looking for? Search for more explanations.