Re:Principal Component Analysis for Dummies
by Radim on Wednesday October 30, 2013 @06:33PM
(#6643946)
In case anyone's wondering why: it's not only because it takes extra time. The main reason is that computing X*X^T can bring numerical instability, where a direct SVD(X) would work just fine.
[ Parent
| on HN ]
Re:Principal Component Analysis for Dummies
by neumann on Wednesday October 30, 2013 @11:18PM
(#6645028)
I remember this being elegantly demonstrated here:
http://math.stackexchange.com/questions/3869/what-is-the-int...
Re:Principal Component Analysis for Dummies
by conjectures on Thursday October 31, 2013 @07:04AM
(#6646119)
With mean corrected observations as rows of a data matrix X, the sample covariance matrix is given by X'X not XX'.
Also
(X'X)g = lg
(XX')Xg = lXg
So with n>>p and n large, you may be able to fit X'X (p^2 entries) but not XX' (n^2 entries) in memory (and get the same eigenvalues and related eigenvectors).