Projection onto a subspace
Projection onto a subspace with an orthonormal basis is the sum of each basis vector multiplied by its dot product with the input vector.
On this page 8 sections
- Overview
- Projection onto a subspace fits a target using several allowed directions together
- Use the supplied orthonormal basis u=(3/5,4/5,0), w=(0,0,1) and v=(5,0,2)
- With v=(2,3,4) and basis (1,0,0),(0,1,0), the projection is p=(2,3,0)
- The simple sum of dot-product contributions assumes orthonormal directions
- Key takeaway
- Sources & further reading
- Concept connections
01Projection onto a subspace fits a target using several allowed directions together#
Projection onto a subspace fits a target using several allowed directions together. When those directions are orthonormal, each dot product measures one independent coordinate, so we can fit their contributions separately and add them.
The target might be a list of measurements and the directions might be patterns your model can produce. The projected vector is the best fit inside their span. The residual is the part that these patterns cannot reproduce.
For orthonormal basis , , projecting retains . Add the two line projections.
For an orthonormal basis , take coefficients and . Each denominator is .
For more basis vectors, add one such term per vector.
With orthonormal directions and , target has coordinates 2 and 3. Rebuild the projection as . The residual is perpendicular to both directions. Reporting alone would report internal coordinates, not the three-entry projected vector.
Orthonormal basis , . Project .
Show answer and explanation
Add .
02Use the supplied orthonormal basis u=(3/5,4/5,0), w=(0,0,1) and v=(5,0,2)#
Use the supplied orthonormal basis , and . The first coefficient is . The second is .
For and , coefficients give and .
The pair contains weights. The projection has three coordinates.
Orthonormal basis , . For , a learner uses coefficient on . Repair that coefficient.
Show answer and explanation
.
03With v=(2,3,4) and basis (1,0,0),(0,1,0), the projection is p=(2,3,0)#
With and basis , the projection is . The residual has dot product zero with both basis vectors.
A vector already in the span stays unchanged. A vector perpendicular to every basis vector projects to zero.
Unit modes , are orthogonal. Dot readings are for , for . Retained vector?
Show answer and explanation
Add .
04The simple sum of dot-product contributions assumes orthonormal directions#
The simple sum of dot-product contributions assumes orthonormal directions. For a general set of independent columns, first obtain suitable orthonormal directions or solve the appropriate least-squares system. Otherwise overlapping contributions can be counted twice.
Take each dot product, weight its basis vector, and add all contributions.
- Project a vector using a supplied orthonormal basis.
Sources & further reading
- [1]Margalit and Rabinoff: Interactive Linear Algebra, 6.4 Orthogonal Sets ↗Interactive Linear Algebra · Book