News for hackers. Stuff that matters.
Re:Linear regression by murbard2 on Tuesday August 09, 2016 @11:47AM (#12255384)
A common gotcha with linear regression. Imagine that your data points look like they roughly fit the shape of a tilted ellipsis. The linear regression will not run along the axis of the ellipsis, the slope will typically be smaller. This is because you're minimizing the square distance along the y axis, not the distance from a point to the line itself.
Re:Linear regression by thanatropism on Tuesday August 09, 2016 @12:18PM (#12255647)
What you appear to want is "total least squares":

https://en.wikipedia.org/wiki/Total_least_squares

Re:Linear regression by klodolph on Tuesday August 09, 2016 @04:35PM (#12257527)
Do you mean "ellipse"? I was a bit confused about the "ellipsis" comment, since an ellipsis looks like a collection of collinear points.