The Error the Model Cannot Explain

Orthogonality & ProjectionsMedium+20 XP+20

The Error the Model Cannot Explain

A linear model y^=β0x0+β1x1\hat{y} = \beta_0 x_0 + \beta_1 x_1y^​=β0​x0​+β1​x1​ is fitted by least squares to four observations. The design matrix columns are a bias column x0x_0x0​ and a single centred binary feature x1x_1x1​:

observationbias x0x_0x0​feature x1x_1x1​target yyy
1111+1+1+1333
2111−1-1−1111
3111+1+1+1555
4111−1-1−1333

Least squares picks β\boldsymbol{\beta}β to minimise ∥y−Xβ∥2\|\mathbf{y} - X\boldsymbol{\beta}\|^2∥y−Xβ∥2. What is the residual sum of squares ∥y−y^∥2\|\mathbf{y} - \hat{\mathbf{y}}\|^2∥y−y^​∥2 at the fitted solution?

Hints

Solve it to unlock the solution

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

Select all that apply.