In the linearly separable case of binary classification using a Support Vector Machine (SVM) with a linear kernel, the goal is to find a hyperplane that maximally separates the two classes with the largest margin. The hyperplane is defined by the set of points closest to it, which are called support vectors. The margin is the distance between the hyperplane and the support vectors.
In the hard-margin SVM, we require that all data points are correctly classified and lie on the right side of the margin. Mathematically, this can be formulated as the following optimization problem:
maximize w.s.t. y_i(w^T x_i + b) ≥ 1, for all i = 1, ..., n
where w is the normal vector of the hyperplane, b is the bias term, x_i are the data points, and y_i are the corresponding labels (+1 or -1).
The minimum value of C such that a linear SVM gives the hard-margin solution for a linearly separable case is C = ∞.
This is because, in the hard-margin SVM, there is no tolerance for misclassifications or points that lie within the margin. The optimization problem ensures that all data points are correctly classified and lie on the right side of the margin. If there exists a hyperplane that separates the classes with a non-zero margin, then the SVM will find it, and there is no need for regularization (i.e., C can be set to infinity).
However, in practice, data is often noisy, and it may not be possible to find a hyperplane that perfectly separates the classes with a non-zero margin. In such cases, we use soft-margin SVMs, which allow for some misclassifications and points within the margin. The regularization parameter C controls the trade-off between maximizing the margin and minimizing the number of misclassifications. A larger value of C implies a stronger penalty for misclassifications, and the SVM will try to find a hyperplane that separates the classes with a larger margin, even if it results in more misclassifications. Conversely, a smaller value of C implies a weaker penalty for misclassifications, and the SVM will prioritize finding a hyperplane that minimizes the number of misclassifications, even if it results in a smaller margin.