When to use it
Predict a category (or, less commonly, a number) when the boundary between classes may be non-linear and you care about strong accuracy from a moderate number of rows. The SVM finds the widest possible margin between classes, supported by only the borderline points. Prefer logistic/linear regression when you need interpretable coefficients, p-values, or probabilities.
When not to: You need interpretable coefficients, confidence intervals, or calibrated probabilities natively (an SVM with a non-linear kernel gives none of these), the dataset is large enough that quadratic training-time growth becomes impractical, or a simpler logistic/linear regression already achieves comparable cross-validated performance, in which case the simpler model should be preferred for its interpretability at no real accuracy cost.
Step by step
Open it from the menu
Click Multivariate & ML in the menu bar; under Machine Learning choose Support Vector Machine (SVM).
Fill in the form
Choose the columns: What you want to predict, Columns that may explain it. The form lists only columns whose type fits each field.
Check the options
The options start at their defaults: Kernel, C (regularization), Gamma (kernel reach), Polynomial degree, Epsilon (SVR tube), Standardize, CV folds, Random seed, Training time budget (seconds). Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| What you want to predict Outcome required | One categorical or binary or numeric column. Outcome to predict. Categorical or two-level → classification (SVC); continuous numeric → regression (SVR). |
|---|---|
| Columns that may explain it Predictors required | One numeric or categorical or binary column. One or more predictors. Numeric columns are used as-is; categorical columns are dummy-encoded (col=level). |
| Kernel | rbf = flexible distance-based boundaries (default); linear = straight boundary; poly = polynomial boundary of the chosen degree. Default: rbf. |
| C (regularization) | Cost of violating the margin. Small C = smoother, more tolerant boundary; large C = flexible boundary that risks overfitting. Default: 1. |
| Gamma (kernel reach) | RBF/poly kernel coefficient. scale = 1/(p·Var(X)) (the usual default, = 1/p on standardized data); auto = 1/p. Small gamma = smooth long-reach boundaries, large gamma = wiggly local ones. Default: scale. |
| Polynomial degree | Degree of the polynomial kernel (poly only). Default: 3. |
| Epsilon (SVR tube) | Regression only: half-width of the no-penalty tube. With standardization on, it is in outcome standard deviations (0.1 = 0.1 SD). Default: 0.1. |
| Standardize | z-score predictors (and, in regression, the outcome) inside each CV fold. SVM kernels are distance-based: strongly recommended. Default: on. |
| CV folds | Cross-validation folds (stratified for classification), seeded for reproducibility. Default: 5. |
| Random seed | Seeds the CV shuffle so results are reproducible. Default: 42. |
| Training time budget (seconds) | Stop with an explanation instead of training when the run is projected to take longer than this. SVM cost grows with the square of the row count and explodes when the classes overlap, so a large, hard table can take minutes. 0 = no limit. Default: 10. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
A worked example
Classifying penguin species from bill length, bill depth and flipper length with an RBF kernel (defaults: gamma = 'scale' = 1/3 on standardized data, C = 1), compared against linear discriminant analysis on the same predictors.
Result: SVM: in-sample 98.2%, 5-fold cross-validated 97.9%, with 15.5% of rows as support vectors; LDA: in-sample 98.2%, cross-validated 97.9%.
Because the species classes are close to linearly separable in these measurements, the simpler linear classifier ties the more flexible SVM exactly, the scenario the product's own guidance anticipates, so the linear model should be preferred here: it loses nothing in accuracy and gains interpretable discriminant coefficients and model-based probabilities.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- Can bill and flipper measurements separate the penguin species, and how wide is the margin between them?
- Explain the support vector machine (SVM) in plain words.
- What does cross-validation mean?
Last reviewed November 16, 2026.
