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.
A Because \(A^\top b\) stops existing B Because the problem stops being convex C Because it forms \(A^\top A\) and squares the condition number D Because the inverse is always zero
Show answer C. Because it forms \(A^\top A\) and squares the condition number
← Back to the question
Explanation Forming \(A^\top A\) squares the condition number, which amplifies numerical errors. The convexity option is false, since the problem remains convex.
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-001 What is the gradient of f(x)=\|Ax-b\|_2^2 with respect to x?ZW-LINEAR-LEAST-SQUARES-002 What are the normal equations of the least squares problem?ZW-LINEAR-LEAST-SQUARES-003 If A has linearly independent columns, how many solutions does the least squares problem have?ZW-LINEAR-LEAST-SQUARES-004 What does Ax^* represent geometrically, where x^* is the least squares solution?ZW-LINEAR-LEAST-SQUARES-005 If A is a 3× 2 matrix, what is the dimension of A^top A?ZW-LINEAR-LEAST-SQUARES-006 Given A=[1 0; 0 1; 1 1] and b=(1,2,4)^top, what is A^top b?ZW-LINEAR-LEAST-SQUARES-007 With A^top A=[2 1; 1 2] and A^top b=(3,3)^top, what is the least squares solution?ZW-LINEAR-LEAST-SQUARES-008 To fit y=c t (no intercept) to the points (1,2) and (2,3), what is c?