How does changing the classification threshold in logistic regression primarily affect model performance?

Quick Overview

Asks what moving the decision threshold of a logistic regression model does to its predictions and metrics. Tests your understanding of the precision and recall trade-off, which metrics depend on the threshold, and how to pick an operating point from error costs.

How does changing the classification threshold in logistic regression primarily affect model performance?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

A logistic regression model outputs a probability for each example, and a threshold turns that probability into a predicted class. How does changing the classification threshold in logistic regression primarily affect model performance? ```hint Follow the predictions Start from the predicted probabilities and ask which of them change, and which predicted labels change, when the cutoff moves. ``` ### What a Strong Answer Covers - What the threshold does: it maps probabilities to labels and leaves the fitted model unchanged. - The direction of the trade-off when the threshold goes down or up, in terms of false positives, false negatives, precision and recall. - Which metrics change with the threshold and which do not. - A principled way to pick the threshold. ### Follow-up Questions - The positive class is 1% of the data. What tends to happen at a threshold of 0.5, and what would you do? - How would you set the threshold if a false negative costs 20 times as much as a false positive? - Does class weighting or resampling during training change the right threshold? Why?

Overview: Asks what moving the decision threshold of a logistic regression model does to its predictions and metrics. Tests your understanding of the precision and recall trade-off, which metrics depend on the threshold, and how to pick an operating point from error costs.

Nov 25, 2026
easyData ScientistOtherMachine Learning
0
0

A logistic regression model outputs a probability for each example, and a threshold turns that probability into a predicted class. How does changing the classification threshold in logistic regression primarily affect model performance?

What a Strong Answer Covers Guidance

  • What the threshold does: it maps probabilities to labels and leaves the fitted model unchanged.
  • The direction of the trade-off when the threshold goes down or up, in terms of false positives, false negatives, precision and recall.
  • Which metrics change with the threshold and which do not.
  • A principled way to pick the threshold.

Follow-up Questions Guidance

  • The positive class is 1% of the data. What tends to happen at a threshold of 0.5, and what would you do?
  • How would you set the threshold if a false negative costs 20 times as much as a false positive?
  • Does class weighting or resampling during training change the right threshold? Why?