[COEFF,SCORE] = princomp(X); Why is SCORE != X * COEFF ???
Mostrar comentarios más antiguos
Hi All,
I'm using PCA.
[COEFF,SCORE] = princomp(X);
My understanding of the help is that the COEFF matrix can be used to transform the inputs stand alone. However I am finding that
SCORE != X * COEFF
Any ideas?
Respuestas (1)
Peter Perkins
el 21 de Ag. de 2012
0 votos
Hi Stewart -
You forgot to center the data first: "princomp centers X by subtracting off column means".
Hope this helps.
1 comentario
Stewart Charles
el 21 de Ag. de 2012
Categorías
Más información sobre Dimensionality Reduction and Feature Extraction en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!