L1-penalized logistic regression 2026-09-28
L1-penalized logistic regression minimizes empirical logistic loss plus . Its subgradient optimality conditions set each logistic score coordinate equal to , where off zero and at zero.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 205 1 b Solution 2026-09-28
The scalar logistic loss is strictly convex because its second derivative is . If and are minimizers but , strict convexity of the loss as a function of the fitted vector and convexity of the L1 norm make the objective at their midpoint strictly smaller than the common minimum. This contradiction proves thatfor every pair of solutions.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 218 4 d Solution Created 2026-09-24 Updated 2026-09-25
A binary logistic regression setsand classifies by the sign of . Its unpenalized maximum-likelihood estimator minimizes the empirical logistic lossThe plotted data are complete separation data: there is a vector with every signed margin . For every finite , increasing strictly decreases each term of , and as . No finite parameter attains zero, so the unpenalized optimization has no solution.
Adding an penalty with , constraining , or using a finite stopping rule makes the problem attain a finite approximate solution. The penalized option is preferable because cross-validation can select the strength of regularization.
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 4 30L c Solution Created 2026-09-24 Updated 2026-09-25
The hypothesis class and margin loss areandThus this is a positive semidefinite quadratic-form classifier with logistic loss. Its empirical risk, viewed as a function of the matrix parameter, isDifferentiating under the sum shows thatHence the displayed is exactly , and the algorithm is projected gradient descent on the positive semidefinite trace ball.
The scalar factor multiplying each lies in . Sincewe have the uniform gradient boundLet parametrize the empirical minimizer . Positive semidefiniteness givesThus the initial distance from to is at most , while the gradient bound is .
The averaged projected-gradient bound, in its slightly looser formapplies because is convex. ChooseSubstitution gives