Simple Algorithm
Reinforcement Learning · Fixed Point · 28 min

The Regret of UCB, Proved

Concentration, a union bound and log T regret step by step, plus KL-UCB’s sharper bonus.

Optimism's promise is a theorem: the regret of UCB grows like log⁡T\log T. This lesson proves it from scratch with a good event, a union bound and a careful choice of confidence level, derives the worst-case KTlog⁡T\sqrt{KT\log T} and the trick that removes its logarithm, and then asks how good the constant is. The answer leads to KL-UCB, whose index replaces Hoeffding's quadratic penalty by the Bernoulli relative entropy and attains the Lai–Robbins constant.

What you’ll learn

  • Prove E[Ni(T)]≤3+16ln⁡T/Δi2\E[N_i(T)]\le3+16\ln T/\Delta_i^2 for UCB with confidence level δ=1/T2\delta=1/T^2, using a good event and a union bound over sample counts.
  • Derive the gap-free bound 8KTln⁡T+3∑iΔi8\sqrt{KT\ln T}+3\sum_i\Delta_i and explain how MOSS removes the logarithm.
  • Explain why indices built on Hoeffding's inequality cannot attain the Lai–Robbins constant for Bernoulli arms, using Pinsker's inequality and a Taylor expansion of the divergence.
  • Define the KL-UCB index, compute it, and sketch the proof that its regret attains ∑iΔi/kl⁡(μi,μ⋆)\sum_i\Delta_i/\operatorname{kl}(\mu_i,\mu^\star) asymptotically.

The algorithm and the theorem

Work with subgaussian rewards: XX is σ\sigma-subgaussian if E[eλ(X−EX)]≤eλ2σ2/2\E[e^{\lambda(X-\E X)}]\le e^{\lambda^2\sigma^2/2} for all λ\lambda. An average of ss independent σ\sigma-subgaussian variables then satisfies Pr⁡(μ^s−μ≥ε)≤e−sε2/(2σ2)\Pr(\hat\mu_s-\mu\ge\varepsilon)\le e^{-s\varepsilon^2/(2\sigma^2)}, and the same below. Gaussians with variance σ2\sigma^2 qualify, and rewards in [0,1][0,1] are 12\tfrac12-subgaussian by Hoeffding's lemma. With σ=1\sigma=1, the confidence level δ\delta gives the index

