Linear Hammer: PCA is not a panacea (2013)
danluu.com
danluu.com
Nowadays I see the reverse. People loading in huge huggingface models, when a simple linear regression would have been fine.
With simple text classification problems (is this a biomedical abstract or celebrity gossip?) and bag-of-words features I've seen dimensional reduction cut the error rate in half.
Let me see if I can draw an example
++++++
++++++++++++++++
+++
---------
-----------------
-------
The '+' and '-' denote the data points of the two different classes. In this example the PCA direction will be the along the X axis, which would be the worst axis to project on to separate the classes. The best in this case would have been the Y axis.A far better approach would be to use a dimensionality reduction technique that is aware of the end goal. One such example is Fisher discriminant analysis and its kernelized variant.
I understand the second example (girlfriend taking a phone screen): some people never took statistics past a linear models course, so they use what they know. Understandable, if inefficient. But they don't seem to be claiming linear models are optimal all the time, they're just stuck in a local maximum of trying to speed up the system they have.
But the PCA guy I really don't understand.
An older explanation for PCA is that it's a sort of default factor model prior to rotations that introduce structural assumptions. (Varimax etc. factor analysis is really underrated in exploratory statistics; but then, by now data science training never introduces people to the FWL theorem, identification, etc. With large enough deep learning pretty much anything is possible -- also because using deep learning implies having truckloads of data -- but the median xgboost guy is way out of his element.)
So - a distribution which is linear?
As others have said, it's better for estimation (not for classification).
It is definitely not optimal in a classification sense.
The search engine worked amazingly well. When we first demoed it we heard from the USPTO in the first week, they wanted to buy a license...
This is the power of ANOVA, CCA, linear regression and factor analysis, etc. It's much, much, much, much harder to shoot yourself in the foot, particularly with experimental data (usage in the social sciences is another bag of johnsons.)