MATLAB: How can i use pca as a filter

principle component analysisStatistics and Machine Learning Toolbox

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%.

Best Answer

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%.
Related Question