Module 9 · Lesson 4 of 544/56 in the course~22 min
Module lessons (4/5)
Principal component analysis
Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 9 — Unsupervised learning
Orthogonal projections, covariance, explained variance ratio and compression.
What you'll learn in this lesson
- Explain how PCA finds orthogonal axes of maximum variance.
- Interpret the explained variance ratio to select the number of components.
- Project high-dimensional tabular data down to 2D for visualization and compression.
Overview
Real datasets often have dozens, hundreds, or thousands of columns. Many of these features are redundant, noisy, or correlated (e.g. square footage and room count in housing).
Principal Component Analysis (PCA) is an unsupervised technique that rotates and projects your dataset into a new coordinate system:
Sections covered in this lesson
- 1The curse of dimensionality
- 2Try it: rotate the projection axis
- 3How PCA works mathematically
- 4Comparing dimensionality-reduction choices
- 5Progressive examples: projecting and pipelining PCA
- 6Practice
Pro Lesson · Module 9 — Unsupervised learning
Unlock "Principal component analysis" and the full Machine Learning: from first principles to practice curriculum
Orthogonal projections, covariance, explained variance ratio and compression.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.