Skip to content

Comment on Why does a least squares fit appear to have a bias when applied to simple data?parent

Comments

I find it helpful to view least as fitting the noise to a Gaussian distribution.

They both fit Gaussians, just different ones! OLS fits a 1D Gaussian to the set of errors in the y coordinates only, whereas TLS (PCA) fits a 2D Gaussian to the set of all (x,y) pairs.

Well, that was a knowledge gap, thank you! I certainly need to review PCA but python makes it a bit too easy.

OLS estimator is the minimum-variance linear unbiased estimator even without the assumption of Gaussian distribution.

Yes, and if I remember correctly, you get the Gaussian because it's the minimum entropy (least additional assumptions about the shape) continuous distribution given a certain variance.

And given a mean.

Both of these do, in a way. They just differ in which gaussian distribution they're fitting to.

And how I suppose. PCA is effectively moment matching, least squares is max likelihood. These correspond to the two ways of minimizing the Kullback Leibler divergence to or from a gaussian distribution.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.