The Best Line Through Three Points

Introduction to OptimizationHard+30 XP+30

The Best Line Through Three Points

A linear model y^=wx+b\hat{y} = wx + by^​=wx+b is fitted to three training examples:

xxxyyy
01
12
26

using mean squared error

L(w,b)=13∑i=13(wxi+b−yi)2L(w, b) = \frac{1}{3}\sum_{i=1}^{3}\left(wx_i + b - y_i\right)^2L(w,b)=31​∑i=13​(wxi​+b−yi​)2

Find the parameters that minimize LLL, together with the value of LLL there.

Hints

Solve it to unlock the solution

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

Select all that apply.