Log inStart free
LESSON 5.08 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Regression losses: MSE, MAE and Huber

Watch three losses score the same misses and pull one prediction to different places.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 5.08 · LOSS BAY7 ORDERS · FIRST GUESS ŷ 30 MIN
01
Stage 1 of 6 · The orders
Order 7 took 70 minutes, an outlier. The model predicts one time ŷ for every order, first 30 minutes.
Explain it simply

Each teal dot is one delivery, and its height is how many minutes it took. The blue line is the model's guess, the same number for every order. Order 7 sits far above the rest, because it hit a road closure. Training moves this one line, and the loss decides where it stops.

Seven teal dots show delivery times: 24, 27, 22, 26, 29, 25, 70 minutes. A blue line at 30 minutes is the prediction.

ordersprediction ŷmisses, loss, pullHuber δ
203040506070minutes1234567orderŷ 30.0024272226292570the ordersŷ = 30 min for every order (a first guess)203040506070minutes1234567orderŷ 30.0024272226292570the ordersŷ = 30 min for every order (a first guess)
Toy: 7 delivery times, one prediction, 100 steps
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
y^≈yi\sy{yhat}{out}{\hat{y}} \approx \sy{y}{data}{y_i}
y^=30,y=(24,27,22,26,29,25,70)\hat{y} = 30, \quad y = (24, 27, 22, 26, 29, 25, 70)

One prediction ŷ must stand in for every order time y.

Common mix-ups

MYTHMSE gives every order an equal say.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01If order 7 drops from 70 to 28 minutes, which prediction moves more: MSE or MAE?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.