How Far Is y From the Column Space?

Mixed: Orthogonal Projection & Least SquaresHard+30 XP+30

How Far Is y From the Column Space?

A growth team ran four campaigns. Spend is recorded in the second column of the design matrix; the first column of ones is the intercept.

X=(11121314)y=(2459)X = \begin{pmatrix} 1 & 1 \\ 1 & 2 \\ 1 & 3 \\ 1 & 4 \end{pmatrix} \qquad \mathbf{y} = \begin{pmatrix} 2 \\ 4 \\ 5 \\ 9 \end{pmatrix}X=​1111​1234​​y=​2459​​

CampaignSpend (lakh)Signups (hundreds)
1111222
2222444
3333555
4444999

No vector β\boldsymbol{\beta}β satisfies Xβ=yX\boldsymbol{\beta} = \mathbf{y}Xβ=y exactly — y\mathbf{y}y does not lie in the two-dimensional column space of XXX. Least squares therefore returns the β^\hat{\boldsymbol{\beta}}β^​ that minimises

∥y−Xβ∥2\lVert \mathbf{y} - X\boldsymbol{\beta} \rVert_2∥y−Xβ∥2​

and Xβ^X\hat{\boldsymbol{\beta}}Xβ^​ is the orthogonal projection of y\mathbf{y}y onto col⁡(X)\operatorname{col}(X)col(X).

How far is y\mathbf{y}y from that column space? That is, report the residual norm

∥y−Xβ^∥2\lVert \mathbf{y} - X\hat{\boldsymbol{\beta}} \rVert_2∥y−Xβ^​∥2​

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