Visualizing the Hyperplane

Class +1 Class -1

Click to add data points

The "Highway" Structure

  • Decision Boundary: The exact "fence" (Score = 0).
  • The Margin (White Area): The safety gap between classes.
  • Dotted Lines: The "gutters" (Score = +1 or -1).

Special Markers

  • Support Vectors (Halos): The only points that "hold up" the boundary.
  • Confidence Zones: Areas where the model is certain.

Controls

The Math (from Image)

Minimize: 1/2 ||w||²

Subject to: yᵢ(w·xᵢ + b) ≥ 1

Margin Width = 2 / ||w||