1.1 The learned parameters are \(w,b\); \(x_i,y_i\) are observed data; \(\eta\) is a hyperparameter.
1.2 Substitute \(w=0\) and \(b=0\) into each prediction:
\[\hat y_1=0\cdot1+0=0,\qquad \hat y_2=0\cdot2+0=0.\]
The prediction-minus-target errors are \(e_1=0-2=-2\) and \(e_2=0-4=-4\). Since \(n=2\), the normalization is \(1/(2n)=1/4\):
\[L(0,0)=\frac14\left[(-2)^2+(-4)^2\right]
=\frac{4+16}{4}=5.\]
1.3 Write \(e_i=wx_i+b-y_i\). The chain rule gives
\[\frac{\partial(e_i^2)}{\partial w}=2e_i\frac{\partial e_i}{\partial w}=2e_ix_i,
\qquad
\frac{\partial(e_i^2)}{\partial b}=2e_i\frac{\partial e_i}{\partial b}=2e_i.\]
Multiplying by \(1/(2n)\) cancels the factor 2. Thus
\[\partial_wL=\frac1n\sum_i e_ix_i,\qquad
\partial_bL=\frac1n\sum_i e_i.\]
At the initial parameters, substitute \(e_1=-2\), \(e_2=-4\), \(x_1=1\), and \(x_2=2\):
\[\partial_wL=\frac{(-2)(1)+(-4)(2)}2=\frac{-10}2=-5,\]
\[\partial_bL=\frac{-2-4}2=-3.\]
1.4 Subtract the learning rate times each derivative:
\[w_1=0-0.1(-5)=0.5,\qquad b_1=0-0.1(-3)=0.3.\]
Both derivatives use the old parameters \((0,0)\). Recomputing one derivative after updating the other parameter would be a different procedure.
Now calculate the new predictions and errors:
\[\hat y_1=0.5(1)+0.3=0.8,\qquad e_1=0.8-2=-1.2,\]
\[\hat y_2=0.5(2)+0.3=1.3,\qquad e_2=1.3-4=-2.7.\]
Therefore
\[L(w_1,b_1)=\frac{(-1.2)^2+(-2.7)^2}{4}
=\frac{1.44+7.29}{4}=2.1825<5.\]
1.5 This calculation establishes lower training loss only; it contains no evidence about unseen data.