# Support Vector Machine (SVM)

> It splits two groups with a line. The line leaves the widest gap it can.

**Field:** Artificial Intelligence  
**Category:** Machine Learning  
**Also known as:** SVM, Support Vector Classifier

## Think of it like

Think of it like two towns with a road between them. You make the road as wide as you can.

## Definition

A support vector machine splits two groups with the widest gap it can find. It looks for the line that stays as far as it can from the nearest points of both groups. Those nearest points are called support vectors, and they alone decide where the line goes. A trick lets it draw curved borders too. It was a top method before deep learning took over.

## Example

Lucy's model sorts emails into work and personal. The SVM finds the border with the most room on both sides. So new emails near the edge are sorted more safely.

## Why it matters

The wide gap makes it hold up well on new data. It still works well on small data sets with many features.

## Common mistake

Using it on millions of examples. Training gets very slow, and other methods do the same job faster.

## Three principles

- **Widest gap.** Keep far from both groups.
- **Edge points decide.** The support vectors set the line.
- **Curves too.** A trick allows bent borders.

## Related terms

- [Classification (Machine Learning)](https://learn.benibix.com/term/ai/classification)
- [Logistic Regression](https://learn.benibix.com/term/ai/logistic-regression)
- [k-Nearest Neighbors (k-NN)](https://learn.benibix.com/term/ai/k-nearest-neighbors)

## Taught in

- [k-NN, SVM and Naive Bayes](https://learn.benibix.com/learn/ai-machine-learning/knn-svm-and-naive-bayes): Machine Learning, 9/18

![Two groups of dots with a line between them. Two dashed lines run along each side, making the widest empty street between the groups. The dots touching the street are marked.](https://learn.benibix.com/diagrams/ml-svm.svg)

---

Source: https://learn.benibix.com/term/ai/support-vector-machine
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
