The Dial With a Reciprocal Cost

DerivativesMedium+20 XP+20

The Dial With a Reciprocal Cost

A model has a single dial w>0w > 0w>0. Its total loss is the sum of two competing pieces:

PieceFormulaBehaviour as www grows
Complexity penalty3w3w3wclimbs steadily
Fit error12w\dfrac{12}{w}w12​falls away

L(w)=3w+12wL(w) = 3w + \frac{12}{w}L(w)=3w+w12​

Before the optimizer can take a single step it has to ask the loss one question: how steep is it right here? The dial currently sits at w=4w = 4w=4.

A slope worked out for one setting is useless the moment the dial moves, so do it properly. Working from the limit definition

dLdw=lim⁡h→0L(w+h)−L(w)h\frac{dL}{dw} = \lim_{h \to 0} \frac{L(w + h) - L(w)}{h}dwdL​=limh→0​hL(w+h)−L(w)​

first find the derivative as a function of www, then evaluate that function at w=4w = 4w=4.

Round your answer to two decimal places.

Hints

Solve it to unlock the solution

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