The Dial the Search Is Not Allowed to Turn

Introduction to OptimizationMedium+20 XP+20

The Dial the Search Is Not Allowed to Turn

A straight-line model y^=wx+b\hat{y} = w x + by^​=wx+b is trained on three examples:

xxxyyy
111333
222555
333888

To discourage the model from choosing a steep slope, a penalty term is bolted onto the mean squared error, giving the training objective

J(w, b)  =  13∑i=13(wxi+b−yi)2  +  λ w2J(w,\,b) \;=\; \frac{1}{3}\sum_{i=1}^{3}\big(w x_i + b - y_i\big)^2 \;+\; \lambda\,w^2J(w,b)=31​∑i=13​(wxi​+b−yi​)2+λw2

Before training starts, an engineer sits down and fixes

λ=0.6\lambda = 0.6λ=0.6

by hand. It stays at 0.60.60.6 for the entire run — the search never touches it.

Training moves only the quantities the search is actually allowed to move, and drives their partial derivatives to zero.

Find the value of www at the minimum of JJJ.

Round your answer to 3 decimal places.

Hints

Solve it to unlock the solution

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