Bandit Algorithms
Tor Lattimore and Csaba Szepesvári
- Location
- Ch. 6
- Pages
- online pp. 91–96
Teaching chapter · canonical scope Compiled
Round-robin exploration, empirical means, measurable commit choices, wrong-commit tails, and expected-regret assemblies under bounded or sub-Gaussian arm laws.
Who should read this. The shortest end-to-end stochastic-bandit route in the repository.
Textbook crosswalk
The Book Map is a curated formalization curriculum anchored in Bandit Algorithms, not a chapter-for-chapter reproduction of one book. Page numbers below use its free online edition; companion papers cover algorithm-specific results.
Tor Lattimore and Csaba Szepesvári
Pull every arm m times, usually in round-robin order.
Compute each arm's empirical mean from its exploration samples.
Choose an empirical maximizer using a documented tie rule.
Pull that chosen arm for every remaining round.
The theorem exposes the central ETC tradeoff: more exploration costs regret now but reduces the probability of committing to a wrong arm.
BanditRLlib relationship. The local canonical route constructs a measurable generated ETC law and states explicit tie semantics before deriving bounded and sub-Gaussian expected-regret endpoints.
The mathematical content is restated in this site's notation; wording is ours. See online pp. 92–93 in the linked source for the original statement and full assumptions.
The mathematical readings are explanatory summaries. The exact generated Lean statement and its source link remain authoritative for hypotheses, types, constants, and indexing.
Plain-English statement. The canonical Rat ETC commit oracle selects the least encoded arm among all arms tying its maximal score.
BanditRLProof.ETC.argmaxCommitOracletheorem argmaxCommitOracle_encode_le_of_score_le {K : Nat} (hK : 0 < K) (scores : Fin K -> Rat) (a : Fin K) (hscore : scores ((ETC.argmaxCommitOracle hK).choose scores) <= scores a) : Encodable.encode ((ETC.argmaxCommitOracle hK).choose scores) <= Encodable.encode a
Plain-English statement. For the generated Explore-Then-Commit policy under finite-arm sub-Gaussian reward laws, expected Real pseudo-regret is bounded by the canonical per-arm exploration-plus-commit expression.
BanditRLProof.pseudoRegret_eq_finset_sum_gap_mul_pullCounttheorem integral_real_pseudoRegret_explorationArgmaxGeneratedAction_le_canonicalSubGaussianArmPerArmIntegralRegretBoundReal {K : Nat} {Context : Type} [MeasurableSpace Context] (spec : ETC.Spec K) (model : FiniteBanditModel K) (armLaw : Fin K -> Measure Rat) (hprob : forall arm, IsProbabilityMeasure (armLaw arm)) (sigma2 : NNReal) (hmean : forall arm, integral (armLaw arm) (fun reward : Rat => (((reward : Rat) : Real))) = (((model.mean arm : Rat) : Real))) (hsubG : forall arm, ProbabilityTheory.HasSubgaussianMGF (fun reward : Rat => ((reward : Rat) : Real) - (((model.mean arm : Rat) : Real))) sigma2 (armLaw arm)) (context : (n : Nat) -> ((j : Finset.Iic n) -> Rat) -> Context) (hcontext : forall n : Nat, Measurable (context n)) (hexplorationPulls_pos : 0 < spec.explorationPulls) (r : Nat) : let defaultAction := ETC.exploreArm spec 0 let rewardKernel := RewardKernel.contextIndependentOfActionLaws (Context
Complete when a canonical measurable generated ETC law, commit and tie semantics, wrong-commit concentration, and expected-regret endpoint compile under one documented local toolchain, and every claimed upstream compatibility surface is verified exactly.
| Milestone | Status | Lean declaration | Remaining gap |
|---|---|---|---|
| Canonical sub-Gaussian ETC expected regret | Compiled | BanditRLProof.ETC.integral_real_pseudoRegret_explorationArgmaxGeneratedAction_le_canonicalSubGaussianArmPerArmIntegralRegretBoundReal | — |
| Canonical Rat ETC least-encoded tie rule | Compiled | BanditRLProof.ETC.argmaxCommitOracle_argmax_finRangeBanditRLProof.ETC.argmaxCommitOracle_encode_le_of_score_le | — |
| Local ETC endpoint aligned with the LML theorem card | Compiled | BanditRLProof.ETC.integral_real_pseudoRegret_explorationArgmaxGeneratedAction_le_canonicalSubGaussianArmPerArmIntegralRegretBoundReal | Direct imported-LML symbol and toolchain identity remains cross-toolchain work. |