Machine Learning, FoundationsLesson 44 of 92

Module 5 · Measuring a model honestly

The threshold is a business decision, not a default

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 3 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
Total cost of mistakes at four thresholds0.05: 221 false alarms, 1miss380.20: 50 false alarms, 5misses950.50: 6 false alarms, 16misses2890.75: 1 false alarm, 28misses504₹ thousands of expected cost per 1,000 transactionsA miss costs ₹18,000 and a false alarm ₹90, so the minimum sits far below the library default and themodel flags many more transactions than it did at 0.5. Change the 200-to-1 ratio and the winner moves,which is the conversation worth having with whoever owns those costs.
A miss costs ₹18,000 and a false alarm ₹90, so the minimum sits far below the library default and the model flags many more transactions than it did at 0.5. Change the 200-to-1 ratio and the winner moves, which is the conversation worth having with whoever owns those costs.

Figure

A little at a time

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

Step 1 of 9Free · no account needed
Lesson steps

Where 0.5 came from

Nowhere useful. predict() applies 0.5 because a library needs a default, not because 0.5 is right for your problem. It is right only in the narrow case where the two error types cost the same and the classes are balanced, which describes almost nothing.

Everything else in this lesson follows from separating two things that beginners treat as one: the model produces a score; the threshold turns it into a decision. They are tuned separately, by different people, for different reasons, and the threshold can be changed at any time without retraining.

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 threshold is a business decision, not a default’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/choosing-the-threshold (Accessed: 29 November 2026).