Skip to content
Quantoros

If Q has orthonormal columns spanning a design's column space, how do you project y onto it?

MathematicsLevel: IntermediateMatrix geometry and computation

If Q has orthonormal columns spanning a design's column space, how do you project y onto it?

Hints
  • Project into coordinates.
  • Map coordinates back.

Answer

Use QQᵀy. First obtain coordinates Qᵀy, then reconstruct within the column space; forming a full projector is unnecessary.

Source and licence: NumPy — numerical linear algebra · BSD-3-Clause · answer: Quantoros editorial

Related questions