Re:Principal Component Analysis for Dummies
by twstws on Wednesday October 30, 2013 @11:03PM
(#6644981)
> we can't determine if a computed result is actually a sought result or its reflection/negative
That's not how I'd explain it. The 'sought result' and its reflection are not two different things. They are the same thing, differing only in a trivial detail of orientation. The 'negative' of the result conveys exactly the same information as the result.
Re:Principal Component Analysis for Dummies
by Radim on Wednesday October 30, 2013 @06:33PM
(#6643946)
you should not actually form the covariance matrix to get there...
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.
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).
This is also closer to it's actual implementation: while it's true that you do technically need the eigenbasis of the covariance matrix, you should not actually form the covariance matrix to get there...