Why is the predicted probability the real output of a logistic regression model?

Quick Overview

Asks why a logistic regression model's predicted probability, and the cutoff applied to it, matter more than the 0/1 class label. Tests understanding of decision thresholds, error costs, ranking metrics such as AUC and log-loss, and probability calibration.

Why is the predicted probability the real output of a logistic regression model?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

A logistic regression model outputs a probability for each example. A hard 0/1 label only appears after someone applies a cutoff to that probability. Why is the probability considered the real product of the model, with the class label treated as a downstream choice? ```hint Compare two predictions Take two examples scored 0.51 and 0.99 and apply a 0.5 cutoff. Ask what information is left afterwards, and who should decide where the cutoff sits. ``` ### What a Strong Answer Covers - Where the probability comes from (the sigmoid of a linear score, fitted by minimizing log-loss) and what thresholding throws away - How the cutoff is chosen from error costs, review capacity or a precision and recall target - The uses that need a score instead of a label: ranking, expected-value decisions, AUC and log-loss - When the probabilities can be read as real rates, and what breaks calibration ### Follow-up Questions - A false negative costs 100 times as much as a false positive. Which threshold minimizes expected cost, and why? - You trained on data where negatives were downsampled to 10%. How do you correct the predicted probabilities? - How would you check whether the model's probabilities are calibrated, and what would you do if they are not? - When is a hard label all a downstream system needs, and how should that label still be produced?

Overview: Asks why a logistic regression model's predicted probability, and the cutoff applied to it, matter more than the 0/1 class label. Tests understanding of decision thresholds, error costs, ranking metrics such as AUC and log-loss, and probability calibration.

PracHub logo
General
Nov 24, 2026
easyData ScientistOtherMachine Learning
0
0

A logistic regression model outputs a probability for each example. A hard 0/1 label only appears after someone applies a cutoff to that probability. Why is the probability considered the real product of the model, with the class label treated as a downstream choice?

What a Strong Answer Covers Guidance

  • Where the probability comes from (the sigmoid of a linear score, fitted by minimizing log-loss) and what thresholding throws away
  • How the cutoff is chosen from error costs, review capacity or a precision and recall target
  • The uses that need a score instead of a label: ranking, expected-value decisions, AUC and log-loss
  • When the probabilities can be read as real rates, and what breaks calibration

Follow-up Questions Guidance

  • A false negative costs 100 times as much as a false positive. Which threshold minimizes expected cost, and why?
  • You trained on data where negatives were downsampled to 10%. How do you correct the predicted probabilities?
  • How would you check whether the model's probabilities are calibrated, and what would you do if they are not?
  • When is a hard label all a downstream system needs, and how should that label still be produced?