Centred Features, Clean Fit

Linear Algebra for MLMedium+20 XP+20

Centred Features, Clean Fit

A feature has already been centred during preprocessing, so its column sums to zero. The training set is:

examplexxx (centred)yyy
1−3-3−33
2−1-1−15
31119
433315

Run the full pipeline: build XXX with a leading column of ones, form X⊤XX^\top XX⊤X and X⊤yX^\top yX⊤y, solve w=(X⊤X)−1X⊤yw = (X^\top X)^{-1}X^\top yw=(X⊤X)−1X⊤y, then use the fitted model to predict for a new example whose centred feature value is x=5x = 5x=5.

What are w=(w0, w1)⊤w = (w_0,\ w_1)^\topw=(w0​, w1​)⊤ and the prediction y^\hat{y}y^​ at x=5x = 5x=5?

Hints

Solve it to unlock the solution

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

Select all that apply.