Claim 29.9(2): on a finite domain of size d ≥ 2, for ε ∈ (0,1/2) and m ≤ (d−1)/(6ε), A_bad has error ≥ ε with probability ≥ e^{−1}/6 under the distribution of the proof labeled by h_∅
ProvedUnderstandingML.bad_erm_lower_boundermlower-boundmulticlass
Claim 29.9(2). There exists a constant such that for every there exists a distribution over and such that the following holds. The hypothesis returned by upon receiving a sample of size , sampled according to and labeled by , will have error with probability .
Formally, for (the case the book proves): for every , with the distribution , of the proof and , every ERM returning on all- samples has error at least with probability at least whenever .
Preamble
import Definitions.Def_UnderstandingML_MulticlassLearnability open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **Claim 29.9(2)** (p. 407), for a finite domain `|X| = d ≥ 2`. For every `ε ∈ (0, 1/2)`
(the book: `ε < a` for some constant `a > 0`) there exist a distribution `D` over `X` (the one
of the proof: `P[x₀] = 1 − 2ε`, `P[xᵢ] = 2ε/(d − 1)`) and `h_A ∈ H` (namely `h_∅`) such that the
hypothesis returned by `A_bad` upon receiving a sample of size `m ≤ (|X| − 1)/(6ε)`, sampled
according to `D` and labeled by `h_A`, has error `≥ ε` with probability `≥ e^{−1}/6`. -/
theorem bad_erm_lower_bound {X : Type*} [MeasurableSpace X] [MeasurableSingletonClass X]
[Fintype X] (hX : 2 ≤ Fintype.card X) (x₀ : X)
(A : Learner (X × CofinLabel X) (X → CofinLabel X)) (hA : IsBadERM A) (ε : ℝ) (hε : 0 < ε)
(hε2 : ε < 1 / 2) (m : ℕ) (hm : (m : ℝ) ≤ (Fintype.card X - 1) / (6 * ε)) :
ENNReal.ofReal (Real.exp (-1) / 6) ≤
iidLaw ((badDist x₀ ε).map (fun x ↦ (x, hSet ⟨∅, Or.inl Set.finite_empty⟩ x))) m
{S | ENNReal.ofReal ε ≤ badDist x₀ ε {x | A m S x ≠ hSet ⟨∅, Or.inl Set.finite_empty⟩ x}} := 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, §29.4 pp. 407-408, Claim 29.9 part 2 with its proof
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.