Classification technique. Supervised learning technique. Watch this 2 min video on SVM.

The SVM is a linear classifier that finds the max-margin separating hyperplane, giving a unique, optimal solution (unlike MLP). Its dual form depends only on dot products, which enables the kernel trick.

  • It's all about decision boundaries.

We have positive and negative examples. How to separate these points?

Vapnik Theory: Try to put the lines which separates the negative points from the positive points as wide as possible.

MLP finds any separator. SVM picks the one with the largest margin, which generalizes better.

Geometric picture: SVM finds the widest street separating the two classes. The decision hyperplane runs down the centerline; the margin is the curb-to-curb width. A wide street is robust: small perturbations in the data do not flip a point’s side. Without the margin requirement, the solution is not unique (infinitely many hyperplanes separate the same points), so SVM imposes a principled tiebreaker.

1D example to show why MLP finds any separator

Suppose we have three data points:

And many separating perceptrons, , the equation to solve will become . The solutions will gve:

which satisfy for whatever

Separating Hyperplanes

  • Let’s consider a vector perpendicular on the median line
  • Then we also have some unknown

We are interested if this unknown is on the left part of the street or if it is on the right part of the street.

  • We project on the perpendicular direction.
    • Thus, (constant)

(1) Decision rule:

If then ""

  • where

Page 21. See the notes from Claude as well to continue the idea.