|
OK, first, thanks for the answer;
I think I DO understand the basics behind the PCA; the purpose of my post was to answer this simple question : are the coeffs the covariance matrix eigenvectors, or the covariance matrix itself? Both have p x p size.
I'll try eig anyway, as you suggested.
thx
"Adrien Leygue" wrote in message <iqcag0$ah1$1@newscl01ah.mathworks.com>...
> Ok, some pieces of advice:
>
> 1-Before you use a numerical tool be sure you understand at least the basic behind the method (here the basic math and statistics). You do not need to be an expert in every single detail but just enough to be an enlightened user. Otherwise you run the risk of GIGO : "garbage in garbage out".
>
> 2-Read the manual: http://www.mathworks.com/help/toolbox/stats/princomp.html
> I quote:
>
> "COEFF = princomp(X) performs principal components analysis on the n-by-p data matrix X, and returns the principal component coefficients, also known as loadings. Rows of X correspond to observations, columns to variables. COEFF is a p-by-p matrix, each column containing coefficients for one principal component. The columns are in order of decreasing component variance."
>
> This tells you all you need.
>
> 3-The great thing with Matlab is that you have so many built-in tools that it is easy to test things on a simple case to solve your problems. Here, I'd suggest looking at the eig function to compare things with the output of princomp.
|