Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 218 2 b Solution Created 2026-10-03 Updated 2026-10-05
Fix and use the unnormalized sum convention for the penalty. The linear soft-margin support vector machine solvesEliminating the slack variables of a support vector machine gives , where and the maximum is the hinge loss. The classifier uses the sign of and its support-vector-machine decision boundary is .
For clarity about dual support vectors and margin degeneracy, let be the multipliers of the margin constraints. The Karush-Kuhn-Tucker conditions giveThe dual support vectors are those with . A coefficient strictly between and puts a point exactly on its margin boundary; a point with positive slack has . A zero coefficient implies zero slack and signed margin at least one. Geometrically one often counts all points with as support vectors. At a degeneracy, equality can occur with , so the two descriptions need not coincide. Either convention supports the bound in the following part when stated consistently.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 218 2 d Solution Created 2026-10-03 Updated 2026-10-05
First use the dual convention for support vectors, and interpret the stipulated uniqueness as applying to each training fit. If , the Karush-Kuhn-Tucker conditions in the preceding part give and . Delete the th primal variable and its zero dual coefficient. All remaining primal constraints, stationarity equations and complementary-slackness equations still hold with the same . These conditions certify a global minimizer of the reduced convex optimization problem, since the objective is convex and the Slater condition holds by choosing positive large slacks. Uniqueness therefore gives exactly the same fitted score and support-vector-machine decision boundary. The omitted point is correctly classified.
For the geometric convention, a non-support point has strict margin . One can obtain the same conclusion using just uniqueness of the full fit: if the reduced problem had another optimizer, the convex segment from the original optimizer toward it would also consist of reduced optimizers. A sufficiently short segment retains strict margin at , hence has zero omitted hinge loss and would give another full optimizer, a contradiction.
Only a support vector can therefore cause a held-out error. Each contributes at most one, proving the support-vector leave-one-out error boundKeeping fixed is necessary for this deletion argument: holding an average-loss penalty parameter fixed while changing the sample size changes the optimization problem's effective .
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 218 3 a Solution Created 2026-09-24 Updated 2026-09-25
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 .