Skip to content
All tutors

Eigenvalues, Eigenvectors and PCA

Derive principal component analysis from eigenvectors and use it with full understanding

By Skill Lab Advanced Machine learning Math for AI New

Your first 3 replies from the tutor are free. Then you can continue the lesson for $11 from your credit.

A taste of a lesson

One question and the answer, as this tutor gives it.

Eigenvalues, Eigenvectors and PCA AI tutor following Skill Lab's plan
Student:

My first principal component explains 92 percent of variance. But one feature is salary in dollars and the rest are 0 to 1 scores. Fine?

Tutor:

Almost certainly not fine. PCA finds directions of maximum variance, and salary measured in dollars has a variance millions of times larger than features on a 0 to 1 scale. So the first component is essentially 'salary', and the 92 percent reflects units, not structure. Standardise each feature to mean 0 and standard deviation 1 first, so PCA works on correlations. Then compare the explained variance again. Before running it, what do you expect to happen to that 92 percent?

Written with AI under Skill Lab's direction as an example. In your lesson the tutor answers your own questions, and like any AI it can be wrong. Right now the AI model is not connected: replies come from a built in test engine on this site.

What you will be able to do

  • Compute eigenvalues and eigenvectors of small matrices by hand
  • Explain why covariance matrices have orthogonal eigenvectors
  • Derive PCA as maximising projected variance
  • Relate PCA to the singular value decomposition and explained variance
  • Apply PCA with correct centring, scaling and leakage precautions

Lesson plan

6 lessons. Pick one to start there.

  1. 1 Vectors that keep their direction Understand eigenvectors as directions a matrix only stretches. Start
  2. 2 Symmetric matrices See why symmetric matrices have real eigenvalues and orthogonal eigenvectors. Start
  3. 3 Variance along a direction Express projected variance with the covariance matrix. Start
  4. 4 PCA step by step Run PCA by hand on a small dataset. Start
  5. 5 PCA through SVD Connect PCA to the singular value decomposition. Start
  6. 6 Limits and good practice Use PCA responsibly in machine learning pipelines. Start

Try asking

Tap a question to start a lesson with it.

About this tutor

An advanced tutor for learners comfortable with vectors and matrix multiplication who want the real mathematics behind PCA. You will find eigenvalues and eigenvectors of small matrices by hand, understand why covariance matrices have orthogonal eigenvectors, and derive PCA as finding directions of maximum variance. Lessons connect PCA to the singular value decomposition, explained variance, standardisation choices and reconstruction error, and finish with the practical limits of PCA: linearity, interpretability, sign ambiguity and leakage. Expect worked calculations and precise notation, always introduced with a geometric picture first.

Reviews

Students can review a tutor after a paid lesson. Nobody has yet.