Cookmath

Orthogonal projection and least squares

A projection is the shadow of a vector on a line. Subtract the shadow to obtain a perpendicular residual. This geometric picture prepares for the later Least Squares Approximations lesson, which fits several coefficients with normal equations.

What you will learn

A shadow and a perpendicular remainder

Objective 1: Calculate a projection onto one direction

Objective 2: View the residual as a perpendicular remainder

Objective 3: Check the dot product is zero

A common mistake

The fitted output is unique, but coefficients need not be unique when columns are dependent.

Review first

Continue learning

Orthogonality and least squares · Gram–Schmidt, QR and singular values

Interactive diagnosis and practice load in the learning app. You can read these lesson notes without JavaScript.