Eigenvectors & PCA

Directions a matrix only stretches — and the variance directions of data

45 min · interactive lesson with runnable code and 4 graded exercises.

What you'll be able to do

  • Explain Av = λv and check an eigenpair in NumPy
  • Build the covariance matrix PCA actually uses
  • Run PCA step by step: center → covariance → eigenvectors → project
  • Interpret explained variance — and know PCA's limits

The full lesson is free with an account.

The definition

Covariance: the matrix PCA uses

PCA step by step

Same thing with scikit-learn

Scaling and what PCA is not