Log inStart free
LESSON 4.51 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Regression error metrics

Twelve days of ice-cream sales show how each error metric scores one model.


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

Go Pro · $8.25/mo
EXPLAINER · 4.51 · METRICS BAYSUM OF ERRORS 0.00 · 12 DAYS
01
Stage 1 of 6 · Errors
An error is the actual sales minus the prediction. The 12 errors sum to 0 cones.
Explain it simply

The teal dots are the cones sold each day, and the blue marks are the predictions from the temperature. Each red line is an error, the gap between the two. A least-squares line puts as much error above as below. So the errors add up to zero, and their plain average hides every miss.

Twelve teal dots show the sales and blue marks show the predictions. Red bars show the 12 errors, which sum to 0.

cones soldpredictionerrorbaseline
04080120conesday123456789101112error (cones)feature: temperature4.10.73.3−9.110.1−5.3−6.11.54.51.3−5.20.2scoresΣ errors0.00errorsΣ e = 4.1 + 0.7 + 3.3 + … + 0.2 = 0.0004080120conesday123456789101112error (cones)feature: temperature4.10.73.3−9.110.1−5.3−6.11.54.51.3−5.20.2scoresΣ errors0.00errorsΣ e = 4.1 + 0.7 + 3.3 + … + 0.2 = 0.00
Toy: 12 days of sales, a least-squares line on temperature
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
ei=yi−y^i\sy{e}{grad}{e_i} = \sy{y}{data}{y_i} - \sy{yh}{out}{\hat y_i}
∑iei=0.00\textstyle\sum_i e_i = 0.00

Each error is the actual value minus the prediction.

Common mix-ups

MYTHMAPE is a fair score on every day.

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

Predict, then reveal
3 CHECKS · PRO
Q01With one big miss, which grows more: the MAE or the RMSE?

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 2 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.