Examples 12.8–12.9: linear regression on ℝ with the squared loss is not (agnostic) PAC learnable, neither over H = ℝ nor over H = [−1, 1]
ProvedUnderstandingML.linear_regression_not_learnableconvex-learninglinear-regressionnonlearnability
Example 12.8 (Nonlearnability of Linear Regression Even If ). Let and the loss be the squared loss . For every deterministic algorithm there is a distribution on which fails; the problem is not PAC learnable. Example 12.9. The same holds for the bounded convex class .
Formally: AgnosticPACLearnable squaredLoss1 H fails for and for (the learners of Definition 3.4 are deterministic).
Preamble
import Definitions.Def_UnderstandingML_Convex open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **Examples 12.8–12.9** (pp. 164–166): nonlearnability of linear regression even if `d = 1`.
With `H = ℝ` and the squared loss `ℓ(w, (x, y)) = (wx − y)²`, the problem is not (agnostic) PAC
learnable; and neither is it with the bounded convex class `H = {w : |w| ≤ 1}`. (The learners of
Definition 3.4 are deterministic, as the book assumes.) -/
theorem linear_regression_not_learnable :
¬ AgnosticPACLearnable squaredLoss1 (Set.univ : Set ℝ) ∧
¬ AgnosticPACLearnable squaredLoss1 (Set.Icc (-1 : ℝ) 1) := 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, §12.2.1 pp. 164-166, Examples 12.8 and 12.9 with their proofs
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.