Orthogonality & Projections

Right angles, rotations, and least squares as a projection

40 min · interactive lesson with runnable code and 4 graded exercises.

What you'll be able to do

  • Test orthogonality with a dot product and build orthonormal sets
  • Use Qᵀ = Q⁻¹ for orthogonal matrices
  • Project onto a line and explain why the residual is perpendicular
  • Derive the normal equation from “residual ⊥ every column”

The full lesson is free with an account.

Orthogonal vectors

Orthonormal sets and orthogonal matrices

Projection onto a line

Least squares is a projection

How this ties to PCA