PCA

18 min read

Real data often has many columns. PCA squeezes them into a few new columns and keeps most of the information. You can then draw the data, train faster and remove some noise.

New words

PCA
A method that turns many columns into a few new ones.
Principal component
A new direction that PCA finds. The first one has the most spread.
Variance
A number that shows how much the values spread out.
Projection
Dropping each point straight onto a line, like a shadow.
Covariance matrix
A small table that shows how every pair of columns spreads together.
Explained variance
The share of the total spread that a component keeps.

What you will learn

  1. Can many columns become one?
  2. Why would you want fewer columns?
  3. Which direction has the largest spread?
  4. How does the covariance matrix help?
  5. What are principal components?
  6. How do you project the points onto the line?
  7. Try it: rotate the line and watch the shadows
  8. What about 5 subjects?
  9. What is lost, and when does PCA mislead?
  10. Common mistakes
  11. Explain it to a friend
  12. Key takeaways

10 quiz questions at the end.

Start this lesson

The full lesson, with interactive demos and the quiz, opens after you sign in with Google. It is free.

All lessons · Back to the roadmap