Stochastic Processes, Markov Chains, and Stochastic Bandits

Existence of infinite sequences of random variables (Borel spaces, the binary-digit construction, projective families); probability kernels, product kernels and the Ionescu–Tulcea theorem; homogeneous Markov chains; filtrations, martingales, super- and submartingales, stopping times and the stopped σ-algebra; Doob's optional stopping theorem and the maximal inequality for nonnegative supermartingales; regular conditional distributions and disintegration. Then the formal stochastic bandit model; the learning objective and why expected reward is a choice; unstructured and structured environment classes; regret, its basic properties, sublinear and instance-dependent targets, and Bayesian regret; the regret decomposition into gaps times expected pulls; the canonical bandit model, its uniqueness, the random-table and reward-stack models; uncountable action sets; risk, pseudo-regret, mixing policies, and the failure of follow-the-leader.

· 32 min read · 6,376 words

Corresponds to Lattimore & Szepesvári, Chapters 3–4.

Motivation: from i.i.d. trials to adaptive interaction

The probability notes so far mostly handle independent trials, plus one specific dependent process, the Poisson process. A bandit algorithm breaks independence by design. Its tt-th choice depends on every reward seen so far, so the sequence of actions and rewards is a stochastic process adapted to a growing history, not an i.i.d. sample.

QuestionTool
Does an infinite sequence with given joint laws even exist?Borel spaces, projective families, Ionescu–Tulcea
How do we describe “the next state is drawn given the current one”?Probability kernels, Markov chains
How do we reason about quantities whose mean is preserved (or eroded) over time?Martingales
Can a data-dependent decision about when to stop beat a fair game?Stopping times, Doob’s optional stopping
What exactly is a bandit, a policy, and a measure of performance?The canonical bandit model, regret

IntuitionThe central questions

What does it take, mathematically, for “an agent interacts with an unknown random environment for nn rounds” to be a well-defined random experiment? And what single number should judge how well the agent did?

NoteOptional on first reading

The book marks Chapter 3, and Sections 4.6–4.7 (the canonical model), as skippable. Their job is to guarantee that the objects used everywhere else exist and are well defined. The two results used constantly later are the regret decomposition and optional stopping / the maximal inequality.


Existence of infinite sequences

The problem. Writing “let (Xn)n=1∞(X_n)_{n=1}^\infty be independent standard Gaussians” assumes there is some probability space carrying infinitely many such variables. With finitely many variables, product measures settle this. With infinitely many, it needs an argument.

DefinitionIsomorphic measurable spaces; Borel space

(X,F)(\mathcal X,\mathcal F) and (Y,G)(\mathcal Y,\mathcal G) are isomorphic if there is a bijection f:X→Yf:\mathcal X\to\mathcal Y with ff F/G\mathcal F/\mathcal G-measurable and f−1f^{-1} G/F\mathcal G/\mathcal F-measurable. A Borel space is a measurable space isomorphic to (A,B(A))(A,\mathfrak B(A)) for some Borel set A∈B(R)A\in\mathfrak B(\mathbb R).

RemarkNot a strong assumption

(Rn,B(Rn))(\mathbb R^n,\mathfrak B(\mathbb R^n)) is a Borel space, as is every measurable subset of it. Every Polish space (separable and completely metrizable) is Borel. Some authors say “standard Borel space” and define it through Polish spaces. Nothing in the book needs a non-Borel space.

TheoremTheorem 3.1 — i.i.d. sequences exist on the unit interval

Let μ\mu be a probability measure on a Borel space S\mathcal S, and λ\lambda Lebesgue measure on ([0,1],B([0,1]))([0,1],\mathfrak B([0,1])). There are independent random elements X1,X2,…X_1,X_2,\ldots on ([0,1],B([0,1]),λ)([0,1],\mathfrak B([0,1]),\lambda) with law λXt=μ\lambda_{X_t} = \mu for every tt.

ProofSketch: reshuffle the binary digits of a uniform number (case μ\mu = uniform)

Step 1: Digits of a uniform number are fair coin flips. Write x=∑t≥1Ft(x)2−tx = \sum_{t\ge1}F_t(x)2^{-t} (binary expansion). Under λ\lambda, each FtF_t is Bernoulli(12)(\frac12), and F1,F2,…F_1,F_2,\ldots are independent. Fixing the first tt digits pins xx to an interval of length 2−t2^{-t}.

Step 2: Deal the digits into infinitely many rows. Arrange the digits in a triangular grid, traversing anti-diagonals:

col 1col 2col 3col 4
row 1F1F_1F2F_2F4F_4F7F_7
row 2F3F_3F5F_5F8F_8⋯
row 3F6F_6F9F_9⋯
row 4F10F_{10}⋯

Let Xm,tX_{m,t} be the tt-th entry of row mm.

Step 3: Reassemble each row into a uniform number. Xm=∑t≥12−tXm,tX_m = \sum_{t\ge1}2^{-t}X_{m,t}. Each row is an independent fair-bit sequence, so XmX_m is uniform. Different rows use disjoint digits, so the XmX_m are independent.

General μ\mu on a Borel space: push each uniform XmX_m through a measurable map with law μ\mu (inverse CDF, composed with the isomorphism). The missing details are Exercise 3.1.

∎

IntuitionOne uniform number holds infinitely many

A single draw from [0,1][0,1] contains infinitely many independent fair bits, which is enough randomness for infinitely many independent uniforms. Compare the probability integral transform: a uniform’s binary digits are incompressible fair bits.

Stochastic processes and projective families

DefinitionStochastic process

A collection {Xt:t∈T}\{X_t : t\in T\} of random variables on one probability space (Ω,F,P)(\Omega,\mathcal F,\mathbb P). In this book TT is always countable, and usually T=NT = \mathbb N.

TheoremTheorem 3.2 — Existence from consistent finite-dimensional laws (Daniell)

For each n∈N+n\in\mathbb N^+ let (Ωn,Fn)(\Omega_n,\mathcal F_n) be a Borel space and μn\mu_n a probability measure on Ω1×⋯×Ωn\Omega_1\times\cdots\times\Omega_n, with the projective (consistency) condition

μn+1(A×Ωn+1)=μn(A)for all measurable A⊆Ω1×⋯×Ωn(3.1)\mu_{n+1}(A\times\Omega_{n+1}) = \mu_n(A)\qquad\text{for all measurable } A\subseteq\Omega_1\times\cdots\times\Omega_n \tag{3.1}

Then there are a probability space and random elements Xt:Ω→ΩtX_t:\Omega\to\Omega_t with PX1,…,Xn=μn\mathbb P_{X_1,\ldots,X_n} = \mu_n for every nn.

