MST0052 · Lecture 9 supplement · Optional
01
02
03
Same answer, better numerics — the same story as L4's closed form vs sklearn's solver.
Pre-tested: scripts/examples/lecture_09_pca_supplement.py — also checks the directions match up to sign.
scripts/examples/lecture_09_pca_supplement.py
04
Ridge quietly trusts the leading principal components — the L4 and L6 supplements, closed.
The objective never mentions y. Nothing stops the predictive direction from being component 40.
Variance has units. One wide-range feature owns the top eigenvector of an unscaled Σ.