The are slack variables of a support vector machine. The solid line is the support-vector-machine decision boundaryThe dashed lines are the two support-vector-machine margin boundariesEach is at perpendicular distance from the decision boundary, so the full margin width is .
For a monarch point, . Point P2 lies well beyond the monarch-side dashed margin, so a plausible value is . P1 lies between the decision boundary and that margin, so a plausible value is about . P3 lies on the wrong side of the decision boundary, so its slack exceeds one; about is plausible. Points P1 and P3 are support vectors, while P2 is not.
Increasing raises the cost of slack variables of a support vector machine. The fit therefore generally accepts fewer margin violations and misclassifications, at the price of a larger and hence a narrower support-vector-machine margin. Fewer observations will generally lie on or inside the narrower margin, so the number of support vectors tends to decrease. These are qualitative tendencies; individual counts need not vary monotonically for every data set.
A training observation is misclassified only ifThe SVM constraint then forces . HenceSumming and dividing by proves .
The code computes Leave-one-out cross-validation. Ifthen observation is not a support vector. Removing it leaves the optimum unchanged, and the resulting classifier still classifies it correctly. A leave-one-out error can therefore occur only for an observation on or inside the margin, which provesThus the fraction of training observations on or inside the margin is an upper bound on leave-one-out error. One can refit only after deleting support vectors, reusing the full fit for every other observation. Alternatively, K-fold cross-validation needs only fits and is often preferable for larger data sets.
Articles by others on the same topic
There are currently no matching articles.