CMPE255Assignment HW3

How do the covariance matrix and scatter matrix differ? The eigenspaces in covariance and scatter matrix will be identical (only the eigenvalues are scaled differently if there are identical eigenvectors by a constant factor)

Class 1 and Class 2 - Samples

Visualizing the eigenvectors

Visualizing the transformed data and add the class labels

Transformed samples with class labels using matplotlib.mlab.PCA()