PCA: number of attributes much bigger than number of data samples

조회 수: 20 (최근 30일)
Hello, I would like to apply PCA analysis to data in which I have 100 samples, each of them represented by 10000 variables. So we have the following situation: [m n] = size(myData); m = 100 n = 10000
In such case calling PCA this way:
[pc,score,latent,tsquare] = princomp(zscore(myData));
returns score and latent of only m-1=99 components. Everything above index 99 is equal to 0. Why? Can I trust those values returned by above function?
Thank you for any help. Michael

채택된 답변

Daniel Shub
Daniel Shub 2011년 7월 23일
This is not typically how I run PCA. I typically have many more samples than variables. I think the components returned by PCA are still valid in that each component explains the maximal amount of variance in the data. When you have more variables than samples, the issue is that the principal components are not unique. The reason you only get 99 components is that you only have 100 samples. You can explain all the variance with N-1 (or maybe N) components.

추가 답변 (1개)

Arturo Moncada-Torres
Arturo Moncada-Torres 2011년 8월 24일
I recommend you to look at this great tutorial by Will Dwinnel. I think you will find everything you need here.

카테고리

Help CenterFile Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by