IntuitionConsistent snapshots glue into a whole

Condition (3.1) says the law of the first nn coordinates, read off from the (n+1)(n+1)-coordinate law by ignoring the last coordinate, is μn\mu_n. If every finite-length snapshot agrees with the next one, there is one infinite process whose snapshots they all are. The general version is Kolmogorov’s extension theorem.

CorollaryTheorem 3.1 again

Take μn=μ⊗n\mu_n = \mu^{\otimes n}, the nn-fold product. It is obviously projective, so Theorem 3.2 delivers an i.i.d. sequence.


Probability kernels and Markov chains

DefinitionProbability (Markov) kernel

A probability kernel from (X,F)(\mathcal X,\mathcal F) to (Y,G)(\mathcal Y,\mathcal G) is a map K:X×G→[0,1]K:\mathcal X\times\mathcal G\to[0,1] such that

  1. K(x,⋅)K(x,\cdot) is a probability measure for every xx, and
  2. K(⋅,A)K(\cdot,A) is F\mathcal F-measurable for every A∈GA\in\mathcal G.

Equivalent notations: K(x,A)=K(A∣x)=Kx(A)K(x,A) = K(A\mid x) = K_x(A).

ComponentDetail
SignatureK:X×G→[0,1]K:\mathcal X\times\mathcal G\to[0,1]
First argumentThe current state xx.
Second argumentAn event AA in the next space.
OutputThe probability the next element lands in AA, given xx.
Finite-state special caseA transition matrix, K(i,{j})=PijK(i,\{j\}) = P_{ij} (Markov chains)
Statistics readingA parametric family {Pθ}\{P_\theta\} is a kernel from Θ\Theta. A Bayesian posterior P(⋅∣x)P(\cdot\mid x) is a kernel from observations to parameters.

IntuitionA kernel is a randomized function

A function maps xx to one yy. A kernel maps xx to a distribution over yy, and the next value is sampled Y∼K(x,⋅)Y\sim K(x,\cdot). Condition 2 just says that “how likely is AA” depends measurably on where you start.

DefinitionComposing kernels

  • Measure ⊗ kernel: for a measure PP on X\mathcal X and a kernel KK from X\mathcal X to Y\mathcal Y, (P⊗K)(A)=∫X∫YIA((x,y)) K(x,dy) dP(x)(P\otimes K)(A) = \int_{\mathcal X}\int_{\mathcal Y}\mathbb I_A((x,y))\,K(x,dy)\,dP(x) is a measure on X×Y\mathcal X\times\mathcal Y: draw x∼Px\sim P, then y∼K(x,⋅)y\sim K(x,\cdot).
  • Kernel ⊗ kernel: (K1⊗K2)(x,A)=∫Y∫ZIA((y,z)) K2(y,dz) K1(x,dy)(K_1\otimes K_2)(x,A) = \int_{\mathcal Y}\int_{\mathcal Z}\mathbb I_A((y,z))\,K_2(y,dz)\,K_1(x,dy) is a kernel from X\mathcal X to Y×Z\mathcal Y\times\mathcal Z.
  • Chaining: if K2K_2 goes from X×Y\mathcal X\times\mathcal Y to Z\mathcal Z, then P⊗K1⊗K2P\otimes K_1\otimes K_2 is a probability measure on X×Y×Z\mathcal X\times\mathcal Y\times\mathcal Z. Each stage may depend on the whole history.

TheoremTheorem 3.3 — Ionescu–Tulcea

Let (Ωn,Fn)n≥1(\Omega_n,\mathcal F_n)_{n\ge1} be measurable spaces, K1K_1 a probability measure on Ω1\Omega_1, and for n≥2n\ge2 let KnK_n be a kernel from ∏t<nΩt\prod_{t<n}\Omega_t to Ωn\Omega_n. Then there are a probability space and random elements Xt:Ω→ΩtX_t:\Omega\to\Omega_t with

PX1,…,Xn=⨂t=1nKtfor all n\mathbb P_{X_1,\ldots,X_n} = \bigotimes_{t=1}^nK_t\qquad\text{for all } n

ImportantWhy bandits need Ionescu–Tulcea

A bandit interaction is exactly a chain of kernels: the policy picks an action given the history, then the environment draws a reward given the action, then the policy picks again, and so on. Ionescu–Tulcea says such a history-dependent chain defines a genuine infinite random process. Unlike Theorem 3.2, it needs no Borel assumption.

DefinitionHomogeneous Markov chain

A sequence (Xt)t≥1(X_t)_{t\ge1} in a state space (X,F)(\mathcal X,\mathcal F) with X1∼μ0X_1\sim\mu_0 and

P(Xt+1∈⋅∣X1,…,Xt)=P(Xt+1∈⋅∣Xt)=μ(Xt,⋅)almost surely\mathbb P(X_{t+1}\in\cdot\mid X_1,\ldots,X_t) = \mathbb P(X_{t+1}\in\cdot\mid X_t) = \mu(X_t,\cdot)\quad\text{almost surely}

for one fixed kernel μ\mu from X\mathcal X to itself. Given the present, the past is irrelevant for predicting the future.

RemarkThree small points

  • “Homogeneous” means the kernel doesn’t change with tt. A time-varying kernel is a cosmetic generalization: add the time to the state.
  • I.i.d. is a Markov chain: if μ(x,⋅)=μ0\mu(x,\cdot) = \mu_0 for all xx, Ionescu–Tulcea gives yet another construction of i.i.d. sequences.
  • Terminology: the book says “Markov chain” for any state space in discrete time. Some authors reserve “process” for uncountable state spaces; everyone says “process” for continuous time.

NoteWhat Markov-chain theory studies

The central questions concern long-run behaviour: does the law of XtX_t converge to a fixed distribution, and how fast? The book defers this to Chapters 37–38 (finite state spaces). For the information-theoretic view of finite chains, see stationary distributions.


Martingales and stopping times

DefinitionMartingale, supermartingale, submartingale

Let F=(Ft)t\mathbb F = (\mathcal F_t)_t be a filtration and (Xt)(X_t) an F\mathbb F-adapted sequence (XtX_t is Ft\mathcal F_t-measurable). Then (Xt)(X_t) is an F\mathbb F-martingale if

  1. every XtX_t is integrable, and
  2. E[Xt∣Ft−1]=Xt−1\mathbb E[X_t\mid\mathcal F_{t-1}] = X_{t-1} almost surely for all t≥2t\ge2.

