Least Squares Through Gram-Schmidt

Matrix DecompositionsMedium+20 XP+20

Least Squares Through Gram-Schmidt

A two-feature linear model is fitted to three data points. The design matrix and the target vector are

A=[15242−2],b=[963]A = \begin{bmatrix} 1 & 5 \\ 2 & 4 \\ 2 & -2 \end{bmatrix}, \qquad \mathbf{b} = \begin{bmatrix} 9 \\ 6 \\ 3 \end{bmatrix}A=​122​54−2​​,b=​963​​

b\mathbf{b}b does not lie in the column space of AAA, so Ax=bA\mathbf{x} = \mathbf{b}Ax=b has no exact solution.

Build A=QRA = QRA=QR by Gram-Schmidt (first column normalized, second column's overlap projected out then normalized), and use the standard fact that the least-squares solution x^\hat{\mathbf{x}}x^ — the one minimizing ∥Ax−b∥\|A\mathbf{x} - \mathbf{b}\|∥Ax−b∥ — satisfies

Rx^=QTbR\hat{\mathbf{x}} = Q^{\mathsf{T}}\mathbf{b}Rx^=QTb

What is x^\hat{\mathbf{x}}x^?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.