How can i use pca as a filter
조회 수: 4 (최근 30일)
이전 댓글 표시
I am using PCA as filter. But as data should be obtained with maximum principle component having 90% contribution. But in my code i am not getting contribution above 90%. As i am increasing my no of observation contribution is decresing. I have used matlab function: pca(x). Please guide me what should i do to retain contribution level above 90%.
댓글 수: 0
채택된 답변
Image Analyst
2016년 3월 8일
Use more principal components. If you're just using the first (strongest) principal component, then yeah, it's quite possible it doesn't explain more than 90% of the variation/pattern/shape of the input observations. If you use all of them then it will explain 100%. So use as many of them as you need to reach 90%.
댓글 수: 2
Tom Lane
2016년 3월 11일
It's not clear to me what you want. You should know that PCA thinks of the rows as observations, so a 6x4 matrix has 6 observations. The third output from PCA is the variances of the 4 components. The total of them is the total variance. By keeping all 4 you explain 100%.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!