Orthogonal Projections
Analytic Geometry
An orthogonal projection onto a subspace U is the linear map pi_U : V to V that sends each vector mathbf{v} to its unique best approximation by an element of U โ the vector mathbf{u}^* in U minimizing \|mathbf{v} - mathbf{u}\|. By the orthogonal decomposition theorem, this mathbf{u}^* is exactly the
is the closest point in to ; the residual is in .
Strip projections away and least squares loses its geometric meaning; you can no longer reason about *why* the OLS solution is optimal.
An orthogonal projection onto a subspace is the linear map that sends each vector to its unique best approximation by an element of โ the vector minimizing . By the orthogonal decomposition theorem, this is exactly the -component of .
For a 1-D subspace spanned by a unit vector , the projection is simple: . When is not unit, divide by its squared norm: . The scalar is the coordinate of the projection along .
For a general subspace where 's columns are a basis of , the projection matrix is . If the columns of are orthonormal, this simplifies to . Projection matrices are symmetric () and idempotent (): projecting twice is the same as projecting once.
The least-squares solution to (when exact solutions don't exist) is exactly โ the preimage of the projection of onto . Every regression problem, every curve fit, every dimension-reduction step is secretly an orthogonal projection in disguise.
Worked example โ project onto a line: Project onto . Since is a unit vector, . The residual is perpendicular to the -axis โ.
Projections also power feature extraction and denoising. PCA projects data onto the top- principal subspace, discarding noise directions. In image compression, projecting onto a wavelet or DCT basis and keeping the largest coefficients is a lossy projection that the human eye hardly notices. Whenever you approximate something complicated with something simpler, a projection is almost certainly under the hood.
Exercises
Put your understanding to the test. Score + streak + speed all count.
Confirm you've got it
3 quick questions. Get 2 right to mark this lesson complete.