If your hypothesis function outputs h(x) = 0.55, does this mean the consumer will recommend the product?

Quick Overview

Asks how to read a logistic regression output of 0.55 for whether a consumer will recommend a product. Tests the difference between a predicted probability and a decision, how error costs set the threshold, and whether the probability is calibrated.

If your hypothesis function outputs h(x) = 0.55, does this mean the consumer will recommend the product?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

A logistic regression model is trained to predict whether a consumer will recommend a product ($y = 1$) from the consumer's features $x$. If your hypothesis function outputs $h(x) = 0.55$, does this mean the consumer will recommend the product? ```hint What the number estimates Ask what quantity a logistic regression output estimates, and what extra choice is needed before it becomes a yes or no. ``` ### What a Strong Answer Covers - What $h(x)$ estimates in logistic regression - The difference between a probability and a predicted label, and the role of the threshold - How the costs of the two kinds of error should set the threshold - Whether the 0.55 can be trusted as a probability, which is a question of calibration ### Follow-up Questions - If a missed recommender costs three times as much as a false alarm, what threshold would you use, and what would you predict for this consumer? - How would you check whether 0.55 really means about a 55% chance for this model? - How does training on a dataset where the negative class was undersampled change the meaning of 0.55? - The product team wants one list of likely recommenders. How would you decide how many consumers go on it?

Overview: Asks how to read a logistic regression output of 0.55 for whether a consumer will recommend a product. Tests the difference between a predicted probability and a decision, how error costs set the threshold, and whether the probability is calibrated.

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

A logistic regression model is trained to predict whether a consumer will recommend a product (y=1y = 1) from the consumer's features xx. If your hypothesis function outputs h(x)=0.55h(x) = 0.55, does this mean the consumer will recommend the product?

What a Strong Answer Covers Guidance

  • What h(x)h(x) estimates in logistic regression
  • The difference between a probability and a predicted label, and the role of the threshold
  • How the costs of the two kinds of error should set the threshold
  • Whether the 0.55 can be trusted as a probability, which is a question of calibration

Follow-up Questions Guidance

  • If a missed recommender costs three times as much as a false alarm, what threshold would you use, and what would you predict for this consumer?
  • How would you check whether 0.55 really means about a 55% chance for this model?
  • How does training on a dataset where the negative class was undersampled change the meaning of 0.55?
  • The product team wants one list of likely recommenders. How would you decide how many consumers go on it?