What is the difference between an uncalibrated decision score from a classifier and a true posterior probability?

Quick Overview

Asks how a classifier's raw decision score differs from a true posterior probability and why the distinction matters. Tests understanding of ranking versus calibration, which decisions need real probabilities, and how scores are calibrated and checked on held-out data.

What is the difference between an uncalibrated decision score from a classifier and a true posterior probability?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Many classifiers output a number for each example, and libraries often expose it through a method called `predict_proba`. What is the difference between an uncalibrated decision score from a classifier and a true posterior probability? ```hint Two uses of a score Compare what a score must get right to give a good AUC with what it must get right to drive an expected-cost decision. ``` ```hint A sanity check Ask how a model that always predicts the base rate would do on calibration, and on ranking. ``` ### What a Strong Answer Covers - What a decision score guarantees and what a calibrated probability adds. - Examples of model outputs that are not calibrated, including some that are presented as probabilities. - Decisions that need real probabilities and decisions that do not. - How to turn scores into calibrated probabilities and how to check the result. ### Follow-up Questions - Is a perfectly calibrated model the same as one that outputs the true posterior $P(y = 1 \mid x)$? - Derive the probability threshold that minimizes expected cost for given false positive and false negative costs. - The positive rate in production differs from the rate in training. How do you correct calibrated probabilities? - Why do random forests rarely output probabilities near 0 or 1?

Overview: Asks how a classifier's raw decision score differs from a true posterior probability and why the distinction matters. Tests understanding of ranking versus calibration, which decisions need real probabilities, and how scores are calibrated and checked on held-out data.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Many classifiers output a number for each example, and libraries often expose it through a method called predict_proba. What is the difference between an uncalibrated decision score from a classifier and a true posterior probability?

What a Strong Answer Covers Guidance

  • What a decision score guarantees and what a calibrated probability adds.
  • Examples of model outputs that are not calibrated, including some that are presented as probabilities.
  • Decisions that need real probabilities and decisions that do not.
  • How to turn scores into calibrated probabilities and how to check the result.

Follow-up Questions Guidance

  • Is a perfectly calibrated model the same as one that outputs the true posterior P(y=1∣x)P(y = 1 \mid x) ?
  • Derive the probability threshold that minimizes expected cost for given false positive and false negative costs.
  • The positive rate in production differs from the rate in training. How do you correct calibrated probabilities?
  • Why do random forests rarely output probabilities near 0 or 1?