What do you mean by a decision boundary in Logistic Regression, and why is it linear in feature space?

Quick Overview

Asks what the decision boundary of a logistic regression model is and why it is a straight line or hyperplane in feature space. Tests whether you can connect the sigmoid, the classification threshold and the linear score, and explain how feature transformations change the boundary's shape.

What do you mean by a decision boundary in Logistic Regression, and why is it linear in feature space?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What do you mean by a decision boundary in Logistic Regression, and why is it linear in feature space? Consider standard binary logistic regression trained on the raw input features. ```hint Undo the sigmoid Write down where the predicted probability crosses the classification threshold, then invert the sigmoid to see what that means for the linear score. ``` ### What a Strong Answer Covers - A definition of the decision boundary, tied to the classification threshold - The step from the sigmoid back to the linear score, and the hyperplane that results - Why an S-shaped probability curve still gives a linear boundary - How feature transformations produce curved boundaries in the original space ### Follow-up Questions - If you classify as positive only when the probability exceeds 0.8, what happens to the boundary? - What does scaling up the weight vector change if the boundary stays in the same place, and what happens to the weights on perfectly separable data? - What do the decision boundaries look like for multinomial (softmax) logistic regression? - How would you get a circular decision boundary from logistic regression?

Overview: Asks what the decision boundary of a logistic regression model is and why it is a straight line or hyperplane in feature space. Tests whether you can connect the sigmoid, the classification threshold and the linear score, and explain how feature transformations change the boundary's shape.

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

What do you mean by a decision boundary in Logistic Regression, and why is it linear in feature space?

Consider standard binary logistic regression trained on the raw input features.

What a Strong Answer Covers Guidance

  • A definition of the decision boundary, tied to the classification threshold
  • The step from the sigmoid back to the linear score, and the hyperplane that results
  • Why an S-shaped probability curve still gives a linear boundary
  • How feature transformations produce curved boundaries in the original space

Follow-up Questions Guidance

  • If you classify as positive only when the probability exceeds 0.8, what happens to the boundary?
  • What does scaling up the weight vector change if the boundary stays in the same place, and what happens to the weights on perfectly separable data?
  • What do the decision boundaries look like for multinomial (softmax) logistic regression?
  • How would you get a circular decision boundary from logistic regression?