Sample Complexity Lower Bound #
We use the prefix ehkv for Ehrenfeucht–Haussler–Kearns–Valiant throughout.
This module formalizes the main result of [EHKV89]: a lower bound on the number of examples required for PAC learning of a binary concept class, in terms of its Vapnik-Chervonenkis dimension.
The headline theorem is parameterized by an arbitrary distribution family
𝒟 : Set (Measure (α × Bool)). We require that 𝒟 contains all realizable
distributions for C, i.e. pushforwards P.map (x ↦ (x, c x)) for any
probability measure P : Measure α and concept c ∈ C. The agnostic case
(𝒟 = Set.univ) and the (minimal) realizable case fall out as one-line
corollaries.
The argument uses a marginal-sample-space EHKV witness lemma (in
SampleComplexityLower.EHKVProof) and bridges to the joint-sample-space
failure event of IsPACLearnerFor / IsRPACLearnerFor via the
change-of-variables pi_map_sampleOf below.
Main statements #
pi_map_sampleOf,error_realizable_self_eq_zero,optimalError_realizable_eq_zero: joint↔marginal bridge lemmas.sample_complexity_lower_bound_randomized: Theorem 1 of [EHKV89] for randomized learners, family-parametric, with the confidence rangeδ < 1/14in place of the source'sδ ≤ 1/100.sample_complexity_lower_bound: deterministic corollary viaIsPACLearnerFor.toIsRPACLearnerFor.sample_complexity_lower_bound_agnostic_randomized,sample_complexity_lower_bound_agnostic: agnostic specialization (𝒟 = Set.univ).sample_complexity_lower_bound_vcDim: randomized bound stated in terms ofvcDim.sampleComplexity_lower_bound_vcDim,rsampleComplexity_lower_bound_vcDim: lower bounds on deterministic and randomized sample complexities phrased viavcDim.
References #
Bridge lemmas: joint sample space ↔ marginal sample space #
The pi-product of pushforwards along (x ↦ (x, decide (x ∈ c))) equals the
pushforward of the pi-product along sampleOf c.
The realizable joint distribution P.map (x ↦ (x, c x)) has zero error
against c itself.
For a concept c ∈ C, the realizable distribution P.map (x ↦ (x, c x))
has optimalError = 0.
Bridge: finite-support equality of joint and marginal failure events #
Headline EHKV lower bound #
Theorem 1 (randomized, family-parametric) [EHKV89]:
The sample-complexity lower bound (|W| - 1) / (32 ε) ≤ m holds for
randomized (ε, δ)-PAC learners over any distribution family 𝒟 containing
all realizable distributions for C. [EHKV1989, §3, Theorem 1] states this
for 0 < δ ≤ 1/100; the proof here allows the wider range δ < 1/14.
Deterministic specialization via IsPACLearnerFor.toIsRPACLearnerFor.
Agnostic specialization (𝒟 = Set.univ): the realizable distributions are
trivially included.
Loose: this is the realizable bound applied to the agnostic case; the tight
agnostic rate is Ω(d/ε²) (see TODO at the bottom of this file).
Deterministic agnostic specialization.
Corollary: the EHKV lower bound stated in terms of vcDim.
The HasFiniteVCDim C hypothesis is what makes vcDim C mathematically
meaningful: it guarantees the indexing set of shattered cardinalities is
bounded, so sSup returns the actual maximum rather than 0 (its default
on unbounded ℕ-sets). See hasFiniteVCDim_iff for the more intuitive
"exists a uniform bound on shattered cardinalities" reformulation.
Lower bound on deterministic sample complexity in terms of vcDim.
Lower bound on randomized sample complexity in terms of vcDim.