Lemma 1 — expectation of X(j, s, y)
ProvedAgrawalGoyalTS.TwoArmed.expected_firstExceed_eqbeta-distributionbinomial-distributiongeometric-distributionp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1
For integers and and a threshold , let be the number of trials before an i.i.d. sequence of random variables first exceeds (a geometric random variable with success probability , equal to if the success probability is ). Then
where is the cdf of .
In the analysis of Thompson Sampling, dominates the number of rounds the optimal arm waits between its -th and -th plays, so this lemma turns waiting times into binomial cdfs.
Formalization Note Both sides are taken in with . At the success probability is , almost surely, and for , so the identity reads , as in the paper.
Preamble
import Mathlib import Definitions.Def_AgrawalGoyalTS_TwoArmed_BetaBinomial open MeasureTheory
Formal statement
namespace AgrawalGoyalTS.TwoArmed
/-- 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 (firstExceed y ω) ∂(betaTrials s (j - s)) =
1 / ENNReal.ofReal (binomCDF (j + 1) y (s : ℝ)) - 1 := by sorry
end AgrawalGoyalTS.TwoArmed
Source
Agrawal and Goyal, Analysis of Thompson Sampling for the Multi-armed Bandit Problem, arXiv:1111.1797v3, p. 6, Lemma 1 (with the definition of X(j, s, y) just above it)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.