What is a classification margin?

Quick Overview

Asks what a classification margin is and why it matters. Tests the difference between functional and geometric margins, how a hard or soft margin SVM maximizes the margin through support vectors, and how margins connect to generalization, hinge loss and boosting.

What is a classification margin?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is a classification margin? ```hint Start from a linear classifier Take $f(x) = w \cdot x + b$ and ask how you would measure how far a point is from the boundary, and on which side of it the point falls. ``` ### What a Strong Answer Covers - A definition in terms of distance from the decision boundary on the correct side - The functional margin, the geometric margin, and why only one of them is scale-invariant - How a hard-margin SVM maximizes the margin, the margin width, and the role of support vectors - The soft margin and the parameter C - Why the margin matters for generalization, and where it appears in hinge loss and boosting ### Follow-up Questions - Show why the hard-margin SVM has margin width ${2 / \lVert w \rVert}$. - In a soft-margin SVM, which training points are support vectors? - How would you define a margin for a multiclass classifier or a neural network? - Why can maximizing the margin go wrong when the training data has outliers?

Overview: Asks what a classification margin is and why it matters. Tests the difference between functional and geometric margins, how a hard or soft margin SVM maximizes the margin through support vectors, and how margins connect to generalization, hinge loss and boosting.

General logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is a classification margin?

What a Strong Answer Covers Guidance

  • A definition in terms of distance from the decision boundary on the correct side
  • The functional margin, the geometric margin, and why only one of them is scale-invariant
  • How a hard-margin SVM maximizes the margin, the margin width, and the role of support vectors
  • The soft margin and the parameter C
  • Why the margin matters for generalization, and where it appears in hinge loss and boosting

Follow-up Questions Guidance

  • Show why the hard-margin SVM has margin width 2/∥w∥{2 / \lVert w \rVert} .
  • In a soft-margin SVM, which training points are support vectors?
  • How would you define a margin for a multiclass classifier or a neural network?
  • Why can maximizing the margin go wrong when the training data has outliers?