Exercise · ZW-LINEAR-LEAST-SQUARES-009 · ★★☆ Intermediate

Why is it not advisable to compute the least squares solution as \(x=(A^\top A)^{-1}A^\top b\) when \(A^\top A\) is ill-conditioned?

Choose one option.

Show answer
  • C. Because it forms \(A^\top A\) and squares the condition number

Explanation

Forming \(A^\top A\) squares the condition number, which amplifies numerical errors. The convexity option is false, since the problem remains convex.

Study Continuous optimization in ZWMath →

Review the concept: Linear least squares

Optimization problem that minimizes the sum of squared residuals \(\|Ax-b\|_2^2\) to approximate a vector \(b\) by linear combinations of the columns of \(A\).

\[\min_{x}\ \|Ax-b\|_2^2 \quad \Rightarrow \quad A^\top A\,x = A^\top b\]

More practice problems: linear least squares

← ZW-LINEAR-LEAST-SQUARES-008 ZW-LINEAR-LEAST-SQUARES-010 →