CD.2: Principal Components Analysis

Printer-friendly versionPrinter-friendly version

R codes for
Principal Component Analysis

With such a high degree of dependency it is recommended that a PCA is done on the data and only the top few components are used for classification.

principal components analysis table

scree plot

From the table and the screeplot above it is clear that it is sufficient to consider only the first 8 PCs. They are given below.

principal components analysis table

For classification, therefore, only the first 8 PCs will be used, instead of all the 40 attributes.