ML4: Evaluation you can trust

Lesson 5 of 5 · reading 15–25 minutes; practice and project time is on the module page

Uncertainty, calibration and honest reporting

🎯You'll be able to

Put a range around a score with the bootstrap, check whether probabilities are calibrated, and write an evaluation that others can trust.

🏠The everyday picture

A weather forecast that says "70% chance of rain" is useful only if it rains on about 70% of such days. And a cricket average from five innings tells you less than one from fifty. Good reports say how sure they are.

📘What it really is

📝A worked example

Input: June, the kit's model (reference figures, 2 November 2026).

  1. Bootstrap, 1,000 resamples, seed 0: PR-AUC 0.6235 with a 95% range of about 0.558 to 0.693.
  2. Calibration by fifths of predicted probability: the top fifth averages a prediction of 0.287 but 0.381 were late; the lower fifths are also below their actual rates. Overall the model predicts 0.0697 on average against a true 0.0968.
  3. Why: June had more late parcels than earlier months, and the model has no month feature. On May its average prediction (0.0799) was close to the truth (0.082).
  4. Isotonic recalibration fitted on May didn't help on June (Brier score, the average squared error of the probabilities, went from 0.0557 to 0.0566), because the gap comes from June itself.

The honest summary: "ranks well (PR-AUC 0.62, range about 0.56 to 0.69); probabilities ran low in June; threshold chosen on May".

🌍Where it's used

📝Case scenario

A team announced that a new model beat the old one by 0.02 PR-AUC. A reviewer ran the bootstrap on the difference itself and found the range ran from −0.01 to +0.05: probably better, but not certainly. They launched it as a trial on two hubs, with a plan to compare after a month, rather than a full switch.

🖱️Try it

Run a bootstrap for June's recall at threshold 0.3 with 1,000 resamples. Success: you report the recall (0.5349) and a range, and the range is wide enough to make you careful about small differences.

⚠️Common mistakes

🛠️For your project

Project 1's model card reports the June figures with the date ranges, the threshold rule and results by zone; your case study adds the range.

✅Quick check

What does the bootstrap give you?

Show the answer

A range for a score, by recomputing it on many resamples of the test rows.

What does "calibrated" mean?

Show the answer

Predicted probabilities match how often the event really happens.

← PreviousThresholds and the cost of mistakes
ProLearners Assist