Learn Before
Definition

Slack Variable (ξi\xi_i)

In the soft-margin formulation of Support Vector Machines (SVM), the term ξi\xi_i is known as a slack variable. For a given training observation xˉ(i)\bar{x}^{(i)}:

  • If ξi=0\xi_i = 0, then xˉ(i)\bar{x}^{(i)} is correctly classified and lies on or outside the margin.
  • If ξi>0\xi_i > 0, then xˉ(i)\bar{x}^{(i)} violates the margin and is considered a support vector.
  • If ξi>1\xi_i > 1, then xˉ(i)\bar{x}^{(i)} is incorrectly classified by the decision boundary.

When solving this optimization problem with stochastic gradient descent (SGD), correctly classified points that lie outside the margin do not affect the update to the parameter θˉ\bar{\theta}. Consequently, only the marginal and misclassified points serve as support vectors.

0

2

Updated 2026-05-17

Tags

Data Science

Related