How does the way an SVM selects its decision boundary differ from logistic regression?

Quick Overview

Asks how a support vector machine chooses its decision boundary compared with logistic regression. Tests whether you can contrast the two loss functions, explain which training points shape each boundary, and reason about separable data and probability outputs.

How does the way an SVM selects its decision boundary differ from logistic regression?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does the way an SVM selects its decision boundary differ from logistic regression? Both models can produce a linear boundary $w^\top x + b = 0$. Compare the criterion each one uses to choose $w$ and $b$, and what follows from that. ```hint Compare the losses Write each method's loss as a function of the margin $y \cdot f(x)$ and look at where each one becomes exactly zero. ``` ```hint Try an extreme case Think about what each method does when the training data is perfectly linearly separable. ``` ### What a Strong Answer Covers - The objective each method minimizes, written in terms of the margin, including the SVM's norm penalty. - Which training points determine each boundary, and why. - What happens on linearly separable data. - What each model outputs (scores or probabilities) and how you get calibrated probabilities from an SVM. - When the two boundaries end up close and when they differ. ### Follow-up Questions - Why is a kernel SVM cheaper to serve than kernel logistic regression? - How does Platt scaling turn SVM scores into probabilities, and which data should it be fitted on? - How does the C parameter change which points become support vectors? - With heavy class imbalance, which model would you start with and how would you adjust it?

Overview: Asks how a support vector machine chooses its decision boundary compared with logistic regression. Tests whether you can contrast the two loss functions, explain which training points shape each boundary, and reason about separable data and probability outputs.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How does the way an SVM selects its decision boundary differ from logistic regression?

Both models can produce a linear boundary w⊤x+b=0w^\top x + b = 0. Compare the criterion each one uses to choose ww and bb, and what follows from that.

What a Strong Answer Covers Guidance

  • The objective each method minimizes, written in terms of the margin, including the SVM's norm penalty.
  • Which training points determine each boundary, and why.
  • What happens on linearly separable data.
  • What each model outputs (scores or probabilities) and how you get calibrated probabilities from an SVM.
  • When the two boundaries end up close and when they differ.

Follow-up Questions Guidance

  • Why is a kernel SVM cheaper to serve than kernel logistic regression?
  • How does Platt scaling turn SVM scores into probabilities, and which data should it be fitted on?
  • How does the C parameter change which points become support vectors?
  • With heavy class imbalance, which model would you start with and how would you adjust it?