mark
Consider the data
\{(0,0),(1,0), (2,1)\}.
We'd like to fit a model of the form f(x)=ax+b to that data.
- Write down the the total squared error E(a,b) for that data and model,
- Compute the derivatives \frac{\partial E}{\partial a} and \frac{\partial E}{\partial b}.
- Set those partial derivatives equal to zero and solve the resulting system to obtain the regression line, and
- Plot the data together with the regression line.
❤️ 1