PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

Related simulators

Continue with similar topics in this category — or all 85 in Math Visualization.

View category →
NewUniversity / research

Gaussian Process Regression

Launch Simulator

Interactive GP regression with RBF and Matérn kernels: tune length scale/noise, add observations by clicking, view posterior mean with uncertainty bands, and sample at max posterior variance.

FeaturedSchool

Vector Addition

Launch Simulator

Place vectors and see the resultant with head-to-tail animation.

NewUniversity / research

Flow Field Particles

Launch Simulator

Synthetic v(x,y,t); advection with wrap; optional arrow grid.

NewUniversity / research

Gradient Descent Optimizers

Launch Simulator

Compare SGD, momentum, and Adam on a curved loss landscape; tune learning rate, curvature, stability, and iteration count.

NewUniversity / research

MinD / MinE Oscillation (E. coli Rod)

Launch Simulator

1D reaction–diffusion: membrane MinD u, fast MinE v; pole-to-pole oscillation; division plane at time-averaged MinD minimum.

NewUniversity / research

Kalman Filter (1-D)

Launch Simulator

Recursive optimal estimation: noisy measurements, hidden truth, predict + update with Q and R; random-walk or constant-velocity model with ±2σ band and innovations.

PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Math Visualization/Support Vector Machine Margin

Support Vector Machine Margin

Hard/soft-margin SVM sketch with C penalty, hinge loss, support vectors, decision boundary, and margin bands.

SVM separator

62°
0
1.2
0

Measured values

Support vectors54
Mean hinge loss0.370
Accuracy100.0%

This is an interactive margin sketch rather than a full quadratic-program solver; move the separator to see support vectors and hinge penalties.

Live graphs

About this model

A support vector machine chooses a separating boundary with a large margin while penalizing violations through hinge loss. This interactive sketch lets you move the boundary, adjust the soft-margin C parameter, and see which points become support vectors because they lie on or inside the margin.

Who it's for: Machine learning, classification, optimization, statistical learning theory, and data science courses.

Key terms

  • Support vector machine
  • Margin
  • Hinge loss
  • Support vector
  • Soft margin
  • Kernel trick

How it works

Support vector machine margin visualizer with soft-margin hinge loss, support vectors, and C parameter.

Key equations

min 1/2||w||² + C Σ max(0, 1 − y_i(w·x_i+b))
Support vectors lie on or inside the margin y(w·x+b) ≤ 1

Frequently asked questions

What makes a point a support vector?
Support vectors are the points that touch or violate the margin. They determine the fitted boundary in the optimal SVM solution.
What does C control?
C controls the penalty for margin violations. Larger C tries harder to classify training points correctly; smaller C allows more slack for a wider, more regularized margin.