Determining components of components of a PCA using princomp()
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, I'm new to PCA so this might not be the right question. I'm trying to use princomp() to get a better understanding of what's driving my data set, and there are about 10 components that end up driving 99% of the variability. (It's a big data set, and I'm measuring growth over time periods specifically, hopefully to make the statistical analysis more rigorous)
However, I can't figure out what the output components translate to in my original data set, i.e. which combinations of variables they correspond to. Can someone help me figure out what these components are, or alternatively tell me what I'm getting wrong about PCA?
Thanks!
0 Commenti
Risposte (1)
the cyclist
il 3 Giu 2012
The first output, called "COEFF" in the documentation, is the matrix of coefficients of the principal components. Each column of COEFF identifies the linear combination of one of the principal components. So, for example, if the first column of COEFF is
>> [0.6435; 0.0102; 0.2754; ....]
then the first principal component is
P1 = 0.6435*x(:,1) + 0.0102*x(:,2) + 0.2754*x(:,3) + ...
etc.
Does that help?
0 Commenti
Vedere anche
Categorie
Scopri di più su Dimensionality Reduction and Feature Extraction in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!