Three Columns, Two Directions

Orthogonality & ProjectionsHard+30 XP+30

Three Columns, Two Directions

A model is fitted to four training examples with three features and no intercept term. The design matrix AAA holds one example per row, and y\mathbf{y}y holds the targets:

Examplex1x_1x1​x2x_2x2​x3x_3x3​Target yyy
1222555888999
2222333444555
3111333555111
4111111111111

Least squares picks the weight vector β^\hat{\boldsymbol{\beta}}β^​ that makes the predictions Aβ^A\hat{\boldsymbol{\beta}}Aβ^​ as close to y\mathbf{y}y as possible:

β^=arg⁡min⁡β  ∥y−Aβ∥\hat{\boldsymbol{\beta}} = \arg\min_{\boldsymbol{\beta}} \;\lVert \mathbf{y} - A\boldsymbol{\beta} \rVertβ^​=argminβ​∥y−Aβ∥

Geometrically, Aβ^A\hat{\boldsymbol{\beta}}Aβ^​ is the orthogonal projection of y\mathbf{y}y onto the column space of AAA — the set of all vectors the model is capable of producing. Whatever is left over is the error no choice of weights can remove.

The columns of AAA are not mutually orthogonal, so you will have to orthogonalise them before projecting. Work carefully: check what each column actually contributes before you use it.

What is ∥y−Aβ^∥\lVert \mathbf{y} - A\hat{\boldsymbol{\beta}} \rVert∥y−Aβ^​∥, the distance from y\mathbf{y}y to the column space of AAA? Round your answer to 2 decimal places.

Hints

Solve it to unlock the solution

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

units