With ≤\le in place of == it is a supermartingale; with ≥\ge, a submartingale. The index often starts at t=0t = 0.

ProcessConditional driftReads as
MartingaleE[Xt∣Ft−1]=Xt−1\mathbb E[X_t\mid\mathcal F_{t-1}] = X_{t-1}A fair game.
Supermartingale≤Xt−1\le X_{t-1}Unfavourable to the gambler.
Submartingale≥Xt−1\ge X_{t-1}Favourable to the gambler.

IntuitionThe names favour the casino

“Super” is the casino’s view: a supermartingale is a game that is super for the house. A useful mental model: Ft\mathcal F_t is everything known at time tt, and a martingale is a quantity whose best forecast of tomorrow is today’s value.

ExampleExample 3.5 — Fair coin winnings

Y1,Y2,…Y_1,Y_2,\ldots are independent Rademacher variables (P(Yt=±1)=12\mathbb P(Y_t = \pm1) = \frac12), St=∑s≤tYsS_t = \sum_{s\le t}Y_s, and Ft=σ(Y1,…,Yt)\mathcal F_t = \sigma(Y_1,\ldots,Y_t). Then E[St∣Ft−1]=St−1+E[Yt]=St−1\mathbb E[S_t\mid\mathcal F_{t-1}] = S_{t-1} + \mathbb E[Y_t] = S_{t-1}, so the winnings are a martingale.

RemarkA martingale we’ve already met

In the portfolio note, the ratio of any causal investor’s wealth to the log-optimal investor’s, Sn/Sn∗S_n/S_n^*, is a positive supermartingale. That is exactly the statement that no strategy expects to gain on the log-optimal one.

Stopping times

The question. Can a gambler turn a fair game into a profitable one by choosing cleverly when to stop? At the end of round tt they set δt=1\delta_t = 1 (stop) or 00 (continue) using only what they have seen, and stop at τ=min⁡{t:δt=1}\tau = \min\{t:\delta_t = 1\}.

DefinitionStopping time; stopped σ-algebra (Def. 3.6)

A random variable τ\tau with values in N∪{∞}\mathbb N\cup\{\infty\} is an F\mathbb F-stopping time if I{τ≤t}\mathbb I\{\tau\le t\} is Ft\mathcal F_t-measurable for all tt. The information at time τ\tau is

Fτ={A∈F∞:A∩{τ≤t}∈Ft for all t}\mathcal F_\tau = \{A\in\mathcal F_\infty : A\cap\{\tau\le t\}\in\mathcal F_t\ \text{for all } t\}

ComponentDetail
Signatureτ:Ω→N∪{∞}\tau:\Omega\to\mathbb N\cup\{\infty\}
RequirementWhether you have stopped by time tt is decided by time-tt information.
ForbiddenPeeking at the future, and injecting outside randomness beyond what F\mathbb F contains.
∞\infty allowedThe book lets τ=∞\tau = \infty with positive probability. Some authors require τ<∞\tau < \infty a.s. and call the general version a Markov time. Also called optional times.

ExampleExample 3.7 — Which rules are stopping times

  • τ=min⁡{t:St=100}\tau = \min\{t : S_t = 100\} (“stop when up $100”) is a stopping time: you know when you hit 100.
  • τ=min⁡{t:St+1=−1}\tau = \min\{t : S_{t+1} = -1\} (“stop just before losing”) is not: it needs tomorrow’s result.

NoteProperties of Fτ\mathcal F_\tau (Exercise 3.7)

Fτ\mathcal F_\tau is a σ-algebra. If τ≡k\tau\equiv k then Fτ=Fk\mathcal F_\tau = \mathcal F_k. If τ1≤τ2\tau_1\le\tau_2 then Fτ1⊆Fτ2\mathcal F_{\tau_1}\subseteq\mathcal F_{\tau_2}. τ\tau is Fτ\mathcal F_\tau-measurable. For adapted (Xt)(X_t), XτX_\tau is Fτ\mathcal F_\tau-measurable, and Fτ\mathcal F_\tau is the smallest σ-algebra with this property for all adapted sequences. Limits of increasing stopping times are stopping times (Exercise 3.6).

TheoremTheorem 3.8 — Doob’s optional stopping

Let (Xt)t∈N(X_t)_{t\in\mathbb N} be an F\mathbb F-martingale and τ\tau an F\mathbb F-stopping time, with at least one of:

  1. bounded time: P(τ>n)=0\mathbb P(\tau > n) = 0 for some nn;
  2. finite mean time, bounded increments: E[τ]<∞\mathbb E[\tau] < \infty and E[∣Xt+1−Xt∣∣Ft]≤c\mathbb E[|X_{t+1} - X_t|\mid\mathcal F_t]\le c a.s. on {τ>t}\{\tau > t\};
  3. bounded stopped process: ∣Xt∧τ∣≤c|X_{t\wedge\tau}|\le c a.s. for all tt.

Then XτX_\tau is a.s. well defined and E[Xτ]=E[X0]\mathbb E[X_\tau] = \mathbb E[X_0]. For a super- or submartingale, the equality becomes ≤\le or ≥\ge respectively.

ImportantYou can’t beat a fair game by stopping cleverly

If SτS_\tau is well defined, then either E[τ]=∞\mathbb E[\tau] = \infty or E[Sτ]=0\mathbb E[S_\tau] = 0. “Gamblers trying to outsmart the casino would need to live a very long life.”

ExampleThe conditions can’t be dropped: doubling bets (Exercise 3.2)

Let St=∑s≤tXs2s−1S_t = \sum_{s\le t}X_s2^{s-1} with XsX_s Rademacher, so the stake doubles each round. This is a martingale. Stop at τ=min⁡{t:St=1}\tau = \min\{t : S_t = 1\}. If the first win comes at round tt, then St=2t−1−(2t−1−1)=1S_t = 2^{t-1} - (2^{t-1} - 1) = 1. So τ\tau is Geometric(12)(\frac12): finite, with Eτ=2\mathbb E\tau = 2. Yet E[Sτ]=1≠0=E[S0]\mathbb E[S_\tau] = 1\ne0 = \mathbb E[S_0]. There’s no contradiction: the increments 2t2^t are unbounded (condition 2 fails), and the stopped process can sink arbitrarily low before recovering (condition 3 fails). This is the martingale (“double after a loss”) betting system, and it needs unlimited credit. (Worked here; the book leaves it as an exercise.)

ExampleGambler’s ruin, the martingale way

