Scientific Computing in Python · Lecture 5 · Winter 2026

Least squares, principal components, and clustering

Reading guide

  1. Linear least squaresp. 1
  2. Units of a regression coefficientp. 1
  3. Principal component directionsp. 2
  4. Scaling and distancep. 3
  5. The k-means objectivep. 4
  6. Fitted transformations and evaluationp. 5

Computation and practice