What the Residual Is Perpendicular To

Linear Algebra for MLMedium+20 XP+20

What the Residual Is Perpendicular To

Three measurements are collected:

xxxyyy
12
22
38

A line y^=w0+w1x\hat{y} = w_0 + w_1 xy^​=w0​+w1​x is fitted by solving the normal equations

w=(X⊤X)−1X⊤yw = (X^\top X)^{-1}X^\top yw=(X⊤X)−1X⊤y

where XXX carries a leading column of ones, so XXX is 3×23 \times 23×2.

Define the residual vector as r=y−Xwr = y - Xwr=y−Xw. What are rrr and X⊤rX^\top rX⊤r?

Hints

Solve it to unlock the solution

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

Select all that apply.