Understanding the parameters in PRINCOMP
Show older comments
Hi all, I have done a bit of research on this topic and it always seems to lead me back to the same question. Let me lay it all on the table, from what I understand, Principal Component Analysis is suppose to pick out from a large set of data the most important parts for you to work with. For example, the data I am using is a matrix of 1024x100, it is essentially all different backgrounds. 1024 is the number of pixels and 100 is the number of different types of background(s). Using PCA I can reduce the number of background information I have from 100 to a smaller number, so 1024xN, where N is the most important parts of the original 100. Now when using [COEFF, SCORE, VARIANCE] = princomp(data), COEFF gives a matrix of 100x100 and SCORE is 1024x100.
What exactly is COEFF and SCORE? I thought I should get a new set of data that looks like 1024xN, where N is smaller than 100.
Now I read a few post saying that, to generate the first principal component you use the first column of COEFF and multiply as follows:
if the first column of COEFF is [A, B, C, D,...] then the 1st Principal Component is given by: P1= data(:,1)*A + data(:,2)*B + data(:,3)*C + ...
Shouldn't the 1st principal component be a matrix (in my case) of dimensions 1024x1? P1 (above) doesn't give this.
How do I get the most important "parts" for what is generated using princomp? Again I have 100 backgrounds, some of which are redundant or noise and I want to only use the most important ones, how do I get that data from using princomp?
Any help is much appreciated, thanks in advance!
Accepted Answer
More Answers (0)
Categories
Find more on Dimensionality Reduction and Feature Extraction in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!