UCBi(t−1,δ)={∞if Ni(t−1)=0,μ^i(t−1)+2ln⁡(1/δ)Ni(t−1)otherwise,At=arg max⁡i UCBi(t−1,δ)\mathrm{UCB}_i(t-1,\delta)=\begin{cases}\infty&\text{if }N_i(t-1)=0,\\[4pt]\hat\mu_i(t-1)+\sqrt{\dfrac{2\ln(1/\delta)}{N_i(t-1)}}&\text{otherwise,}\end{cases}\qquad A_t=\argmax_i\,\mathrm{UCB}_i(t-1,\delta)
The algorithm "UCB(δ\delta)" of Lattimore and Szepesvári (ch. 7). With δ=1/T2\delta=1/T^2 the bonus is 4ln⁡T/Ni\sqrt{4\ln T/N_i}; UCB1's 2ln⁡t/Ni\sqrt{2\ln t/N_i} is the anytime analogue for rewards in [0,1][0,1].

Auer, Cesa-Bianchi and Fischer's original proof for UCB1 counts, round by round, the event that a suboptimal arm's index beats the optimal arm's, and bounds it by a triple sum over rounds and both arms' sample counts. The proof below decouples the randomness from the algorithm instead: it fixes, before the game starts, a "good event" on which the algorithm cannot misbehave, and then bounds the probability that the good event fails. It is the template for most optimism proofs, including those for MDPs.

The proof: a good event and a union bound

DerivationProof of Theorem 7.1
  1. Gi={μ1<min⁡t≤TUCB1(t,δ)} ∩ {μ^i,ui+2ln⁡(1/δ)ui<μ1}G_i=\Big\{\mu_1<\min_{t\le T}\mathrm{UCB}_1(t,\delta)\Big\}\ \cap\ \Big\{\hat\mu_{i,u_i}+\sqrt{\tfrac{2\ln(1/\delta)}{u_i}}<\mu_1\Big\}

    Setup. Let arm 1 be optimal, fix a suboptimal arm ii, and imagine every arm's rewards drawn in advance as a sequence, so that μ^j,s\hat\mu_{j,s}, the average of arm jj's first ss rewards, is defined whether or not the arm is pulled ss times. For a number uiu_i to be chosen, define the good event: the optimal arm's index never falls below its mean, and arm ii's index after uiu_i pulls is below μ1\mu_1:

  2. E[Ni(T)]=E[1GiNi(T)]+E[1GicNi(T)] ≤ ui+T Pr⁡(Gic)\E[N_i(T)]=\E\big[\mathbf 1_{G_i}N_i(T)\big]+\E\big[\mathbf 1_{G_i^c}N_i(T)\big]\ \le\ u_i+T\,\Pr(G_i^c)

    On GiG_i, arm ii is pulled at most uiu_i times. Otherwise there is a round tt with Ni(t−1)=uiN_i(t-1)=u_i and At=iA_t=i. But then arm ii's index is μ^i,ui+2ln⁡(1/δ)/ui<μ1<UCB1(t−1,δ)\hat\mu_{i,u_i}+\sqrt{2\ln(1/\delta)/u_i}<\mu_1<\mathrm{UCB}_1(t-1,\delta), so arm 1 has the larger index and At≠iA_t\ne i: a contradiction. Since Ni(T)≤TN_i(T)\le T always,

  3. Pr⁡(μ1≥min⁡t≤TUCB1(t,δ)) ≤ ∑s=1TPr⁡(μ1≥μ^1,s+2ln⁡(1/δ)s) ≤ Tδ\Pr\Big(\mu_1\ge\min_{t\le T}\mathrm{UCB}_1(t,\delta)\Big)\ \le\ \sum_{s=1}^T\Pr\Big(\mu_1\ge\hat\mu_{1,s}+\sqrt{\tfrac{2\ln(1/\delta)}{s}}\Big)\ \le\ T\delta

    The optimal arm is rarely underestimated. Its index at any round uses its first ss rewards for some random ss, so cover every possible ss with a union bound, applying the subgaussian tail to each fixed ss:

  4. Pr⁡(μ^i,ui+2ln⁡(1/δ)ui≥μ1) ≤ Pr⁡(μ^i,ui−μi≥cΔi) ≤ exp⁡(−uic2Δi22)\Pr\Big(\hat\mu_{i,u_i}+\sqrt{\tfrac{2\ln(1/\delta)}{u_i}}\ge\mu_1\Big)\ \le\ \Pr\big(\hat\mu_{i,u_i}-\mu_i\ge c\Delta_i\big)\ \le\ \exp\Big(-\frac{u_ic^2\Delta_i^2}{2}\Big)

    Arm ii's index falls below μ1\mu_1 after uiu_i pulls. Choose uiu_i so that the bonus uses at most a fraction 1−c1-c of the gap, 2ln⁡(1/δ)/ui≤(1−c)Δi\sqrt{2\ln(1/\delta)/u_i}\le(1-c)\Delta_i for some c∈(0,1)c\in(0,1). Then the event requires a deviation of at least cΔic\Delta_i:

  5. E[Ni(T)] ≤ 16ln⁡TΔi2+1+1+1 = 3+16ln⁡TΔi2\E[N_i(T)]\ \le\ \frac{16\ln T}{\Delta_i^2}+1+1+1\ =\ 3+\frac{16\ln T}{\Delta_i^2}

    Choose the constants. Take ui=⌈2ln⁡(1/δ)/((1−c)2Δi2)⌉u_i=\big\lceil2\ln(1/\delta)/((1-c)^2\Delta_i^2)\big\rceil and δ=1/T2\delta=1/T^2. Then T⋅Tδ=1T\cdot T\delta=1, and the second failure term contributes Texp⁡(−uic2Δi2/2)≤T1−2c2/(1−c)2T\exp(-u_ic^2\Delta_i^2/2)\le T^{1-2c^2/(1-c)^2}. With c=12c=\tfrac12 the exponent is 1−2=−11-2=-1, so this term is at most 1, and ui≤16ln⁡T/Δi2+1u_i\le16\ln T/\Delta_i^2+1:

Check your understanding

In the third step, why does the union bound run over the possible sample counts s=1,…,Ts=1,\dots,T rather than applying the tail bound once?

  1. Because the rewards of arm 1 are not independent
  2. Because the number of samples behind arm 1's index at a given round is random and depends on the algorithm, so the bound must hold for every count the algorithm could produce
  3. Because Hoeffding's inequality only applies to one sample at a time
  4. Because the regret decomposition requires it
Show the answer

B. Because the number of samples behind arm 1's index at a given round is random and depends on the algorithm, so the bound must hold for every count the algorithm could produce

The tail bound holds for an average of a fixed number of samples. The count N1(t−1)N_1(t-1) is chosen by the algorithm from the data, so it can be correlated with how lucky the samples were. Bounding the failure for every fixed ss simultaneously sidesteps that dependence, at a price of a factor TT, which is why the confidence level must be δ=1/T2\delta=1/T^2 rather than 1/T1/T.

The proof shows where the constant 16 comes from: a factor 4 from ln⁡(1/δ)=2ln⁡T\ln(1/\delta)=2\ln T with the 2 in the bonus, and a factor 4 from c=12c=\tfrac12, which spends half the gap on the bonus and half on the deviation. Both are artifacts of a proof that works at every finite TT. A refined analysis with a slightly larger, anytime confidence level brings the asymptotic constant down to 2/Δi2/\Delta_i (next steps).

Worst case: √(KT log T), and MOSS

DerivationGap-free bound (Lattimore & Szepesvári, Theorem 7.2)
  1. RT=∑i:Δi<ΔΔiE[Ni(T)]+∑i:Δi≥ΔΔiE[Ni(T)] ≤ TΔ+∑i:Δi≥Δ(3Δi+16ln⁡TΔi)R_T=\sum_{i:\Delta_i<\Delta}\Delta_i\E[N_i(T)]+\sum_{i:\Delta_i\ge\Delta}\Delta_i\E[N_i(T)]\ \le\ T\Delta+\sum_{i:\Delta_i\ge\Delta}\Big(3\Delta_i+\frac{16\ln T}{\Delta_i}\Big)

    Fix a threshold Δ>0\Delta>0. Arms with Δi<Δ\Delta_i<\Delta cost at most Δ\Delta per pull and at most TT pulls in total; the others obey Theorem 7.1:

  2. RT ≤ TΔ+16Kln⁡TΔ+3∑iΔi = 8KTln⁡T+3∑iΔiR_T\ \le\ T\Delta+\frac{16K\ln T}{\Delta}+3\sum_i\Delta_i\ =\ 8\sqrt{KT\ln T}+3\sum_i\Delta_i

    Bound 1/Δi≤1/Δ1/\Delta_i\le1/\Delta and balance TΔT\Delta against 16Kln⁡T/Δ16K\ln T/\Delta at Δ=16Kln⁡T/T\Delta=\sqrt{16K\ln T/T}:

The minimax lower bound is of order KT\sqrt{KT}, so the ln⁡T\sqrt{\ln T} is the price of the union bound over sample counts. MOSS (Audibert & Bubeck, 2009) removes it with a confidence level that depends on how many pulls an arm already has relative to its fair share T/KT/K:

At=arg max⁡i μ^i(t−1)+4Ni(t−1) log⁡+ ⁣(TK Ni(t−1)),log⁡+x=ln⁡max⁡{1,x}.A_t=\argmax_i\ \hat\mu_i(t-1)+\sqrt{\frac{4}{N_i(t-1)}\,\log^+\!\Big(\frac{T}{K\,N_i(t-1)}\Big)},\qquad\log^+x=\ln\max\{1,x\}.

For 1-subgaussian rewards its regret is at most 39KT+∑iΔi39\sqrt{KT}+\sum_i\Delta_i (Lattimore & Szepesvári, Theorem 9.1). The analysis replaces the union bound over counts by a maximal inequality, Pr⁡(∃s≤n: Ss≥ε)≤e−ε2/(2nσ2)\Pr(\exists s\le n:\ S_s\ge\varepsilon)\le e^{-\varepsilon^2/(2n\sigma^2)} for sums of independent σ\sigma-subgaussian variables, which follows from Doob's inequality applied to eλSse^{\lambda S_s}. An arm with more than T/KT/K pulls has no bonus at all: its average is already accurate to about K/T\sqrt{K/T}, the scale of the minimax regret per round. MOSS needs the horizon and is not asymptotically optimal; KL-UCB++ (Ménard & Garivier, 2017) is minimax optimal and asymptotically optimal at once.

Predict before you look

Compare the bounds 8KTln⁡T8\sqrt{KT\ln T} (UCB) and 39KT39\sqrt{KT} (MOSS), ignoring the additive terms. Above what value of ln⁡T\ln T is MOSS's bound the smaller one?

Show the answer

23.8

8ln⁡T>398\sqrt{\ln T}>39 when ln⁡T>(39/8)2≈23.8\ln T>(39/8)^2\approx23.8, that is T≳2×1010T\gtrsim2\times10^{10}. Removing the logarithm is a statement about rates and about the minimax constant in principle, not an improvement visible at practical horizons with these constants, which come from proofs, not from the algorithms' actual behavior.

The constant: from Hoeffding to KL

With a slightly more generous confidence level, the index μ^i+2ln⁡f(t)/Ni\hat\mu_i+\sqrt{2\ln f(t)/N_i} with f(t)=1+tln⁡2tf(t)=1+t\ln^2t, a sharper analysis shows lim sup⁡TRT/ln⁡T≤∑i2/Δi\limsup_TR_T/\ln T\le\sum_i2/\Delta_i for 1-subgaussian rewards (Lattimore & Szepesvári, Theorem 8.1). For unit-variance Gaussian arms that is exactly the Lai–Robbins constant, so this UCB is asymptotically optimal there. For Bernoulli arms, rescaled to their subgaussian constant 12\tfrac12, it gives ∑i1/(2Δi)\sum_i1/(2\Delta_i), against the Lai–Robbins ∑iΔi/kl⁡(μi,μ⋆)\sum_i\Delta_i/\operatorname{kl}(\mu_i,\mu^\star).

DerivationHow much a quadratic penalty loses
  1. kl⁡(μi,μ⋆)=Δi22μi(1−μi)+o(Δi2)⟹1/(2Δi)Δi/kl⁡(μi,μ⋆) ≈ 14μi(1−μi)\operatorname{kl}(\mu_i,\mu^\star)=\frac{\Delta_i^2}{2\mu_i(1-\mu_i)}+o(\Delta_i^2)\qquad\Longrightarrow\qquad\frac{1/(2\Delta_i)}{\Delta_i/\operatorname{kl}(\mu_i,\mu^\star)}\ \approx\ \frac{1}{4\mu_i(1-\mu_i)}

    Pinsker's inequality for Bernoulli distributions, kl⁡(p,q)≥2(p−q)2\operatorname{kl}(p,q)\ge2(p-q)^2, gives Δi/kl⁡(μi,μ⋆)≤1/(2Δi)\Delta_i/\operatorname{kl}(\mu_i,\mu^\star)\le1/(2\Delta_i) term by term: a Hoeffding-based index is never better than the lower bound allows, as it must be. A second-order expansion shows how far it can be from it:

  2. Hoeffding's inequality uses the worst variance in [0,1][0,1], 14\tfrac14, while the Bernoulli divergence uses the actual variance μ(1−μ)\mu(1-\mu). Near μ=12\mu=\tfrac12 the two agree; for arms near 0 or 1 the quadratic penalty explores far more than needed. On the arms 0.9, 0.7, 0.5, 0.3, 0.1, the Lai–Robbins constant is 3.12, a Hoeffding index tuned to σ=12\sigma=\tfrac12 achieves about 5.21, and UCB1's bonus, which is tuned to σ=1\sigma=1, about ∑i2/Δi≈20.8\sum_i2/\Delta_i\approx20.8.

Predict before you look

An arm has average μ^=0.1\hat\mu=0.1 after n=100n=100 pulls, and the confidence budget is ln⁡f≈6.9\ln f\approx6.9. Its KL-UCB index is the largest qq with 100 kl⁡(0.1,q)≤6.9100\,\operatorname{kl}(0.1,q)\le6.9. What is it, approximately? (A Hoeffding index with σ=12\sigma=\tfrac12 would give 0.1+6.9/200≈0.290.1+\sqrt{6.9/200}\approx0.29.)

Show the answer

0.246

Solving kl⁡(0.1,q)=0.069\operatorname{kl}(0.1,q)=0.069 gives q≈0.246q\approx0.246. The divergence knows that an arm averaging 0.1 has small variance, so its plausible range is narrower than the worst-case Hoeffding range, and KL-UCB spends fewer pulls ruling it out.

Average μ^\hat\mu (100 pulls, budget 6.9)KL-UCBHoeffding, σ=12\sigma=\tfrac12UCB1-style, 2⋅6.9/100\sqrt{2\cdot6.9/100}
0.10.2460.2860.472
0.50.6800.6860.872
0.90.9761.0861.272
Near 12\tfrac12 KL-UCB and the correctly scaled Hoeffding index almost coincide; near the boundaries KL-UCB is much tighter, and it never claims a mean above 1.

KL-UCB attains the Lai–Robbins constant

DerivationProof sketch: two counting lemmas
  1. Ni(T) ≤ τ+κ,κ=∑s=1T1{s kl⁡(μ^i,s,μ⋆−ε2)≤ln⁡f(T)}N_i(T)\ \le\ \tau+\kappa,\qquad\kappa=\sum_{s=1}^T\mathbf 1\Big\{s\,\operatorname{kl}\big(\hat\mu_{i,s},\mu^\star-\varepsilon_2\big)\le\ln f(T)\Big\}

    Let arm 1 be optimal and fix ε1,ε2\varepsilon_1,\varepsilon_2. A pull of arm ii at round tt needs Ui(t)≥U1(t)U_i(t)\ge U_1(t), so either the optimal arm's index is low, U1(t)<μ⋆−ε2U_1(t)<\mu^\star-\varepsilon_2, or arm ii's index is high, Ui(t)≥μ⋆−ε2U_i(t)\ge\mu^\star-\varepsilon_2. Let τ\tau be the first round after which the optimal arm's index never drops below μ⋆−ε2\mu^\star-\varepsilon_2, and κ\kappa the number of sample sizes ss at which arm ii's index can still reach that level:

  2. E[τ] ≤ 2ε22\E[\tau]\ \le\ \frac{2}{\varepsilon_2^2}

    The optimal arm is rarely too pessimistic (Lemma 10.7). A union bound over sample counts and Chernoff's bound for Bernoulli averages give Pr⁡(τ>t)≤1/(2f(t)ε22)\Pr(\tau>t)\le1/(2f(t)\varepsilon_2^2). The choice f(t)=1+tln⁡2tf(t)=1+t\ln^2t makes ∫dt/f(t)\int dt/f(t) finite, so the tail integrates to

  3. E[κ] ≤ ln⁡f(T)kl⁡(μi+ε1,μ⋆−ε2)+12ε12\E[\kappa]\ \le\ \frac{\ln f(T)}{\operatorname{kl}(\mu_i+\varepsilon_1,\mu^\star-\varepsilon_2)}+\frac{1}{2\varepsilon_1^2}

    The suboptimal arm's index sinks (Lemma 10.8). For a sample size ss to count in κ\kappa, either its average is unusually high, μ^i,s≥μi+ε1\hat\mu_{i,s}\ge\mu_i+\varepsilon_1, which has total expected count at most ∑se−skl⁡(μi+ε1,μi)≤1/(2ε12)\sum_se^{-s\operatorname{kl}(\mu_i+\varepsilon_1,\mu_i)}\le1/(2\varepsilon_1^2) by Chernoff and Pinsker, or ss is small:

  4. Add the two, multiply by Δi\Delta_i and sum over arms for the finite-time bound. Divide by ln⁡T\ln T (note ln⁡f(T)∼ln⁡T\ln f(T)\sim\ln T), let T→∞T\to\infty and then ε1,ε2→0\varepsilon_1,\varepsilon_2\to0; continuity of kl⁡\operatorname{kl} gives the Lai–Robbins constant. The same two-lemma structure, an optimistic optimal arm and a sinking suboptimal one, recurs in the analysis of Thompson sampling.

Key takeaways

  • UCB with δ=1/T2\delta=1/T^2 pulls each suboptimal arm at most 3+16ln⁡T/Δi23+16\ln T/\Delta_i^2 times in expectation: on a good event the optimal arm is never underestimated and arm ii's index sinks below μ⋆\mu^\star after uiu_i pulls, and a union bound over sample counts controls the rest.
  • Splitting arms at a threshold gap gives the worst-case bound 8KTln⁡T+3∑iΔi8\sqrt{KT\ln T}+3\sum_i\Delta_i; MOSS's count-dependent confidence level removes the logarithm, reaching 39KT39\sqrt{KT}.
  • Hoeffding-based indices pay for the worst variance 14\tfrac14: their asymptotic constant exceeds Lai–Robbins by a factor of about 1/(4μi(1−μi))1/(4\mu_i(1-\mu_i)), large near 0 or 1.
  • KL-UCB's index max⁡{q:Nikl⁡(μ^i,q)≤ln⁡f(t)}\max\{q:N_i\operatorname{kl}(\hat\mu_i,q)\le\ln f(t)\} attains lim sup⁡RT/ln⁡T=∑iΔi/kl⁡(μi,μ⋆)\limsup R_T/\ln T=\sum_i\Delta_i/\operatorname{kl}(\mu_i,\mu^\star), the Lai–Robbins constant, through two counting lemmas.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

In the proof of Theorem 7.1, what does the choice δ=1/T2\delta=1/T^2 achieve?

  1. It keeps every index below 1
  2. It makes the bonus vanish at the horizon
  3. It makes the contribution of the optimal arm's failures, T⋅TδT\cdot T\delta, at most a constant
  4. Nothing specific: any δ≤1/T\delta\le1/T gives the same bound
Show the answer

C. It makes the contribution of the optimal arm's failures, T⋅TδT\cdot T\delta, at most a constant

The union bound over TT possible sample counts gives failure probability TδT\delta, and a failure can cost up to TT pulls, so the term is T⋅TδT\cdot T\delta. With δ=1/T2\delta=1/T^2 it is 1; with δ=1/T\delta=1/T it would be TT, destroying the bound.

Question 2

MOSS gives no bonus at all to an arm that has more than T/KT/K pulls. Why is that safe?

  1. Because its average is then accurate to about K/T\sqrt{K/T}, the scale of the minimax regret per round, so further optimism cannot pay for itself in the worst case
  2. Because such an arm must be optimal
  3. Because the arm has been eliminated
  4. Because the union bound no longer applies
Show the answer

A. Because its average is then accurate to about K/T\sqrt{K/T}, the scale of the minimax regret per round, so further optimism cannot pay for itself in the worst case

An arm pulled T/KT/K times has an average with error about K/T\sqrt{K/T}; mistakes of that size cost K/T\sqrt{K/T} per round, about KT\sqrt{KT} over the horizon, which is already the minimax rate. Exploring it further would only add regret without improving the worst-case guarantee.

Question 3

Two Bernoulli arms have means 0.1 (best) and 0.05. About how many times larger is the asymptotic constant of a Hoeffding-based index tuned to σ=12\sigma=\tfrac12, 1/(2Δ)1/(2\Delta), than the Lai–Robbins constant Δ/kl⁡(0.05,0.1)\Delta/\operatorname{kl}(0.05,0.1)? (Here kl⁡(0.05,0.1)≈0.0167\operatorname{kl}(0.05,0.1)\approx0.0167.)

  1. About 1: they agree
  2. About 10
  3. About 0.3
  4. About 3.3
Show the answer

D. About 3.3

1/(2×0.05)=101/(2\times0.05)=10, while 0.05/0.0167≈3.00.05/0.0167\approx3.0: a ratio of about 3.3. Hoeffding's bound assumes the worst variance 14\tfrac14, but a Bernoulli arm near 0 has variance about 0.050.05, so its plausible range is much narrower than the Hoeffding index assumes.

Question 4

Why can the KL-UCB index of a Bernoulli arm never exceed 1, while a Hoeffding index can?

  1. Because KL-UCB clips its index at 1 by an explicit rule
  2. Because the index is defined as the largest Bernoulli mean q∈[0,1]q\in[0,1] consistent with the data at the given budget
  3. Because the divergence is symmetric
  4. Because KL-UCB uses fewer samples
Show the answer

B. Because the index is defined as the largest Bernoulli mean q∈[0,1]q\in[0,1] consistent with the data at the given budget

KL-UCB optimizes over the actual parameter space of the model, so it only ever proposes plausible Bernoulli means. A Hoeffding index adds a width designed for any distribution in [0,1][0,1] and can exceed 1, which is optimism no Bernoulli arm can justify.

Further reading

  • P. Auer, N. Cesa-Bianchi & P. Fischer, "Finite-time analysis of the multiarmed bandit problem," Machine Learning 47, 235–256 (2002).
  • A. Garivier & O. Cappé, "The KL-UCB algorithm for bounded stochastic bandits and beyond," Conference on Learning Theory (2011).
  • O. Cappé, A. Garivier, O.-A. Maillard, R. Munos & G. Stoltz, "Kullback–Leibler upper confidence bounds for optimal sequential allocation," Annals of Statistics 41(3), 1516–1541 (2013).
  • J.-Y. Audibert & S. Bubeck, "Minimax policies for adversarial and stochastic bandits," Conference on Learning Theory (2009).
  • T. Lattimore & C. Szepesvári, Bandit Algorithms, ch. 7–10 (Cambridge University Press, 2020).