Machine Learning, FoundationsLesson 49 of 92

Module 5 · Measuring a model honestly

From a probability to a decision worth making

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 8 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

The last step nobody teaches

A model outputs 0.34. What do you do?

Every lesson so far has been about producing and checking that number. This one is about the arithmetic that turns it into an action, and it is short because the arithmetic is simple. What is not simple is getting the costs.

Expected value

For each available action, compute the expected outcome under the model’s probability, and take the best one.

A lender considers approving a ₹200,000 loan. If repaid, profit is ₹24,000. If defaulted, loss is ₹150,000. The model says the default probability is 0.09.

Text
Expected value of approving = 0.91 * 24,000 - 0.09 * 150,000
                            = 21,840 - 13,500 = +8,340
Expected value of declining = 0

Approve. And the break-even default probability is where the two are equal:

Text
p * 150,000 = (1 - p) * 24,000
p = 24,000 / 174,000 = 0.138

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) ‘From a probability to a decision worth making’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/cost-sensitive-decisions (Accessed: 29 November 2026).