Statistics Toolbox    
princomp

Principal Components Analysis (PCA)

Syntax

Description

[PC,SCORE,latent,tsquare] = princomp(X) takes a data matrix X and returns the principal components in PC, the so-called Z-scores in SCORE, the eigenvalues of the covariance matrix of X in latent, and Hotelling's T2 statistic for each data point in tsquare.

The Z-scores are the data formed by transforming the original data into the space of the principal components. The values of the vector, latent, are the variance of the columns of SCORE. Hotelling's T2 is a measure of the multivariate distance of each observation from the center of the data set.

Example

Compute principal components for the ingredients data in the Hald dataset, and the variance accounted for by each component.

Reference

[1]  Jackson, J. E., A User's Guide to Principal Components, John Wiley and Sons, Inc. 1991. pp. 1-25.

See Also
barttest, canoncorr, factoran, pcacov, pcares


  prctile procrustes