Principal component analysis and feature reductions
4 次查看(过去 30 天)
显示 更早的评论
Hi; I have a matrix composed of 35 features, I need to reduce those feature because I think many variable are dependent. I undertsood PCA could help me to do that, so using matlab, I calculated:
[coeff,score,latent] = pca(list_of_features)
I notice " coeff" contains matrix which I understood (correct me if I'm wrong) have column with high importance on the left, and second column with less importance and so on. However, it's not clear for me which column on " coeff" relate to which column on my original " list_of_features" so that I could know which variable is more important.
Thank you
0 个评论
采纳的回答
the cyclist
2015-10-18
编辑:the cyclist
2015-10-18
It is true that the first column of coeff is the first principal component (PC), and is "most important" in the sense that it captures the greatest possible portion of the variation.
In the first example,
coeff =
-0.0678 -0.6460 0.5673 0.5062
-0.6785 -0.0200 -0.5440 0.4933
0.0290 0.7553 0.4036 0.5156
0.7309 -0.1085 -0.4684 0.4844
What that means is that the first PC is calculated as -0.0678 times your 1st variable, -0.6785 times your second variable, etc. [There are some nuances with respect to normalization and de-meaning of your data. Read the documentation!]
The second column of coeff gives PC 2, and so on.
It may be that you will get a high degree of dimension reduction, with a very small number of PC's capturing the vast majority of the variation. You can check this with the output explained, which reports the fraction of variation captured by each PC.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!