Lemma 1 — expectation of X(j, s, y)
ProvedAgrawalGoyalTS.NArmed.expected_firstExceed_eqbanditsbeta-distributionbinomial-distributionp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1
Let be non-negative integers with and let . Let be the number of trials before an independent sequence of random variables first exceeds , and let be the cdf of . Then
The lemma converts the expected waiting time of a geometric variable with a Beta-cdf parameter into a binomial cdf, which is the form in which the waiting times of the first arm enter the regret bound.
Formalization Note Both sides are in . At every trial fails, so , and for , so the right side is as well: the degenerate case is the identity , not a junk equation.
Preamble
import Mathlib import Definitions.Def_AgrawalGoyalTS_NArmed_BetaBinomial open MeasureTheory
Formal statement
namespace AgrawalGoyalTS.NArmed
/-- Lemma 1 (p. 6): for all natural `j`, `s ≤ j` and `y ∈ [0,1]`,
`E[X(j, s, y)] = 1 / F^B_{j+1,y}(s) - 1`, where `X(j, s, y)` is the number of trials before an
i.i.d. `Beta(s+1, j-s+1)` sequence first exceeds `y`. Stated in `ℝ≥0∞`, so that at `y = 1`
both sides are `∞`. -/
theorem expected_firstExceed_eq (j s : ℕ) (hs : s ≤ j) (y : ℝ) (hy0 : 0 ≤ y) (hy1 : y ≤ 1) :
∫⁻ ω, ENat.toENNReal (AgrawalGoyalTS.TwoArmed.firstExceed y ω) ∂(AgrawalGoyalTS.TwoArmed.betaTrials s (j - s)) =
1 / ENNReal.ofReal (AgrawalGoyalTS.TwoArmed.binomCDF (j + 1) y (s : ℝ)) - 1 := by sorry
end AgrawalGoyalTS.NArmed
Source
Agrawal and Goyal, Analysis of Thompson Sampling for the Multi-armed Bandit Problem, arXiv:1111.1797v3, p. 6, Lemma 1
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.