Lemma 6 — Confidence intervals for all arms and times
ProvedImprovedLinBandits.UCBDelta.confidence_intervalsLet be a probability space with a filtration . Consider arms with means . In round an arm that is -measurable is played, and the reward is received, where the noise is -measurable and conditionally -sub-Gaussian:
The arms may be chosen by any adapted rule. Let be the number of plays of arm in rounds , the average reward of arm over those rounds, and
Then for every , with probability at least ,
The event is uniform in time: a single event of probability at least carries all the intervals simultaneously. This is what allows the UCB() algorithm to use widths that depend neither on the horizon nor on the current time.
Formalization Note The statement bounds the outer probability of the failure event " for some and some with " by . For the paper's width is and the inequality is vacuous; Lean's division by zero would give on both sides, so that case is excluded explicitly. The noise is conditioned on , the filtration form of Theorem 1, which is more general than conditioning on . The hypothesis that is a standard Borel space is added so that Mathlib's conditional sub-Gaussianity (through the conditional distribution kernel) is available; it is not in the paper.
import Mathlib import Definitions.Def_ImprovedLinBandits_UCBDelta_armModel open MeasureTheory ProbabilityTheory
namespace ImprovedLinBandits.UCBDelta
/-- **Lemma 6** (Confidence Intervals; Abbasi-Yadkori, Pál, Szepesvári, NIPS 2011, p. 7). Arms
`Fin d` have means `μ`; round `t + 1` plays the `ℱ_t`-measurable arm `I (t + 1)` and receives
`μ (I (t + 1)) + η (t + 1)`, where `η (t + 1)` is `ℱ_{t+1}`-measurable and conditionally
1-sub-Gaussian given `ℱ_t`. Then for every `δ > 0`, the (outer) probability that
`|X̄_{i,t} - μ_i| > c_{i,t}` for some arm `i` and some `t ≥ 0` is at most `δ`.
The case `N_{i,t} = 0`, where the paper's `c_{i,t} = +∞` makes the claim vacuous, is excluded
explicitly. The arm sequence is arbitrary (not necessarily UCB(δ)). `StandardBorelSpace Ω` is
added so that Mathlib's conditional sub-Gaussianity is available. -/
theorem confidence_intervals
{Ω : Type} {mΩ : MeasurableSpace Ω} [StandardBorelSpace Ω]
{P : Measure Ω} [IsProbabilityMeasure P]
{d : ℕ} (ℱ : Filtration ℕ mΩ)
(μ : Fin d → ℝ) (I : ℕ → Ω → Fin d) (η : ℕ → Ω → ℝ)
(hI : ∀ t : ℕ, Measurable[ℱ t] (I (t + 1)))
(hη : ∀ t : ℕ, Measurable[ℱ (t + 1)] (η (t + 1)))
(hsg : ∀ t : ℕ, HasCondSubgaussianMGF (ℱ t) (ℱ.le t) (η (t + 1)) 1 P)
{δ : ℝ} (hδ : 0 < δ) :
P {ω | ∃ (i : Fin d) (t : ℕ), 0 < pullCount I i t ω ∧
confRadius d δ (pullCount I i t ω) < |empMean μ η I i t ω - μ i|}
≤ ENNReal.ofReal δ := by sorry
end ImprovedLinBandits.UCBDelta
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.