What is the primal optimisation problem of a hard-margin SVM?

Quick Overview

Asks for the primal optimization problem of a hard-margin support vector machine and where it comes from. Tests the margin derivation from canonical scaling, the constraints and their feasibility, convexity and uniqueness, support vectors and the link to the dual and kernels.

What is the primal optimisation problem of a hard-margin SVM?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the primal optimisation problem of a hard-margin SVM? Write out the objective and constraints, and explain where they come from. ```hint Fix the scale Write the distance from a point to the hyperplane, then notice that multiplying $w$ and $b$ by the same constant does not move the hyperplane. Use that freedom to pin down the closest points. ``` ### What a Strong Answer Covers - The objective and the constraints written out, with the label convention they rely on - How the margin width follows from the point-to-hyperplane distance and the canonical scaling - What "hard margin" implies when the data are not linearly separable - Properties of the problem: convexity, uniqueness of the solution, and which constraints identify the support vectors - Why the problem is usually solved through its dual ### Follow-up Questions - How does the primal change for a soft-margin SVM, and what does $C$ control? - Derive the dual of the hard-margin problem. Which terms make the kernel trick possible? - Why does feature scaling change the solution of an SVM?

Overview: Asks for the primal optimization problem of a hard-margin support vector machine and where it comes from. Tests the margin derivation from canonical scaling, the constraints and their feasibility, convexity and uniqueness, support vectors and the link to the dual and kernels.

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

What is the primal optimisation problem of a hard-margin SVM?

Write out the objective and constraints, and explain where they come from.

What a Strong Answer Covers Guidance

  • The objective and the constraints written out, with the label convention they rely on
  • How the margin width follows from the point-to-hyperplane distance and the canonical scaling
  • What "hard margin" implies when the data are not linearly separable
  • Properties of the problem: convexity, uniqueness of the solution, and which constraints identify the support vectors
  • Why the problem is usually solved through its dual

Follow-up Questions Guidance

  • How does the primal change for a soft-margin SVM, and what does CC control?
  • Derive the dual of the hard-margin problem. Which terms make the kernel trick possible?
  • Why does feature scaling change the solution of an SVM?