Exercise Sheet 2
Advanced Probabilistic Methods Related to Reinforcement Learning · TU Berlin · Winter 2026/27
Notation as in the Lecture 2 notes. Exercises marked used later are needed in later lectures.
Please report any errors or unclear points, in the lecture or by email.
Exercise 2.1 (ETC: the log n bound). Prove Theorem 2.4(b). For \(K = 2\), with \(\ell = \ell_{\min}\), what is the probability of committing to the wrong arm, and what does such a mistake cost? Minimise \(\Delta\ell + \Delta n\, e^{-\ell\Delta^2/4}\) over real \(\ell\) and compare.
Exercise 2.2 (ETC without knowing \(\Delta\)). used later in Lecture 2, Section 4; Remark 2.7 A 2-armed SBM with 1-sub-Gaussian rewards and \(\Delta \in (0, 1]\) unknown.
(a) Show that \(\ell = \lceil n^{2/3} \rceil\) gives \(R_n \le C n^{2/3}\) with \(C\) independent of \(\Delta\). (Hint: maximise \(\Delta e^{-\ell\Delta^2/4}\) over \(\Delta\).)
(b) For Gaussian rewards \(N(m_1, 1)\), \(N(m_2, 1)\) and \(n \ge 64\), show that for every fixed \(\ell\) the supremum over \(\Delta \in (0, 1]\) of \(R_n(\mathrm{ETC}(\ell))\) is at least \(n^{2/3}/10\). (Hint: consider \(\Delta = 1\) and \(\Delta = \min\{1, \sqrt{2/\ell}\}\), and use \(\mathbb P(Z > 1) \ge 0.15\) for a standard normal \(Z\).)
(c) Where does (b) use that rewards are Gaussian?
Exercise 2.3 (ETC must explore, whatever the rewards). Let \(\mu\) have mean 0 and variance \(\sigma^2 \in (0, \infty)\); it need not be sub-Gaussian. For \(\Delta > 0\), take the 2-armed SBM in which arm 1 pays \(\Delta + \xi\) and arm 2 pays \(\xi\), with \(\xi \sim \mu\), so that \(m_1 = \Delta\) and \(m_2 = 0\). Fix \(\theta > 0\) and run \(\mathrm{ETC}(\ell)\) with \(\ell = \lceil \theta/\Delta^2 \rceil\).
(a) Show that \(\mathbb P(\hat A = 2) \to \mathbb P\big(Z \ge \sqrt\theta/(\sigma\sqrt2)\big)\) as \(\Delta \to 0\), for a standard normal \(Z\). (Hint: write \(\hat m_{2,\ell} - \hat m_{1,\ell}\) in terms of the \(D_i\) from the proof of Theorem 2.4, and apply the central limit theorem to \((D_1 + \dots + D_\ell)/\sqrt\ell\). Note that \(\sqrt\ell\, \Delta \to \sqrt\theta\).)
(b) Deduce that there are \(c > 0\) and \(\Delta_0 > 0\) such that \(R_n(\mathrm{ETC}(\ell)) \ge c\, n\Delta\) whenever \(\Delta \le \Delta_0\) and \(n \ge 4\ell\).
(c) Compare with Theorem 2.4(b). Which part of \(\ell_{\min} = \lceil (4/\Delta^2) \log n \rceil\) is forced by the fluctuations of the samples, and which part buys the small error probability \(1/n\)?
Exercise 2.4 (greedy and ε-greedy). used later in Lecture 2, Section 2; Lecture 2, Section 4 The greedy policy plays each arm once and then always plays an arm with the largest empirical mean.
(a) Take a 2-armed SBM with rewards in \(\{0, 1\}\) and \(m_1 > m_2\), so \(\Delta = m_1 - m_2\). Show that if arm 1 first pays 0 and arm 2 first pays 1, then arm 1 is never played again. Deduce that \(R_n(\mathrm{greedy}) \ge (1 - m_1)\, m_2\, (n - 1)\, \Delta\), which is linear in \(n\). For \(m_1 = 0.6\) and \(m_2 = 0.5\), how likely does this make it that greedy abandons the better arm for good?
(b) Constant ε-greedy plays a uniformly random arm with probability \(\varepsilon\) and the greedy arm otherwise. Show \(R_n \ge \frac{\varepsilon}{K}\, n \sum_a \Delta_a\).
Exercise 2.5 (the reward table, by simulation). Use the reward table simulation in the Lecture 2 notes.
(a) Step through a game with ε-greedy. In each round, check that \(A_t\) is the piece of \([0, 1)\) containing \(U_t\), and that \(X_t\) is the next card of deck \(A_t\). Then turn on Show the whole table. Which cards had the policy seen when it chose \(A_t\)?
(b) Suppose a rule for choosing \(A_t\) were allowed to look at the next unused card of each deck, and to switch to another arm when the card it was about to use is 0 and another arm’s next card is 1. Why is this not a policy? Show by an example that \(\mathbb P(X_t \in \cdot \mid H_{t-1}, A_t) = \mu_{A_t}\) fails for it.
Exercise 2.6 (the worst-case bound). used later in Theorem 2.6 Prove \(R_n \le 8\sqrt{Kn \log n} + 3 \sum_a \Delta_a\) for UCB with \(\delta = 1/n^2\). (Hint: split the arms by whether \(\Delta_a\) is above or below a threshold, and optimise the threshold.)