Start a fair ±1\pm1 walk at ii and stop at τ\tau, the first time it hits 0 or NN. The stopped walk stays in [0,N][0,N], so condition 3 holds and E[Sτ]=i\mathbb E[S_\tau] = i. But Sτ∈{0,N}S_\tau\in\{0,N\}, so N⋅P(reach N)=iN\cdot\mathbb P(\text{reach } N) = i, i.e. P(reach N)=i/N\mathbb P(\text{reach }N) = i/N. This matches the p=12p = \frac12 case of first-step analysis with no recursion. (Not in the book.)

The maximal inequality

TheoremTheorem 3.9 — Maximal inequality for nonnegative supermartingales

If (Xt)t≥0(X_t)_{t\ge0} is a supermartingale with Xt≥0X_t\ge0 a.s., then for any ε>0\varepsilon > 0,

P(sup⁡t∈NXt≥ε)≤E[X0]ε\mathbb P\Big(\sup_{t\in\mathbb N}X_t\ge\varepsilon\Big)\le\frac{\mathbb E[X_0]}\varepsilon

ProofStop at the first crossing, then apply optional stopping

Step 1: A bounded stopping time. Let An={sup⁡t≤nXt≥ε}A_n = \{\sup_{t\le n}X_t\ge\varepsilon\} and τ=(n+1)∧min⁡{t≤n:Xt≥ε}\tau = (n+1)\wedge\min\{t\le n : X_t\ge\varepsilon\}, with τ=n+1\tau = n+1 if there is no crossing. Then τ≤n+1\tau\le n+1 surely, so condition 1 applies.

Step 2: Optional stopping, then drop the no-crossing part.

E[X0]≥E[Xτ]≥E[XτI{τ≤n}]≥E[ε I{τ≤n}]=ε P(An)\mathbb E[X_0]\ge\mathbb E[X_\tau]\ge\mathbb E[X_\tau\mathbb I\{\tau\le n\}]\ge\mathbb E[\varepsilon\,\mathbb I\{\tau\le n\}] = \varepsilon\,\mathbb P(A_n)

The second inequality uses X≥0X\ge0. The third holds because at a crossing time Xτ≥εX_\tau\ge\varepsilon.

Step 3: Let n→∞n\to\infty. The AnA_n increase to {sup⁡tXt≥ε}\{\sup_tX_t\ge\varepsilon\}, so continuity of probability finishes it.

∎

IntuitionMarkov’s inequality for the whole path, for free

Markov’s inequality plus the supermartingale property bound one time: P(Xn≥ε)≤E[X0]/ε\mathbb P(X_n\ge\varepsilon)\le\mathbb E[X_0]/\varepsilon (3.2). The maximal inequality bounds the chance of ever crossing, at no extra cost. The proof is Markov’s inequality applied to XτX_\tau, with optional stopping supplying the expectation. It is what makes “with probability 1−δ1-\delta, at all times simultaneously” statements possible, which matters for anytime-valid confidence bounds later.

WarningNonnegativity is essential (Exercise 3.4)

Without Xt≥0X_t\ge0, the bound fails for supermartingales in general.

TheoremTheorem 3.10 — Submartingale version

If (Xt)t=0n(X_t)_{t=0}^n is a submartingale with Xt≥0X_t\ge0, then P(max⁡t≤nXt≥ε)≤E[Xn]ε\mathbb P\big(\max_{t\le n}X_t\ge\varepsilon\big)\le\frac{\mathbb E[X_n]}\varepsilon. The bound uses the last value rather than the first (the proof is Exercise 3.8).

Conditional distributions done properly

WarningConditional expectations are only unique almost surely

For each fixed event AA, P(X∈A∣Y)\mathbb P(X\in A\mid Y) is determined only up to a null set, and that null set may depend on AA. With uncountably many AA‘s, the exceptions can pile up, so A↦P(X∈A∣Y)A\mapsto\mathbb P(X\in A\mid Y) need not be a measure for any particular outcome.

TheoremTheorem 3.11 — Regular conditional distributions exist

If XX takes values in a Borel space, there is a probability kernel KK from the space of YY to that of XX with K(⋅∣Y)=P(X∈⋅∣Y)K(\cdot\mid Y) = \mathbb P(X\in\cdot\mid Y) almost surely. It is unique up to a PY\mathbb P_Y-null set of yy‘s. Write PX∣Y\mathbb P_{X\mid Y} for KK. Then

PX,Y=PY⊗PX∣Y\mathbb P_{X,Y} = \mathbb P_Y\otimes\mathbb P_{X\mid Y}

This is the chain rule for probability measures, the converse of Ionescu–Tulcea. Borel is sufficient but not necessary; Halmos gives an example where no regular version exists.

TheoremTheorem 3.12 — Disintegration

If KK is a regular version of P(X∈⋅∣G)\mathbb P(X\in\cdot\mid\mathcal G), YY is G\mathcal G-measurable, and E∣f(X,Y)∣<∞\mathbb E|f(X,Y)| < \infty, then

E[f(X,Y)∣G]=∫Xf(x,Y) K(dx∣⋅)a.s.\mathbb E[f(X,Y)\mid\mathcal G] = \int_{\mathcal X}f(x,Y)\,K(dx\mid\cdot)\quad\text{a.s.}

With G=σ(Y)\mathcal G = \sigma(Y): to average f(X,Y)f(X,Y) given YY, freeze YY and integrate xx against the conditional law. This is the measure-theoretic version of conditional LOTUS.


Stochastic bandits: core assumptions

DefinitionStochastic bandit

A stochastic bandit is a collection of reward distributions ν=(Pa:a∈A)\nu = (P_a : a\in\mathcal A), one per action (arm) in the action set A\mathcal A.

flowchart LR
  L["Learner (policy)"] -->|"action A_t"| E["Environment nu"]
  E -->|"reward X_t drawn from P_A_t"| L
  L --> H["History A1 X1 ... At Xt feeds the next choice"]

DefinitionThe interaction protocol

Over nn rounds (possibly n=∞n = \infty), the learner picks At∈AA_t\in\mathcal A, and the environment returns Xt∈RX_t\in\mathbb R. The outcomes must satisfy:

  1. Environment: the conditional law of XtX_t given A1,X1,…,At−1,Xt−1,AtA_1,X_1,\ldots,A_{t-1},X_{t-1},A_t is PAtP_{A_t}. The reward depends only on the arm pulled now.
  2. Learner: the conditional law of AtA_t given A1,X1,…,At−1,Xt−1A_1,X_1,\ldots,A_{t-1},X_{t-1} is πt(⋅∣A1,X1,…,At−1,Xt−1)\pi_t(\cdot\mid A_1,X_1,\ldots,A_{t-1},X_{t-1}), for a sequence of kernels π1,π2,…\pi_1,\pi_2,\ldots called the policy. The learner can’t see the future.

