Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Flashcards: open the module flashcards (end-of-module review with workplace questions).

Online Courses / University Track / Learning from Data

Module 2 · Lab

Lab: measure error and compare a model with a baseline

Compute MAE and RMSE for a delivery-time model, compare it with a baseline and judge a classifier.

  • 50 minutes
  • 15 marks
  • Self-marked

50 minutes. Self-marked against the rubric. 15 marks. In the full course this counts toward the labs and cases share (15% of the course grade). Write your answers in the boxes, then open the model answer and tick each mark you earned honestly. Nothing is sent or stored.

Scenario (invented)

A delivery firm (invented) predicts delivery times in minutes for four parcels.

ParcelActualModelBaseline (mean of actuals)
P1303235
P2404535
P3201835
P4505835

The firm also has a model that predicts whether 20 customers will renew: 16 did renew, and the model was right for 17 of the 20.

Tasks

Task 1 (4 marks)

Give the error for each parcel and the model's MAE.

Private: nothing you type here is sent or stored.

Task 2 (4 marks)

Find the baseline MAE and the improvement of the model over it.

Private: nothing you type here is sent or stored.

Task 3 (3 marks)

Find the model's RMSE to one decimal place and say why it is larger than the MAE.

Private: nothing you type here is sent or stored.

Task 4 (4 marks)

Compute the model's accuracy and the majority baseline, and say whether the model is clearly worth using.

Private: nothing you type here is sent or stored.

Rubric and model answer

Task 1: errors and MAE (4 marks)

Model: errors +2, +5, −2, +8; absolute errors 2, 5, 2, 8; total 17; MAE = 17 ÷ 4 = 4.25 minutes.

Task 2: baseline and improvement (4 marks)

Model: baseline absolute errors 5, 5, 15, 15; total 40; MAE 10. Improvement = (10 − 4.25) ÷ 10 = 57.5%.

Task 3: RMSE (3 marks)

Model: squares 4, 25, 4, 64 total 97; mean 24.25; root about 4.9. It is larger than 4.25 because squaring makes the error of 8 count more.

Task 4: judge the classifier (4 marks)

Model: accuracy 17 ÷ 20 = 85%; majority baseline 16 ÷ 20 = 80%; only five points better, so it is not clearly worth it without more evidence or a low cost.

Marks so far: 0 of 15

Review with flashcards

Test yourself on this module with workplace flashcards and detailed answers.

Open the module flashcards