Lecture 05 Dimension Reduction & PCA Principal Component Analysis — how to compress high-dimensional data into fewer dimensions while keeping most of the information — and two ways to draw every dimension at once: RadViz and parallel coordinates.
What this lecture covers: PCA compresses many correlated columns into a few new axes that capture most of the spread — useful for plotting, but it discards information on purpose, and its axes need interpreting. RadViz and parallel coordinates keep every column instead, and how you order them decides what you can see.
What to notice & try

What to notice

  • The PCA tabs build on each other: The Dataset (why six scores are redundant) → Step-by-Step (what a component is, on two subjects) → PCA 2D Projection (all six, with their loadings) → Scree Plot (how many to keep) → Reconstruction & Loss (what the rest costs).
  • Parallel Coordinates › Student Data shows the same 60 students as the PCA tabs; RadViz and Parallel Coordinates › Car Data show the same 110 cars — so you can compare the encodings on identical data.
  • Standardizing (z-score) and min–max normalizing are introduced in Lecture 2 › Distribution. This lecture's six scores all share one 0–100 scale, so its PCA runs on the raw scores. To see what an unscaled column does, turn on Shared raw scale in Parallel Coordinates › Car Data, or set MATH_SCALE = 10 in the code of PCA 2D Projection.
  • The group and price-tier colors follow Lecture 4: each trio stays distinguishable under every type of color-vision deficiency, and the PCA scatters add a marker shape per group — the redundant encoding of Lecture 3 › Shape › Appropriate Shapes.

Try this

  1. Open PCA › Step-by-Step and move the Step slider from 1 to 5, reading 'This step, explained' at each step.
  2. Open Scree Plot and see how much variance the 3rd, 4th, ... component would add before deciding '2 is enough.'
  3. Open RadViz and Parallel Coordinates › Car Data — the same 110 cars in two encodings: in RadViz the order decides whether the price tiers separate, in parallel coordinates which pairs of features you can compare.
Ctrl+Enter to run

No parameters for this demo.