IntuitionTwo kernels taking turns

The policy is a kernel from the history to actions; the environment is a kernel from actions to rewards. Their alternation is exactly the setting of Ionescu–Tulcea, which is why a joint law on A1,X1,A2,X2,…A_1,X_1,A_2,X_2,\ldots exists (The canonical bandit model).


The learning objective

The learner wants a large total reward Sn=∑t=1nXtS_n = \sum_{t=1}^nX_t. This is not yet an optimization problem, for three reasons:

ObstacleResolution
Unknown horizon nnUsually mild: design for known nn, then convert generically (e.g. the doubling trick) with little loss.
SnS_n is random, so “maximize” needs a utility on distributionsDefault: maximize E[Sn]\mathbb E[S_n] (risk-neutral). Variance and tails come up occasionally.
The reward distributions are unknownThe real heart of the bandit problem: Knowledge and environment classes.

ExampleExpected value is a choice, not a law of nature

Learner B has a higher mean revenue than learner A, but a real chance of earning less than A’s worst outcome. A risk-averse company might prefer A. The book’s default is the expected value.

RemarkRisk and utility

  • Prescriptive theory: the von Neumann–Morgenstern axioms say a rational (self-consistent) decision maker maximizes expected utility, so decision makers differ only in their utility functions.
  • Descriptive theory: people don’t actually behave that way. Prospect theory (Kahneman–Tversky) describes how people really weigh small probabilities.
  • Finance: Markowitz rejected expected return, since maximizing it puts everything in a single stock, and proposed mean–variance portfolios. Value-at-risk and conditional value-at-risk (CVaR, favoured for its optimization properties) are relatives. Compare the log-utility argument for reinvested wealth.

Knowledge and environment classes

The problem. A policy that is optimal for one bandit can be terrible for another. What the learner knows in advance is encoded as an environment class E\mathcal E with ν∈E\nu\in\mathcal E guaranteed.

DefinitionUnstructured bandits

E\mathcal E is unstructured if A\mathcal A is finite and E=×a∈AMa\mathcal E = \times_{a\in\mathcal A}\mathcal M_a, a product of per-arm sets of distributions. Playing arm aa then reveals nothing about any other arm.

NameSymbolArms are
BernoulliEBk\mathcal E_B^kB(μi)\mathcal B(\mu_i), μ∈[0,1]k\mu\in[0,1]^k
UniformEUk\mathcal E_U^kU(ai,bi)\mathcal U(a_i,b_i), ai≤bia_i\le b_i
Gaussian, known varianceENk(σ2)\mathcal E_N^k(\sigma^2)N(μi,σ2)\mathcal N(\mu_i,\sigma^2)
Gaussian, unknown varianceENk\mathcal E_N^kN(μi,σi2)\mathcal N(\mu_i,\sigma_i^2)
Finite varianceEVk(σ2)\mathcal E_V^k(\sigma^2)any PiP_i with Var≤σ2\mathrm{Var}\le\sigma^2
Finite kurtosisEKurtk(κ)\mathcal E_{\mathrm{Kurt}}^k(\kappa)E[(X−EX)4]/Var[X]2≤κ\mathbb E[(X-\mathbb EX)^4]/\mathrm{Var}[X]^2\le\kappa
Bounded supportE[a,b]k\mathcal E_{[a,b]}^kSupp(Pi)⊆[a,b]\mathrm{Supp}(P_i)\subseteq[a,b]
SubgaussianESGk(σ2)\mathcal E_{SG}^k(\sigma^2)σ\sigma-subgaussian (concentration-of-measure-for-bandits)

DefinitionParametric versus nonparametric

A class is parametric if finitely many numbers describe each member (Bernoulli, Gaussian) and nonparametric otherwise (finite variance, subgaussian). Classes nest: Bernoulli ⊂ bounded support ⊂ subgaussian, and Bernoulli ⊂ finite variance.

IntuitionBigger classes are harder

A learner that must work for every member of a larger class has less to exploit. Much of finite-armed bandit theory quantifies exactly how much harder.

DefinitionStructured bandits

Any class that is not a product set is structured: pulling one arm can reveal information about others.

ExampleThree structured classes

  • Example 4.1 — Mirror-image arms: E={(B(θ),B(1−θ)):θ∈[0,1]}\mathcal E = \{(\mathcal B(\theta),\mathcal B(1-\theta)):\theta\in[0,1]\}. Playing either arm teaches you both means.
  • Example 4.2 — Stochastic linear bandit: A⊆Rd\mathcal A\subseteq\mathbb R^d, and arm aa pays N(⟨a,θ⟩,1)\mathcal N(\langle a,\theta\rangle,1) for an unknown θ∈Rd\theta\in\mathbb R^d. Even with a huge action set, playing dd actions that span Rd\mathbb R^d identifies θ\theta.
  • Example 4.3 — Paths through a failing graph: each edge ee survives independently with unknown probability θe\theta_e. The actions are paths from vertex 1 to vertex ∣V∣|V|, and a path pays B(∏e∈aθe)\mathcal B\big(\prod_{e\in a}\theta_e\big) (success iff every edge survives). Paths share edges, so each trial is informative about many paths. This is the series reliability model turned into a learning problem.

ImportantInformation without play

The defining feature of structured bandits: the learner can learn about an action without ever playing it.


The regret

DefinitionMeans, optimal mean, regret

μa(ν)=∫x dPa(x)\mu_a(\nu) = \int x\,dP_a(x) and μ∗(ν)=max⁡aμa(ν)\mu^*(\nu) = \max_a\mu_a(\nu). Assume all means exist and are finite, and that the argmax is nonempty. The regret of policy π\pi on ν\nu over nn rounds is

Rn(π,ν)=nμ∗(ν)−E[∑t=1nXt](4.1)R_n(\pi,\nu) = n\mu^*(\nu) - \mathbb E\Big[\sum_{t=1}^nX_t\Big] \tag{4.1}

with the expectation under the joint law induced by π\pi and ν\nu.

ComponentDetail
SignatureRn:Π×E→[0,∞)R_n : \Pi\times\mathcal E\to[0,\infty)
InputsA policy, an environment, a horizon.
OutputExpected shortfall relative to always pulling a best arm.
Equivalent toMaximizing E[Sn]\mathbb E[S_n]; the normalization just makes results readable.

