dafriedman97 / mlbook

Repository for the free online book Machine Learning from Scratch (link below!)
https://dafriedman97.github.io/mlbook/content/introduction.html
MIT License
1.08k stars 206 forks source link

Fix the formula for \bbetahat #22

Closed JeffFessler closed 2 years ago

JeffFessler commented 2 years ago

It should be the inverse not the transpose of the Gram matrix. And of course it is invertible only if \bX has full column rank (linearly independent columns).

JeffFessler commented 2 years ago

Oh, I see this is partly a duplicate of #21. I should have checked other PRs first.

dafriedman97 commented 2 years ago

Thanks for the catch Mr. Fessler! That's an important one to mess up. Oops.