Orthogonal Projections & Least Squares

Orthogonal Projections & Least Squares

Orthogonal Projections & Least Squares Practice Quiz with a Step-by-Step Interactive Lesson

Use the question set below to practice orthogonal projections and least squares: closest vectors in subspaces, decompositions \(v=p+r\) with \(p\in S\) and \(r\perp S\), projection onto a line, projection matrices with \(P^2=P\) and \(P^T=P\), column-space formulas such as \(A(A^TA)^{-1}A^T\) when \(A\) has full column rank, normal equations \(A^TAx=A^Tb\), residual orthogonality, best constant fits, and what changes when \(A^TA\) is singular. Open the lesson for concise worked examples and quick checks.

Answer the question set and review your mistakes at the end.

How this projection and least-squares practice works

  • 1. Take the practice set: answer questions about projections, residuals, projection matrices, normal equations, and best fits.
  • 2. Open the lesson: review the formulas, recognition tests, worked examples, and single-answer checks.
  • 3. Retry: return to the question set and first decide whether the problem asks for a closest vector, a projection matrix, a residual condition, or a least-squares coefficient.

What you will learn in the orthogonal projections and least squares lesson

Orthogonal projection geometry

  • Closest vector: \(\operatorname{proj}_S(v)\) is the unique point of \(S\) closest to \(v\)
  • Orthogonal residual: \(v-\operatorname{proj}_S(v)\in S^\perp\)
  • Line formula: \(\operatorname{proj}_{\operatorname{span}(u)}(v)=\dfrac{v\cdot u}{u\cdot u}u\) for \(u≠0\)

Projection matrices

  • Orthogonal projection matrix: \(P^2=P\) and \(P^T=P\)
  • Range and kernel: \(\operatorname{Range}(P)=S\), \(\ker P=S^\perp\), and \(I-P\) projects onto \(S^\perp\)
  • Trace and rank: eigenvalues are \(0\) or \(1\), so \(\operatorname{tr}P=\operatorname{rank}P\)

Least-squares equations

  • Best approximation: \(A\hat{x}\) is the projection of \(b\) onto \(\operatorname{Col}(A)\)
  • Residual condition: \(A^T(b-A\hat{x})=0\)
  • Normal equations: \(A^TA\hat{x}=A^Tb\); if \(Q\) has orthonormal columns, then \(\hat{x}=Q^Tb\)

Full rank and rank-deficient cases

  • If \(A\) has full column rank, then \(A^TA\) is invertible and \(\hat{x}=(A^TA)^{-1}A^Tb\)
  • If columns are dependent, least-squares minimizers may not be unique, but the fitted vector is unique
  • The pseudoinverse \(A^+\) selects the minimum-norm least-squares solution when needed

Practice set

Orthogonal Projections & Least Squares practice questions with instant score

Answer all 10 questions below, then get your final score and a mistake review at the end so you know exactly what to improve.

0 / 10 answered
Question 1 Not answered

What is the orthogonal projection of \((1,2)\) onto the \(x\)-axis?

Question 2 Not answered

If \(u\) is a unit vector, the projection of \(v\) onto \(\operatorname{span}(u)\) is:

Question 3 Not answered

What is the projection of \((1,0)\) onto the line spanned by \((1,1)\)?

Question 4 Not answered

For an orthogonal projection \(P\), what identity always holds?

Question 5 Not answered

For an orthogonal projection matrix \(P\), which symmetry property holds?

Question 6 Not answered

The least-squares solution to \(Ax\approx b\) satisfies:

Question 7 Not answered

In least squares, the residual \(b-Ax\) is orthogonal to:

Question 8 Not answered

The closest vector in a subspace \(S\) to a vector \(v\) is:

Question 9 Not answered

What is the projection of \((2,2)\) onto the line \(y=x\)?

Question 10 Not answered

If \(v=p+r\), where \(p\in S\) and \(r\perp S\), what is \(p\)?