Tuve un ataque de artemanía es intenté replicar una recta de regresión.
I was playing with my son's
, trying to emulate a linear regression. I was doubtful about perpendicular projections too. It is not a classic OLS method, but you can see how errors are reduced.
It would be great if you can provide more information about the maths.

It would be great if you can provide more information about the maths.