LemmaLemma 4.4 — Basic properties

  1. Rn(π,ν)≥0R_n(\pi,\nu)\ge0 for every policy.
  2. The policy that always plays an arm in arg⁡max⁡aμa\arg\max_a\mu_a has Rn=0R_n = 0.
  3. If Rn(π,ν)=0R_n(\pi,\nu) = 0, then P(μAt=μ∗)=1\mathbb P(\mu_{A_t} = \mu^*) = 1 for all t≤nt\le n.

(Proof: Exercise 4.1.)

IntuitionZero regret means knowing the answer

Part 3 says regret 0 is possible only if the learner already knows an optimal arm. Every real learner pays something to find out. The question is how little.

DefinitionRegret targets, from weak to strong

TargetStatementMeaning
Sublinearlim⁡nRn(π,ν)/n=0\lim_n R_n(\pi,\nu)/n = 0 for all ν∈E\nu\in\mathcal EEventually picks an optimal arm almost every round.
Uniform polynomialRn(π,ν)≤CnpR_n(\pi,\nu)\le Cn^p for all ν\nu, some p<1p < 1 (4.2)Worst-case guarantee.
Instance-dependentRn(π,ν)≤C(ν)f(n)R_n(\pi,\nu)\le C(\nu)f(n) for all n,νn,\nu (4.3)Separates instance difficulty from horizon growth.

Both CC and ff should be as small as possible. Most of the book is about finding the achievable (C,f)(C, f) pairs.

IntuitionEvery algorithm is an estimation schedule

To keep regret small, find the best arm: play each arm enough to estimate its mean, then favour the apparent best. The whole question is how many pulls of each arm buy enough statistical certainty (explore-then-commit-and-ucb-algorithms).

DefinitionBayesian regret

Given a prior QQ on a σ-algebra over E\mathcal E,

BRn(π,Q)=∫ERn(π,ν) dQ(ν)(4.4)BR_n(\pi,Q) = \int_{\mathcal E}R_n(\pi,\nu)\,dQ(\nu) \tag{4.4}

provided RnR_n is measurable. Once the prior and horizon are fixed, minimizing it is a plain optimization problem. The book mostly studies the frequentist regret (4.1), and treats Bayesian methods in Chapters 34–36.

DefinitionRandom regret and pseudo-regret

R^n=nμ∗−∑t=1nXt(random regret),Rˉn=nμ∗−∑t=1nμAt(pseudo-regret)\hat R_n = n\mu^* - \sum_{t=1}^nX_t\quad(\text{random regret}),\qquad \bar R_n = n\mu^* - \sum_{t=1}^n\mu_{A_t}\quad(\text{pseudo-regret})

Rn=E[R^n]=E[Rˉn]R_n = \mathbb E[\hat R_n] = \mathbb E[\bar R_n]. Expectations erase randomness, so risk measures must be built on one of these random versions. The pseudo-regret filters out reward noise and so arguably measures the policy’s skill. Both are highly skewed, so variance is a poor risk summary: it penalizes upside risk and misses the skew.


Decomposing the regret

DefinitionGap and pull count

The suboptimality gap (action gap, immediate regret) of arm aa is Δa=μ∗−μa≥0\Delta_a = \mu^* - \mu_a\ge0, which is zero for optimal arms. The pull count after round tt is Ta(t)=∑s=1tI{As=a}T_a(t) = \sum_{s=1}^t\mathbb I\{A_s = a\}.

WarningPull counts are random even for deterministic policies

After round 1, AtA_t depends on the random rewards already seen, so Ta(n)T_a(n) inherits their randomness.

TheoremLemma 4.5 — Regret decomposition

For any policy and environment with A\mathcal A finite or countable,

Rn=∑a∈AΔa E[Ta(n)](4.5)R_n = \sum_{a\in\mathcal A}\Delta_a\,\mathbb E[T_a(n)] \tag{4.5}

ProofConvert a sum over rounds into a sum over arms

Step 1: Insert indicators. For each tt, ∑aI{At=a}=1\sum_a\mathbb I\{A_t = a\} = 1, so Sn=∑t∑aXtI{At=a}S_n = \sum_t\sum_aX_t\mathbb I\{A_t = a\} and

Rn=nμ∗−E[Sn]=∑a∑t=1nE[(μ∗−Xt)I{At=a}](4.6)R_n = n\mu^* - \mathbb E[S_n] = \sum_{a}\sum_{t=1}^n\mathbb E\big[(\mu^* - X_t)\mathbb I\{A_t = a\}\big] \tag{4.6}

Step 2: Condition on the action. Given AtA_t, the reward has mean μAt\mu_{A_t} (assumption 1 of the protocol), so

E[(μ∗−Xt)I{At=a}∣At]=I{At=a}(μ∗−μAt)=I{At=a}Δa\mathbb E\big[(\mu^* - X_t)\mathbb I\{A_t = a\}\mid A_t\big] = \mathbb I\{A_t = a\}(\mu^* - \mu_{A_t}) = \mathbb I\{A_t = a\}\Delta_a

Step 3: Total expectation, then sum over tt. ∑tE[I{At=a}]Δa=ΔaE[Ta(n)]\sum_t\mathbb E[\mathbb I\{A_t = a\}]\Delta_a = \Delta_a\mathbb E[T_a(n)].

∎

ImportantThe identity behind almost every bandit proof

Regret is a gap-weighted count of mistakes. To keep it small, pull each suboptimal arm a number of times that shrinks as its gap grows. Analyzing an algorithm almost always reduces to bounding E[Ta(n)]\mathbb E[T_a(n)] for each suboptimal aa.

TheoremLemma 4.6 — Uncountable action sets

With (A,G)(\mathcal A,\mathcal G) measurable, define the expected-pull measure G(U)=E[∑t=1nI{At∈U}]G(U) = \mathbb E\big[\sum_{t=1}^n\mathbb I\{A_t\in U\}\big]. Then, provided everything is measurable,

Rn=E[∑t=1nΔAt]=∫AΔa dG(a)R_n = \mathbb E\Big[\sum_{t=1}^n\Delta_{A_t}\Big] = \int_{\mathcal A}\Delta_a\,dG(a)

The sum over arms becomes an integral against how often each region of the action space is played. (Proof: Exercise 4.6.)


The canonical bandit model

The problem. Usually the underlying probability space is never mentioned. Occasionally a concrete one is convenient, for instance to change measure between two environments in lower-bound proofs.

Finite horizon

DefinitionOutcome space and coordinate maps

