The Coefficient Ridge Pulls Back

Determinants & InversesHard+30 XP+30

The Coefficient Ridge Pulls Back

A model is fit on four training examples with two features and no intercept term:

x1x_1x1​x2x_2x2​yyy
111222444
222111333
333555111111
444222777

The rows of the table are the rows of the design matrix XXX (a 4×24\times 24×2 matrix) and the entries of the target vector yyy.

Ordinary least squares would use β^=(X⊤X)−1X⊤y\hat{\beta} = (X^{\top}X)^{-1}X^{\top}yβ^​=(X⊤X)−1X⊤y. Because the two feature columns are strongly correlated, ridge regression is used instead:

β^=(X⊤X+λI)−1X⊤y\hat{\beta} = \left(X^{\top}X + \lambda I\right)^{-1} X^{\top} yβ^​=(X⊤X+λI)−1X⊤y

with regularization strength λ=3\lambda = 3λ=3, where III is the 2×22\times 22×2 identity matrix.

What is β^2\hat{\beta}_2β^​2​, the coefficient on the second feature? 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.