Seven Sensors, One Number

Loss FunctionsHard+30 XP+30

Seven Sensors, One Number

Seven sensors placed around a greenhouse report the temperature at noon, in °C:

sensor1234567
reading171717191919202020212121222222262626200200200

Sensor 7 is broken.

The greenhouse controller summarises the readings with the simplest possible model: a single number ccc, used as its prediction for every sensor. Each sensor's error is e=c−readinge = c - \text{reading}e=c−reading, and ccc is set to whatever value makes the average Huber loss over the seven sensors as small as possible. Huber's delta is δ=3\delta = 3δ=3:

Huber(e)={12 e2if ∣e∣≤33 (∣e∣−1.5)if ∣e∣>3\text{Huber}(e) = \begin{cases} \tfrac{1}{2}\,e^2 & \text{if } |e| \le 3 \\[4pt] 3\,\big(|e| - 1.5\big) & \text{if } |e| > 3 \end{cases}Huber(e)={21​e23(∣e∣−1.5)​if ∣e∣≤3if ∣e∣>3​

The two pieces meet smoothly at ∣e∣=3|e| = 3∣e∣=3: a curve like MSE for small errors, and a straight line like MAE for large ones.

What value of ccc does the Huber fit choose?

Round to 2 decimal places.

Hints

Solve it to unlock the solution

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