Computes principal components analysis with standardized variables
[lambda,facpr,comprinc] = pca(x)
:
This function performs several computations known as “principal component analysis”.
The idea behind this method is to represent in an approximative manner a cluster of n individuals in a smaller dimensional subspace. In order to do that, it projects the cluster onto a subspace. The choice of the k-dimensional projection subspace is made in such a way that the distances in the projection have a minimal deformation: we are looking for a k-dimensional subspace such that the squares of the distances in the projection is as big as possible (in fact in a projection, distances can only stretch). In other words, inertia of the projection onto the k dimensional subspace must be maximal.
Warning, the graphical part of the old version of pca has been removed. It can now be performed using the show_pca function.
a=`rand`_(100,10,'n');
[lambda,facpr,comprinc] = pca(a);
`show_pca`_(lambda,facpr)
Saporta, Gilbert, Probabilites, Analyse des Donnees et Statistique, Editions Technip, Paris, 1990.