Support Vector Machines and Kernels
A typical interview question is: "How does a support vector machine differ from logistic regression?" The short answer is the loss. Both fit a linear score and classify by its sign. They differ in how they score a mistake, and that difference decides which points shape the fit.
Losses as functions of the margin
Code the labels as . The margin of a point is . It is positive when the point is on the correct side, and large when it is on the correct side by a wide distance. Both losses are functions of alone:
The logistic loss is the log loss of logistic regression, rewritten for labels of .
The rest of this lesson is for subscribers
Unlock every lesson in Machine Learning for Quantitative Research, and every other premium course.
Subscribe to continueTest your knowledge
Keep reading Machine Learning for Quantitative Research
27 lessons in this course, and every other premium course, on one subscription.
- Every lesson in every course, with the worked examples and interactive simulators
- Graded questions on every lesson, with explanations for the wrong answers as well as the right one
- The trainers, timed assessments and brainteaser library that go with them