For t≤nt\le n, let Ωt=([k]×R)t⊆R2t\Omega_t = ([k]\times\mathbb R)^t\subseteq\mathbb R^{2t} and Ft=B(Ωt)\mathcal F_t = \mathfrak B(\Omega_t). The outcome Hn=(A1,X1,…,An,Xn)H_n = (A_1,X_1,\ldots,A_n,X_n) is given by coordinate projections: At(a1,x1,…,an,xn)=atA_t(a_1,x_1,\ldots,a_n,x_n) = a_t and Xt(…)=xtX_t(\ldots) = x_t.

DefinitionDefinition 4.7 — Policy

A policy is a sequence π=(πt)t=1n\pi = (\pi_t)_{t=1}^n, where πt\pi_t is a probability kernel from (Ωt−1,Ft−1)(\Omega_{t-1},\mathcal F_{t-1}) to ([k],2[k])([k],2^{[k]}). Write πt(i∣a1,x1,…,at−1,xt−1)\pi_t(i\mid a_1,x_1,\ldots,a_{t-1},x_{t-1}) for the probability of choosing arm ii.

ComponentDetail
Signatureπt:Ωt−1×2[k]→[0,1]\pi_t:\Omega_{t-1}\times2^{[k]}\to[0,1]
InputThe full history of the first t−1t-1 rounds.
OutputA distribution over arms, so randomized policies are included.

TheoremProposition 4.8 — The two assumptions pin down the law

If P\mathbb P and Q\mathbb Q on any measurable space both satisfy the protocol’s assumptions (actions from πt\pi_t given the history, rewards from PAtP_{A_t} given the history and the action), then

PA1,X1,…,An,Xn=QA1,X1,…,An,Xn\mathbb P_{A_1,X_1,\ldots,A_n,X_n} = \mathbb Q_{A_1,X_1,\ldots,A_n,X_n}

(Proof: Exercise 4.2.)

IntuitionOnly the law of the outcome matters

Regret depends only on the law of the outcome HnH_n. By Proposition 4.8 that law is fixed by π\pi and ν\nu alone, so any construction carrying the outcome is as good as any other. We may pick whichever is most convenient.

FormulaThe canonical density

First, Bernoulli rewards. With pi(1)=μip_i(1) = \mu_i and pi(0)=1−μip_i(0) = 1-\mu_i, the distribution

pνπ(a1,x1,…,an,xn)=∏t=1nπt(at∣a1,x1,…,at−1,xt−1) pat(xt)(4.7)p_{\nu\pi}(a_1,x_1,\ldots,a_n,x_n) = \prod_{t=1}^n\pi_t(a_t\mid a_1,x_1,\ldots,a_{t-1},x_{t-1})\,p_{a_t}(x_t) \tag{4.7}

on ([k]×{0,1})n([k]\times\{0,1\})^n satisfies both assumptions. In general: choose a σ-finite λ\lambda with every Pi≪λP_i\ll\lambda, let pi=dPi/dλp_i = dP_i/d\lambda (the Radon–Nikodym derivative), take ρ\rho = counting measure on [k][k], and read (4.7) as a density with respect to (ρ×λ)n(\rho\times\lambda)^n:

Pνπ(B)=∫Bpνπ d(ρ×λ)n,B∈Fn\mathbb P_{\nu\pi}(B) = \int_Bp_{\nu\pi}\,d(\rho\times\lambda)^n,\qquad B\in\mathcal F_n

Choosing λ\lambda: λ=∑iPi\lambda = \sum_iP_i always works. Counting measure (for discrete rewards) or Lebesgue measure (for continuous rewards) is usually more convenient. (Verification: Exercise 4.3, via Fubini and the Radon–Nikodym property.)

IntuitionThe chain rule, written as a product

The density alternates: policy probability, reward density, policy probability, and so on. It is the multiplication rule applied along the interaction. Comparing two environments ν,ν′\nu,\nu' under the same policy, the π\pi factors cancel in the likelihood ratio, leaving only the reward densities of the arms actually pulled. That is the engine of later lower bounds.

DefinitionTwo more constructions with the same law

  • Random-table model: draw an independent table (Xsi)s≤n,i≤k(X_{si})_{s\le n,i\le k} with Xsi∼PiX_{si}\sim P_i (on Ω=Rnk\Omega = \mathbb R^{nk}), and set Xt=XtAtX_t = X_{tA_t}, the round-tt entry of the chosen arm’s column.
  • Reward-stack model: the same table, but Xt=XTAt(t),AtX_t = X_{T_{A_t}(t),A_t}: each arm has a pre-drawn stack of rewards, and every pull takes the next one off that arm’s stack.

Both induce the same law of the outcome (Exercise 4.4, where the stack version uses optional stopping). The stack model is handy when what an arm reveals should depend only on how often it has been pulled.

Infinite horizon and uncountable action sets

RemarkInfinite horizon

The canonical model is never needed for n=∞n = \infty. But a space carrying infinite sequences A1,X1,A2,…A_1,X_1,A_2,\ldots that satisfy both assumptions exists, directly by Ionescu–Tulcea.

DefinitionUncountable action sets (Section 4.7)

  • (A,G)(\mathcal A,\mathcal G) is a measurable space, and ν=(Pa)\nu = (P_a) must be a probability kernel from (A,G)(\mathcal A,\mathcal G) to (R,B(R))(\mathbb R,\mathfrak B(\mathbb R)).
  • Each πt\pi_t is a kernel from (∏s<t(A×R),⨂s<t(G⊗B(R)))\big(\prod_{s<t}(\mathcal A\times\mathbb R),\bigotimes_{s<t}(\mathcal G\otimes\mathfrak B(\mathbb R))\big) to (A,G)(\mathcal A,\mathcal G).
  • Pνπ\mathbb P_{\nu\pi} is the Ionescu–Tulcea product of π1,P1,…,πn,Pn\pi_1,P_1,\ldots,\pi_n,P_n, where Pt(⋅∣a1,x1,…,at)=Pat(⋅)P_t(\cdot\mid a_1,x_1,\ldots,a_t) = P_{a_t}(\cdot).

No density is used, because a common dominating measure may not exist. When one does, the density construction works as before. Proposition 4.8 and Lemma 4.6 continue to hold (Exercise 4.6), and nn need not be finite.

RemarkExtensions

The construction extends easily, for example to contextual bandits: in each round a context CtC_t is observed, then AtA_t is chosen and Xt∼PAt,CtX_t\sim P_{A_t,C_t} (Exercise 4.7, including contexts that depend on the past). Non-stationary bandits, with arm distributions changing over time, need assumptions such as rare changes or slow drift (Chapter 31).


Two useful exercises

TheoremMixing policies (Exercise 4.5)

