The Line That Misses Every Point

Mixed: Least Squares & Orthogonal ProjectionHard+30 XP+30

The Line That Misses Every Point

You are fitting the straight line y^=β0+β1t\hat{y} = \beta_0 + \beta_1 ty^​=β0​+β1​t to three data points by least squares:

tttyyy
000666
111000
222000

In matrix form this is y≈Xβy \approx X\betay≈Xβ with

X=(101112),y=(600),β=(β0β1)X = \begin{pmatrix}1 & 0\\ 1 & 1\\ 1 & 2\end{pmatrix}, \qquad y = \begin{pmatrix}6\\ 0\\ 0\end{pmatrix}, \qquad \beta = \begin{pmatrix}\beta_0\\ \beta_1\end{pmatrix}X=​111​012​​,y=​600​​,β=(β0​β1​​)

The three points are not collinear, so no exact solution exists — least squares projects yyy onto the column space of XXX instead.

Find the least-squares coefficients β^\hat\betaβ^​ and the residual sum of squares RSS=∥y−Xβ^∥22\text{RSS} = \|y - X\hat\beta\|_2^2RSS=∥y−Xβ^​∥22​.

(Sanity check available to you: the residual vector must come out orthogonal to both columns of XXX.)

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.