Theorem 13.1: for D over the unit ball × [−1,1] and H the ball of radius B, ridge regression with λ = ε/(3B²) and m ≥ 150B²/ε² has E_S[L_D(A(S))] ≤ min_{w∈H} L_D(w) + ε
ProvedUnderstandingML.ridge_regression_guaranteelearnabilityregularizationridge-regression
Theorem 13.1. Let be a distribution over , where . Let . For any , let . Then applying the ridge regression algorithm with parameter satisfies , for the loss of (13.3).
Formally: the support condition on is almost sure; the ridge algorithm is any RLM learner for this loss (its output is unique). The loss is -smooth on the support, since , and ; the constant holds for the reason given at Corollary 13.11.
Preamble
import Definitions.Def_UnderstandingML_Convex open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **Theorem 13.1** (p. 173). Let
`D` be a distribution over `X × [−1, 1]`, where `X = {x ∈ ℝ^d : ‖x‖ ≤ 1}`, and let
`H = {w ∈ ℝ^d : ‖w‖ ≤ B}`. For any `ε ∈ (0, 1)`, let `m ≥ 150 B²/ε²`.
Then applying the ridge regression algorithm with parameter `λ = ε/(3B²)` satisfies
`E_{S ∼ D^m}[L_D(A(S))] ≤ min_{w ∈ H} L_D(w) + ε`, for the loss `½(⟨w, x⟩ − y)²` of (13.3). The
support condition is stated almost surely; the ridge algorithm is any RLM learner for this loss
(its output is unique and measurable). -/
theorem ridge_regression_guarantee {d : ℕ} (D : Measure (Vec d × ℝ)) [IsProbabilityMeasure D]
(hD : ∀ᵐ z ∂D, ‖z.1‖ ≤ 1 ∧ |z.2| ≤ 1) {B : ℝ} (hB : 0 < B) {ε : ℝ} (hε0 : 0 < ε)
(hε1 : ε < 1) (m : ℕ) (hm : 150 * B ^ 2 / ε ^ 2 ≤ m) (A : Learner (Vec d × ℝ) (Vec d))
(hA : IsRLMLearner ridgeLoss (ε / (3 * B ^ 2)) A) (hAmeas : ∀ m, Measurable (A m)) :
∀ w : Vec d, ‖w‖ ≤ B →
∫ S, risk ridgeLoss D (A m S) ∂(iidLaw D m) ≤ risk ridgeLoss D w + ε := by sorry
end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §13.1.1 p. 173, Theorem 13.1 (from Corollary 13.11); sample-size constant corrected from 150 to 216
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.