Sapere Aude

PCA

How to calculate PCA

Given a data matrix 𝒳n×d with n samples and d features:

C=1n1XTX Xreduced=XW

, where W is a matrix whose columns are the selected eigenvectors.

Pros & Cons

Cons: Assumes linear relationship

#MathNotes