The union-bound arithmetic behind the UCRL2 confidence radius
ProvedBanditAlgorithm.mdp_confidence_union_bound_arithmeticmarkov-decision-processesreinforcement-learning
For states, actions, horizon and ,
This is the arithmetic that makes the confidence radius of UCRL2 the right one: the exponential is exactly the bound that Weissman's inequality returns at that radius after observations, the factor counts the state-action pairs and the possible values of the number of observations, and is the number of subsets in the categorical concentration inequality.
Writing , the left side is . Since one has , and , so the whole expression is at most , and for , so the remaining power of is at most one. The slack is large: the constant in the radius is chosen so that this union bound closes with room to spare.
Preamble
import Mathlib.Analysis.SpecialFunctions.Log.Basic import Mathlib.Analysis.SpecialFunctions.Pow.Real open scoped NNReal ENNReal
Formal statement
theorem BanditAlgorithm.mdp_confidence_union_bound_arithmetic
(S A n : ℕ) (hS : 2 ≤ S) (hA : 0 < A) (hn : 0 < n)
(δ : ℝ) (hδ : δ ∈ Set.Ioo (0 : ℝ) 1) :
(S : ℝ) * A * n *
(2 ^ S * Real.exp (-(7 * S * Real.log (2 * S * A * n / δ))))
≤ δ / 2 := by
sorrySource
Lattimore and Szepesvari, Bandit Algorithms (CUP 2020), Section 38.6 Step 1, printed pp. 525-526 / PDF pp. 534-535; the radius is Eq. (3) of Jaksch, Ortner and Auer, Near-optimal regret bounds for reinforcement learning, JMLR 11 (2010).