Scoring a Guessed Weight Vector

Linear Algebra for MLEasy+10 XP+10

Scoring a Guessed Weight Vector

The model y^=w0+w1x\hat{y} = w_0 + w_1 xy^​=w0​+w1​x is written in matrix form as y^=Xw\hat{y} = Xwy^​=Xw, where XXX carries a leading column of ones and w=(w0, w1)⊤w = (w_0,\ w_1)^\topw=(w0​, w1​)⊤. The training set is:

examplexxxyyy
111
226
339
449

A colleague proposes the weights w=(1, 2)⊤w = (1,\ 2)^\topw=(1, 2)⊤ — not necessarily the best fit, just a guess worth scoring. How much squared error does this www make? That is, what is

∥y−Xw∥22  =  ∑i=14(yi−y^i)2 ?\lVert y - Xw \rVert_2^2 \;=\; \sum_{i=1}^{4}\bigl(y_i - \hat{y}_i\bigr)^2 \ ?∥y−Xw∥22​=∑i=14​(yi​−y^​i​)2 ?

Fitting the Least-Squares Line

Slope (b₁):0.50
Intercept (b₀):2.00

Regression Line & Residuals (SSE = 3.250)

00224466

Fitting Verdict

Model: ŷ = 2.00 + 0.50x
Sum of Squared Errors: 3.250
Try to minimise the SSE by adjusting the sliders or click 'Show Best Fit'.

Hints

Solve it to unlock the solution

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

Select all that apply.