MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnmachinelearning/comments/xyk2si/linear_regression_visualizing_squared_errors/irjkak9/?context=3
r/learnmachinelearning • u/RacerRex9727 • Oct 08 '22
31 comments sorted by
View all comments
3
Hint to improve this visualization:
The least square solution goes through the mean of the data cloud (you can prove this quickly from the definition of X-bar and Y-bar)
As it stands the visualization incorporates the best solution to least squares and then a bunch of others that violate the above property
Pin it closer to the center of that data cloud and let it rotate like this:
https://images.app.goo.gl/m1Yi8cX1VXBrswBx5
or this
https://images.app.goo.gl/8SY173CGDW9qXCCF9
3
u/ex1stenzz Oct 08 '22
Hint to improve this visualization:
The least square solution goes through the mean of the data cloud (you can prove this quickly from the definition of X-bar and Y-bar)
As it stands the visualization incorporates the best solution to least squares and then a bunch of others that violate the above property
Pin it closer to the center of that data cloud and let it rotate like this:
https://images.app.goo.gl/m1Yi8cX1VXBrswBx5
or this
https://images.app.goo.gl/8SY173CGDW9qXCCF9