For a finite set of policies Π\Pi and a distribution pp on Π\Pi, there is a single policy π∘\pi^\circ with Pνπ∘=∑π∈Πp(π)Pνπ\mathbb P_{\nu\pi^\circ} = \sum_{\pi\in\Pi}p(\pi)\mathbb P_{\nu\pi} for every bandit ν\nu:

πt∘(at∣ht−1)=∑πp(π)∏s≤tπs(as∣hs−1)∑πp(π)∏s<tπs(as∣hs−1)\pi_t^\circ(a_t\mid h_{t-1}) = \frac{\sum_\pi p(\pi)\prod_{s\le t}\pi_s(a_s\mid h_{s-1})}{\sum_\pi p(\pi)\prod_{s<t}\pi_s(a_s\mid h_{s-1})}

Randomizing over which policy to run is itself a policy. It acts like a posterior over “which policy am I”, updated from the actions taken so far. (Substitute into the canonical density and induct.)

ExampleFollow-the-leader can fail forever (Exercises 4.9, 4.12–4.13)

Follow-the-leader (also called “stay with the winner” or greedy) plays each arm once, then always plays the arm with the highest empirical mean, breaking ties at random.

Take Bernoulli arms with μ1=0.5\mu_1 = 0.5 and μ2=0.6\mu_2 = 0.6. With probability 0.5×0.4=0.20.5\times0.4 = 0.2, the first pull of arm 1 pays 1 and the first pull of arm 2 pays 0. From then on arm 2’s average stays at 0 because it is never pulled again, while arm 1’s average stays positive forever. FTL locks onto the worse arm and pays regret 0.10.1 every round.

So the pseudo-regret histogram at n=100n = 100 has a lump near 0.1×99≈100.1\times99\approx10, and the expected regret grows linearly: Rn≥0.2×0.1(n−1)=0.02(n−1)R_n\ge0.2\times0.1(n-1) = 0.02(n-1) from this one event alone. Pure exploitation never revisits an arm that started unlucky. Fixing that is the whole point of explore-then-commit-and-ucb-algorithms. (The lock-in calculation is worked here; the book poses it as an exercise.)

NoteOther exercises

  • Exercise 4.10: sublinear regret need not mean every realization behaves well. Decide whether E[T∗(n)]/n→1\mathbb E[T^*(n)]/n\to1 and P(ΔAt>0)→0\mathbb P(\Delta_{A_t} > 0)\to0.
  • Exercise 4.11 (one-armed bandits): one arm pays a known constant. Retirement policies (once you take the safe arm, keep it) are without loss for a fixed nn, but no retirement policy has sublinear regret on all Bernoulli instances.

Quick reference

ObjectStatementNote
Borel spaceisomorphic to a Borel subset of R\mathbb RRn\mathbb R^n and Polish spaces qualify
Theorem 3.1i.i.d. sequences exist on ([0,1],λ)([0,1],\lambda)binary digits dealt into a grid
Theorem 3.2projective (μn)(\mu_n) ⇒ a process existsDaniell / Kolmogorov extension
KernelK(x,⋅)K(x,\cdot) a measure; K(⋅,A)K(\cdot,A) measurablea randomized function
Ionescu–Tulceahistory-dependent kernels ⇒ a process existsno Borel assumption
Markov chainP(Xt+1∈⋅∣Xt)=μ(Xt,⋅)\mathbb P(X_{t+1}\in\cdot\mid X^t) = \mu(X_t,\cdot)homogeneous: μ\mu fixed
MartingaleE[Xt∣Ft−1]=Xt−1\mathbb E[X_t\mid\mathcal F_{t-1}] = X_{t-1}super: ≤\le; sub: ≥\ge
Stopping time{τ≤t}∈Ft\{\tau\le t\}\in\mathcal F_tmay be ∞\infty
Optional stoppingEXτ=EX0\mathbb E X_\tau = \mathbb E X_0bounded τ\tau, or Eτ<∞\mathbb E\tau<\infty with bounded increments, or bounded stopped process
Maximal inequalityP(sup⁡Xt≥ε)≤EX0/ε\mathbb P(\sup X_t\ge\varepsilon)\le\mathbb E X_0/\varepsilonnonnegative supermartingale
Regular conditional lawPX,Y=PY⊗PX∣Y\mathbb P_{X,Y} = \mathbb P_Y\otimes\mathbb P_{X\mid Y}XX Borel
Banditν=(Pa)a∈A\nu = (P_a)_{a\in\mathcal A}rewards depend only on the current arm
Policykernels πt\pi_t: history → armsno peeking at the future
RegretRn=nμ∗−E∑XtR_n = n\mu^* - \mathbb E\sum X_t≥0\ge0; zero iff the optimal arm is known
DecompositionRn=∑aΔaE[Ta(n)]R_n = \sum_a\Delta_a\mathbb E[T_a(n)]integral form for uncountable A\mathcal A
Canonical density∏tπt(at∣ht−1)pat(xt)\prod_t\pi_t(a_t\mid h_{t-1})p_{a_t}(x_t)w.r.t. (ρ×λ)n(\rho\times\lambda)^n
Proposition 4.8the protocol determines the outcome’s lawany construction is fine
Pseudo-regretnμ∗−∑μAtn\mu^* - \sum\mu_{A_t}filters out reward noise
FTL failureRn≥0.02(n−1)R_n\ge0.02(n-1) for μ=(0.5,0.6)\mu = (0.5,0.6)lock-in on an unlucky start

Facts to keep to hand

  • Existence comes from consistency and kernels. Projective families give processes on Borel spaces; Ionescu–Tulcea gives history-dependent processes anywhere. That is exactly what makes “a policy interacting with a bandit” a well-defined random experiment.
  • Martingales formalize “no free lunch”. Optional stopping (under one of its three conditions) says clever stopping can’t beat a fair game. The doubling strategy shows why the conditions matter.
  • The maximal inequality controls the whole path for the price of one time. It is Markov’s inequality at a stopping time, and it powers anytime-valid confidence statements.
  • Regret is a gap-weighted count of mistakes. Every stochastic-bandit analysis bounds E[Ta(n)]\mathbb E[T_a(n)] for suboptimal arms, with a target of C(ν)f(n)C(\nu)f(n).
  • Only the law of the outcome matters. The canonical, random-table and reward-stack models are interchangeable. The canonical density makes change-of-measure arguments mechanical.
  • Structure is information. Unstructured classes make each arm an island; structured classes (linear, mirror-image, shared-edge paths) let the learner learn about arms it never plays.

References

← All notes