Machine Learning, FoundationsLesson 52 of 92

Module 5 · Measuring a model honestly

The average is hiding the failure

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 11 of 11 in this chapter

This chapter’s goalGiven a fitted classifier and a stated cost of each kind of error, compute the confusion matrix at a chosen threshold, defend that threshold by expected cost, say whether the model’s probabilities are calibrated, decide with an interval whether one model genuinely beats another, and report per-group performance with a defensible fairness criterion and its known trade-offs.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch1:59Not available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

One number, many populations

A model reports 0.86 accuracy. Inside that number:

  • 0.94 on desktop users, 0.71 on mobile.
  • 0.89 on English text, 0.52 on Hindi.
  • 0.91 on customers older than a year, 0.63 on those in their first month.
  • 0.88 on weekdays, 0.74 on weekends.

The average is the weighted mean of these, dominated by whichever slice is largest. If mobile is 15% of traffic, a catastrophic mobile failure moves the headline number by three points and is invisible.

This is not an exotic scenario. It is the normal condition of a deployed model, and slicing is the routine that finds it.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the How a Language Model Actually Works exam.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘The average is hiding the failure’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/slice-based-error-analysis (Accessed: 29 November 2026).