Between SVM and Logistic Regression, which algorithm is more robust to outliers and why?

Quick Overview

Asks whether a support vector machine or logistic regression is less affected by outliers, and why. Tests understanding of hinge loss versus log loss, support vectors, the role of regularization, and the difference between distant correct points and mislabeled points.

Between SVM and Logistic Regression, which algorithm is more robust to outliers and why?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Between SVM and logistic regression, which algorithm is more robust to outliers, and why? ```hint Compare the losses Write hinge loss and log loss as functions of the margin $y \cdot f(x)$ and sketch both. Find the region where they differ and the region where they behave alike. ``` ```hint Two kinds of outliers A point far from the boundary on the correct side and a mislabeled point far on the wrong side are different problems. Check each one against both losses. ``` ### What a Strong Answer Covers - Hinge loss and log loss written as functions of the margin, and where their values and slopes differ - Which training points influence each model's boundary, and how much weight each one carries - How each model treats a distant, correctly classified point compared with a distant, misclassified or mislabeled point - How $C$, the regularization strength, and hard versus soft margin change the sensitivity to a single point - What it takes to bound an outlier's influence in either model ### Follow-up Questions - How does a hard-margin SVM respond to a single mislabeled point compared with a soft-margin SVM? - How does decreasing $C$ change the number of support vectors and the pull of one outlier? - Which loss would you use if a mislabeled point's influence had to be bounded, and what do you give up? - Does an extreme feature value with a correct label affect either model, and how does feature scaling interact with that?

Overview: Asks whether a support vector machine or logistic regression is less affected by outliers, and why. Tests understanding of hinge loss versus log loss, support vectors, the role of regularization, and the difference between distant correct points and mislabeled points.

Nov 25, 2026
mediumData ScientistOtherMachine Learning
0
0

Between SVM and logistic regression, which algorithm is more robust to outliers, and why?

What a Strong Answer Covers Guidance

  • Hinge loss and log loss written as functions of the margin, and where their values and slopes differ
  • Which training points influence each model's boundary, and how much weight each one carries
  • How each model treats a distant, correctly classified point compared with a distant, misclassified or mislabeled point
  • How CC , the regularization strength, and hard versus soft margin change the sensitivity to a single point
  • What it takes to bound an outlier's influence in either model

Follow-up Questions Guidance

  • How does a hard-margin SVM respond to a single mislabeled point compared with a soft-margin SVM?
  • How does decreasing CC change the number of support vectors and the pull of one outlier?
  • Which loss would you use if a mislabeled point's influence had to be bounded, and what do you give up?
  • Does an extreme feature value with a correct label affect either model, and how does feature scaling interact with that?