Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2022/iii/paper-218/2/a/solution

First recode the labels as ; with labels and , the displayed constraints for class zero can never hold. Add an unpenalized intercept so that the separating hyperplane need not pass through the origin, and solve
Centering and scaling predictor columns is also advisable because the Euclidean penalty depends on their units.

New to topics? Read the docs here!