A hard-margin linear SVM is trained on with label and on , and with label . Find , , the margin and the dual variables . Which points are support vectors?
Supervised learning, Support vectors and KKT
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can find a maximum-margin separator in two dimensions by identifying the support vectors geometrically and checking the dual conditions.
Key idea
Support vectors satisfy ; the dual variables satisfy , and , with for points outside the margin.
Steps
- Plot the points. The only negative point is the origin, so the closest positive points matter. The positives and both lie on the line , at distance from the origin. The point is further away.
- Guess that the origin and the two points on that line are the support vectors. By symmetry . The constraint at the origin, , gives .
- The constraint at , , gives . So , . The same holds at .
- Check the remaining point: . It is outside the margin, so .
- The margin: , so the full margin width is .
- Dual variables: gives , so . The condition gives .
- All , so the KKT conditions hold and the guess is confirmed. The support vectors are , and ; could be removed without changing the solution.
Common mistakes
- Choosing as a support vector because it is a positive point. Support vectors are the points closest to the boundary, not simply all points of a class.
- Setting the functional margin to 1 but then reporting as the full width; the full width is .
- Skipping the check that every and . A wrong guess of the support set shows up as a negative .
How long your answer should be
Half a page; 5 minutes.
Read this
Previous in Supervised learning: Gradient boosting for binary classification uses the log loss with as the log-odds. The data are with labels . Start from the best constant, grow a stump that splits between and , and use Newton leaf values with learning rate . What are the new probabilities?
Next in Supervised learning: In Poisson regression the count has mean (one weight, no intercept). The data are and . What are the log-likelihood, its gradient and Hessian, and the result of two Newton steps from ?