Lemma 8.5.5 (pinned constant) — m ≥ (8N/ε²)log(2N/δ) samples give Σ|p̂(i) − p(i)| ≤ ε with probability > 1 − δ
ProvedSampleComplexityRL.Exploration.l1_deviation_pinnedp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1probabilityreinforcement-learning
Let be a probability distribution on a set of elements, let and , and let be a number of samples with
Draw independent samples from and let be the fraction of samples equal to . Then, with probability greater than ,
The point of the lemma is that samples suffice for accuracy , linear rather than quadratic in ; it sets the sample size of .
Formalization Note This is a pinned form of the printed : the constant is the condition with which the printed proof ends (p. 113). The samples are independent with law on Fin N (product measure on Fin m → Fin N), and .
Preamble
import Mathlib import Definitions.Def_SampleComplexityRL_Exploration_Empirical
Formal statement
namespace SampleComplexityRL.Exploration
open MeasureTheory
/-- **Lemma 8.5.5, pinned constant** (Kakade 2003, p. 112). Let `p` be a probability distribution
`μ` on a set of `N ≥ 1` elements, let `0 < ε`, `0 < δ < 1`, and let
`m ≥ (8N/ε²) log(2N/δ)` (the condition `2N exp(−ε²m/(8N)) ≤ δ` that ends the printed proof,
p. 113, in place of the printed `m = O((N/ε²) log(N/δ))`). If `m` independent samples are drawn
from `μ` and `p̂` is their empirical distribution, then with probability greater than `1 − δ`,
`Σ_i |p̂(i) − p(i)| ≤ ε`. -/
theorem l1_deviation_pinned (N m : ℕ) (hN : 0 < N) (μ : Measure (Fin N))
[IsProbabilityMeasure μ] (ε δ : ℝ) (hε : 0 < ε) (hδ0 : 0 < δ) (hδ1 : δ < 1)
(hm : 8 * (N : ℝ) / ε ^ 2 * Real.log (2 * N / δ) ≤ m) :
ENNReal.ofReal (1 - δ) <
(Measure.pi fun _ : Fin m => μ)
{ω | ∑ i, |empiricalDist ω i - (μ {i}).toReal| ≤ ε} := by sorry
end SampleComplexityRL.Exploration
Source
Kakade, On the Sample Complexity of Reinforcement Learning, PhD thesis, University College London, 2003, p. 112, Lemma 8.5.5 (constant from the last line of its proof, p. 113)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.