Equation (5.2): for every learner A and m < |X|/2 there are D over X × {0,1} and f with L_D(f) = 0 and E_{S∼D^m}[L_D(A(S))] ≥ 1/4
ProvedUnderstandingML.no_free_lunch_expectationbinary-classificationlower-boundno-free-lunch
Equation (5.2) (in the proof of Theorem 5.1). For every algorithm that receives a training set of examples from , where , there exist a function and a distribution over such that and
Formally: for a domain with measurable singletons, a learner for binary classification with the 0–1 loss, and with , there is a probability distribution over with a measurable satisfying and .
Preamble
import Definitions.Def_UnderstandingML_Framework import Mathlib.SetTheory.Cardinal.Finite open MeasureTheory
Formal statement
namespace UnderstandingML
/-- **Equation (5.2)** of the proof of Theorem 5.1 (p. 62). For every algorithm `A` that receives a
training set of `m` examples from `X × {0,1}`, with `m < |X|/2`, there exist a function
`f : X → {0,1}` and a distribution `D` over `X × {0,1}` such that `L_D(f) = 0` and
`E_{S ∼ D^m}[L_D(A(S))] ≥ 1/4`. The domain has measurable singletons (Remark 3.1), and the
witness `f` is measurable. -/
theorem no_free_lunch_expectation {X : Type*} [MeasurableSpace X] [MeasurableSingletonClass X]
(A : Learner (X × Bool) (X → Bool)) (m : ℕ) (hm : (2 * m : ℕ∞) < ENat.card X) :
∃ D : Measure (X × Bool), IsProbabilityMeasure D ∧
(∃ f : X → Bool, Measurable f ∧ risk loss01 D f = 0) ∧
1 / 4 ≤ ∫ S, risk loss01 D (A m S) ∂(iidLaw D m) := 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, §5.1 p. 62, Equations (5.1)–(5.2) in the proof of Theorem 5.1, with the proof (5.3)–(5.6)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.