Why does a least squares fit appear to have a bias when applied to simple data?
11–20 of 84 posts
Re: Why does a least squares fit appear to have a bias when applied to simple data?
#12Earlier quoted context omitted.
I find it helpful to view least as fitting the noise to a Gaussian distribution.
OLS estimator is the minimum-variance linear unbiased estimator even without the assumption of Gaussian distribution.
Re: Why does a least squares fit appear to have a bias when applied to simple data?
#13Your "visual inspection" assumes both X and Y have noise. That's called Total Least Squares.
Re: Why does a least squares fit appear to have a bias when applied to simple data?
#14If the true value is medium high, any random measurements that lie even further above are easily explained, as that is a low ratio of divergence. If the true value is medium high, any random measurements that lie below by a lot are harder to explain, since their (relative, i.e.) ratio of divergence is high.
Therefore, the further you go right in the graph, the more a slightly lower guess is a good fit, even if many values then lie above it.
Re: Why does a least squares fit appear to have a bias when applied to simple data?
#15Re: Why does a least squares fit appear to have a bias when applied to simple data?
#16While the asymmetry of least squares will probably be a bit of a novelty/surprise to some, pretty much anything posted here is more or less a copy of one of the comments on stackexchange.
[Challenge: provide a genuinely novel on-topic take on the subject.]
Re: Why does a least squares fit appear to have a bias when applied to simple data?
#17One way to visually check that the fit line has the right slope is to (1) pick some x value, and then (2) ensure that the noise on top of the fit is roughly balanced on either side. I.e., that the result does look like y = prediction(x) + epsilon, with epsilon some symmetric noise.
One other point is that if you try to simulate some data as, say
y = 1.5 * x + random noise
then do a least squares fit, you will recover the 1.5 slope, and still it may look visually off to you.
Re: Why does a least squares fit appear to have a bias when applied to simple data?
#18The least squares model will produce unbiassed predictions of y given x, i.e. predictions for which the average error is zero. This is the usual technical definition of unbiassed in statistics, but may not correspond to common usage.
Whether x is a noisy measurement or not is sort of irrelevant to this -- you make the prediction with the information you have.
Re: Why does a least squares fit appear to have a bias when applied to simple data?
#19Re: Why does a least squares fit appear to have a bias when applied to simple data?
#20Had a QuantSci Prof who was fond of asking "Who can name a data collection scenario where the x data has no error?" and then taught Deming regression as a generally preferred analysis [1] [1] https://en.wikipedia.org/wiki/Deming_regression