The distance between the decision boundary and the closest data points from either class.

The Margin boundary is a line parallel to the Decision boundary (linear), but offset. The distance between the positive and negative margin boundaries is the margin. A Maximum decision boundary is made so that it passes through the support vectors, such that margin is maximised, but the area between two margin boundaries do not contain any data points.

Classes of margin boundaries

Using Vector notation for weight and data

Let (=bias) If represents the decision boundary, then represents margin boundaries. Note that and in the formula is often interchangeable, as b can be negative or positive, and is adjusted during training anyways, just need to ensure its consistant.

More specifically

  • Class +1 boundary
  • Class -1 boundary
    • The margin for this pair of margin boundaries is , where is the magnitude of the weights (distance from the origin)