Introduction
This paper studies the problem of a decision maker who faces a large pool of items with unknown quality, can assess them through noisy and costly samples, and wants to identify and select the best item(s). This is commonly referred to as a ranking and selection task in the operations literature [5 , 4 , 25 ] , and as a best-arm(s) identification task in the multi-armed bandit literature [32 , 34 , 44 ] . This problem arises in many domains, including clinical trials [49 , 10 ] , A/B/n testing [46 , 30 ] , machine-learning model selection and hyperparameter optimization [48 , 26 , 36 ] , and simulation optimization [17 ] . In each setting, the key question is how to adaptively allocate a fixed sampling budget to maximize the quality of the final selection.
A central goal of this paper is to treat the problem with generality so that the method is useful across a range of settings. Two aspects of this generality are worth discussing up front. The first concerns how samples are collected. The most adaptive option is to allocate one sample at a time and wait to observe the outcome before choosing the next. However, this can be impractical to implement. For example, in clinical trials, one may not be able to wait to observe an outcome before assigning the next treatment [43 ] , and in simulation optimization, many simulations may be run in parallel [25 ] . We therefore consider the partially adaptive case, in which batches of samples are chosen in rounds, and outcomes are observed between rounds. The second aspect is the target number of items to select. Choosing the single best one (k = 1 k = 1 k = 1 ) is the most common and most studied case, but some of the applications above instead call for selecting several items. Our method can handle any target selection size k k k , giving it a wider range of applicability.
There are two common metrics for how “good” a sample allocation procedure is. One is its probability of correct selection (PCS), the probability that the selected items are the true best items [5 , 21 , 37 ] . The other is its expected opportunity cost (EOC), sometimes referred to as simple regret, which is the expected shortfall in value between the selected set and the true best set [11 , 19 ] . PCS treats every incorrect selection equally, while EOC makes bigger mistakes more costly. For many tasks, EOC, which we adopt as our objective, is the more natural fit since a big mistake can be far worse than a marginal one. That said, the two are closely related. In simulations, a method that performs well on one metric tends to perform well on the other, and our theoretical guarantees apply to both objectives.
Given the objective, the decision maker’s problem can be formulated as a finite-horizon dynamic program. In each round, given the current state (the posterior distribution over item values) and the available budget, one chooses the optimal batch of samples by accounting for all possible outcomes and future states. However, the complexity of this program grows rapidly with the budget size, so solving it exactly is out of reach [15 , 25 , 51 ] . This has motivated a large body of literature, which we group into two broad categories. The first set of methods allocates samples by solving a sequence of static optimization problems, one per round, in place of the dynamic program. The second group constructs allocation rules directly from the current state without solving an optimization problem. We take the first approach and construct a per-round surrogate objective whose minimizer gives the sample allocation.
There are several ways to form a sequence of one-round static objectives. In a Bayesian formulation, one common approach is to maximize the expected value of information (EVI), the improvement in the quality of the final selection that collecting the next batch would produce [11 , 9 ] . When samples follow a Gaussian distribution and are chosen one at a time, Frazier et al. [15 , 16 ] show that this can be computed exactly for the top-1 EOC objective, yielding the knowledge gradient (KG) policy. In general, however, even the one-step look-ahead objective is intractable, so the literature resorts to approximations. Examples targeting PCS include AOAP for top-1 identification [40 ] , and AOAm [51 ] and EMP [38 ] for top-k k k , all designed for Gaussian samples. For AOAm, Zhang et al. [51 ] also prove that the sampling proportions converge to the proportions that maximize the asymptotic error-decay rate, assuming their necessary sample-proportion conditions have a unique solution.
A second approach in this category, referred to as optimal computing budget allocation (OCBA) [4 ] , assumes that in each round the current estimates of the means are the true means and finds the sample allocation that would be optimal under this assumption [5 ] . However, even with this assumption, the problem is generally intractable. It is therefore commonly approached by constructing a bound on the objective, a lower bound for PCS or an upper bound for EOC, and deriving allocations that optimize the bound as the budget goes to infinity. Most of this work concerns Gaussian samples and top-1 selection under PCS, with extensions to top-k k k [3 , 20 ] , and to top-1 and top-k k k selection under EOC [24 , 19 ] .
An alternative approach targets learning the allocation that maximizes the exponential rate at which the probability of incorrect selection decays as the budget grows, the large-deviation rate [21 ] . Algorithms of this kind run sequentially, again treating the current mean estimates as the truth, and choose allocations using the optimality conditions for this rate. Chen and Ryzhov [8 ] establish such an algorithm that applies to general distributions in the k = 1 k=1 k = 1 setting and prove that the sampling proportions converge to the optimal proportions as the budget approaches infinity.
Next, we review methods that construct sampling rules directly from the current state. Methods similar in spirit to our approach are confidence and gap-based frequentist approaches, which allocate samples based on how close items are to the current estimated top-k k k cutoff and how uncertain their estimated values are, such as gap-e [18 , 2 ] and KL-LUCB [35 ] . Our allocation algorithm is based on the same two quantities, but differs in how the top-k k k cutoff is defined, how the distance from it is measured, and how uncertainty is used.
Elimination algorithms [1 , 33 ] divide sampling into rounds, allocate samples uniformly among the remaining items within a round, and eliminate the empirically weakest items according to an elimination schedule. The successive accepts and rejects (SAR) approach [2 ] also “accepts” empirically strong items, avoiding spending samples on items already determined to likely be in the top-k k k .
Algorithms based on the expected improvement (EI) rule, which originates from the Bayesian optimization literature [28 ] , have been designed for top-1 selection problems [45 , 41 , 7 ] . For each item, the algorithm computes the expected amount by which the item’s value exceeds that of the current best item, and samples the item with the largest improvement score. In the Gaussian case, Chen and Ryzhov [7 ] show that a variant of EI achieves the optimal sampling proportions asymptotically.
A family of Bayesian algorithms referred to as top two algorithms allocates a sample in each round by identifying a “leader” item and a “challenger” item, then flipping a weighted coin to decide which of the two to sample [44 ] . Various methods have been proposed for choosing the leader and challenger [29 ] , for example, based on Thompson sampling [44 ] or expected improvement scores [41 ] . For k = 1 k=1 k = 1 and a broad class of sampling distributions, Russo [44 ] proves that with an unbiased coin, the posterior probability of an incorrect selection decays at an exponential rate of at least half the best achievable rate. Russo [44 ] further shows that with suitable tuning of the coin flip probability, it attains the optimal decay rate. Qin et al. [41 ] establish the corresponding results for top two expected improvement with Gaussian samples. You et al. [50 ] and Qin and You [42 ] extend top two methods to the top-k k k setting and give a rigorous way to weight the coin such that in the top-1 Gaussian setting, the posterior probability of an incorrect selection decays at the optimal exponential rate without a tuning parameter, though their general top-k k k sampling rules do not come with posterior error decay rate guarantees. Establishing optimality for general k k k is more difficult because the conditions governing how samples must be allocated among items have a more complicated structure [51 , 42 ] . Russo [44 ] conjectures that his top-k k k extension of top two Thompson sampling achieves a posterior error decay rate of at least half the optimum.
Given the rich literature on this problem, our motivation for this work stems from a related project. In Goldberger and Rudi [23 ] , we study the top-k k k identification problem in a different setting with three key components that existing methods do not address in combination. First, the decision maker can choose among different binary sample forms (in particular, a binary rating of an item or a comparison of two items), each with a different cost and signal quality. Methods that allocate directly from the current state have no clear way to handle this, whereas methods that solve a static problem may, because the costs and signal quality of each sample form can be incorporated into the objective. Second, that paper considers “small” budget settings, so analysis in the asymptotic regime is not of primary importance. Third, samples may be collected in batches. Among the methods above, OCBA-style and elimination-based algorithms support batching [31 ] . However, OCBA algorithms generally rely on asymptotic analysis, and elimination-based algorithms are often outperformed in simulation by other methods such as gap-e and KL-LUCB [2 , 35 , 51 ] . This motivated us to develop a new method for that specific problem. In this paper, building on insights from that work, we develop a simpler, far more general method for Bayesian top-k k k identification.
Our approach. We take the approach of solving a sequence of tractable static optimization problems, which we develop in two steps. First, we give an upper bound on EOC, structurally different from those in the OCBA literature on EOC, and discuss why this structure has the potential for an improved algorithm. Second, to address the intractability of minimizing this bound as a one-round static problem, we approximate the future posterior distribution after a batch via expected moment matching rather than relying on asymptotic analysis. This idea originates in the EVI and OCBA literature with Gaussian samples by Chen et al. [6 ] , He et al. [24 ] , and Zhang et al. [51 ] , and we generalize it to other distributions. These two steps yield a simple, interpretable per-round static surrogate objective. A key property of the surrogate is that it is separable across items, enabling efficient algorithms for solving the batch problem without relying on heuristics.
Results and theoretical guarantees. Similar to the top two and modified expected-improvement methods for k = 1 k=1 k = 1 , our method is conceptually simple and intuitive, yet remarkably comes with strong theoretical performance guarantees for general k k k . For a broad class of sampling distributions, we prove that posterior EOC (as well as the posterior probability of an incorrect selection) decays at an exponential rate of at least half the best achievable rate. This establishes the type of general-k k k guarantee conjectured by Russo [44 ] , but for our sampling rule.
In a range of simulations, we demonstrate that our method is competitive with and often improves on the current state-of-the-art approaches, including those specialized to k = 1 k=1 k = 1 as well as those for general k > 1 k>1 k > 1 , those specialized to Gaussian as well as other distributions, and both at small and large budgets. These comparisons are conducted in the non-batched setting to include as many existing methods as possible. In the batched setting, we show that our method significantly outperforms existing batch algorithms and its performance degrades less as the batch size grows.
We believe this method can be valuable to both researchers and practitioners. It is flexible across a wide range of practical settings, is competitive with the best algorithms in each of these settings, and extends naturally to richer settings, such as those with varying sample forms and sampling costs.
The rest of the paper is organized as follows: § 2 formulates the model and objective, § 3 derives the surrogate objective and the batch allocation algorithm, § 4 establishes the theoretical guarantees, § 5 presents the numerical experiments, and § 6 concludes.
Model and objective
We consider I I I items, indexed i = 1 , … , I i=1,\ldots,I i = 1 , … , I , each with an unknown mean θ i ∈ J \theta_i \in\mathcal{J} θ i ∈ J , where J ⊆ R \mathcal{J} \subseteq\mathbb{R} J ⊆ R is an open interval. The goal is to select the k < I k<I k < I items with the largest means. Each item i i i has a prior distribution Π i , 0 \Pi_{i,0} Π i , 0 on θ i \theta_i θ i with density π i , 0 \pi_{i,0} π i , 0 . For item i i i , let Y i \mathcal{Y}_i Y i be the outcome space, and let { P i ( ⋅ ∣ θ ) : θ ∈ J } \{P_i(\cdot\mid\theta):\theta\in\mathcal{J}\} { P i ( ⋅ ∣ θ ) : θ ∈ J } be a known mean-parametrized family of distributions on Y i \mathcal{Y}_i Y i with density or mass function p i ( ⋅ ∣ θ ) p_i(\cdot\mid\theta) p i ( ⋅ ∣ θ ) . Conditional on θ i \theta_i θ i , the n n n th observation Y i , n Y_{i,n} Y i , n from item i i i is drawn i.i.d. from P i ( ⋅ ∣ θ i ) P_i(\cdot\mid\theta_i) P i ( ⋅ ∣ θ i ) , with E [ Y i , n ∣ θ i ] = θ i \mathbb{E}[Y_{i,n}\mid\theta_i]=\theta_i E [ Y i , n ∣ θ i ] = θ i . We make the following regularity assumption.
Assumption 1 (Regular one-parameter Bayesian model). For each i = 1 , … , I i=1,\ldots,I i = 1 , … , I , the prior Π i , 0 \Pi_{i,0} Π i , 0 and sampling family { P i ( ⋅ ∣ θ ) : θ ∈ J } \{P_i(\cdot\mid\theta):\theta\in\mathcal{J}\} { P i ( ⋅ ∣ θ ) : θ ∈ J } are such that for every n ≥ 0 n\geq0 n ≥ 0 and every ( y 1 , … , y n ) ∈ Y i n (y_1,\ldots,y_n)\in\mathcal{Y}_i^n ( y 1 , … , y n ) ∈ Y i n the posterior of θ i \theta_i θ i conditioned on { Y i , 1 = y 1 , … , Y i , n = y n } \{Y_{i,1}=y_1,\ldots,Y_{i,n}=y_n\} { Y i , 1 = y 1 , … , Y i , n = y n } has continuous positive density on J \mathcal{J} J and finite second moment, and the corresponding posterior predictive distribution of Y i , n + 1 Y_{i,n+1} Y i , n + 1 has finite second moment. In addition, the priors and observations are independent across items.
Remark 1 gives examples of standard conjugate pairs (ESCP) satisfying Assumption 1 that we will refer to throughout the paper.
Gamma with known shape: Y i , n ∣ θ i ∼ Gamma ( κ i , θ i / κ i ) Y_{i,n} \mid\theta_i \sim\operatorname{Gamma}(\kappa_i, \theta_i/\kappa_i) Y i , n ∣ θ i ∼ Gamma ( κ i , θ i / κ i ) with scale θ i / κ i \theta_i/\kappa_i θ i / κ i and κ i \kappa_i κ i known (κ i = 1 \kappa_i = 1 κ i = 1 gives the exponential distribution), prior θ i ∼ InvGamma ( a i ( 0 ) , b i ( 0 ) ) \theta_i \sim\operatorname{InvGamma}(a_i(0), b_i(0)) θ i ∼ InvGamma ( a i ( 0 ) , b i ( 0 )) with a i ( 0 ) > 2 a_i(0) > 2 a i ( 0 ) > 2 , b i ( 0 ) > 0 b_i(0) > 0 b i ( 0 ) > 0 , J = ( 0 , ∞ ) \mathcal{J} = (0, \infty) J = ( 0 , ∞ ) .
Lognormal with known log-variance: Y i , n ∣ θ i ∼ Lognormal ( log θ i − σ i 2 / 2 , σ i 2 ) Y_{i,n} \mid\theta_i \sim\operatorname{Lognormal}(\log\theta_i - \sigma_i^2/2, \sigma_i^2) Y i , n ∣ θ i ∼ Lognormal ( log θ i − σ i 2 /2 , σ i 2 ) with σ i 2 \sigma_i^2 σ i 2 known, prior log θ i ∼ N ( m i ( 0 ) , s i 2 ( 0 ) ) \log\theta_i \sim N(m_i(0), s_i^2(0)) log θ i ∼ N ( m i ( 0 ) , s i 2 ( 0 )) , J = ( 0 , ∞ ) \mathcal{J} = (0, \infty) J = ( 0 , ∞ ) .
Sampling proceeds in T + 1 T+1 T + 1 rounds, an optional warm-up round indexed t = 0 t = 0 t = 0 followed by T T T adaptive rounds.
In the warm-up round, each item is sampled n 0 ∈ Z ≥ 0 n_0 \in\mathbb{Z}_{\ge0} n 0 ∈ Z ≥ 0 times. In rounds t = 1 , … , T t = 1, \ldots, T t = 1 , … , T , we choose a batch of B t ∈ Z + B_t \in\mathbb{Z}_+ B t ∈ Z + samples, where the per-round batch sizes { B t } t = 1 T \{B_t\}_{t=1}^T { B t } t = 1 T are pre-specified. The choice of samples in round t t t is denoted by the vector Δ t = ( Δ 1 t , … , Δ I t ) \Delta^t = (\Delta_1^t, \ldots, \Delta_I^t) Δ t = ( Δ 1 t , … , Δ I t ) , where Δ i t ∈ Z ≥ 0 \Delta_i^t \in\mathbb{Z}_{\ge0} Δ i t ∈ Z ≥ 0 is the number of samples assigned to item i i i .
Let N i ( t ) N_i(t) N i ( t ) denote the total samples allocated to item i i i up to but not including round t t t , so that N i ( 0 ) = 0 N_i(0) = 0 N i ( 0 ) = 0 , N i ( 1 ) = n 0 N_i(1) = n_0 N i ( 1 ) = n 0 , and
N i ( t + 1 ) = N i ( t ) + Δ i t , t = 1 , … , T . N_i(t+1) = N_i(t) + \Delta_i^t,\qquad t = 1,\ldots,T. N i ( t + 1 ) = N i ( t ) + Δ i t , t = 1 , … , T .
Let H t \mathcal{H}_t H t denote the history at time t t t , which is the collection of priors { Π i , 0 } i = 1 I \{\Pi_{i,0}\}_{i=1}^I { Π i , 0 } i = 1 I and observations { Y i , n : 1 ≤ i ≤ I , 1 ≤ n ≤ N i ( t ) } \{Y_{i,n}: 1 \le i \le I, 1 \le n \le N_i(t)\} { Y i , n : 1 ≤ i ≤ I , 1 ≤ n ≤ N i ( t )} . We write E t [ ⋅ ] \mathbb{E}_t[\cdot] E t [ ⋅ ] and P t ( ⋅ ) \mathbb{P}_t(\cdot) P t ( ⋅ ) for conditional expectation and probability given H t \mathcal{H}_t H t . Let Π i , t \Pi_{i,t} Π i , t denote the posterior distribution of θ i \theta_i θ i given H t \mathcal{H}_t H t and define μ i ( t ) : = E t [ θ i ] \mu_i(t) := \mathbb{E}_t[\theta_i] μ i ( t ) := E t [ θ i ] , v i ( t ) : = V t ( θ i ) v_i(t) := \mathbb{V}_t(\theta_i) v i ( t ) := V t ( θ i ) , F i , t ( x ) : = P t ( θ i ≤ x ) F_{i,t}(x) := \mathbb{P}_t(\theta_i \le x) F i , t ( x ) := P t ( θ i ≤ x ) . In round t t t , we refer to Π i , t \Pi_{i,t} Π i , t as the current prior.
In any round t t t , if we were to select items based on the current prior, we would pick the k k k items with the largest posterior means. Thus, it is convenient to define the following: for any vector x ∈ R I \mathbf{x} \in\mathbb{R}^I x ∈ R I , let S k ( x ) S_k(\mathbf{x}) S k ( x ) denote the set of indices of the k k k largest elements of x \mathbf{x} x . Write μ ( t ) = ( μ 1 ( t ) , … , μ I ( t ) ) \boldsymbol{\mu}(t) = (\mu_1(t), \ldots, \mu_I(t)) μ ( t ) = ( μ 1 ( t ) , … , μ I ( t )) and θ = ( θ 1 , … , θ I ) \boldsymbol{\theta} = (\theta_1, \ldots, \theta_I) θ = ( θ 1 , … , θ I ) . For any θ ∈ R I \boldsymbol{\theta} \in\mathbb{R}^I θ ∈ R I , the opportunity cost of the current selection S k ( μ ( t ) ) S_k(\boldsymbol{\mu}(t)) S k ( μ ( t )) is
OC ( S k ( μ ( t ) ) , θ ) : = ∑ i ∈ S k ( θ ) θ i − ∑ i ∈ S k ( μ ( t ) ) θ i . \operatorname{OC}(S_k(\boldsymbol{\mu}(t)), \boldsymbol{\theta}) := \sum_{i \in S_k(\boldsymbol{\theta})} \theta_i - \sum_{i \in S_k(\boldsymbol{\mu}(t))} \theta_i. OC ( S k ( μ ( t )) , θ ) := i ∈ S k ( θ ) ∑ θ i − i ∈ S k ( μ ( t )) ∑ θ i .
Thus the Bayesian expected opportunity cost given H t \mathcal{H}_t H t is
EOC ( H t ) = E θ ∣ H t [ OC ( S k ( μ ( t ) ) , θ ) ] . (1) \operatorname{EOC}(\mathcal{H}_t) = \mathbb{E}_{\boldsymbol{\theta} \mid\mathcal{H}_t}\left[\operatorname{OC}(S_k(\boldsymbol{\mu}(t)), \boldsymbol{\theta})\right]. \tag*{(1)} EOC ( H t ) = E θ ∣ H t [ OC ( S k ( μ ( t )) , θ ) ] . (1)
The decision maker’s problem is to sequentially choose the sample batches { Δ t } t = 1 T \{\Delta^t\}_{t=1}^T { Δ t } t = 1 T that minimize the terminal expected opportunity cost EOC ( H T + 1 ) \operatorname{EOC}(\mathcal{H}_{T+1}) EOC ( H T + 1 ) . This can be formulated as a dynamic program, but it is intractable to solve, as discussed in the introduction. We next formulate a static surrogate objective that guides the choice of batch in each round.
Surrogate objective via EOC bound
EOC ( H t ) \operatorname{EOC}(\mathcal{H}_t) EOC ( H t ) does not generally admit an expression amenable to analysis, so (1) is not immediately useful for choosing which batch of samples to collect. Thus, we construct the per-round surrogate objective in two steps. First, Lemma 1 gives an upper bound on EOC ( H t ) \operatorname{EOC}(\mathcal{H}_t) EOC ( H t ) that is amenable to analysis. Second, in § 3.1 , we make this bound a function of the round-t t t allocation to guide the choice of future samples. We then discuss how the resulting per-round objective differs from those in prior work in § 3.2 and give efficient algorithms for finding the batch that minimizes it in § 3.3 . § 3.4 presents the sequential sampling procedure, and § 3.5 gives explicit expressions of the sampling rule for the ESCP. We begin with the EOC upper bound, which is based on comparing each item’s θ i \theta_i θ i to a threshold.
Lemma 1 (Threshold upper bound on EOC). (i) For every threshold q ∈ R q \in\mathbb{R} q ∈ R ,
EOC ( H t ) ≤ E t [ ∑ i ∈ S k ( μ ( t ) ) ( q − θ i ) + + ∑ i ∉ S k ( μ ( t ) ) ( θ i − q ) + ] . \operatorname{EOC}(\mathcal{H}_t) \le\mathbb{E}_t\left[\sum_{i\in S_k(\boldsymbol{\mu}(t))}(q-\theta_i)^+ + \sum_{i\notin S_k(\boldsymbol{\mu}(t))}(\theta_i-q)^+\right]. EOC ( H t ) ≤ E t i ∈ S k ( μ ( t )) ∑ ( q − θ i ) + + i ∈ / S k ( μ ( t )) ∑ ( θ i − q ) + . (ii) The right-hand side of (i) is convex in q q q and has a unique minimizer q ∗ ( t ) q^*(t) q ∗ ( t ) characterized by
E t [ ∣ { i : θ i ≤ q ∗ ( t ) } ∣ ] = ∑ i = 1 I { 1 − F i , t ( q ∗ ( t ) ) } = k . (2) \mathbb{E}_t\left[\left|\{i:\theta_i\le q^*(t)\}\right|\right] = \sum_{i=1}^{I}\{1-F_{i,t}(q^*(t))\}=k. \tag*{(2)} E t [ ∣ { i : θ i ≤ q ∗ ( t )} ∣ ] = i = 1 ∑ I { 1 − F i , t ( q ∗ ( t ))} = k . (2)
Proof All proofs are provided in the Appendix.
Part (i) gives a family of upper bounds on EOC, each separable across items. For an item in the current top-k k k set, its corresponding term in the bound is the expected shortfall of its true mean below threshold q q q . For an item outside this set, its corresponding term is the expected amount its true mean exceeds the threshold. Part (ii) states that the tightest bound in this family is given by q ∗ ( t ) q^*(t) q ∗ ( t ) , the threshold such that, in expectation, exactly k k k item means are larger than it. This makes q ∗ ( t ) q^*(t) q ∗ ( t ) a natural threshold choice when constructing the surrogate objective. We also consider another top-k k k threshold motivated by the theoretical analysis in § 4 .
Write d i ( x , y ) : = KL ( P i ( ⋅ ∣ x ) ∥ P i ( ⋅ ∣ y ) ) d_i(x,y) := \operatorname{KL}(P_i(\cdot\mid x)\mathbin\Vert P_i(\cdot\mid y)) d i ( x , y ) := KL ( P i ( ⋅ ∣ x ) ∥ P i ( ⋅ ∣ y )) for the Kullback–Leibler (KL) divergence between the sampling distributions of item i i i at means x x x and y y y , and let μ [ 1 ] ( t ) ≥ ⋯ ≥ μ [ I ] ( t ) \mu_{[1]}(t)\ge\cdots\ge\mu_{[I]}(t) μ [ 1 ] ( t ) ≥ ⋯ ≥ μ [ I ] ( t ) denote the ordered posterior means. We define the threshold
q † ( t ) : = { arg min μ [ k + 1 ] ( t ) < q < μ [ k ] ( t ) ∑ i = 1 I 1 d i ( μ i ( t ) , q ) , μ [ k ] ( t ) > μ [ k + 1 ] ( t ) , μ [ k ] ( t ) , μ [ k ] ( t ) = μ [ k + 1 ] ( t ) . (3) q^\dagger(t) :=
\begin{cases}
\underset{\mu_{[k+1]}(t)<q<\mu_{[k]}(t)}{\arg\min}\ \sum_{i=1}^{I}\frac{1}{d_i(\mu_i(t),q)}, & \mu_{[k]}(t)>\mu_{[k+1]}(t),\\[6pt]
\mu_{[k]}(t), & \mu_{[k]}(t)=\mu_{[k+1]}(t).
\end{cases} \tag*{(3)} q † ( t ) := ⎩ ⎨ ⎧ μ [ k + 1 ] ( t ) < q < μ [ k ] ( t ) arg min ∑ i = 1 I d i ( μ i ( t ) , q ) 1 , μ [ k ] ( t ) , μ [ k ] ( t ) > μ [ k + 1 ] ( t ) , μ [ k ] ( t ) = μ [ k + 1 ] ( t ) . (3)
§ 4 explains why this choice of top-k k k threshold is “good”. In what follows, let q ( t ) q(t) q ( t ) denote the top-k k k threshold used in round t t t , which can be either q ∗ ( t ) q^*(t) q ∗ ( t ) or q † ( t ) q^\dagger(t) q † ( t ) .
Forward-looking objective
Given q ( t ) q(t) q ( t ) , the threshold bound at state H t \mathcal{H}_t H t is
E t [ ∑ i ∈ S k ( μ ( t ) ) ( q ( t ) − θ i ) + + ∑ i ∉ S k ( μ ( t ) ) ( θ i − q ( t ) ) + ] . (4) \mathbb{E}_t\left[\sum_{i\in S_k(\boldsymbol{\mu}(t))}(q(t)-\theta_i)^+ + \sum_{i\notin S_k(\boldsymbol{\mu}(t))}(\theta_i-q(t))^+\right]. \tag*{(4)} E t i ∈ S k ( μ ( t )) ∑ ( q ( t ) − θ i ) + + i ∈ / S k ( μ ( t )) ∑ ( θ i − q ( t ) ) + . (4)
To make this a function of a proposed round-t t t allocation Δ = ( Δ 1 , … , Δ I ) \boldsymbol{\Delta}=(\Delta_1,\ldots,\Delta_I) Δ = ( Δ 1 , … , Δ I ) , we take the expectation with respect to an approximation of the random posterior of θ i \theta_i θ i after allocating Δ \boldsymbol{\Delta} Δ and observing its outcomes. This approximation preserves the shape of Π i , t \Pi_{i,t} Π i , t and has mean and variance equal to the expected posterior mean and variance. We say two distributions have the same shape if they are equivalent after centering by their mean and scaling by their standard deviation. Put together, these conditions say that we replace the random future posterior with a deterministic, “shrunken” copy of the current prior, as it has the same mean as the prior, keeps the same shape, and changes only through a contraction around its mean by the expected amount of uncertainty that the proposed samples will remove. Figure 1 gives an example.
Figure 1. Structure of the surrogate loss L t ( ⋅ ) L_t(\cdot) L t ( ⋅ ) and allocation for I = 3 I = 3 I = 3 , k = 1 k = 1 k = 1 using q ( t ) = q ∗ ( t ) q(t) = q^*(t) q ( t ) = q ∗ ( t ) . For each item i ∈ { A , B , C } i \in\{A, B, C\} i ∈ { A , B , C } , the left distribution is its current prior for θ i \theta_i θ i , and the right is the posterior moment-matched distribution θ ~ i ( Δ i ) \widetilde{\theta}_i(\Delta_i) θ i ( Δ i ) . The allocation shown minimizes (8) with B t = 10 B_t = 10 B t = 10 . The shaded area is the item’s contribution to the loss.
Formally, we replace each θ i \theta_i θ i in (4) by the random variable θ ~ i ( Δ i ) \widetilde{\theta}_i(\Delta_i) θ i ( Δ i ) that satisfies
(i) θ ~ i ( Δ i ) − E t [ θ ~ i ( Δ i ) ] V t ( θ ~ i ( Δ i ) ) = d θ i − μ i ( t ) v i ( t ) , \text{(i)}\quad\frac{\widetilde{\theta}_i(\Delta_i)-\mathbb{E}_t[\widetilde{\theta}_i(\Delta_i)]}{\sqrt{\mathop{\mathrm{V}}\nolimits_t(\widetilde{\theta}_i(\Delta_i))}} \overset{\mathrm{d}}{=} \frac{\theta_i-\mu_i(t)}{\sqrt{v_i(t)}}, (i) V t ( θ i ( Δ i )) θ i ( Δ i ) − E t [ θ i ( Δ i )] = d v i ( t ) θ i − μ i ( t ) ,
(ii) E t [ θ ~ i ( Δ i ) ] = E [ μ i ( t + 1 ) ∣ Δ , H t ] = μ i ( t ) , \text{(ii)}\quad\mathbb{E}_t[\widetilde{\theta}_i(\Delta_i)] = \mathbb{E}[\mu_i(t+1)\mid\boldsymbol{\Delta},\mathcal{H}_t] = \mu_i(t), (ii) E t [ θ i ( Δ i )] = E [ μ i ( t + 1 ) ∣ Δ , H t ] = μ i ( t ) ,
(iii) V t ( θ ~ i ( Δ i ) ) = E [ V ( θ i ∣ H t + 1 ) ∣ Δ , H t ] = : v ˉ i ( t , Δ i ) . \text{(iii)}\quad\mathop{\mathrm{V}}\nolimits_t(\widetilde{\theta}_i(\Delta_i)) = \mathbb{E}[\mathop{\mathrm{V}}\nolimits(\theta_i\mid\mathcal{H}_{t+1})\mid\boldsymbol{\Delta},\mathcal{H}_t] =: \bar{v}_i(t,\Delta_i). (iii) V t ( θ i ( Δ i )) = E [ V ( θ i ∣ H t + 1 ) ∣ Δ , H t ] =: v ˉ i ( t , Δ i ) .
For a given H t \mathcal{H}_t H t , this distribution is unique and is given by
θ ~ i ( Δ i ) = μ i ( t ) + c i ( t , Δ i ) ( θ i − μ i ( t ) ) , c i ( t , Δ i ) : = v ˉ i ( t , Δ i ) v i ( t ) . (5) \widetilde{\theta}_i(\Delta_i) = \mu_i(t) + c_i(t,\Delta_i)(\theta_i-\mu_i(t)), \qquad c_i(t,\Delta_i) := \sqrt{\frac{\bar{v}_i(t,\Delta_i)}{v_i(t)}}. \tag*{(5)} θ i ( Δ i ) = μ i ( t ) + c i ( t , Δ i ) ( θ i − μ i ( t )) , c i ( t , Δ i ) := v i ( t ) v ˉ i ( t , Δ i ) . (5)
We then define the surrogate loss induced by the allocation Δ \boldsymbol{\Delta} Δ as
L t ( Δ ) : = E t [ ∑ i ∈ S k ( μ ( t ) ) ( q ( t ) − θ ~ i ( Δ i ) ) + + ∑ i ∉ S k ( μ ( t ) ) ( θ ~ i ( Δ i ) − q ( t ) ) + ] = ∑ i = 1 I E t [ ( q ( t ) − θ ~ i ( Δ i ) ) + ] + ∑ i ∉ S k ( μ ( t ) ) ( μ i ( t ) − q ( t ) ) , (6) \begin{aligned}
L_t(\boldsymbol{\Delta}) := \mathbb{E}_t\left[\sum_{i\in S_k(\boldsymbol{\mu}(t))}(q(t)-\widetilde{\theta}_i(\Delta_i))^+ + \sum_{i\notin S_k(\boldsymbol{\mu}(t))}(\widetilde{\theta}_i(\Delta_i)-q(t))^+\right] \\
&= \sum_{i=1}^{I}\mathbb{E}_t[(q(t)-\widetilde{\theta}_i(\Delta_i))^+] + \sum_{i\notin S_k(\boldsymbol{\mu}(t))}(\mu_i(t)-q(t)), \tag*{(6)}
\end{aligned} L t ( Δ ) := E t i ∈ S k ( μ ( t )) ∑ ( q ( t ) − θ i ( Δ i ) ) + + i ∈ / S k ( μ ( t )) ∑ ( θ i ( Δ i ) − q ( t ) ) + = i = 1 ∑ I E t [( q ( t ) − θ i ( Δ i ) ) + ] + i ∈ / S k ( μ ( t )) ∑ ( μ i ( t ) − q ( t )) , (6)
where the second equality follows from ( x − q ) + = ( x − q ) + ( q − x ) + (x-q)^+ = (x-q) + (q-x)^+ ( x − q ) + = ( x − q ) + ( q − x ) + . The second sum is constant with respect to Δ \boldsymbol{\Delta} Δ . For the first sum we have
ℓ i , t ( Δ i ) : = E t [ ( q ( t ) − θ ~ i ( Δ i ) ) + ] = c i ( t , Δ i ) E t [ ( z i ( t , Δ i ) − θ i ) + ] . (7) \ell_{i,t}(\Delta_i) := \mathbb{E}_t[(q(t)-\widetilde{\theta}_i(\Delta_i))^+] = c_i(t,\Delta_i)\mathbb{E}_t[(z_i(t,\Delta_i)-\theta_i)^+]. \tag*{(7)} ℓ i , t ( Δ i ) := E t [( q ( t ) − θ i ( Δ i ) ) + ] = c i ( t , Δ i ) E t [( z i ( t , Δ i ) − θ i ) + ] . (7)
where z i ( t , Δ i ) : = μ i ( t ) + ( q ( t ) − μ i ( t ) ) / c i ( t , Δ i ) z_i(t,\Delta_i) := \mu_i(t) + (q(t)-\mu_i(t))/c_i(t,\Delta_i) z i ( t , Δ i ) := μ i ( t ) + ( q ( t ) − μ i ( t )) / c i ( t , Δ i ) . Choosing the batch that minimizes (6) is thus equivalent to
min Δ ∈ Z ≥ 0 I ∑ i = 1 I ℓ i , t ( Δ i ) s.t. ∑ i = 1 I Δ i = B t , (8) \min_{\Delta\in\mathbb{Z}_{\ge0}^{I}} \sum_{i=1}^{I} \ell_{i,t}(\Delta_i)
\quad\text{s.t.} \quad\sum_{i=1}^{I} \Delta_i = B_t, \tag*{(8)} Δ ∈ Z ≥ 0 I min i = 1 ∑ I ℓ i , t ( Δ i ) s.t. i = 1 ∑ I Δ i = B t , (8)
which is the per-round surrogate program. Conceptually, allocating according to (8) sends samples to the items whose posterior has substantial mass on both sides of the top-k k k threshold q ( t ) q(t) q ( t ) , weighted by the distance of that mass from q ( t ) q(t) q ( t ) . These are the items whose membership in the top-k k k set is uncertain and whose misclassification, if it occurs, could be costly.
Relation to OCBA-style objectives
Before analyzing how to solve (8) , we discuss how its structure differs from static objectives in the OCBA literature for EOC. These objectives often use an upper bound on EOC based on a sum of losses associated with pairwise misorderings. For example, for top-1 EOC with Gaussian samples, He et al. [24 ] use
EOC ( H t ) ≤ ∑ i ≠ i ( 1 ) E t [ ( θ i − θ i ( 1 ) ) + ] . \operatorname{EOC}(\mathcal{H}_t) \le\sum_{i \ne i_{(1)}} \mathbb{E}_t\left[(\theta_i-\theta_{i_{(1)}})^+\right]. EOC ( H t ) ≤ i = i ( 1 ) ∑ E t [ ( θ i − θ i ( 1 ) ) + ] .
Gao and Chen [19 ] give the following bound on top-k k k frequentist EOC:
EOC ≤ ∑ j = 1 k ∑ i ∉ { i ( 1 ) , … , i ( j ) } ∑ n = 1 j ( μ i ( n ) ( t ) − μ i ( t ) ) Φ ( − μ i ( n ) ( t ) − μ i ( t ) v i ( n ) ( t ) + v i ( t ) ) . \operatorname{EOC} \le\sum_{j=1}^{k} \sum_{i \notin\{i_{(1)},\ldots,i_{(j)}\}} \sum_{n=1}^{j} \left(\mu_{i_{(n)}}(t)-\mu_i(t)\right)\Phi\left(-\frac{\mu_{i_{(n)}}(t)-\mu_i(t)}{\sqrt{v_{i_{(n)}}(t)+v_i(t)}}\right). EOC ≤ j = 1 ∑ k i ∈ / { i ( 1 ) , … , i ( j ) } ∑ n = 1 ∑ j ( μ i ( n ) ( t ) − μ i ( t ) ) Φ − v i ( n ) ( t ) + v i ( t ) μ i ( n ) ( t ) − μ i ( t ) .
where Φ \Phi Φ is the standard normal CDF, and i ( 1 ) , … , i ( I ) i_{(1)},\ldots,i_{(I)} i ( 1 ) , … , i ( I ) order the items by their current posterior means. Their static objective is then based on driving this bound down. The potential issue with using such a bound is that the candidate top-k k k items { i ( 1 ) , … , i ( k ) } \{i_{(1)},\ldots,i_{(k)}\} { i ( 1 ) , … , i ( k ) } are in far more terms in the sum than the non-top-k k k items. For instance, when k = 1 k=1 k = 1 , i ( 1 ) i_{(1)} i ( 1 ) is in all I − 1 I-1 I − 1 terms, while all other items are only in one term. Thus, an objective based on such a bound may over-count the benefit of sampling the top items. Our bound avoids these pairwise terms by comparing each item to the same threshold q ( t ) q(t) q ( t ) , resulting in a single term for each item regardless of whether or not it is in S k ( μ ( t ) ) S_k(\boldsymbol{\mu}(t)) S k ( μ ( t )) . Figure 2 shows the distribution of sample allocation across items for our method, called TEAk, and the method of Gao and Chen [19 ] , called EOC-m. EOC-m systematically allocates more samples to items in the top-k k k , even items far above the top-k k k boundary, which is likely one of the main factors driving our method’s improvement over EOC-m, which we demonstrate in § 5 .
Figure 2. Budget allocation across items on the Gaussian instance described in § 5 , with I = 20 I = 20 I = 20 and k = 3 , 5 , 10 k = 3, 5, 10 k = 3 , 5 , 10 . The plots show the proportion of the total budget spent on each item, with items ordered by their true mean. TEAk _k k uses q ∗ ( t ) q^*(t) q ∗ ( t ) . The dashed line marks the top-k k k boundary.
Batch allocation algorithm
Although (8) is an integer program, its separability across items allows us to solve it efficiently by dynamic programming and, in some cases, using a greedy procedure. Both are standard techniques. The main technical result of this subsection is Proposition 2(ii)–(iii), which gives conditions on the posterior distributions under which the greedy procedure is optimal.
The dynamic programming procedure in Algorithm 1 has two phases. First, we compute ℓ i , t ( d ) \ell_{i,t}(d) ℓ i , t ( d ) for every item i i i and candidate allocation d = 0 , … , B t d=0,\ldots,B_t d = 0 , … , B t . Second, for each r = 1 , … , I r=1,\ldots,I r = 1 , … , I and b = 0 , … , B t b=0,\ldots,B_t b = 0 , … , B t , we solve the subproblem of allocating exactly b b b samples among the first r r r items by forward induction, and then recover the optimal allocation by backtracking. Let V r ( b ) V_r(b) V r ( b ) denote the minimum loss for this subproblem so that V I ( B t ) V_I(B_t) V I ( B t ) is the optimal value of (8).
Algorithm 1 Dynamic Programming Batch Builder (DPBB)
Precompute cost values: for each i = 1 , … , I i = 1,\ldots,I i = 1 , … , I and d = 0 , … , B t d = 0,\ldots,B_t d = 0 , … , B t , compute ℓ i , t ( d ) \ell_{i,t}(d) ℓ i , t ( d )
Initialize: set V 0 ( 0 ) = 0 V_0(0) = 0 V 0 ( 0 ) = 0 and V 0 ( b ) = + ∞ V_0(b) = +\infty V 0 ( b ) = + ∞ for b = 1 , … , B t b = 1,\ldots,B_t b = 1 , … , B t
Solve subproblems:
for r = 1 , … , I r = 1,\ldots,I r = 1 , … , I
for b = 0 , … , B t b = 0,\ldots,B_t b = 0 , … , B t
Compute V r ( b ) = min Δ ∈ { 0 , … , b } { V r − 1 ( b − Δ ) + ℓ r , t ( Δ ) } V_r(b) = \min_{\Delta\in\{0,\ldots,b\}} \{V_{r-1}(b-\Delta) + \ell_{r,t}(\Delta)\} V r ( b ) = min Δ ∈ { 0 , … , b } { V r − 1 ( b − Δ ) + ℓ r , t ( Δ )} and record an argmin Δ r ∗ ( b ) \Delta_r^*(b) Δ r ∗ ( b )
Recover the allocation: set b ← B t b \leftarrow B_t b ← B t
for r = I , … , 1 r = I,\ldots,1 r = I , … , 1
Set Δ r t = Δ r ∗ ( b ) \Delta_r^t = \Delta_r^*(b) Δ r t = Δ r ∗ ( b ) and update b ← b − Δ r t b \leftarrow b-\Delta_r^t b ← b − Δ r t
Return Δ t = ( Δ 1 t , … , Δ I t ) \boldsymbol{\Delta}^t = (\Delta_1^t,\ldots,\Delta_I^t) Δ t = ( Δ 1 t , … , Δ I t )
PROPOSITION 1 (Optimality of DPBB ). DPBB returns a global optimizer of (8). Let C ℓ C_\ell C ℓ denote the cost of computing each value ℓ i , t ( d ) \ell_{i,t}(d) ℓ i , t ( d ) . The total computational cost is O ( I B t C ℓ + I B t 2 ) O(IB_tC_\ell+ IB_t^2) O ( I B t C ℓ + I B t 2 ) .
For the greedy procedure, define the marginal decrease from allocating one more sample to item i i i by D i , t ( Δ i ) : = ℓ i , t ( Δ i ) − ℓ i , t ( Δ i + 1 ) D_{i,t}(\Delta_i) := \ell_{i,t}(\Delta_i)-\ell_{i,t}(\Delta_i+1) D i , t ( Δ i ) := ℓ i , t ( Δ i ) − ℓ i , t ( Δ i + 1 ) . The procedure in Algorithm 2 sequentially assigns the B t B_t B t samples to the item with the current largest marginal decrease.
Algorithm 2 Greedy Batch Builder (GBB)
Initialize: Δ t = 0 \boldsymbol{\Delta}^t = 0 Δ t = 0
for n = 1 , … , B t n = 1,\ldots,B_t n = 1 , … , B t
For each i = 1 , … , I i = 1,\ldots,I i = 1 , … , I , compute D i , t ( Δ i t ) = ℓ i , t ( Δ i t ) − ℓ i , t ( Δ i t + 1 ) D_{i,t}(\Delta_i^t) = \ell_{i,t}(\Delta_i^t)-\ell_{i,t}(\Delta_i^t+1) D i , t ( Δ i t ) = ℓ i , t ( Δ i t ) − ℓ i , t ( Δ i t + 1 )
Choose i ∗ ∈ arg max 1 ≤ i ≤ I D i , t ( Δ i t ) i^* \in\arg\max_{1 \le i \le I} D_{i,t}(\Delta_i^t) i ∗ ∈ arg max 1 ≤ i ≤ I D i , t ( Δ i t )
Δ i ∗ t ← Δ i ∗ t + 1 \Delta_{i^*}^t \leftarrow\Delta_{i^*}^t + 1 Δ i ∗ t ← Δ i ∗ t + 1
Return Δ t = ( Δ 1 t , … , Δ I t ) \boldsymbol{\Delta}^t = (\Delta_1^t,\ldots,\Delta_I^t) Δ t = ( Δ 1 t , … , Δ I t )
PROPOSITION 2 (Conditions for greedy optimality ). (i) If, for every item i i i ,
D i , t ( 0 ) ≥ D i , t ( 1 ) ≥ ⋯ ≥ D i , t ( B t − 1 ) , (9) D_{i,t}(0) \ge D_{i,t}(1) \ge\cdots\ge D_{i,t}(B_t-1), \tag*{(9)} D i , t ( 0 ) ≥ D i , t ( 1 ) ≥ ⋯ ≥ D i , t ( B t − 1 ) , (9)
*then GBB returns a global optimizer of (8). Its computational cost is O ( I B t C ℓ ) O(IB_tC_\ell) O ( I B t C ℓ ) . (ii) Suppose that at round t t t , for every item i i i there exists λ i ( t ) > 0 \lambda_i(t)>0 λ i ( t ) > 0 such that
c i ( t , d ) 2 = 1 1 + λ i ( t ) d for every d ∈ Z ≥ 0 . (10) c_i(t,d)^2=\frac{1}{1+\lambda_i(t)d}\qquad\text{for every }d\in\mathbb{Z}_{\geq0}. \tag*{(10)} c i ( t , d ) 2 = 1 + λ i ( t ) d 1 for every d ∈ Z ≥ 0 . (10)
Then (9) holds, and GBB returns a global optimizer of (8) .
(iii) Suppose that for every item i i i , the sampling family is a regular one-parameter natural exponential family, meaning it has an open natural parameter space E i \mathcal{E}_i E i and density or mass function p i ( y ∣ η i ) = h i ( y ) exp { η i y − A i ( η i ) } p_i(y\mid\eta_i)=h_i(y)\exp\{\eta_i y-A_i(\eta_i)\} p i ( y ∣ η i ) = h i ( y ) exp { η i y − A i ( η i )} , where θ i = A i ′ ( η i ) \theta_i=A_i'(\eta_i) θ i = A i ′ ( η i ) . Suppose also that the prior on η i \eta_i η i induced by Π i , 0 \Pi_{i,0} Π i , 0 has density proportional to exp { a i η i − b i A i ( η i ) } \exp\{a_i\eta_i-b_iA_i(\eta_i)\} exp { a i η i − b i A i ( η i )} on E i \mathcal{E}_i E i for some a i ∈ R a_i\in\mathbb{R} a i ∈ R and b i > 0 b_i>0 b i > 0 . Then (10) holds at every round, and GBB returns a global optimizer of (8) .
Part (i) says that GBB finds an optimal allocation whenever the gain from each additional sample is nonincreasing. However, checking this condition requires computing all marginal decreases in every round. Part (ii) avoids that computation by giving a sufficient condition for (9) based on how the expected posterior variance decreases with additional samples, and part (iii) establishes that the condition holds for regular natural exponential families with conjugate priors.
Remark 2 (Sampling costs). In some settings, items may differ in their sampling costs. Let w i ∈ Z > 0 w_i\in\mathbb{Z}_{>0} w i ∈ Z > 0 denote the cost of one sample of item i i i . The constraint in (8) becomes ∑ i = 1 I w i Δ i ≤ B t \sum_{i=1}^{I}w_i\Delta_i\leq B_t ∑ i = 1 I w i Δ i ≤ B t and the same dynamic programming approach finds the optimal batch by accounting for these costs in the remaining budget.
Sequential algorithm
Algorithm 3 gives the full sampling procedure. In each round, we update the threshold from the current prior and allocate samples by solving (8) using one of the batch builders above.
Algorithm 3 Threshold-EOC allocation for top-k k k selection (TEAk)
Input: priors ( Π i , 0 ) i = 1 I (\Pi_{i,0})_{i=1}^{I} ( Π i , 0 ) i = 1 I , sampling distributions ( P i ( ⋅ ∣ θ i ) ) i = 1 I (P_i(\cdot\mid\theta_i))_{i=1}^{I} ( P i ( ⋅ ∣ θ i ) ) i = 1 I , warm-up n 0 n_0 n 0 , batch sizes ( B t ) t = 1 T (B_t)_{t=1}^{T} ( B t ) t = 1 T
Initialize: N i ( 0 ) = 0 N_i(0)=0 N i ( 0 ) = 0 for all i i i
Warm-up: for each i i i , allocate n 0 n_0 n 0 samples, observe outcomes, and update N i ( 1 ) = n 0 N_i(1)=n_0 N i ( 1 ) = n 0 and Π i , 1 \Pi_{i,1} Π i , 1
for t = 1 , … , T t=1,\ldots,T t = 1 , … , T
Compute q ( t ) q(t) q ( t ) using (2) or (3)
Run DPBB to obtain Δ t \Delta^t Δ t , or GBB when (9) holds for every item
For each i i i , allocate Δ i t \Delta_i^t Δ i t samples and observe outcomes
Update N i ( t + 1 ) = N i ( t ) + Δ i t N_i(t+1)=N_i(t)+\Delta_i^t N i ( t + 1 ) = N i ( t ) + Δ i t and Π i , t + 1 \Pi_{i,t+1} Π i , t + 1
Return S k ( μ ( T + 1 ) ) S_k(\boldsymbol{\mu}(T+1)) S k ( μ ( T + 1 ))
ESCP explicit expressions for Algorithm 3
This section instantiates Algorithm 3 for the five ESCP in Remark 1. Recall from (7) that
ℓ i , t ( Δ i ) = c i ( t , Δ i ) E t [ ( z i ( t , Δ i ) − θ i ) + ] , z i ( t , Δ i ) : = μ i ( t ) + q ( t ) − μ i ( t ) c i ( t , Δ i ) . \ell_{i,t}(\Delta_i)=c_i(t,\Delta_i)\mathbb{E}_t\left[(z_i(t,\Delta_i)-\theta_i)^+\right],\qquad z_i(t,\Delta_i):=\mu_i(t)+\frac{q(t)-\mu_i(t)}{c_i(t,\Delta_i)}. ℓ i , t ( Δ i ) = c i ( t , Δ i ) E t [ ( z i ( t , Δ i ) − θ i ) + ] , z i ( t , Δ i ) := μ i ( t ) + c i ( t , Δ i ) q ( t ) − μ i ( t ) .
Computing the round t t t allocation thus requires explicit formulas for c i ( t , Δ i ) c_i(t,\Delta_i) c i ( t , Δ i ) as well as E t [ ( z − θ i ) + ] \mathbb{E}_t[(z-\theta_i)^+] E t [( z − θ i ) + ] for each family, which are given in Proposition 3.
Proposition 3. Fix round t t t and write μ i : = μ i ( t ) \mu_i := \mu_i(t) μ i := μ i ( t ) . For (ii)–(iv), write a i : = a i ( t ) a_i := a_i(t) a i := a i ( t ) and b i : = b i ( t ) b_i := b_i(t) b i := b i ( t ) .
(i) Gaussian, known variance σ i 2 \sigma_i^2 σ i 2 . Posterior N ( m i , s i 2 ) N(m_i,s_i^2) N ( m i , s i 2 ) , μ i = m i \mu_i=m_i μ i = m i :
c i ( t , Δ i ) 2 = 1 1 + ( s i 2 / σ i 2 ) Δ i E t [ ( z − θ i ) + ] = ( z − m i ) Φ ( z − m i s i ) + s i ϕ ( z − m i s i ) c_i(t,\Delta_i)^2=\frac{1}{1+(s_i^2/\sigma_i^2)\Delta_i}
\qquad
\mathbb{E}_t[(z-\theta_i)^+]=(z-m_i)\Phi\left(\frac{z-m_i}{s_i}\right)+s_i\phi\left(\frac{z-m_i}{s_i}\right) c i ( t , Δ i ) 2 = 1 + ( s i 2 / σ i 2 ) Δ i 1 E t [( z − θ i ) + ] = ( z − m i ) Φ ( s i z − m i ) + s i ϕ ( s i z − m i ) where ϕ \phi ϕ is the standard normal density.
(ii) Binomial/Bernoulli. Observations are binomial with success probability p i p_i p i and number of trials r ∈ Z + r\in\mathbb{Z}_+ r ∈ Z + . Posterior p i ∼ Beta ( a i , b i ) p_i\sim\operatorname{Beta}(a_i,b_i) p i ∼ Beta ( a i , b i ) , μ i = r a i / n i \mu_i=ra_i/n_i μ i = r a i / n i where n i = a i + b i n_i=a_i+b_i n i = a i + b i :
c i ( t , Δ i ) 2 = 1 1 + ( r / n i ) Δ i E t [ ( z − θ i ) + ] = { 0 , z ≤ 0 , z I z / r ( a i , b i ) − μ i I z / r ( a i + 1 , b i ) , 0 < z < r , z − μ i , z ≥ r c_i(t,\Delta_i)^2=\frac{1}{1+(r/n_i)\Delta_i}
\qquad
\mathbb{E}_t[(z-\theta_i)^+]=
\begin{cases}
0, & z\le0,\\
zI_{z/r}(a_i,b_i)-\mu_i I_{z/r}(a_i+1,b_i), & 0<z<r,\\
z-\mu_i, & z\ge r
\end{cases} c i ( t , Δ i ) 2 = 1 + ( r / n i ) Δ i 1 E t [( z − θ i ) + ] = ⎩ ⎨ ⎧ 0 , z I z / r ( a i , b i ) − μ i I z / r ( a i + 1 , b i ) , z − μ i , z ≤ 0 , 0 < z < r , z ≥ r where I z ( a , b ) I_z(a,b) I z ( a , b ) is the regularized incomplete beta function.
(iii) Poisson. Posterior Gamma ( a i , b i ) \operatorname{Gamma}(a_i,b_i) Gamma ( a i , b i ) with shape a i a_i a i and rate b i b_i b i , μ i = a i / b i \mu_i=a_i/b_i μ i = a i / b i :
c i ( t , Δ i ) 2 = 1 1 + Δ i / b i E t [ ( z − θ i ) + ] = { 0 , z ≤ 0 , z γ ( a i , b i z ) − μ i γ ( a i + 1 , b i z ) , z > 0 c_i(t,\Delta_i)^2=\frac{1}{1+\Delta_i/b_i}
\qquad
\mathbb{E}_t[(z-\theta_i)^+]=
\begin{cases}
0, & z\le0,\\
z\gamma(a_i,b_i z)-\mu_i\gamma(a_i+1,b_i z), & z>0
\end{cases} c i ( t , Δ i ) 2 = 1 + Δ i / b i 1 E t [( z − θ i ) + ] = { 0 , z γ ( a i , b i z ) − μ i γ ( a i + 1 , b i z ) , z ≤ 0 , z > 0 where γ ( a , x ) \gamma(a,x) γ ( a , x ) is the lower regularized incomplete gamma function.
(iv) Gamma, known shape κ i \kappa_i κ i . Posterior InvGamma ( a i , b i ) \operatorname{InvGamma}(a_i,b_i) InvGamma ( a i , b i ) , μ i = b i / ( a i − 1 ) \mu_i=b_i/(a_i-1) μ i = b i / ( a i − 1 ) :
c i ( t , Δ i ) 2 = 1 1 + ( κ i / ( a i − 1 ) ) Δ i E t [ ( z − θ i ) + ] = { 0 , z ≤ 0 , z Γ ( a i , b i / z ) − μ i Γ ( a i − 1 , b i / z ) , z > 0 c_i(t,\Delta_i)^2=\frac{1}{1+(\kappa_i/(a_i-1))\Delta_i}
\qquad
\mathbb{E}_t[(z-\theta_i)^+]=
\begin{cases}
0, & z\le0,\\
z\Gamma(a_i,b_i/z)-\mu_i\Gamma(a_i-1,b_i/z), & z>0
\end{cases} c i ( t , Δ i ) 2 = 1 + ( κ i / ( a i − 1 )) Δ i 1 E t [( z − θ i ) + ] = { 0 , z Γ ( a i , b i / z ) − μ i Γ ( a i − 1 , b i / z ) , z ≤ 0 , z > 0 where Γ ( a , x ) \Gamma(a,x) Γ ( a , x ) is the upper regularized incomplete gamma function.
(v) Lognormal. Posterior lognormal with log-mean m i m_i m i , log-variance s i 2 s_i^2 s i 2 , μ i = e m i + s i 2 / 2 \mu_i=e^{m_i+s_i^2/2} μ i = e m i + s i 2 /2 , and s i 2 ( Δ i ) : = ( 1 / s i 2 + Δ i / σ i 2 ) − 1 s_i^2(\Delta_i):=(1/s_i^2+\Delta_i/\sigma_i^2)^{-1} s i 2 ( Δ i ) := ( 1/ s i 2 + Δ i / σ i 2 ) − 1 :
c i ( t , Δ i ) 2 = 1 − e − s i 2 ( Δ i ) 1 − e − s i 2 E t [ ( z − θ i ) + ] = { 0 , z ≤ 0 , z Φ ( log z − m i s i ) − μ i Φ ( log z − m i − s i 2 s i ) , z > 0 c_i(t,\Delta_i)^2=\frac{1-e^{-s_i^2(\Delta_i)}}{1-e^{-s_i^2}}
\qquad
\mathbb{E}_t[(z-\theta_i)^+]=
\begin{cases}
0, & z\le0,\\
z\Phi\left(\frac{\log z-m_i}{s_i}\right)-\mu_i\Phi\left(\frac{\log z-m_i-s_i^2}{s_i}\right), & z>0
\end{cases} c i ( t , Δ i ) 2 = 1 − e − s i 2 1 − e − s i 2 ( Δ i ) E t [( z − θ i ) + ] = { 0 , z Φ ( s i l o g z − m i ) − μ i Φ ( s i l o g z − m i − s i 2 ) , z ≤ 0 , z > 0 For (i)–(iv), c i ( t , Δ i ) 2 c_i(t,\Delta_i)^2 c i ( t , Δ i ) 2 has the form (10), so GBB solves (8) exactly by Proposition 2(ii). For (v), c i ( t , Δ i ) 2 c_i(t,\Delta_i)^2 c i ( t , Δ i ) 2 does not have this form in general.
Theoretical guarantees
The guarantees in §3 concern the optimization of the surrogate objective (8), not the performance of TEAk in reducing EOC. In this section, we give asymptotic performance guarantees for TEAk. We begin by showing that TEAk is consistent (EOC(H t \mathcal{H}_t H t ) converges to zero) and then make additional distributional assumptions to obtain a much stronger result. In particular, with threshold q i ⋆ ( t ) q_i^\star(t) q i ⋆ ( t ) , we show that the asymptotic exponential rate at which EOC(H t \mathcal{H}_t H t ) converges to zero, referred to as the posterior convergence rate, is at least half of the best rate achievable by any sequential sampling rule.
Throughout this section, we fix a true mean vector θ 0 ∈ J I \boldsymbol{\theta}^{0} \in\mathcal{J}^{I} θ 0 ∈ J I . We write P θ 0 \mathbb{P}_{\boldsymbol{\theta}^{0}} P θ 0 and E θ 0 \mathbb{E}_{\boldsymbol{\theta}^{0}} E θ 0 for probability and expectation over observations generated from P i ( ⋅ ∣ θ i 0 ) P_i(\cdot\mid\theta_i^{0}) P i ( ⋅ ∣ θ i 0 ) . All convergence statements hold P θ 0 \mathbb{P}_{\boldsymbol{\theta}^{0}} P θ 0 -almost surely.
Although the true means are fixed, EOC ( H t ) \operatorname{EOC}(\mathcal{H}_t) EOC ( H t ) remains the Bayesian posterior expectation in (1). Our rate guarantees also hold for the posterior error probability P t ( S k ( θ ) ≠ S k ( θ 0 ) ) \mathbb{P}_t(S_k(\boldsymbol{\theta}) \ne S_k(\boldsymbol{\theta}^{0})) P t ( S k ( θ ) = S k ( θ 0 )) , the quantity studied in the k = 1 k=1 k = 1 analyses of Russo [44 ] , Qin et al. [41 ] , and Shang et al. [47 ] .
These posterior guarantees should not be confused with guarantees for the frequentist EOC θ 0 [ OC ( S k ( μ ( t ) ) , θ 0 ) ] \operatorname{EOC}_{\boldsymbol{\theta}^{0}}[\operatorname{OC}(S_k(\boldsymbol{\mu}(t)),\boldsymbol{\theta}^{0})] EOC θ 0 [ OC ( S k ( μ ( t )) , θ 0 )] and the frequentist probability of incorrect selection P θ 0 ( S k ( μ ( t ) ) ≠ S k ( θ 0 ) ) \mathbb{P}_{\boldsymbol{\theta}^{0}}(S_k(\boldsymbol{\mu}(t)) \ne S_k(\boldsymbol{\theta}^{0})) P θ 0 ( S k ( μ ( t )) = S k ( θ 0 )) . The posterior quantities measure the EOC and posterior error probability conditional on an observed history, while the frequentist quantities average over observation histories. This distinction matters for exponential-rate guarantees: a sampling rule that achieves the optimal posterior convergence rate need not achieve the corresponding frequentist rate. In fact, no single sampling rule can generally guarantee a constant fraction of the best exponential decay rate of the frequentist probability of incorrect selection (likewise frequentist expected opportunity cost) uniformly across problem instances [22 , 12 ] .
Consistency
Proposition 4 (Consistency). Run TEA k _k k for infinitely many rounds with threshold q ∗ ( t ) q^{*}(t) q ∗ ( t ) or q ~ ∗ ( t ) \tilde{q}^{*}(t) q ~ ∗ ( t ) . For q ~ ∗ ( t ) \tilde{q}^{*}(t) q ~ ∗ ( t ) , assume that the minimum in (3) is attained whenever μ [ k ] ( t ) > μ [ k + 1 ] ( t ) \mu_{[k]}(t) > \mu_{[k+1]}(t) μ [ k ] ( t ) > μ [ k + 1 ] ( t ) . There is a set Θ ∗ ⊆ J I \Theta^{*} \subseteq\mathcal{J}^{I} Θ ∗ ⊆ J I with prior probability one such that for every θ 0 ∈ Θ ∗ \boldsymbol{\theta}^{0} \in\Theta^{*} θ 0 ∈ Θ ∗ , the following hold as t → ∞ t \to\infty t → ∞ :
(i) N i ( t ) → ∞ N_i(t) \to\infty N i ( t ) → ∞ , μ i ( t ) → θ i 0 \mu_i(t) \to\theta_i^{0} μ i ( t ) → θ i 0 , and v i ( t ) → 0 v_i(t) \to0 v i ( t ) → 0 for every i i i .
(ii) EOC ( H t ) → 0 \operatorname{EOC}(\mathcal{H}_t) \to0 EOC ( H t ) → 0 .
(iii) If θ [ k ] 0 > θ [ k + 1 ] 0 \theta_{[k]}^{0} > \theta_{[k+1]}^{0} θ [ k ] 0 > θ [ k + 1 ] 0 , then S k ( μ ( t ) ) = S k ( θ 0 ) S_k(\boldsymbol{\mu}(t)) = S_k(\boldsymbol{\theta}^{0}) S k ( μ ( t )) = S k ( θ 0 ) for all sufficiently large t t t .
Part (i) says that every item is sampled infinitely often, and consequently its posterior mean converges to the true mean, and its posterior variance to 0. Parts (ii) and (iii) then follow: the posterior EOC converges to 0 and, when the true top-k k k gap is positive, there is a finite time after which S k ( μ ( t ) ) = S k ( θ 0 ) S_k(\boldsymbol{\mu}(t)) = S_k(\boldsymbol{\theta}^{0}) S k ( μ ( t )) = S k ( θ 0 ) .
The optimal exponential rate
For the remainder of this section, assume 1 ≤ B t ≤ B 1 \le B_t \le B 1 ≤ B t ≤ B for every t t t where B B B is a fixed positive integer, and assume θ 1 0 ≥ ⋯ ≥ θ k 0 > θ k + 1 0 ≥ ⋯ ≥ θ I 0 \theta_1^{0} \ge\cdots\ge\theta_k^{0} > \theta_{k+1}^{0} \ge\cdots\ge\theta_I^{0} θ 1 0 ≥ ⋯ ≥ θ k 0 > θ k + 1 0 ≥ ⋯ ≥ θ I 0 . We next establish an upper bound on the posterior convergence rate that any sequential sampling rule can achieve, and characterize the sample allocation that attains this bound. This gives the benchmark against which we will evaluate TEAk _k k . We rely on the general posterior large-deviation analysis of Russo [44 ] , which we then apply to our top-k k k EOC objective. Accordingly, we follow the distributional assumptions of Russo [44 ] .
ASSUMPTION 2 (Bounded exponential-family model). In addition to Assumption 1 , J = ( L , U ) \mathcal{J}=(L,U) J = ( L , U ) with − ∞ < L < U < ∞ -\infty<L<U<\infty − ∞ < L < U < ∞ . For every item i i i , the likelihood has the form
p i ( y ∣ x ) = h i ( y ) exp { η i ( x ) T i ( y ) − A i ( η i ( x ) ) } , x ∈ J , p_i(y\mid x)=h_i(y)\exp\{\eta_i(x)T_i(y)-A_i(\eta_i(x))\},\qquad x\in\mathcal{J}, p i ( y ∣ x ) = h i ( y ) exp { η i ( x ) T i ( y ) − A i ( η i ( x ))} , x ∈ J , where T i T_i T i is strictly increasing and A i A_i A i is twice differentiable. Write E i : = η i ( J ) = ( η ‾ i , η ‾ i ) \mathcal{E}_i:=\eta_i(\mathcal{J})=(\underline{\eta}_i,\overline{\eta}_i) E i := η i ( J ) = ( η i , η i ) , with − ∞ < η ‾ i < η ‾ i < ∞ -\infty<\underline{\eta}_i<\overline{\eta}_i<\infty − ∞ < η i < η i < ∞ , and let π ~ i , 0 \widetilde{\pi}_{i,0} π i , 0 denote the prior density of η i ( θ i ) \eta_i(\theta_i) η i ( θ i ) . We assume
sup η ∈ E i ∣ A i ′ ( η ) ∣ < ∞ , 0 < inf η ∈ E i π ~ i , 0 ( η ) ≤ sup η ∈ E i π ~ i , 0 ( η ) < ∞ . \sup_{\eta\in\mathcal{E}_i}|A_i'(\eta)|<\infty,\qquad0<\inf_{\eta\in\mathcal{E}_i}\widetilde{\pi}_{i,0}(\eta)\leq\sup_{\eta\in\mathcal{E}_i}\widetilde{\pi}_{i,0}(\eta)<\infty. η ∈ E i sup ∣ A i ′ ( η ) ∣ < ∞ , 0 < η ∈ E i inf π i , 0 ( η ) ≤ η ∈ E i sup π i , 0 ( η ) < ∞.
The boundedness assumptions are used in the posterior convergence analysis primarily to facilitate generality across this broad range of families. As Russo [44 ] (1635) notes, “Analogous results are easily established for certain unbounded conjugate priors.” All five ESCP in Remark 1 satisfy Assumption 2 when their priors are restricted and normalized to a bounded interval whose closure is contained in J \mathcal{J} J .
The next result shows that the exponential decay rate of a posterior probability is determined by the empirical sampling proportions. Let Δ I : = { w ∈ R I : w i ≥ 0 , ∑ i w i = 1 } \Delta_I:=\{\mathbf{w}\in\mathbb{R}^I:w_i\geq0,\ \sum_iw_i=1\} Δ I := { w ∈ R I : w i ≥ 0 , ∑ i w i = 1 } , and define the empirical sampling proportions by w ^ i ( t ) : = N i ( t ) / ∑ j N j ( t ) \widehat{w}_i(t):=N_i(t)/\sum_jN_j(t) w i ( t ) := N i ( t ) / ∑ j N j ( t ) for t ≥ 2 t\geq2 t ≥ 2 .
LEMMA 2 (Russo (2020, Proposition 5)). Under any sequential sampling rule, for every nonempty open set O ⊆ J I O\subseteq\mathcal{J}^I O ⊆ J I ,
− log P t ( θ ∈ O ) ∑ i N i ( t ) − inf x ∈ O ∑ i = 1 I w ^ i ( t ) d i ( θ i 0 , x i ) ⟶ 0. (11) -\frac{\log\mathbb{P}_t(\theta\in O)}{\sum_iN_i(t)}-\inf_{\mathbf{x}\in O}\sum_{i=1}^I\widehat{w}_i(t)d_i(\theta_i^0,x_i)\longrightarrow0. \tag*{(11)} − ∑ i N i ( t ) log P t ( θ ∈ O ) − x ∈ O inf i = 1 ∑ I w i ( t ) d i ( θ i 0 , x i ) ⟶ 0. (11)
To interpret the first term in (11) , { θ ∈ O } \{\theta\in O\} { θ ∈ O } is the “bad” event whose probability we want to control. For top-k k k selection, O O O is the set of alternative parameters: parameters whose top-k k k set is different from S k ( θ 0 ) S_k(\theta^0) S k ( θ 0 ) . Ignoring ties which have a posterior probability of zero, these are the parameters where some pair of items ( i , j ) (i,j) ( i , j ) satisfies i ≤ k < j i\leq k<j i ≤ k < j , and yet θ j > θ i \theta_j>\theta_i θ j > θ i . Accordingly, define the alternative space
Alt ( θ 0 ) : = ⋃ i ≤ k < j { x ∈ J I : x j > x i } . \operatorname{Alt}(\theta^0):=\bigcup_{i\leq k<j}\{\mathbf{x}\in\mathcal{J}^I:x_j>x_i\}. Alt ( θ 0 ) := i ≤ k < j ⋃ { x ∈ J I : x j > x i } .
so that P t ( θ ∈ Alt ( θ 0 ) ) = P t ( S k ( θ ) ≠ S k ( θ 0 ) ) \mathbb{P}_t(\theta\in\operatorname{Alt}(\theta^0))=\mathbb{P}_t(S_k(\theta)\ne S_k(\theta^0)) P t ( θ ∈ Alt ( θ 0 )) = P t ( S k ( θ ) = S k ( θ 0 )) . We will apply Lemma 2 with O = Alt ( θ 0 ) O=\operatorname{Alt}(\theta^0) O = Alt ( θ 0 ) . In the second term, for fixed sampling proportions w \mathbf{w} w , the quantity ∑ i w i d i ( θ i 0 , x i ) \sum_iw_id_i(\theta_i^0,x_i) ∑ i w i d i ( θ i 0 , x i ) is the expected log-likelihood ratio per observation between the true parameter θ 0 \theta^0 θ 0 and an alternative x \mathbf{x} x . The infimum over O O O therefore identifies the alternative parameter that this allocation provides the least evidence to distinguish from the true parameter. For w ∈ Δ I \mathbf{w}\in\Delta_I w ∈ Δ I , denote this infimum at O = Alt ( θ 0 ) O=\operatorname{Alt}(\theta^0) O = Alt ( θ 0 ) by Γ ( w ; θ 0 ) \Gamma(\mathbf{w};\theta^0) Γ ( w ; θ 0 ) . Lemma 3 characterizes its structure.
LEMMA 3 (Pairwise representation of Γ \Gamma Γ ). For every w ∈ Δ I \mathbf{w}\in\Delta_I w ∈ Δ I ,
Γ ( w ; θ 0 ) : = inf x ∈ Alt ( θ 0 ) ∑ ℓ = 1 I w ℓ d ℓ ( θ ℓ 0 , x ℓ ) = min i ≤ k < j min x ∈ [ θ j 0 , θ i 0 ] { w i d i ( θ i 0 , x ) + w j d j ( θ j 0 , x ) } . (12) \Gamma(\mathbf{w};\theta^0):=\inf_{\mathbf{x}\in\operatorname{Alt}(\theta^0)}\sum_{\ell=1}^Iw_\ell d_\ell(\theta_\ell^0,x_\ell)
=\min_{i\leq k<j}\ \min_{x\in[\theta_j^0,\theta_i^0]}\{w_id_i(\theta_i^0,x)+w_jd_j(\theta_j^0,x)\}. \tag*{(12)} Γ ( w ; θ 0 ) := x ∈ Alt ( θ 0 ) inf ℓ = 1 ∑ I w ℓ d ℓ ( θ ℓ 0 , x ℓ ) = i ≤ k < j min x ∈ [ θ j 0 , θ i 0 ] min { w i d i ( θ i 0 , x ) + w j d j ( θ j 0 , x )} . (12)
Lemma 3 says that Γ ( w ; θ 0 ) \Gamma(\mathbf{w};\theta^{0}) Γ ( w ; θ 0 ) is determined by the pair of items satisfying i ≤ k < j i \le k < j i ≤ k < j whose relative ranking is hardest to learn under the sampling design w \mathbf{w} w . Maximizing over w \mathbf{w} w gives
Γ ∗ ( θ 0 ) : = max w ∈ Δ I Γ ( w ; θ 0 ) . (13) \Gamma^{*}(\theta^{0}) := \max_{\mathbf{w} \in\Delta_{I}} \Gamma(\mathbf{w};\theta^{0}). \tag*{(13)} Γ ∗ ( θ 0 ) := w ∈ Δ I max Γ ( w ; θ 0 ) . (13)
The next proposition establishes that Γ ∗ ( θ 0 ) \Gamma^{*}(\theta^{0}) Γ ∗ ( θ 0 ) is the optimal exponential decay rate of posterior EOC and that it is attained by any sampling rule whose empirical proportions converge to a maximizer of (13).
Proposition 5 (Optimal exponential rate of posterior EOC). (i) The maximum in (13) is attained, and 0 < Γ ∗ ( θ 0 ) < ∞ 0 < \Gamma^{*}(\theta^{0}) < \infty 0 < Γ ∗ ( θ 0 ) < ∞ .
(ii) Every sampling rule satisfies
lim sup t → ∞ − log EOC ( H t ) ∑ i N i ( t ) ≤ Γ ∗ ( θ 0 ) . \limsup_{t \to\infty} -\frac{\log\operatorname{EOC}(\mathcal{H}_{t})}{\sum_i N_i(t)} \le\Gamma^{*}(\theta^{0}). t → ∞ lim sup − ∑ i N i ( t ) log EOC ( H t ) ≤ Γ ∗ ( θ 0 ) . (iii) If the sampling proportions converge to a maximizer of (13), then
lim t → ∞ − log EOC ( H t ) ∑ i N i ( t ) = Γ ∗ ( θ 0 ) . \lim_{t \to\infty} -\frac{\log\operatorname{EOC}(\mathcal{H}_{t})}{\sum_i N_i(t)} = \Gamma^{*}(\theta^{0}). t → ∞ lim − ∑ i N i ( t ) log EOC ( H t ) = Γ ∗ ( θ 0 ) .
We next show that, with threshold q † ( t ) q^{\dagger}(t) q † ( t ) , TEAk’s posterior convergence rate is at least Γ ∗ ( θ 0 ) / 2 \Gamma^{*}(\theta^{0})/2 Γ ∗ ( θ 0 ) /2 .
The rate of TEAk
To determine the rate TEAk achieves, it is sufficient to characterize the sample proportions produced asymptotically. First, we do this assuming the threshold q ( t ) q(t) q ( t ) converges to some point q ∈ ( θ k + 1 0 , θ k 0 ) q \in(\theta^{0}_{k+1},\theta^{0}_{k}) q ∈ ( θ k + 1 0 , θ k 0 ) . For such a q q q , define the proportions
w i ( q ) : = 1 / d i ( θ 0 , q ) ∑ j = 1 I 1 / d j ( θ 0 , q ) , i = 1 , … , I . (14) w_i(q) := \frac{1/d_i(\theta^{0},q)}{\sum_{j=1}^{I} 1/d_j(\theta^{0},q)}, \qquad i=1,\ldots,I. \tag*{(14)} w i ( q ) := ∑ j = 1 I 1/ d j ( θ 0 , q ) 1/ d i ( θ 0 , q ) , i = 1 , … , I . (14)
Theorem 1 (Allocation and rate for a convergent threshold). Assume q ( t ) → q 0 ∈ ( θ k + 1 0 , θ k 0 ) q(t) \to q_0 \in(\theta^{0}_{k+1},\theta^{0}_{k}) q ( t ) → q 0 ∈ ( θ k + 1 0 , θ k 0 ) . Then
(i) w ^ i ( t ) → w i ( q 0 ) \widehat{w}_i(t) \to w_i(q_0) w i ( t ) → w i ( q 0 ) for every i i i ,
(ii) − log EOC ( H t ) ∑ i N i ( t ) → Γ ( w ( q 0 ) ; θ 0 ) -\frac{\log\operatorname{EOC}(\mathcal{H}_t)}{\sum_i N_i(t)} \to\Gamma(\mathbf{w}(q_0);\theta^{0}) − ∑ i N i ( t ) l o g EOC ( H t ) → Γ ( w ( q 0 ) ; θ 0 ) ,
(iii) Γ ( w ( q 0 ) ; θ 0 ) ≥ ( ∑ i = 1 I 1 / d i ( θ 0 , q 0 ) ) − 1 \Gamma(\mathbf{w}(q_0);\theta^{0}) \ge\left(\sum_{i=1}^{I} 1/d_i(\theta^{0},q_0)\right)^{-1} Γ ( w ( q 0 ) ; θ 0 ) ≥ ( ∑ i = 1 I 1/ d i ( θ 0 , q 0 ) ) − 1 .
Part (i) says that the asymptotic sampling proportions of TEAk are described by (14). To prove this, we show that
− log D i , t ( d ) N i ( t ) ⟶ d i ( θ 0 , q 0 ) for every i and d = 0 , … , B − 1. -\frac{\log D_{i,t}(d)}{N_i(t)} \longrightarrow d_i(\theta^{0},q_0) \qquad\text{for every } i \text{ and } d=0,\ldots,B-1. − N i ( t ) log D i , t ( d ) ⟶ d i ( θ 0 , q 0 ) for every i and d = 0 , … , B − 1.
Thus, d i ( θ 0 , q 0 ) d_i(\theta^{0},q_0) d i ( θ 0 , q 0 ) gives the exponential decay rate of the marginal decrease in the surrogate per sample of item i i i . Since TEAk allocates samples to the items with the largest marginal decreases (the argument under DPBB is a bit more technical but also holds), it asymptotically samples the items with the smallest N i ( t ) d i ( θ 0 , q 0 ) N_i(t)d_i(\theta^{0},q_0) N i ( t ) d i ( θ 0 , q 0 ) , which leads to balancing N i ( t ) d i ( θ 0 , q 0 ) N_i(t)d_i(\theta^{0},q_0) N i ( t ) d i ( θ 0 , q 0 ) across all items. Therefore, the sampling proportions converge to w i ( q 0 ) w_i(q_0) w i ( q 0 ) , which makes w i ( q 0 ) d i ( θ 0 , q 0 ) w_i(q_0)d_i(\theta^{0},q_0) w i ( q 0 ) d i ( θ 0 , q 0 ) equal across items. Part (ii) says that TEAk’s posterior convergence rate is then obtained by plugging these proportions into Γ \Gamma Γ . Part (iii) gives a lower bound on TEAk’s rate, and we establish the one-half guarantee by comparing this lower bound, rather than Γ ( w ( q 0 ) ; θ 0 ) \Gamma(\mathbf{w}(q_0);\boldsymbol{\theta}^0) Γ ( w ( q 0 ) ; θ 0 ) itself, with the optimal rate Γ ∗ ( θ 0 ) \Gamma^*(\boldsymbol{\theta}^0) Γ ∗ ( θ 0 ) . This lower bound motivates choosing the threshold that makes it tightest,
q † ∈ arg min q k + 1 0 < q < q k 0 ∑ i = 1 I 1 d i ( θ i 0 , q ) . q^\dagger\in\underset{q_{k+1}^0<q<q_k^0}{\operatorname{arg\,min}}\sum_{i=1}^{I}\frac{1}{d_i(\theta_i^0,q)}. q † ∈ q k + 1 0 < q < q k 0 arg min i = 1 ∑ I d i ( θ i 0 , q ) 1 .
Replacing the true means with the posterior means results in our choice of threshold q † ( t ) q^\dagger(t) q † ( t ) in (3). This parallels our earlier choice of q ∗ ( t ) q^*(t) q ∗ ( t ) : there we minimize an upper bound on the current EOC, whereas here we maximize a lower bound on its exponential decay rate.
It remains to show that q † ( t ) → q † q^\dagger(t)\to q^\dagger q † ( t ) → q † . To establish this convergence, we assume the minimizer is unique.
Assumption 3 (Unique threshold). For every x ∈ J I \mathbf{x}\in\mathcal{J}^I x ∈ J I with x [ k ] > x [ k + 1 ] x_{[k]}>x_{[k+1]} x [ k ] > x [ k + 1 ] , the function q ↦ ∑ i = 1 I 1 / d i ( x i , q ) q\mapsto\sum_{i=1}^{I}1/d_i(x_i,q) q ↦ ∑ i = 1 I 1/ d i ( x i , q ) has a unique minimizer on ( x [ k + 1 ] , x [ k ] ) (x_{[k+1]},x_{[k]}) ( x [ k + 1 ] , x [ k ] ) .
Remark 3. Each likelihood family in Remark 1 satisfies Assumption 3.
Lemma 4 (Convergence of q † ( t ) q^\dagger(t) q † ( t ) ). Run Algorithm 3 with threshold q † ( t ) q^\dagger(t) q † ( t ) . Then q † ( t ) → q † q^\dagger(t)\to q^\dagger q † ( t ) → q † .
By Lemma 4, Theorem 1 applies with q 0 = q † q_0=q^\dagger q 0 = q † . We further show that ( ∑ i = 1 I 1 / d i ( θ i 0 , q † ) ) − 1 ≥ Γ ∗ ( θ 0 ) / 2 \left(\sum_{i=1}^{I}1/d_i(\theta_i^0,q^\dagger)\right)^{-1}\geq\Gamma^*(\theta^0)/2 ( ∑ i = 1 I 1/ d i ( θ i 0 , q † ) ) − 1 ≥ Γ ∗ ( θ 0 ) /2 , which yields our main theoretical result.
Theorem 2 (Exponential rate of TEAk). Run Algorithm 3 with threshold q † ( t ) q^\dagger(t) q † ( t ) . Then
lim t → ∞ − log EOC ( H t ) ∑ i N i ( t ) ≥ 1 2 Γ ∗ ( θ 0 ) . \lim_{t\to\infty}-\frac{\log\operatorname{EOC}(\mathcal{H}_t)}{\sum_i N_i(t)}\geq\frac{1}{2}\Gamma^*(\theta^0). t → ∞ lim − ∑ i N i ( t ) log EOC ( H t ) ≥ 2 1 Γ ∗ ( θ 0 ) .
Thus, the posterior convergence rate of TEAk is at least half the optimal posterior convergence rate. The conclusions in Proposition 5 and in Theorems 1 and 2 also hold when EOC ( H t ) \operatorname{EOC}(\mathcal{H}_t) EOC ( H t ) is replaced by the posterior error probability P t ( S k ( θ ) ≠ S k ( θ 0 ) ) \mathbb{P}_t(S_k(\theta)\ne S_k(\theta^0)) P t ( S k ( θ ) = S k ( θ 0 )) .
Numerical illustration
We illustrate Theorems 1 and 2 on a Gaussian instance with I = 20 I=20 I = 20 , k = 5 k=5 k = 5 , likelihood variance of 1, and true means θ i 0 = − ( i − 1 ) / 2 \theta_i^0=-(i-1)/2 θ i 0 = − ( i − 1 ) /2 so that the gap between consecutive means is 0.5. On this instance Γ ∗ ( θ 0 ) = 0.0243 \Gamma^*(\theta^0)=0.0243 Γ ∗ ( θ 0 ) = 0.0243 and q † = − 2.25 q^\dagger=-2.25 q † = − 2.25 , the midpoint between θ k 0 \theta_k^0 θ k 0 and θ k + 1 0 \theta_{k+1}^0 θ k + 1 0 . The rate of the threshold allocation is Γ ( w ( q † ) ; θ 0 ) = 0.57 Γ ∗ ( θ 0 ) \Gamma(\mathbf{w}(q^\dagger);\theta^0)=0.57\ \Gamma^*(\theta^0) Γ ( w ( q † ) ; θ 0 ) = 0.57 Γ ∗ ( θ 0 ) and the lower bound on it in Theorem 1(iii) is 0.53 Γ ∗ ( θ 0 ) 0.53\ \Gamma^*(\theta^0) 0.53 Γ ∗ ( θ 0 ) .
We run TEAk with q † ( t ) q^\dagger(t) q † ( t ) on this instance with B t = 1 B_t=1 B t = 1 , a sampling budget of 20,000, and a N ( 0 , 10 2 ) \mathcal{N}(0,10^2) N ( 0 , 1 0 2 ) prior over 50 replications. We also run two fixed allocations: the oracle w ∗ \mathbf{w}^* w ∗ that maximizes (13) using the true means, and equal allocation. Figure 3 shows the results.
Figure 3. Left: TEAk’s sampling proportions at t = 20,000 t = 20{,}000 t = 20 , 000 , averaged over replications, as well as w ( q ⋆ ) \mathbf{w}(q^\star) w ( q ⋆ ) and w ∗ \mathbf{w}^\ast w ∗ . Middle: − log EOC ( H t ) / ( t Γ ∗ ( θ 0 ) ) -\log\operatorname{EOC}(\mathcal{H}_t)/(t\Gamma^\ast(\boldsymbol{\theta}^0)) − log EOC ( H t ) / ( t Γ ∗ ( θ 0 )) for TEAk, the oracle allocation, and equal allocation on each of the 50 replications (median in bold). Right: the threshold q † ( t ) q^\dagger(t) q † ( t ) on each of the 50 replications (median in bold).
The left panel shows the average sampling proportions at the end of the run. TEAk’s proportions coincide with w ( q † ) \mathbf{w}(q^\dagger) w ( q † ) , as guaranteed by Theorem 1(i), and are a bit off from w ∗ \mathbf{w}^* w ∗ : TEAk puts 83% of the budget on the k k k th and ( k + 1 ) (k+1) ( k + 1 ) th items, whereas w ∗ \mathbf{w}^\ast w ∗ puts 78%. The middle panel shows an approximation1 of − log EOC ( H t ) / t -\log\operatorname{EOC}(\mathcal{H}_t)/t − log EOC ( H t ) / t along each replication as a fraction of Γ ∗ ( θ 0 ) \Gamma^\ast(\boldsymbol{\theta}^0) Γ ∗ ( θ 0 ) . For TEAk, it decreases towards Γ ( w ( q † ) ; θ 0 ) \Gamma(\mathbf{w}(q^\dagger);\boldsymbol{\theta}^0) Γ ( w ( q † ) ; θ 0 ) in line with Theorem 1(ii), and for the oracle allocation it approaches Γ ∗ ( θ 0 ) \Gamma^\ast(\boldsymbol{\theta}^0) Γ ∗ ( θ 0 ) . The right panel shows the convergence q † ( t ) → q † q^\dagger(t) \to q^\dagger q † ( t ) → q † on each replication.
Numerical experiments
In this section, we evaluate TEAk’s performance numerically by comparing it to the most competitive algorithms in the literature. For this comparison, we use a batch size of 1, as most benchmarks are designed for the fully sequential problem. §5.3 then turns to the batched setting and compares the performance of TEAk across batch sizes. Throughout, TEAk and TEAk-q † ( t ) q^\dagger(t) q † ( t ) denote Algorithm 3 with the threshold q ⋆ q^\star q ⋆ and q † ( t ) q^\dagger(t) q † ( t ) respectively. Across all settings, the two are nearly identical in both performance and allocation.
Setup
We consider I ∈ { 20 , 50 , 100 } I \in\{20, 50, 100\} I ∈ { 20 , 50 , 100 } , with a sampling budget of up to 1,000 ⋅ I 1{,}000 \cdot I 1 , 000 ⋅ I for each setting. For I = 20 I = 20 I = 20 we consider k ∈ { 1 , 3 , 5 , 10 } k \in\{1, 3, 5, 10\} k ∈ { 1 , 3 , 5 , 10 } , and for I ∈ { 50 , 100 } I \in\{50, 100\} I ∈ { 50 , 100 } we consider k ∈ { 1 , 5 , 10 , 20 } k \in\{1, 5, 10, 20\} k ∈ { 1 , 5 , 10 , 20 } . On each ( I , k ) (I, k) ( I , k ) pair, we consider four likelihood families: Gaussian, exponential, Bernoulli, and lognormal. For each of the four families, we consider three generative distributions for their true means θ \boldsymbol{\theta} θ , given in Table 1. These ranges, although somewhat arbitrary, are targeted so that the difficulty of the identification problem is approximately the same across the likelihood families. The results are generally the same across these three generative distributions of the true means, so we report the results in the middle column in this section, giving the rest in Appendix D. We run 10,000 replications of each simulation, drawing the true means afresh in each.
Fair comparison. We use three measures to ensure each method is on equal footing. First, within a replication, all methods have the same true means and the outcomes come from the same stream, so the n n n th observation of an item i i i is identical across methods. Second, to ensure fairness across Bayesian and frequentist methods, the Bayesian methods all use the same uninformative (Jeffreys) prior for each distribution family: the flat prior for the Gaussian mean, ∝ 1 / θ \propto1/\theta ∝ 1/ θ for the exponential mean, Beta( 1 / 2 , 1 / 2 ) (1/2,1/2) ( 1/2 , 1/2 ) for Bernoulli, and the flat prior on log θ \log\theta log θ for the lognormal mean (Jeffreys [27 ] ). Third, since some benchmark methods require a warm-up, each algorithm receives a warm-up of n 0 = 3 n_0=3 n 0 = 3 samples per item.
Benchmarks. We compare against the following benchmarks, all of which aim to maximize PCS unless otherwise specified.
General k > 1 k>1 k > 1 from the Best Arm(s) Identification Literature: The top-k k k Thompson sampling approaches TS-PPS-IDS and TS-KKT(.5)-IDS from You et al. [50 ] , Qin and You [42 ] , KL-LUCB from Kaufmann and Kalyanakrishnan [35 ] , and gap-e from Bubeck et al. [2 ] .
Metrics. Since most benchmarks aim to maximize PCS, we report both EOC and PCS, estimated from the 10,000 replications. Consistent with previous literature and the discussion in the introduction, the two are closely aligned. Since none of the methods other than gap-e depend on the total budget, we have their EOC and PCS for every fixed budget up to 1,000 ⋅ I 1{,}000\cdot I 1 , 000 ⋅ I .
Results
To keep the paper focused, we report PCS at the largest budget (1,000 ⋅ I 1{,}000\cdot I 1 , 000 ⋅ I ), and for EOC, we report performance curves across budgets for the Gaussian setting. The PCS and EOC performance curves for all settings are in Appendix D.
PCS. Figure 4 shows the PCS of each benchmark relative to TEAk _k k for all configurations. TEAk _k k generally has the highest PCS, and when it does not, it is within a few percent of the best. TEAk _k k ’s biggest advantage over the benchmarks is on larger problems (I = 100 I = 100 I = 100 ) and larger k k k . To show more clearly how TEAk _k k improves over the best benchmarks and how it compares with TEAk _k k -q † ( t ) q^\dagger(t) q † ( t ) , Figure 5 takes the four best-performing benchmarks, together with TEAk _k k -q † ( t ) q^\dagger(t) q † ( t ) , and plots the distribution over all configurations of their PCS relative to TEAk _k k . Each benchmark falls short of TEAk _k k by 5% or more in some configurations, while none beats it by more than 0.2% in any configuration. In addition, TEAk _k k outperforms TEAk _k k -q † ( t ) q^\dagger(t) q † ( t ) in 36 of the 48 configurations, and in every configuration the PCS of TEAk _k k -q † ( t ) q^\dagger(t) q † ( t ) is between 0.8% below and 0.3% above that of TEAk _k k .
Figure 4. % difference in PCS between benchmarks and T E A k \mathrm{TEA}_k TEA k at budget 1,000 ⋅ I 1{,}000 \cdot I 1 , 000 ⋅ I (positive means benchmark is better).
Figure 5. The distribution across all settings in Figure 4 for the four strongest benchmarks and T E A k − q t ( t ) \mathrm{TEA}_k-q^{t}(t) TEA k − q t ( t ) .
EOC over the whole budget. Figure 6 plots EOC on a log scale against cumulative samples spent for the Gaussian family and each (I I I , k k k ) pair. At k = 1 k = 1 k = 1 , the most competitive benchmarks are the TTTS variants, and for general k k k the most competitive are gap-e, KL-LUCB, and the top-k k k Thompson sampling methods. Which benchmark is best (or near-best) varies across configurations and varies with the budget within a configuration. TEAk _k k is the exception: in every configuration, its EOC is the lowest, or close to it, across all budgets. The plots for the other three sampling families show a similar picture.
Figure 6. Gaussian: EOC (log scale) against budget (max budget = 1,000·I I I ). Rows vary the problem size I I I and columns vary k k k .
Batching
We now investigate TEAk _k k ’s performance in the batched setting, one of its main motivations. We compare against BatchSAR [31 ] , a version of the successive accepts and rejects algorithm of Bubeck et al. (2013) designed specifically for fixed-budget top-k k k identification with batched sampling. We consider the Gaussian and Bernoulli families with I ∈ { 20 , 50 , 100 } I \in\{20, 50, 100\} I ∈ { 20 , 50 , 100 } , k = 5 k = 5 k = 5 , and the middle column of Table 1. Since BatchSAR’s schedule depends on the total budget, we cannot run it with a large budget and read off its performance at every point along the way, so we fix a budget of 50 ⋅ I 50 \cdot I 50 ⋅ I and consider batch sizes of 1%, 2%, 5%, and 10% of the budget. Figure 7 plots PCS, the objective BatchSAR is designed to maximize. Not only does TEAk have a higher PCS at the smallest batch size, but it also decreases less as the batch size grows: from batches of 1% to 10% of the budget, its PCS falls by up to 12%, and BatchSAR’s by up to 29%.
Figure 7. PCS at the final budget of 50 ⋅ I 50 \cdot I 50 ⋅ I against the batch size for the Gaussian (top) and Bernoulli (bottom) families with k = 5 k = 5 k = 5 .
Discussion
We give a simple and interpretable algorithm for top-k k k selection that accommodates batching in a principled way and can be applied to a wide range of sampling distribution families. We prove that it is consistent and that with the threshold q ∗ ( t ) q^{*}(t) q ∗ ( t ) , its posterior convergence rate is at least half of the best rate achievable by any sampling rule. In simulation, it is competitive with the state-of-the-art methods across likelihood families, problem sizes, values of k k k , and batch sizes.
Proofs for §3
Proof of Lemma 1(i) Fix any realized θ ∈ R I \boldsymbol{\theta} \in\mathbb{R}^{I} θ ∈ R I and any q ∈ R q \in\mathbb{R} q ∈ R . Then
OC ( S k ( μ ( t ) ) , θ ) = ∑ i ∈ S k ( θ ) θ i − ∑ i ∈ S k ( μ ( t ) ) θ i \operatorname{OC}(S_k(\boldsymbol{\mu}(t)),\boldsymbol{\theta}) = \sum_{i\in S_k(\boldsymbol{\theta})}\theta_i-\sum_{i\in S_k(\boldsymbol{\mu}(t))}\theta_i OC ( S k ( μ ( t )) , θ ) = i ∈ S k ( θ ) ∑ θ i − i ∈ S k ( μ ( t )) ∑ θ i
= ( a ) ∑ i ∈ S k ( θ ) ∖ S k ( μ ( t ) ) θ i − ∑ i ∈ S k ( μ ( t ) ) ∖ S k ( θ ) θ i \overset{(a)}{=} \sum_{i\in S_k(\boldsymbol{\theta})\setminus S_k(\boldsymbol{\mu}(t))}\theta_i-\sum_{i\in S_k(\boldsymbol{\mu}(t))\setminus S_k(\boldsymbol{\theta})}\theta_i = ( a ) i ∈ S k ( θ ) ∖ S k ( μ ( t )) ∑ θ i − i ∈ S k ( μ ( t )) ∖ S k ( θ ) ∑ θ i
= ( b ) ∑ i ∈ S k ( θ ) ∖ S k ( μ ( t ) ) ( θ i − q ) + ∑ i ∈ S k ( μ ( t ) ) ∖ S k ( θ ) ( q − θ i ) ≤ ∑ i ∉ S k ( μ ( t ) ) ( θ i − q ) + + ∑ i ∈ S k ( μ ( t ) ) ( q − θ i ) + . \begin{aligned}
\overset{(b)}{=} \sum_{i\in S_k(\boldsymbol{\theta})\setminus S_k(\boldsymbol{\mu}(t))}(\theta_i-q)+\sum_{i\in S_k(\boldsymbol{\mu}(t))\setminus S_k(\boldsymbol{\theta})}(q-\theta_i) \\
&\leq\sum_{i\notin S_k(\boldsymbol{\mu}(t))}(\theta_i-q)^{+}+\sum_{i\in S_k(\boldsymbol{\mu}(t))}(q-\theta_i)^{+}.
\end{aligned} = ( b ) i ∈ S k ( θ ) ∖ S k ( μ ( t )) ∑ ( θ i − q ) + i ∈ S k ( μ ( t )) ∖ S k ( θ ) ∑ ( q − θ i ) ≤ i ∈ / S k ( μ ( t )) ∑ ( θ i − q ) + + i ∈ S k ( μ ( t )) ∑ ( q − θ i ) + .
where (a) holds because indices in S k ( μ ( t ) ) ∩ S k ( θ ) S_k(\boldsymbol{\mu}(t))\cap S_k(\boldsymbol{\theta}) S k ( μ ( t )) ∩ S k ( θ ) cancel, and (b) holds because ∣ S k ( μ ( t ) ) ∖ S k ( θ ) ∣ = ∣ S k ( θ ) ∖ S k ( μ ( t ) ) ∣ \lvert S_k(\boldsymbol{\mu}(t))\setminus S_k(\boldsymbol{\theta})\rvert=\lvert S_k(\boldsymbol{\theta})\setminus S_k(\boldsymbol{\mu}(t))\rvert ∣ S k ( μ ( t )) ∖ S k ( θ )∣ = ∣ S k ( θ ) ∖ S k ( μ ( t ))∣ . Taking posterior expectation proves the claim. □ \square □
Proof of Lemma 1(ii) Define
G t ( q ) : = E t [ ∑ i ∈ S k ( μ ( t ) ) ( q − θ i ) + + ∑ i ∉ S k ( μ ( t ) ) ( θ i − q ) + ] . G_t(q):=\mathbb{E}_t\left[\sum_{i\in S_k(\boldsymbol{\mu}(t))}(q-\theta_i)^{+}+\sum_{i\notin S_k(\boldsymbol{\mu}(t))}(\theta_i-q)^{+}\right]. G t ( q ) := E t i ∈ S k ( μ ( t )) ∑ ( q − θ i ) + + i ∈ / S k ( μ ( t )) ∑ ( θ i − q ) + .
By Assumption 1 each posterior CDF F i , t F_{i,t} F i , t is continuous on J \mathcal{J} J , so differentiating under the expectation gives
d d q E t [ ( q − θ i ) + ] = F i , t ( q ) , d d q E t [ ( θ i − q ) + ] = F i , t ( q ) − 1. \frac{d}{dq}\mathbb{E}_t[(q-\theta_i)^{+}]=F_{i,t}(q),\qquad\frac{d}{dq}\mathbb{E}_t[(\theta_i-q)^{+}]=F_{i,t}(q)-1. d q d E t [( q − θ i ) + ] = F i , t ( q ) , d q d E t [( θ i − q ) + ] = F i , t ( q ) − 1.
Hence
G t ′ ( q ) = ∑ i ∈ S k ( μ ( t ) ) F i , t ( q ) + ∑ i ∉ S k ( μ ( t ) ) ( F i , t ( q ) − 1 ) = ∑ i = 1 I F i , t ( q ) − ( I − k ) . G_t'(q)=\sum_{i\in S_k(\boldsymbol{\mu}(t))}F_{i,t}(q)+\sum_{i\notin S_k(\boldsymbol{\mu}(t))}(F_{i,t}(q)-1)=\sum_{i=1}^{I}F_{i,t}(q)-(I-k). G t ′ ( q ) = i ∈ S k ( μ ( t )) ∑ F i , t ( q ) + i ∈ / S k ( μ ( t )) ∑ ( F i , t ( q ) − 1 ) = i = 1 ∑ I F i , t ( q ) − ( I − k ) .
Additionally, by Assumption 1 each posterior density is positive on J \mathcal{J} J , so each F i , t F_{i,t} F i , t is strictly increasing on J \mathcal{J} J . Thus G t ′ G_t' G t ′ is continuous and strictly increasing on J \mathcal{J} J , which gives convexity of G t G_t G t . Taking limits, F i , t ( q ) → 0 F_{i,t}(q)\to0 F i , t ( q ) → 0 as q → − ∞ q\to-\infty q → − ∞ and F i , t ( q ) → 1 F_{i,t}(q)\to1 F i , t ( q ) → 1 as q → + ∞ q\to+\infty q → + ∞ , so G t ′ ( q ) → − ( I − k ) < 0 G_t'(q)\to-(I-k)<0 G t ′ ( q ) → − ( I − k ) < 0 as q → − ∞ q\to-\infty q → − ∞ and G t ′ ( q ) → k > 0 G_t'(q)\to k>0 G t ′ ( q ) → k > 0 as q → + ∞ q\to+\infty q → + ∞ . By the intermediate value theorem, G t ′ G_t' G t ′ has a unique zero q ∗ ( t ) ∈ J q^{*}(t)\in\mathcal{J} q ∗ ( t ) ∈ J , characterized by ∑ i F i , t ( q ∗ ( t ) ) = I − k \sum_i F_{i,t}(q^{*}(t))=I-k ∑ i F i , t ( q ∗ ( t )) = I − k , equivalently (2), and q ∗ ( t ) q^{*}(t) q ∗ ( t ) is the unique minimizer of G t G_t G t . □ \square □
Proof of Proposition 1 Starting with r = 0 r=0 r = 0 , set V 0 ( 0 ) = 0 V_0(0)=0 V 0 ( 0 ) = 0 and V 0 ( b ) = + ∞ V_0(b)=+\infty V 0 ( b ) = + ∞ for b = 1 , … , B t b=1,\ldots,B_t b = 1 , … , B t . For the inductive step, suppose V r − 1 ( ⋅ ) V_{r-1}(\cdot) V r − 1 ( ⋅ ) is already known and consider the ( r , b ) (r,b) ( r , b ) subproblem. Because the objective in (8) is separable across items, fixing item r r r ’s allocation at some δ ∈ { 0 , … , b } \delta\in\{0,\ldots,b\} δ ∈ { 0 , … , b } splits the subproblem into two pieces: the cost ℓ r , t ( δ ) \ell_{r,t}(\delta) ℓ r , t ( δ ) incurred by item r r r , plus the cost of optimally allocating exactly the residual b − δ b-\delta b − δ samples among items 1 , … , r − 1 1,\ldots,r-1 1 , … , r − 1 , which is V r − 1 ( b − δ ) V_{r-1}(b-\delta) V r − 1 ( b − δ ) . Therefore, for each ( r , b ) ∈ { ( x , y ) : 1 ≤ x ≤ I , 0 ≤ y ≤ B t } (r,b)\in\{(x,y):1\leq x\leq I,0\leq y\leq B_t\} ( r , b ) ∈ {( x , y ) : 1 ≤ x ≤ I , 0 ≤ y ≤ B t } the optimal value function is given by
V r ( b ) = min δ ∈ { 0 , … , b } { V r − 1 ( b − δ ) + ℓ r , t ( δ ) } , Δ r ∗ ( b ) ∈ arg min δ ∈ { 0 , … , b } { V r − 1 ( b − δ ) + ℓ r , t ( δ ) } . (15) V_r(b)=\min_{\delta\in\{0,\ldots,b\}}\{V_{r-1}(b-\delta)+\ell_{r,t}(\delta)\},\qquad\Delta_r^{*}(b)\in\arg\min_{\delta\in\{0,\ldots,b\}}\{V_{r-1}(b-\delta)+\ell_{r,t}(\delta)\}. \tag*{(15)} V r ( b ) = δ ∈ { 0 , … , b } min { V r − 1 ( b − δ ) + ℓ r , t ( δ )} , Δ r ∗ ( b ) ∈ arg δ ∈ { 0 , … , b } min { V r − 1 ( b − δ ) + ℓ r , t ( δ )} . (15)
Once we solve this for each ( r , b ) (r,b) ( r , b ) , an optimal allocation vector Δ t \Delta^t Δ t is recovered by backtracking. Δ I t = Δ I ∗ ( B t ) \Delta_I^t=\Delta_I^*(B_t) Δ I t = Δ I ∗ ( B t ) , leaving a residual budget B t − Δ I t B_t-\Delta_I^t B t − Δ I t for items 1 , … , I − 1 1,\ldots,I-1 1 , … , I − 1 . Then Δ I − 1 t = Δ I − 1 ∗ ( B t − Δ I t ) \Delta_{I-1}^t=\Delta_{I-1}^*(B_t-\Delta_I^t) Δ I − 1 t = Δ I − 1 ∗ ( B t − Δ I t ) and so on down to item 1:
Δ r t = Δ r ∗ ( B t − ∑ j = r + 1 I Δ j t ) , r = I , I − 1 , … , 1. \Delta_r^t=\Delta_r^*\left(B_t-\sum_{j=r+1}^{I}\Delta_j^t\right),\qquad r=I,I-1,\ldots,1. Δ r t = Δ r ∗ ( B t − j = r + 1 ∑ I Δ j t ) , r = I , I − 1 , … , 1.
By construction, backtracking recovers an allocation whose components sum to B t B_t B t and whose objective value is V I ( B t ) V_I(B_t) V I ( B t ) . It is therefore a global optimizer of (8) . The total runtime is the cost of precomputing the I ( B t + 1 ) I(B_t+1) I ( B t + 1 ) values ℓ i , t ( d ) \ell_{i,t}(d) ℓ i , t ( d ) which is O ( I B t C ℓ ) O(IB_tC_\ell) O ( I B t C ℓ ) and the cost of filling in the O ( I B t ) O(IB_t) O ( I B t ) DP states (each requiring a minimization over at most B t + 1 B_t+1 B t + 1 values of δ \delta δ ) which is O ( I B t 2 ) O(IB_t^2) O ( I B t 2 ) . □
Proof of Proposition 2(i) For any allocation Δ \Delta Δ , the improvement relative to assigning no samples in the current round is
∑ j = 1 I ℓ j , t ( 0 ) − ∑ j = 1 I ℓ j , t ( Δ j ) = ∑ j = 1 I ∑ h = 0 Δ j − 1 [ ℓ j , t ( h ) − ℓ j , t ( h + 1 ) ] = ∑ j = 1 I ∑ h = 0 Δ j − 1 D j , t ( h ) , \sum_{j=1}^{I}\ell_{j,t}(0)-\sum_{j=1}^{I}\ell_{j,t}(\Delta_j)=\sum_{j=1}^{I}\sum_{h=0}^{\Delta_j-1}\left[\ell_{j,t}(h)-\ell_{j,t}(h+1)\right]=\sum_{j=1}^{I}\sum_{h=0}^{\Delta_j-1}D_{j,t}(h), j = 1 ∑ I ℓ j , t ( 0 ) − j = 1 ∑ I ℓ j , t ( Δ j ) = j = 1 ∑ I h = 0 ∑ Δ j − 1 [ ℓ j , t ( h ) − ℓ j , t ( h + 1 ) ] = j = 1 ∑ I h = 0 ∑ Δ j − 1 D j , t ( h ) ,
where the inner sum is zero when Δ j = 0 \Delta_j=0 Δ j = 0 . Minimizing ∑ j ℓ j , t ( Δ j ) \sum_j\ell_{j,t}(\Delta_j) ∑ j ℓ j , t ( Δ j ) is therefore equivalent to maximizing
G ( Δ ) : = ∑ j = 1 I ∑ h = 0 Δ j − 1 D j , t ( h ) G(\Delta):=\sum_{j=1}^{I}\sum_{h=0}^{\Delta_j-1}D_{j,t}(h) G ( Δ ) := j = 1 ∑ I h = 0 ∑ Δ j − 1 D j , t ( h )
subject to ∑ j Δ j = B t \sum_j\Delta_j=B_t ∑ j Δ j = B t . Let Δ G \Delta^G Δ G denote the greedy allocation and Δ \Delta Δ any other feasible allocation. We will show G ( Δ G ) ≥ G ( Δ ) G(\Delta^G)\ge G(\Delta) G ( Δ G ) ≥ G ( Δ ) . If Δ = Δ G \Delta=\Delta^G Δ = Δ G , there is nothing to prove. Otherwise, since both allocations sum to B t B_t B t , there exist indices i , j i,j i , j with Δ i > Δ i G \Delta_i>\Delta_i^G Δ i > Δ i G and Δ j < Δ j G \Delta_j<\Delta_j^G Δ j < Δ j G . We show that one can transfer a sample from i i i to j j j without decreasing G G G .
Because Δ i > Δ i G \Delta_i>\Delta_i^G Δ i > Δ i G , the term D i , t ( Δ i − 1 ) D_{i,t}(\Delta_i-1) D i , t ( Δ i − 1 ) appears in G ( Δ ) G(\Delta) G ( Δ ) . Since Δ i − 1 ≥ Δ i G \Delta_i-1\ge\Delta_i^G Δ i − 1 ≥ Δ i G , (9) gives
D i , t ( Δ i − 1 ) ≤ D i , t ( Δ i G ) . D_{i,t}(\Delta_i-1)\le D_{i,t}(\Delta_i^G). D i , t ( Δ i − 1 ) ≤ D i , t ( Δ i G ) .
Because Δ j < Δ j G \Delta_j<\Delta_j^G Δ j < Δ j G , the term D j , t ( Δ j ) D_{j,t}(\Delta_j) D j , t ( Δ j ) does not appear in G ( Δ ) G(\Delta) G ( Δ ) . Since Δ j ≤ Δ j G − 1 \Delta_j\le\Delta_j^G-1 Δ j ≤ Δ j G − 1 , (9) gives
D j , t ( Δ j ) ≥ D j , t ( Δ j G − 1 ) . D_{j,t}(\Delta_j)\ge D_{j,t}(\Delta_j^G-1). D j , t ( Δ j ) ≥ D j , t ( Δ j G − 1 ) .
Consider the greedy step at which the ( Δ j G ) (\Delta_j^G) ( Δ j G ) th sample was assigned to item j j j . Before that step, j j j had received Δ j G − 1 \Delta_j^G-1 Δ j G − 1 samples and i i i had received at most Δ i G \Delta_i^G Δ i G samples. The marginal gain of allocating to j j j at that step was D j , t ( Δ j G − 1 ) D_{j,t}(\Delta_j^G-1) D j , t ( Δ j G − 1 ) and the marginal gain of i i i was at least D i , t ( Δ i G ) D_{i,t}(\Delta_i^G) D i , t ( Δ i G ) by (9). Since greedy chose j j j ,
D j , t ( Δ j G − 1 ) ≥ D i , t ( Δ i G ) . D_{j,t}(\Delta_j^G-1)\ge D_{i,t}(\Delta_i^G). D j , t ( Δ j G − 1 ) ≥ D i , t ( Δ i G ) .
Combining the three inequalities,
D j , t ( Δ j ) ≥ D j , t ( Δ j G − 1 ) ≥ D i , t ( Δ i G ) ≥ D i , t ( Δ i − 1 ) . D_{j,t}(\Delta_j)\ge D_{j,t}(\Delta_j^G-1)\ge D_{i,t}(\Delta_i^G)\ge D_{i,t}(\Delta_i-1). D j , t ( Δ j ) ≥ D j , t ( Δ j G − 1 ) ≥ D i , t ( Δ i G ) ≥ D i , t ( Δ i − 1 ) .
Define Δ ′ \Delta' Δ ′ by transferring one sample from i i i to j j j : Δ i ′ = Δ i − 1 \Delta'_i=\Delta_i-1 Δ i ′ = Δ i − 1 , Δ j ′ = Δ j + 1 \Delta'_j=\Delta_j+1 Δ j ′ = Δ j + 1 , and Δ ℓ ′ = Δ ℓ \Delta'_\ell=\Delta_\ell Δ ℓ ′ = Δ ℓ for ℓ ∉ { i , j } \ell\notin\{i,j\} ℓ ∈ / { i , j } . Then ∑ ℓ Δ ℓ ′ = B t \sum_\ell\Delta'_\ell=B_t ∑ ℓ Δ ℓ ′ = B t , and
G ( Δ ′ ) − G ( Δ ) = D j , t ( Δ j ) − D i , t ( Δ i − 1 ) ≥ 0. G(\Delta')-G(\Delta)=D_{j,t}(\Delta_j)-D_{i,t}(\Delta_i-1)\ge0. G ( Δ ′ ) − G ( Δ ) = D j , t ( Δ j ) − D i , t ( Δ i − 1 ) ≥ 0.
Repeating these exchanges transforms Δ \Delta Δ into Δ G \Delta^G Δ G without ever decreasing the gain. Therefore G ( Δ G ) ≥ G ( Δ ) G(\Delta^G)\ge G(\Delta) G ( Δ G ) ≥ G ( Δ ) , and Δ G \Delta^G Δ G minimizes ∑ j ℓ j , t ( Δ j ) \sum_j \ell_{j,t}(\Delta_j) ∑ j ℓ j , t ( Δ j ) over the feasible set. □ \square □
Proof of Proposition 2(ii) Fix item i i i and round t t t , and write c ( d ) : = c i ( t , d ) c(d):=c_i(t,d) c ( d ) := c i ( t , d ) , λ : = λ i ( t ) \lambda:=\lambda_i(t) λ := λ i ( t ) , ℓ ( d ) : = ℓ i , t ( d ) \ell(d):=\ell_{i,t}(d) ℓ ( d ) := ℓ i , t ( d ) , θ : = θ i \theta:=\theta_i θ := θ i , μ : = μ i ( t ) \mu:=\mu_i(t) μ := μ i ( t ) , q : = q ( t ) q:=q(t) q := q ( t ) , and π ( ⋅ ) \pi(\cdot) π ( ⋅ ) for the density of the posterior Π i , t \Pi_{i,t} Π i , t . By the definitions of θ ~ i ( d ) \widetilde{\theta}_i(d) θ i ( d ) and ℓ i , t ( d ) \ell_{i,t}(d) ℓ i , t ( d ) ,
ℓ ( d ) = E [ ( q − μ − c ( d ) ( θ − μ ) ) + ] . \ell(d)=\mathbb{E}\left[(q-\mu-c(d)(\theta-\mu))^+\right]. ℓ ( d ) = E [ ( q − μ − c ( d ) ( θ − μ ) ) + ] .
We will relax ℓ ( ⋅ ) \ell(\cdot) ℓ ( ⋅ ) to the reals d ≥ 0 d\ge0 d ≥ 0 and show ℓ \ell ℓ is convex in d d d , thus D i , t ( d ) = ℓ ( d ) − ℓ ( d + 1 ) D_{i,t}(d)=\ell(d)-\ell(d+1) D i , t ( d ) = ℓ ( d ) − ℓ ( d + 1 ) is nonincreasing in d ∈ Z ≥ 0 d\in\mathbb{Z}_{\ge0} d ∈ Z ≥ 0 , which is (9).
We first compute the derivatives of c c c . By assumption, c ( d ) = ( 1 + λ d ) − 1 / 2 c(d)=(1+\lambda d)^{-1/2} c ( d ) = ( 1 + λ d ) − 1/2 , so
c ′ ( d ) = − λ 2 ( 1 + λ d ) − 3 / 2 = − λ 2 c ( d ) 3 . c'(d)=-\frac{\lambda}{2}(1+\lambda d)^{-3/2}=-\frac{\lambda}{2}c(d)^3. c ′ ( d ) = − 2 λ ( 1 + λ d ) − 3/2 = − 2 λ c ( d ) 3 .
Differentiating again,
c ′ ′ ( d ) = − λ 2 ⋅ 3 c ( d ) 2 ⋅ c ′ ( d ) = − λ 2 ⋅ 3 c ( d ) 2 ⋅ ( − λ 2 c ( d ) 3 ) = 3 λ 2 4 c ( d ) 5 ≥ 0. c''(d)=-\frac{\lambda}{2}\cdot3c(d)^2\cdot c'(d)=-\frac{\lambda}{2}\cdot3c(d)^2\cdot\left(-\frac{\lambda}{2}c(d)^3\right)=\frac{3\lambda^2}{4}c(d)^5\ge0. c ′′ ( d ) = − 2 λ ⋅ 3 c ( d ) 2 ⋅ c ′ ( d ) = − 2 λ ⋅ 3 c ( d ) 2 ⋅ ( − 2 λ c ( d ) 3 ) = 4 3 λ 2 c ( d ) 5 ≥ 0.
Next we differentiate ℓ \ell ℓ . Let U ( d ) : = μ + ( q − μ ) / c ( d ) U(d):=\mu+(q-\mu)/c(d) U ( d ) := μ + ( q − μ ) / c ( d ) so
ℓ ( d ) = ∫ R ( q − μ − c ( d ) ( θ − μ ) ) + π ( θ ) d θ = ∫ − ∞ U ( d ) ( q − μ − c ( d ) ( θ − μ ) ) π ( θ ) d θ . \ell(d)=\int_{\mathbb{R}}\left(q-\mu-c(d)(\theta-\mu)\right)^+\pi(\theta)\,d\theta=\int_{-\infty}^{U(d)}\left(q-\mu-c(d)(\theta-\mu)\right)\pi(\theta)\,d\theta. ℓ ( d ) = ∫ R ( q − μ − c ( d ) ( θ − μ ) ) + π ( θ ) d θ = ∫ − ∞ U ( d ) ( q − μ − c ( d ) ( θ − μ ) ) π ( θ ) d θ .
Define I ( τ ) : = ∫ − ∞ τ ( θ − μ ) π ( θ ) d θ I(\tau):=\int_{-\infty}^{\tau}(\theta-\mu)\pi(\theta)\,d\theta I ( τ ) := ∫ − ∞ τ ( θ − μ ) π ( θ ) d θ , taking π = 0 \pi=0 π = 0 outside J \mathcal{J} J . Since E [ ∣ θ − μ ∣ ] < ∞ \mathbb{E}[|\theta-\mu|]<\infty E [ ∣ θ − μ ∣ ] < ∞ , differentiating under the expectation gives
ℓ ′ ( d ) = − c ′ ( d ) ∫ − ∞ U ( d ) ( θ − μ ) π ( θ ) d θ = − c ′ ( d ) I ( U ( d ) ) . \ell'(d)=-c'(d)\int_{-\infty}^{U(d)}(\theta-\mu)\pi(\theta)\,d\theta=-c'(d)I(U(d)). ℓ ′ ( d ) = − c ′ ( d ) ∫ − ∞ U ( d ) ( θ − μ ) π ( θ ) d θ = − c ′ ( d ) I ( U ( d )) .
For U ( d ) ∈ J U(d)\in\mathcal{J} U ( d ) ∈ J , differentiating again gives
ℓ ′ ′ ( d ) = − c ′ ′ ( d ) I ( U ( d ) ) − c ′ ( d ) I ′ ( U ( d ) ) U ′ ( d ) = − c ′ ′ ( d ) I ( U ( d ) ) − c ′ ( d ) ⋅ q − μ c ( d ) π ( U ( d ) ) ⋅ ( − q − μ c ( d ) 2 c ′ ( d ) ) = − c ′ ′ ( d ) I ( U ( d ) ) + c ′ ( d ) 2 ( q − μ ) 2 c ( d ) 3 π ( U ( d ) ) . \begin{aligned}
\ell''(d)&=-c''(d)I(U(d))-c'(d)I'(U(d))U'(d)\\
&=-c''(d)I(U(d))-c'(d)\cdot\frac{q-\mu}{c(d)}\pi(U(d))\cdot\left(-\frac{q-\mu}{c(d)^2}c'(d)\right)\\
&=-c''(d)I(U(d))+c'(d)^2\frac{(q-\mu)^2}{c(d)^3}\pi(U(d)).
\end{aligned} ℓ ′′ ( d ) = − c ′′ ( d ) I ( U ( d )) − c ′ ( d ) I ′ ( U ( d )) U ′ ( d ) = − c ′′ ( d ) I ( U ( d )) − c ′ ( d ) ⋅ c ( d ) q − μ π ( U ( d )) ⋅ ( − c ( d ) 2 q − μ c ′ ( d ) ) = − c ′′ ( d ) I ( U ( d )) + c ′ ( d ) 2 c ( d ) 3 ( q − μ ) 2 π ( U ( d )) .
Both terms are nonnegative. To see this, c ′ ′ ( d ) ≥ 0 c''(d)\ge0 c ′′ ( d ) ≥ 0 , and I ( τ ) ≤ 0 I(\tau)\le0 I ( τ ) ≤ 0 for τ ≤ μ \tau\le\mu τ ≤ μ . For τ ≥ μ \tau\ge\mu τ ≥ μ , using E [ θ − μ ] = 0 \mathbb{E}[\theta-\mu]=0 E [ θ − μ ] = 0 gives
I ( τ ) = − ∫ τ ∞ ( θ − μ ) π ( θ ) d θ ≤ 0. I(\tau)=-\int_{\tau}^{\infty}(\theta-\mu)\pi(\theta)\,d\theta\le0. I ( τ ) = − ∫ τ ∞ ( θ − μ ) π ( θ ) d θ ≤ 0.
Thus ℓ ′ ′ ( d ) ≥ 0 \ell''(d)\ge0 ℓ ′′ ( d ) ≥ 0 whenever U ( d ) ∈ J U(d)\in\mathcal{J} U ( d ) ∈ J . On any interval where U ( d ) U(d) U ( d ) is outside J \mathcal{J} J , ℓ \ell ℓ is constant. Since ℓ ′ ( d ) = − c ′ ( d ) I ( U ( d ) ) \ell'(d)=-c'(d)I(U(d)) ℓ ′ ( d ) = − c ′ ( d ) I ( U ( d )) is continuous also when U ( d ) U(d) U ( d ) crosses an endpoint of J \mathcal{J} J , ℓ ′ \ell' ℓ ′ is nondecreasing on [ 0 , ∞ ) [0,\infty) [ 0 , ∞ ) . Therefore ℓ \ell ℓ is convex, so D i , t ( d ) D_{i,t}(d) D i , t ( d ) is nonincreasing in d d d . □ \square □
Proof of Proposition 2(iii) Fix an item i i i and a round t t t . By conjugacy, the posterior density of η i \eta_i η i given H t \mathcal{H}_t H t is proportional to exp { a η − b A i ( η ) } \exp\{a\eta-bA_i(\eta)\} exp { a η − b A i ( η )} , where
a = a i + ∑ n = 1 N i ( t ) Y i , n , b = b i + N i ( t ) . a=a_i+\sum_{n=1}^{N_i(t)}Y_{i,n},\qquad b=b_i+N_i(t). a = a i + n = 1 ∑ N i ( t ) Y i , n , b = b i + N i ( t ) .
The standard moment identity for this natural exponential family conjugate posterior gives μ i ( t ) = a b \mu_i(t)=\frac{a}{b} μ i ( t ) = b a {(citep}(Diaconis and Ylvisaker 1979). Additionally,
0 = ∫ E i d d η [ ( A i ′ ( η ) − a b ) exp { a η − b A i ( η ) } ] d η , 0=\int_{\mathcal{E}_i}\frac{d}{d\eta}\left[\left(A_i'(\eta)-\frac{a}{b}\right)\exp\{a\eta-bA_i(\eta)\}\right]d\eta, 0 = ∫ E i d η d [ ( A i ′ ( η ) − b a ) exp { a η − b A i ( η )} ] d η ,
which, after expanding the derivative and normalizing, gives
E t [ A i ′ ′ ( η i ) ] = b E t [ ( A i ′ ( η i ) − a b ) 2 ] = b v i ( t ) . \mathbb{E}_t\left[A_i''(\eta_i)\right]=b\mathbb{E}_t\left[\left(A_i'(\eta_i)-\frac{a}{b}\right)^2\right]=b\,v_i(t). E t [ A i ′′ ( η i ) ] = b E t [ ( A i ′ ( η i ) − b a ) 2 ] = b v i ( t ) .
Fix d ≥ 1 d\geq1 d ≥ 1 , and let S d = ∑ n = 1 d Y i , N i ( t ) + n S_d=\sum_{n=1}^{d}Y_{i,N_i(t)+n} S d = ∑ n = 1 d Y i , N i ( t ) + n denote the sum of the d d d additional observations. Conditional on η i \eta_i η i , E t [ S d ∣ η i ] = d A i ′ ( η i ) = d θ i \mathbb{E}_t[S_d\mid\eta_i]=dA_i'(\eta_i)=d\theta_i E t [ S d ∣ η i ] = d A i ′ ( η i ) = d θ i and V t ( S d ∣ η i ) = d A i ′ ′ ( η i ) \mathbb{V}_t(S_d\mid\eta_i)=dA_i''(\eta_i) V t ( S d ∣ η i ) = d A i ′′ ( η i ) . Therefore, by the law of total variance,
V t ( S d ) = E t [ V t ( S d ∣ η i ) ] + V t ( E t [ S d ∣ η i ] ) = d b v i ( t ) + d 2 v i ( t ) = d ( b + d ) v i ( t ) . \mathbb{V}_t(S_d)=\mathbb{E}_t\left[\mathbb{V}_t(S_d\mid\eta_i)\right]+\mathbb{V}_t\left(\mathbb{E}_t[S_d\mid\eta_i]\right)=db\,v_i(t)+d^2v_i(t)=d(b+d)v_i(t). V t ( S d ) = E t [ V t ( S d ∣ η i ) ] + V t ( E t [ S d ∣ η i ] ) = d b v i ( t ) + d 2 v i ( t ) = d ( b + d ) v i ( t ) .
After observing these additional samples, the posterior density of η i \eta_i η i is proportional to exp { ( a + S d ) η − ( b + d ) A i ( η ) } \exp\{(a+S_d)\eta-(b+d)A_i(\eta)\} exp {( a + S d ) η − ( b + d ) A i ( η )} . Applying the same conjugate-posterior mean identity gives
E [ θ i ∣ H t , S d ] = a + S d b + d . \mathbb{E}[\theta_i\mid\mathcal{H}_t,S_d]=\frac{a+S_d}{b+d}. E [ θ i ∣ H t , S d ] = b + d a + S d .
Hence,
V t ( E [ θ i ∣ H t , S d ] ) = V t ( S d ) ( b + d ) 2 = d b + d v i ( t ) . \mathbb{V}_t\left(\mathbb{E}[\theta_i\mid\mathcal{H}_t,S_d]\right)=\frac{\mathbb{V}_t(S_d)}{(b+d)^2}=\frac{d}{b+d}v_i(t). V t ( E [ θ i ∣ H t , S d ] ) = ( b + d ) 2 V t ( S d ) = b + d d v i ( t ) .
Finally, the law of total variance gives
v i ( t ) = v ˉ i ( t , d ) + V t ( E [ θ i ∣ H t , S d ] ) . v_i(t)=\bar{v}_i(t,d)+\mathbb{V}_t\left(\mathbb{E}[\theta_i\mid\mathcal{H}_t,S_d]\right). v i ( t ) = v ˉ i ( t , d ) + V t ( E [ θ i ∣ H t , S d ] ) .
Therefore
c i ( t , d ) 2 = v ˉ i ( t , d ) v i ( t ) = b b + d = 1 1 + 1 b d . c_i(t,d)^2=\frac{\bar{v}_i(t,d)}{v_i(t)}=\frac{b}{b+d}=\frac{1}{1+\frac{1}{b}d}. c i ( t , d ) 2 = v i ( t ) v ˉ i ( t , d ) = b + d b = 1 + b 1 d 1 .
Since b = b i + N i ( t ) > 0 b=b_i+N_i(t)>0 b = b i + N i ( t ) > 0 , (10) holds with λ i ( t ) = 1 b i + N i ( t ) \lambda_i(t)=\frac{1}{b_i+N_i(t)} λ i ( t ) = b i + N i ( t ) 1 .
Closed forms for the conjugate families of prop:families
In each subsection, we first define the round-t t t posterior parameters and then suppress their argument t t t in the remaining formulas.
Gaussian observations with known variance
Suppose Y i , n ∣ θ i ∼ N ( θ i , σ i 2 ) Y_{i,n} \mid\theta_i \sim N(\theta_i,\sigma_i^2) Y i , n ∣ θ i ∼ N ( θ i , σ i 2 ) with σ i 2 \sigma_i^2 σ i 2 known, and prior θ i ∼ N ( m i ( 0 ) , s i 2 ( 0 ) ) \theta_i \sim N(m_i(0),s_i^2(0)) θ i ∼ N ( m i ( 0 ) , s i 2 ( 0 )) . At the start of round t t t ,
θ i ∣ H t ∼ N ( m i ( t ) , s i 2 ( t ) ) , s i 2 ( t ) = ( 1 s i 2 ( 0 ) + N i ( t ) σ i 2 ) − 1 , m i ( t ) = s i 2 ( t ) ( m i ( 0 ) s i 2 ( 0 ) + 1 σ i 2 ∑ n = 1 N i ( t ) Y i , n ) . \theta_i \mid\mathcal{H}_t \sim N(m_i(t),s_i^2(t)), \qquad s_i^2(t)=\left(\frac{1}{s_i^2(0)}+\frac{N_i(t)}{\sigma_i^2}\right)^{-1}, \qquad m_i(t)=s_i^2(t)\left(\frac{m_i(0)}{s_i^2(0)}+\frac{1}{\sigma_i^2}\sum_{n=1}^{N_i(t)}Y_{i,n}\right). θ i ∣ H t ∼ N ( m i ( t ) , s i 2 ( t )) , s i 2 ( t ) = ( s i 2 ( 0 ) 1 + σ i 2 N i ( t ) ) − 1 , m i ( t ) = s i 2 ( t ) s i 2 ( 0 ) m i ( 0 ) + σ i 2 1 n = 1 ∑ N i ( t ) Y i , n .
Then μ i ( t ) = m i \mu_i(t)=m_i μ i ( t ) = m i , v i ( t ) = s i 2 v_i(t)=s_i^2 v i ( t ) = s i 2 , F i , t ( q ) = Φ ( q − m i s i ) F_{i,t}(q)=\Phi\left(\frac{q-m_i}{s_i}\right) F i , t ( q ) = Φ ( s i q − m i ) and q ∗ ( t ) q^*(t) q ∗ ( t ) solves
∑ i = 1 I [ 1 − Φ ( q − m i s i ) ] = k . \sum_{i=1}^{I}\left[1-\Phi\left(\frac{q-m_i}{s_i}\right)\right]=k. i = 1 ∑ I [ 1 − Φ ( s i q − m i ) ] = k .
We next compute the expected post-round-t t t posterior variance. After Δ i \Delta_i Δ i further observations, the posterior variance of θ i \theta_i θ i is deterministic: it depends on Δ i \Delta_i Δ i , but not on the realized values. This deterministic update is a special property of the Gaussian-Gaussian pair that does not hold for the other families. Hence
v ˉ i ( t , Δ i ) = ( 1 s i 2 + Δ i σ i 2 ) − 1 , c i ( t , Δ i ) 2 = 1 1 + s i 2 Δ i / σ i 2 . \bar{v}_i(t,\Delta_i)=\left(\frac{1}{s_i^2}+\frac{\Delta_i}{\sigma_i^2}\right)^{-1}, \qquad c_i(t,\Delta_i)^2=\frac{1}{1+s_i^2\Delta_i/\sigma_i^2}. v ˉ i ( t , Δ i ) = ( s i 2 1 + σ i 2 Δ i ) − 1 , c i ( t , Δ i ) 2 = 1 + s i 2 Δ i / σ i 2 1 .
This has the form (10) , so GBB is exact.
Finally, for any z ∈ R z\in\mathbb{R} z ∈ R ,
E t [ ( z − θ i ) + ] = ( z − m i ) Φ ( z − m i s i ) + s i ϕ ( z − m i s i ) . \mathbb{E}_t[(z-\theta_i)^+]=(z-m_i)\Phi\left(\frac{z-m_i}{s_i}\right)+s_i\phi\left(\frac{z-m_i}{s_i}\right). E t [( z − θ i ) + ] = ( z − m i ) Φ ( s i z − m i ) + s i ϕ ( s i z − m i ) .
Combined with c i ( t , Δ i ) c_i(t,\Delta_i) c i ( t , Δ i ) and (7) , this yields the closed form for ℓ i , t ( Δ i ) \ell_{i,t}(\Delta_i) ℓ i , t ( Δ i ) .
Binomial with beta posterior
Suppose Y i , n ∣ p i ∼ Bin ( r , p i ) Y_{i,n}\mid p_i\sim\operatorname{Bin}(r,p_i) Y i , n ∣ p i ∼ Bin ( r , p i ) with r ∈ Z + r\in\mathbb{Z}_+ r ∈ Z + known, mean parameter θ i = r p i \theta_i=rp_i θ i = r p i , and prior p i ∼ Beta ( a i ( 0 ) , b i ( 0 ) ) p_i\sim\operatorname{Beta}(a_i(0),b_i(0)) p i ∼ Beta ( a i ( 0 ) , b i ( 0 )) .
Let S i ( t ) : = ∑ n = 1 N i ( t ) Y i , n S_i(t):=\sum_{n=1}^{N_i(t)}Y_{i,n} S i ( t ) := ∑ n = 1 N i ( t ) Y i , n . At the start of round t t t ,
p i ∣ H t ∼ Beta ( a i ( t ) , b i ( t ) ) , a i ( t ) : = a i ( 0 ) + S i ( t ) , b i ( t ) : = b i ( 0 ) + r N i ( t ) − S i ( t ) . p_i\mid\mathcal{H}_t\sim\operatorname{Beta}(a_i(t),b_i(t)), \qquad a_i(t):=a_i(0)+S_i(t), \qquad b_i(t):=b_i(0)+rN_i(t)-S_i(t). p i ∣ H t ∼ Beta ( a i ( t ) , b i ( t )) , a i ( t ) := a i ( 0 ) + S i ( t ) , b i ( t ) := b i ( 0 ) + r N i ( t ) − S i ( t ) .
Set n i : = a i + b i n_i:=a_i+b_i n i := a i + b i . Then
μ i ( t ) = r a i n i , v i ( t ) = r 2 a i b i n i 2 ( n i + 1 ) , F i , t ( q ) = I q / r ( a i , b i ) ( 0 < q < r ) , \mu_i(t)=r\frac{a_i}{n_i}, \qquad v_i(t)=r^2\frac{a_i b_i}{n_i^2(n_i+1)}, \qquad F_{i,t}(q)=I_{q/r}(a_i,b_i) \quad(0<q<r), μ i ( t ) = r n i a i , v i ( t ) = r 2 n i 2 ( n i + 1 ) a i b i , F i , t ( q ) = I q / r ( a i , b i ) ( 0 < q < r ) ,
and q ∗ ( t ) q^*(t) q ∗ ( t ) solves
∑ i = 1 I [ 1 − I q / r ( a i , b i ) ] = k . \sum_{i=1}^{I}\left[1-I_{q/r}(a_i,b_i)\right]=k. i = 1 ∑ I [ 1 − I q / r ( a i , b i ) ] = k .
We next compute the expected post-round-t t t posterior variance. Allocating Δ i \Delta_i Δ i further binomial observations is equivalent to r Δ i r\Delta_i r Δ i further Bernoulli trials. Conditional on the future number of successes X X X ,
p i ∣ H t , X ∼ Beta ( a i + X , b i + r Δ i − X ) , p_i\mid\mathcal{H}_t,X\sim\operatorname{Beta}(a_i+X,b_i+r\Delta_i-X), p i ∣ H t , X ∼ Beta ( a i + X , b i + r Δ i − X ) ,
so taking expectation of V ( θ i ∣ H t , X ) V(\theta_i\mid\mathcal{H}_t,X) V ( θ i ∣ H t , X ) over X X X gives
v ˉ i ( t , Δ i ) = r 2 a i b i n i ( n i + 1 ) ( n i + r Δ i ) = v i ( t ) n i n i + r Δ i , c i ( t , Δ i ) 2 = n i n i + r Δ i = 1 1 + ( r / n i ) Δ i . \bar{v}_i(t,\Delta_i)=r^2\frac{a_i b_i}{n_i(n_i+1)(n_i+r\Delta_i)}=v_i(t)\frac{n_i}{n_i+r\Delta_i}, \qquad c_i(t,\Delta_i)^2=\frac{n_i}{n_i+r\Delta_i}=\frac{1}{1+(r/n_i)\Delta_i}. v ˉ i ( t , Δ i ) = r 2 n i ( n i + 1 ) ( n i + r Δ i ) a i b i = v i ( t ) n i + r Δ i n i , c i ( t , Δ i ) 2 = n i + r Δ i n i = 1 + ( r / n i ) Δ i 1 .
This has the form (10), so GBB is exact.
Finally, for 0 < z < r 0 < z < r 0 < z < r ,
E t [ ( z − θ i ) + ] = z I z / r ( a i , b i ) − r a i n i I z / r ( a i + 1 , b i ) . \mathbb{E}_t[(z-\theta_i)^+] = z I_{z/r}(a_i,b_i) - r\frac{a_i}{n_i} I_{z/r}(a_i+1,b_i). E t [( z − θ i ) + ] = z I z / r ( a i , b i ) − r n i a i I z / r ( a i + 1 , b i ) .
extending to z ≤ 0 z \le0 z ≤ 0 and z ≥ r z \ge r z ≥ r with values 0 0 0 and z − μ i ( t ) z-\mu_i(t) z − μ i ( t ) respectively. Combined with c i ( t , Δ i ) c_i(t,\Delta_i) c i ( t , Δ i ) and (7), this yields the closed form for ℓ i , t ( Δ i ) \ell_{i,t}(\Delta_i) ℓ i , t ( Δ i ) .
Poisson with gamma posterior
Suppose Y i , n ∣ θ i ∼ Pois ( θ i ) Y_{i,n}\mid\theta_i \sim\operatorname{Pois}(\theta_i) Y i , n ∣ θ i ∼ Pois ( θ i ) with prior θ i ∼ Gamma ( a i ( 0 ) , b i ( 0 ) ) \theta_i \sim\operatorname{Gamma}(a_i(0),b_i(0)) θ i ∼ Gamma ( a i ( 0 ) , b i ( 0 )) , where b i ( 0 ) b_i(0) b i ( 0 ) is the rate. After N i ( t ) N_i(t) N i ( t ) observations,
θ i ∣ H t ∼ Gamma ( a i ( t ) , b i ( t ) ) , a i ( t ) : = a i ( 0 ) + ∑ n = 1 N i ( t ) Y i , n , b i ( t ) : = b i ( 0 ) + N i ( t ) . \theta_i\mid\mathcal{H}_t \sim\operatorname{Gamma}(a_i(t),b_i(t)),\qquad a_i(t):=a_i(0)+\sum_{n=1}^{N_i(t)}Y_{i,n},\qquad b_i(t):=b_i(0)+N_i(t). θ i ∣ H t ∼ Gamma ( a i ( t ) , b i ( t )) , a i ( t ) := a i ( 0 ) + n = 1 ∑ N i ( t ) Y i , n , b i ( t ) := b i ( 0 ) + N i ( t ) .
The posterior density is ( b i a i / Γ ( a i ) ) θ i a i − 1 e − b i θ i (b_i^{a_i}/\Gamma(a_i))\theta_i^{a_i-1}e^{-b_i\theta_i} ( b i a i /Γ ( a i )) θ i a i − 1 e − b i θ i on θ > 0 \theta>0 θ > 0 . Then
μ i ( t ) = a i b i , v i ( t ) = a i b i 2 , F i , t ( q ) = γ ( a i , b i q ) ( q > 0 ) , \mu_i(t)=\frac{a_i}{b_i},\qquad v_i(t)=\frac{a_i}{b_i^2},\qquad F_{i,t}(q)=\gamma(a_i,b_iq)\qquad(q>0), μ i ( t ) = b i a i , v i ( t ) = b i 2 a i , F i , t ( q ) = γ ( a i , b i q ) ( q > 0 ) ,
and q ∗ ( t ) q^*(t) q ∗ ( t ) solves
∑ i = 1 I Γ ( a i , b i q ) = k . \sum_{i=1}^{I}\Gamma(a_i,b_iq)=k. i = 1 ∑ I Γ ( a i , b i q ) = k .
We next compute the expected post-round-t t t posterior variance. The future total X : = ∑ ℓ = 1 Δ i Y i , ℓ n e w X:=\sum_{\ell=1}^{\Delta_i}Y_{i,\ell}^{\mathrm{new}} X := ∑ ℓ = 1 Δ i Y i , ℓ new satisfies X ∣ θ i ∼ Pois ( Δ i θ i ) X\mid\theta_i\sim\operatorname{Pois}(\Delta_i\theta_i) X ∣ θ i ∼ Pois ( Δ i θ i ) , so
θ i ∣ H t , X ∼ Gamma ( a i + X , b i + Δ i ) , V ( θ i ∣ H t , X ) = a i + X ( b i + Δ i ) 2 . \theta_i\mid\mathcal{H}_t,X\sim\operatorname{Gamma}(a_i+X,b_i+\Delta_i),\qquad V(\theta_i\mid\mathcal{H}_t,X)=\frac{a_i+X}{(b_i+\Delta_i)^2}. θ i ∣ H t , X ∼ Gamma ( a i + X , b i + Δ i ) , V ( θ i ∣ H t , X ) = ( b i + Δ i ) 2 a i + X .
Using E t [ X ] = Δ i a i / b i \mathbb{E}_t[X]=\Delta_i a_i/b_i E t [ X ] = Δ i a i / b i ,
v ˉ i ( t , Δ i ) = a i b i ( b i + Δ i ) = v i ( t ) b i b i + Δ i , c i ( t , Δ i ) 2 = b i b i + Δ i = 1 1 + Δ i / b i . \bar{v}_i(t,\Delta_i)=\frac{a_i}{b_i(b_i+\Delta_i)}=v_i(t)\frac{b_i}{b_i+\Delta_i},\qquad c_i(t,\Delta_i)^2=\frac{b_i}{b_i+\Delta_i}=\frac{1}{1+\Delta_i/b_i}. v ˉ i ( t , Δ i ) = b i ( b i + Δ i ) a i = v i ( t ) b i + Δ i b i , c i ( t , Δ i ) 2 = b i + Δ i b i = 1 + Δ i / b i 1 .
This has the form (10), so GBB is exact.
Finally, for z > 0 z>0 z > 0 ,
E t [ ( z − θ i ) + ] = z γ ( a i , b i z ) − a i b i γ ( a i + 1 , b i z ) . \mathbb{E}_t[(z-\theta_i)^+]=z\gamma(a_i,b_i z)-\frac{a_i}{b_i}\gamma(a_i+1,b_i z). E t [( z − θ i ) + ] = z γ ( a i , b i z ) − b i a i γ ( a i + 1 , b i z ) .
Combined with c i ( t , Δ i ) c_i(t,\Delta_i) c i ( t , Δ i ) and (7), this gives the closed form for ℓ i , t ( Δ i ) \ell_{i,t}(\Delta_i) ℓ i , t ( Δ i ) .
Gamma observations with known shape and inverse-gamma posterior
Suppose Y i , n ∣ θ i ∼ Gamma ( κ i , θ i / κ i ) Y_{i,n}\mid\theta_i\sim\operatorname{Gamma}(\kappa_i,\theta_i/\kappa_i) Y i , n ∣ θ i ∼ Gamma ( κ i , θ i / κ i ) (shape κ i \kappa_i κ i , scale θ i / κ i \theta_i/\kappa_i θ i / κ i ) with κ i > 0 \kappa_i>0 κ i > 0 known (the case κ i = 1 \kappa_i=1 κ i = 1 is the exponential model Y i , n ∣ θ i ∼ Exp ( 1 / θ i ) Y_{i,n}\mid\theta_i\sim\operatorname{Exp}(1/\theta_i) Y i , n ∣ θ i ∼ Exp ( 1/ θ i ) ). The conjugate prior is θ i ∼ InvGamma ( a i ( 0 ) , b i ( 0 ) ) \theta_i\sim\operatorname{InvGamma}(a_i(0),b_i(0)) θ i ∼ InvGamma ( a i ( 0 ) , b i ( 0 )) with a i ( 0 ) > 2 a_i(0)>2 a i ( 0 ) > 2 and b i ( 0 ) > 0 b_i(0)>0 b i ( 0 ) > 0 , ensuring v i ( t ) v_i(t) v i ( t ) is finite at every round. After N i ( t ) N_i(t) N i ( t ) observations,
θ i ∣ H t ∼ InvGamma ( a i ( t ) , b i ( t ) ) , a i ( t ) : = a i ( 0 ) + κ i N i ( t ) , b i ( t ) : = b i ( 0 ) + κ i ∑ n = 1 N i ( t ) Y i , n . \theta_i\mid\mathcal{H}_t\sim\operatorname{InvGamma}(a_i(t),b_i(t)),\qquad a_i(t):=a_i(0)+\kappa_iN_i(t),\qquad b_i(t):=b_i(0)+\kappa_i\sum_{n=1}^{N_i(t)}Y_{i,n}. θ i ∣ H t ∼ InvGamma ( a i ( t ) , b i ( t )) , a i ( t ) := a i ( 0 ) + κ i N i ( t ) , b i ( t ) := b i ( 0 ) + κ i n = 1 ∑ N i ( t ) Y i , n .
The posterior density is ( b i a i / Γ ( a i ) ) θ − a i − 1 e − b i / θ (b_i^{a_i}/\Gamma(a_i))\,\theta^{-a_i-1}e^{-b_i/\theta} ( b i a i /Γ ( a i )) θ − a i − 1 e − b i / θ on θ > 0 \theta>0 θ > 0 . Then
μ i ( t ) = b i a i − 1 , v i ( t ) = b i 2 ( a i − 1 ) 2 ( a i − 2 ) , F i , t ( q ) = Γ ( a i , b i / q ) ( q > 0 ) , \mu_i(t)=\frac{b_i}{a_i-1},\qquad v_i(t)=\frac{b_i^2}{(a_i-1)^2(a_i-2)},\qquad F_{i,t}(q)=\Gamma(a_i,b_i/q)\quad(q>0), μ i ( t ) = a i − 1 b i , v i ( t ) = ( a i − 1 ) 2 ( a i − 2 ) b i 2 , F i , t ( q ) = Γ ( a i , b i / q ) ( q > 0 ) ,
and q ∗ ( t ) q^*(t) q ∗ ( t ) solves
∑ i = 1 I γ ( a i , b i / q ) = k . \sum_{i=1}^{I}\gamma(a_i,b_i/q)=k. i = 1 ∑ I γ ( a i , b i / q ) = k .
We next compute the expected post-round-t t t posterior variance. Let W : = κ i ∑ ℓ = 1 Δ i Y i , ℓ n e w W:=\kappa_i\sum_{\ell=1}^{\Delta_i}Y_{i,\ell}^{\mathrm{new}} W := κ i ∑ ℓ = 1 Δ i Y i , ℓ new . Each gamma observation contributes likelihood proportional to θ − κ i e − κ i Y / θ \theta^{-\kappa_i}e^{-\kappa_iY/\theta} θ − κ i e − κ i Y / θ , so
θ i ∣ H t , W ∼ InvGamma ( a i + κ i Δ i , b i + W ) , V ( θ i ∣ H t , W ) = ( b i + W ) 2 ( a i + κ i Δ i − 1 ) 2 ( a i + κ i Δ i − 2 ) . \theta_i\mid\mathcal{H}_t,W\sim\operatorname{InvGamma}(a_i+\kappa_i\Delta_i,b_i+W),\qquad\mathop{\mathrm{V}}(\theta_i\mid\mathcal{H}_t,W)=\frac{(b_i+W)^2}{(a_i+\kappa_i\Delta_i-1)^2(a_i+\kappa_i\Delta_i-2)}. θ i ∣ H t , W ∼ InvGamma ( a i + κ i Δ i , b i + W ) , V ( θ i ∣ H t , W ) = ( a i + κ i Δ i − 1 ) 2 ( a i + κ i Δ i − 2 ) ( b i + W ) 2 .
Conditional on θ i \theta_i θ i , W ∼ Gamma ( κ i Δ i , θ i ) W\sim\operatorname{Gamma}(\kappa_i\Delta_i,\theta_i) W ∼ Gamma ( κ i Δ i , θ i ) (shape κ i Δ i \kappa_i\Delta_i κ i Δ i , scale θ i \theta_i θ i ), so E t [ W ] = κ i Δ i b i / ( a i − 1 ) \mathop{\mathrm{E}}_t[W]=\kappa_i\Delta_i\,b_i/(a_i-1) E t [ W ] = κ i Δ i b i / ( a i − 1 ) and E t [ W 2 ] = κ i Δ i ( κ i Δ i + 1 ) b i 2 / [ ( a i − 1 ) ( a i − 2 ) ] \mathop{\mathrm{E}}_t[W^2]=\kappa_i\Delta_i(\kappa_i\Delta_i+1)b_i^2/[(a_i-1)(a_i-2)] E t [ W 2 ] = κ i Δ i ( κ i Δ i + 1 ) b i 2 / [( a i − 1 ) ( a i − 2 )] , giving
E t [ ( b i + W ) 2 ] = b i 2 ( a i + κ i Δ i − 1 ) ( a i + κ i Δ i − 2 ) ( a i − 1 ) ( a i − 2 ) . \mathop{\mathrm{E}}_t[(b_i+W)^2]=\frac{b_i^2(a_i+\kappa_i\Delta_i-1)(a_i+\kappa_i\Delta_i-2)}{(a_i-1)(a_i-2)}. E t [( b i + W ) 2 ] = ( a i − 1 ) ( a i − 2 ) b i 2 ( a i + κ i Δ i − 1 ) ( a i + κ i Δ i − 2 ) .
and therefore
v ˉ i ( t , Δ i ) = b i 2 ( a i − 1 ) ( a i − 2 ) ( a i + κ i Δ i − 1 ) = v i ( t ) a i − 1 a i + κ i Δ i − 1 , \bar v_i(t,\Delta_i)=\frac{b_i^2}{(a_i-1)(a_i-2)(a_i+\kappa_i\Delta_i-1)}=v_i(t)\frac{a_i-1}{a_i+\kappa_i\Delta_i-1}, v ˉ i ( t , Δ i ) = ( a i − 1 ) ( a i − 2 ) ( a i + κ i Δ i − 1 ) b i 2 = v i ( t ) a i + κ i Δ i − 1 a i − 1 ,
c i ( t , Δ i ) 2 = a i − 1 a i + κ i Δ i − 1 = 1 1 + ( κ i / ( a i − 1 ) ) Δ i . c_i(t,\Delta_i)^2=\frac{a_i-1}{a_i+\kappa_i\Delta_i-1}=\frac{1}{1+(\kappa_i/(a_i-1))\Delta_i}. c i ( t , Δ i ) 2 = a i + κ i Δ i − 1 a i − 1 = 1 + ( κ i / ( a i − 1 )) Δ i 1 .
This has the form (10) , so GBB is exact.
Finally, for z > 0 z>0 z > 0 ,
E t [ ( z − θ i ) + ] = z Γ ( a i , b i / z ) − b i a i − 1 Γ ( a i − 1 , b i / z ) . \mathop{\mathrm{E}}_t[(z-\theta_i)^+]=z\Gamma(a_i,b_i/z)-\frac{b_i}{a_i-1}\Gamma(a_i-1,b_i/z). E t [( z − θ i ) + ] = z Γ ( a i , b i / z ) − a i − 1 b i Γ ( a i − 1 , b i / z ) .
Combined with c i ( t , Δ i ) c_i(t,\Delta_i) c i ( t , Δ i ) and (7) , this gives the closed form for ℓ i , t ( Δ i ) \ell_{i,t}(\Delta_i) ℓ i , t ( Δ i ) .
Lognormal observations with known log-variance
Suppose Y i , n ∣ θ i ∼ Lognormal ( log θ i − σ i 2 / 2 , σ i 2 ) Y_{i,n}\mid\theta_i\sim\operatorname{Lognormal}(\log\theta_i-\sigma_i^2/2,\sigma_i^2) Y i , n ∣ θ i ∼ Lognormal ( log θ i − σ i 2 /2 , σ i 2 ) with σ i 2 \sigma_i^2 σ i 2 known, parameterized so E [ Y i , n ∣ θ i ] = θ i \mathop{\mathrm{E}}[Y_{i,n}\mid\theta_i]=\theta_i E [ Y i , n ∣ θ i ] = θ i . Let η i : = log θ i \eta_i:=\log\theta_i η i := log θ i and X i , n : = log Y i , n + σ i 2 / 2 X_{i,n}:=\log Y_{i,n}+\sigma_i^2/2 X i , n := log Y i , n + σ i 2 /2 , so X i , n = η i + ε i , n X_{i,n}=\eta_i+\varepsilon_{i,n} X i , n = η i + ε i , n with ε i , n ∼ N ( 0 , σ i 2 ) \varepsilon_{i,n}\sim N(0,\sigma_i^2) ε i , n ∼ N ( 0 , σ i 2 ) . With prior η i ∼ N ( m i ( 0 ) , s i 2 ( 0 ) ) \eta_i\sim N(m_i(0),s_i^2(0)) η i ∼ N ( m i ( 0 ) , s i 2 ( 0 )) , the transformed problem in η i \eta_i η i is Gaussian-Gaussian conjugate:
η i ∣ H t ∼ N ( m i ( t ) , s i 2 ( t ) ) , s i 2 ( t ) = ( 1 s i 2 ( 0 ) + N i ( t ) σ i 2 ) − 1 , m i ( t ) = s i 2 ( t ) ( m i ( 0 ) s i 2 ( 0 ) + 1 σ i 2 ∑ n = 1 N i ( t ) X i , n ) . \eta_i\mid\mathcal{H}_t\sim N(m_i(t),s_i^2(t)),\qquad s_i^2(t)=\left(\frac{1}{s_i^2(0)}+\frac{N_i(t)}{\sigma_i^2}\right)^{-1},\qquad m_i(t)=s_i^2(t)\left(\frac{m_i(0)}{s_i^2(0)}+\frac{1}{\sigma_i^2}\sum_{n=1}^{N_i(t)}X_{i,n}\right). η i ∣ H t ∼ N ( m i ( t ) , s i 2 ( t )) , s i 2 ( t ) = ( s i 2 ( 0 ) 1 + σ i 2 N i ( t ) ) − 1 , m i ( t ) = s i 2 ( t ) s i 2 ( 0 ) m i ( 0 ) + σ i 2 1 n = 1 ∑ N i ( t ) X i , n .
Hence θ i = e η i \theta_i=e^{\eta_i} θ i = e η i has lognormal posterior with
μ i ( t ) = exp ( m i + s i 2 2 ) , v i ( t ) = ( e s i 2 − 1 ) e 2 m i + s i 2 , F i , t ( q ) = Φ ( log q − m i s i ) ( q > 0 ) , \mu_i(t)=\exp\left(m_i+\frac{s_i^2}{2}\right),\qquad v_i(t)=(e^{s_i^2}-1)e^{2m_i+s_i^2},\qquad F_{i,t}(q)=\Phi\left(\frac{\log q-m_i}{s_i}\right)\quad(q>0), μ i ( t ) = exp ( m i + 2 s i 2 ) , v i ( t ) = ( e s i 2 − 1 ) e 2 m i + s i 2 , F i , t ( q ) = Φ ( s i log q − m i ) ( q > 0 ) ,
and q ∗ ( t ) q^*(t) q ∗ ( t ) solves
∑ i = 1 I [ 1 − Φ ( log q − m i s i ) ] = k . \sum_{i=1}^{I}\left[1-\Phi\left(\frac{\log q-m_i}{s_i}\right)\right]=k. i = 1 ∑ I [ 1 − Φ ( s i log q − m i ) ] = k .
We next compute the expected post-round-t t t posterior variance of θ i = e η i \theta_i=e^{\eta_i} θ i = e η i , rather than of η i \eta_i η i . After Δ i \Delta_i Δ i further samples, η i \eta_i η i has Gaussian posterior with deterministic variance
s i 2 ( Δ i ) : = ( 1 s i 2 + Δ i σ i 2 ) − 1 s_i^2(\Delta_i) := \left(\frac{1}{s_i^2}+\frac{\Delta_i}{\sigma_i^2}\right)^{-1} s i 2 ( Δ i ) := ( s i 2 1 + σ i 2 Δ i ) − 1
and random mean M i ( Δ i ) M_i(\Delta_i) M i ( Δ i ) . The Gaussian update and the law of total variance give
M i ( Δ i ) ∣ H t ∼ N ( m i , s i 2 − s i 2 ( Δ i ) ) . M_i(\Delta_i)\mid\mathcal{H}_t \sim N\left(m_i,s_i^2-s_i^2(\Delta_i)\right). M i ( Δ i ) ∣ H t ∼ N ( m i , s i 2 − s i 2 ( Δ i ) ) .
Conditional on M i ( Δ i ) M_i(\Delta_i) M i ( Δ i ) , θ i \theta_i θ i is lognormal with parameters ( M i ( Δ i ) , s i 2 ( Δ i ) ) \left(M_i(\Delta_i),s_i^2(\Delta_i)\right) ( M i ( Δ i ) , s i 2 ( Δ i ) ) , so
V ( θ i ∣ M i ( Δ i ) ) = ( e s i 2 ( Δ i ) − 1 ) e 2 M i ( Δ i ) + s i 2 ( Δ i ) . V\left(\theta_i\mid M_i(\Delta_i)\right)=\left(e^{s_i^2(\Delta_i)}-1\right)e^{2M_i(\Delta_i)+s_i^2(\Delta_i)}. V ( θ i ∣ M i ( Δ i ) ) = ( e s i 2 ( Δ i ) − 1 ) e 2 M i ( Δ i ) + s i 2 ( Δ i ) .
The Gaussian MGF gives E t [ e 2 M i ( Δ i ) ] = exp ( 2 m i + 2 ( s i 2 − s i 2 ( Δ i ) ) ) \mathbb{E}_t\left[e^{2M_i(\Delta_i)}\right]=\exp\left(2m_i+2\left(s_i^2-s_i^2(\Delta_i)\right)\right) E t [ e 2 M i ( Δ i ) ] = exp ( 2 m i + 2 ( s i 2 − s i 2 ( Δ i ) ) ) , so
v ˉ i ( t , Δ i ) = ( e s i 2 ( Δ i ) − 1 ) e 2 m i + 2 s i 2 − s i 2 ( Δ i ) , c i ( t , Δ i ) 2 = 1 − e − s i 2 ( Δ i ) 1 − e − s i 2 . \bar{v}_i(t,\Delta_i)=\left(e^{s_i^2(\Delta_i)}-1\right)e^{2m_i+2s_i^2-s_i^2(\Delta_i)},\qquad c_i(t,\Delta_i)^2=\frac{1-e^{-s_i^2(\Delta_i)}}{1-e^{-s_i^2}}. v ˉ i ( t , Δ i ) = ( e s i 2 ( Δ i ) − 1 ) e 2 m i + 2 s i 2 − s i 2 ( Δ i ) , c i ( t , Δ i ) 2 = 1 − e − s i 2 1 − e − s i 2 ( Δ i ) .
This does not have the form (10) in general, so Proposition 2(ii) does not apply.
Finally, for z > 0 z>0 z > 0 ,
E t [ ( z − θ i ) + ] = z Φ ( log z − m i s i ) − μ i ( t ) Φ ( log z − m i − s i 2 s i ) . \mathbb{E}_t\left[(z-\theta_i)^+\right]=z\Phi\left(\frac{\log z-m_i}{s_i}\right)-\mu_i(t)\Phi\left(\frac{\log z-m_i-s_i^2}{s_i}\right). E t [ ( z − θ i ) + ] = z Φ ( s i log z − m i ) − μ i ( t ) Φ ( s i log z − m i − s i 2 ) .
Combined with c i ( t , Δ i ) c_i(t,\Delta_i) c i ( t , Δ i ) and (7), this yields the closed form for ℓ i , t ( Δ i ) \ell_{i,t}(\Delta_i) ℓ i , t ( Δ i ) .
Proofs for sec:asymptotic
Proof of consistency
To prove Proposition 4 we first prove three useful lemmas.
Lemma 5 (Conditional posterior consistency). Under Assumption 1, there exists a set Θ ∗ ⊆ J I \Theta^*\subseteq\mathcal{J}^I Θ ∗ ⊆ J I with prior probability one such that, for every θ 0 ∈ Θ ∗ \theta^0\in\Theta^* θ 0 ∈ Θ ∗ , almost surely under P θ 0 P_{\theta^0} P θ 0 : if N i ( t ) → ∞ N_i(t)\to\infty N i ( t ) → ∞ as t → ∞ t\to\infty t → ∞ , then μ i ( t ) → θ i 0 \mu_i(t)\to\theta_i^0 μ i ( t ) → θ i 0 and v i ( t ) → 0 v_i(t)\to0 v i ( t ) → 0 .
Proof For each i i i , Assumption 1 provides the conditions for Doob’s theorem [14 , 39 ] : the mean-parametrization E θ [ Y i , n ] = θ \mathbb{E}_{\theta}[Y_{i,n}]=\theta E θ [ Y i , n ] = θ makes the family { P i ( ⋅ ∣ θ ) : θ ∈ J } \{P_i(\cdot\mid\theta):\theta\in\mathcal{J}\} { P i ( ⋅ ∣ θ ) : θ ∈ J } identifiable, and E Π i , 0 [ θ i 2 ] < ∞ \mathbb{E}_{\Pi_{i,0}}[\theta_i^2]<\infty E Π i , 0 [ θ i 2 ] < ∞ allows the choice g ( θ i ) = θ i 2 g(\theta_i)=\theta_i^2 g ( θ i ) = θ i 2 . Doob’s theorem applied to g ( θ i ) = θ i g(\theta_i)=\theta_i g ( θ i ) = θ i and g ( θ i ) = θ i 2 g(\theta_i)=\theta_i^2 g ( θ i ) = θ i 2 gives a set J i ∗ ⊆ J J_i^*\subseteq\mathcal{J} J i ∗ ⊆ J with Π i , 0 ( J i ∗ ) = 1 \Pi_{i,0}(J_i^*)=1 Π i , 0 ( J i ∗ ) = 1 such that, for every θ i 0 ∈ J i ∗ \theta_i^0\in J_i^* θ i 0 ∈ J i ∗ , P θ i 0 P_{\theta_i^0} P θ i 0 -almost surely: if N i ( t ) → ∞ N_i(t)\to\infty N i ( t ) → ∞ , then μ i ( t ) → θ i 0 \mu_i(t)\to\theta_i^0 μ i ( t ) → θ i 0 and E t [ θ i 2 ] → ( θ i 0 ) 2 \mathbb{E}_t[\theta_i^2]\to(\theta_i^0)^2 E t [ θ i 2 ] → ( θ i 0 ) 2 . Thus, v i ( t ) = E t [ θ i 2 ] − μ i ( t ) 2 → 0 v_i(t)=\mathbb{E}_t[\theta_i^2]-\mu_i(t)^2\to0 v i ( t ) = E t [ θ i 2 ] − μ i ( t ) 2 → 0 . Define Θ ∗ : = J 1 ∗ × ⋯ × J I ∗ ⊆ J I \Theta^*:=J_1^*\times\cdots\times J_I^*\subseteq\mathcal{J}^I Θ ∗ := J 1 ∗ × ⋯ × J I ∗ ⊆ J I . Since the priors are independent across items, Θ ∗ \Theta^* Θ ∗ has prior probability ∏ i = 1 I Π i , 0 ( J i ∗ ) = 1 \prod_{i=1}^I\Pi_{i,0}(J_i^*)=1 ∏ i = 1 I Π i , 0 ( J i ∗ ) = 1 . □
Lemma 6 (Uniform improvement from one observation). Let Π \Pi Π be a distribution on J \mathcal{J} J with continuous positive density, mean μ : = E Π [ θ ] \mu:=\mathbb{E}_{\Pi}[\theta] μ := E Π [ θ ] , and variance v : = V Π ( θ ) > 0 v:=V_{\Pi}(\theta)>0 v := V Π ( θ ) > 0 . Let θ ∼ Π \theta\sim\Pi θ ∼ Π and Y ∣ θ ∼ P ( ⋅ ∣ θ ) Y\mid\theta\sim P(\cdot\mid\theta) Y ∣ θ ∼ P ( ⋅ ∣ θ ) with E [ Y ∣ θ ] = θ \mathbb{E}[Y\mid\theta]=\theta E [ Y ∣ θ ] = θ and finite predictive second moment E [ Y 2 ] < ∞ \mathbb{E}[Y^2]<\infty E [ Y 2 ] < ∞ . Define v ˉ : = E [ V ( θ ∣ Y ) ] \bar{v}:=\mathbb{E}[V(\theta\mid Y)] v ˉ := E [ V ( θ ∣ Y )] , c : = v ˉ / v c:=\sqrt{\bar{v}/v} c := v ˉ / v , and X c : = μ + c ( θ − μ ) X_c:=\mu+c(\theta-\mu) X c := μ + c ( θ − μ ) . Then c < 1 c<1 c < 1 , and for every compact K ⊂ J K\subset\mathcal{J} K ⊂ J there exists η > 0 \eta>0 η > 0 such that
E [ ( q − θ ) + ] − E [ ( q − X c ) + ] ≥ η for every q ∈ K . \mathbb{E}\left[(q-\theta)^+\right]-\mathbb{E}\left[(q-X_c)^+\right]\geq\eta\qquad\text{for every }q\in K. E [ ( q − θ ) + ] − E [ ( q − X c ) + ] ≥ η for every q ∈ K .
Proof. We first show c < 1 c < 1 c < 1 . By the law of total variance,
v = E [ V ( θ ∣ Y ) ] + V ( E [ θ ∣ Y ] ) = v ˉ + V ( E [ θ ∣ Y ] ) . v = \mathbb{E}[\mathop{\mathrm{V}}(\theta\mid Y)] + \mathop{\mathrm{V}}(\mathbb{E}[\theta\mid Y]) = \bar{v} + \mathop{\mathrm{V}}(\mathbb{E}[\theta\mid Y]). v = E [ V ( θ ∣ Y )] + V ( E [ θ ∣ Y ]) = v ˉ + V ( E [ θ ∣ Y ]) .
V ( E [ θ ∣ Y ] ) > 0 \mathop{\mathrm{V}}(\mathbb{E}[\theta\mid Y]) > 0 V ( E [ θ ∣ Y ]) > 0 since
Cov ( E [ θ ∣ Y ] , Y ) = E [ E [ θ ∣ Y ] ⋅ Y ] − E [ E [ θ ∣ Y ] ] E [ Y ] = E [ θ Y ] − μ 2 = v , \operatorname{Cov}(\mathbb{E}[\theta\mid Y],Y) = \mathbb{E}[\mathbb{E}[\theta\mid Y]\cdot Y] - \mathbb{E}[\mathbb{E}[\theta\mid Y]]\mathbb{E}[Y] = \mathbb{E}[\theta Y] - \mu^2 = v, Cov ( E [ θ ∣ Y ] , Y ) = E [ E [ θ ∣ Y ] ⋅ Y ] − E [ E [ θ ∣ Y ]] E [ Y ] = E [ θ Y ] − μ 2 = v ,
so v ˉ < v \bar{v} < v v ˉ < v and c = v ˉ / v < 1 c = \sqrt{\bar{v}/v} < 1 c = v ˉ / v < 1 .
Next we show the inequality for a fixed q q q . Fix q ∈ J q \in\mathcal{J} q ∈ J and let ϕ q ( x ) : = ( q − x ) + \phi_q(x) := (q-x)^+ ϕ q ( x ) := ( q − x ) + . Since X c = c θ + ( 1 − c ) μ X_c = c\theta+(1-c)\mu X c = c θ + ( 1 − c ) μ is a convex combination of θ \theta θ and μ \mu μ , convexity of ϕ q \phi_q ϕ q gives,
ϕ q ( X c ) ≤ c ϕ q ( θ ) + ( 1 − c ) ϕ q ( μ ) . \phi_q(X_c) \le c\phi_q(\theta) + (1-c)\phi_q(\mu). ϕ q ( X c ) ≤ c ϕ q ( θ ) + ( 1 − c ) ϕ q ( μ ) .
Taking expectations,
E [ ϕ q ( X c ) ] ≤ c E [ ϕ q ( θ ) ] + ( 1 − c ) ϕ q ( μ ) < E [ ϕ q ( θ ) ] . \mathbb{E}[\phi_q(X_c)] \le c\mathbb{E}[\phi_q(\theta)] + (1-c)\phi_q(\mu) < \mathbb{E}[\phi_q(\theta)]. E [ ϕ q ( X c )] ≤ c E [ ϕ q ( θ )] + ( 1 − c ) ϕ q ( μ ) < E [ ϕ q ( θ )] .
The second inequality follows from Jensen’s inequality, and is strict since Π \Pi Π has continuous positive density on J \mathcal{J} J and J \mathcal{J} J is open so P ( θ < q ) > 0 \mathbb{P}(\theta< q) > 0 P ( θ < q ) > 0 and P ( θ > q ) > 0 \mathbb{P}(\theta> q) > 0 P ( θ > q ) > 0 . Define
δ ( q ) : = E [ ( q − θ ) + ] − E [ ( q − X c ) + ] > 0. \delta(q) := \mathbb{E}[(q-\theta)^+] - \mathbb{E}[(q-X_c)^+] > 0. δ ( q ) := E [( q − θ ) + ] − E [( q − X c ) + ] > 0.
For any q ′ ∈ R q' \in\mathbb{R} q ′ ∈ R , ∣ ( q ′ − x ) + − ( q − x ) + ∣ ≤ ∣ q ′ − q ∣ |(q'-x)^+-(q-x)^+| \le|q'-q| ∣ ( q ′ − x ) + − ( q − x ) + ∣ ≤ ∣ q ′ − q ∣ so δ ( q ) \delta(q) δ ( q ) is 2-Lipschitz and thus is continuous in q q q . Thus for compact K K K , η : = inf q ∈ K δ ( q ) > 0 \eta:= \inf_{q\in K}\delta(q) > 0 η := inf q ∈ K δ ( q ) > 0 . □
Lemma 7 (Every item is sampled infinitely often). Under the hypotheses of Proposition 4, for every θ 0 ∈ Θ ∗ \theta^0 \in\Theta^* θ 0 ∈ Θ ∗ ,
N i ( t ) → ∞ for every i = 1 , … , I N_i(t) \to\infty\qquad\text{for every } i=1,\ldots,I N i ( t ) → ∞ for every i = 1 , … , I P θ 0 \mathbb{P}_{\theta^0} P θ 0 -almost surely.
Proof. Fix θ 0 ∈ Θ ∗ \theta^0 \in\Theta^* θ 0 ∈ Θ ∗ and a sample path in the probability-one event on which the conclusions of Lemma 5 hold. For the asymptotic claim, we consider the procedure of Algorithm 3 extended to infinitely many rounds, with B t ∈ Z + B_t \in\mathbb{Z}_+ B t ∈ Z + for every t t t , thus ∑ t = 1 T B t → ∞ \sum_{t=1}^{T} B_t \to\infty ∑ t = 1 T B t → ∞ as T → ∞ T \to\infty T → ∞ . Assume by contradiction that some items are sampled only finitely often, and define
F : = { i : sup t ≥ 1 N i ( t ) < ∞ } . F := \{i : \sup_{t\ge1} N_i(t) < \infty\}. F := { i : t ≥ 1 sup N i ( t ) < ∞ } .
Since the sum of samples diverges, F c ≠ ∅ F^c \ne\varnothing F c = ∅ . All items i ∈ F i \in F i ∈ F eventually stop getting sampled, so for all sufficiently large t t t we write Π i , t = Π i ∞ \Pi_{i,t} = \Pi_i^\infty Π i , t = Π i ∞ , μ i ( t ) = μ i ∞ \mu_i(t) = \mu_i^\infty μ i ( t ) = μ i ∞ , and v i ( t ) = v i ∞ > 0 v_i(t) = v_i^\infty> 0 v i ( t ) = v i ∞ > 0 . For each j ∉ F j \notin F j ∈ / F , N j ( t ) → ∞ N_j(t) \to\infty N j ( t ) → ∞ , so by Lemma 5, μ j ( t ) → θ j 0 \mu_j(t) \to\theta_j^0 μ j ( t ) → θ j 0 and v j ( t ) → 0 v_j(t) \to0 v j ( t ) → 0 . We begin by showing that each of q ∗ ( t ) q^*(t) q ∗ ( t ) and q † ( t ) q^\dagger(t) q † ( t ) is contained in a compact interval for all sufficiently large t t t . Choose a , b ∈ J a,b \in\mathcal{J} a , b ∈ J with a < min j ∈ F c θ j 0 a < \min_{j\in F^c}\theta_j^0 a < min j ∈ F c θ j 0 and b > max j ∈ F c θ j 0 b > \max_{j\in F^c}\theta_j^0 b > max j ∈ F c θ j 0 . For each j ∈ F c j \in F^c j ∈ F c , μ j ( t ) → θ j 0 \mu_j(t) \to\theta_j^0 μ j ( t ) → θ j 0 and v j ( t ) → 0 v_j(t) \to0 v j ( t ) → 0 , so Chebyshev’s inequality gives P t ( θ j ≥ a ) → 1 \mathbb{P}_t(\theta_j \ge a) \to1 P t ( θ j ≥ a ) → 1 and P t ( θ j ≥ b ) → 0 \mathbb{P}_t(\theta_j \ge b) \to0 P t ( θ j ≥ b ) → 0 . Moreover, since the distributions of the items in F F F are fixed, a a a and b b b can be chosen such that, for all sufficiently large t t t ,
∑ i = 1 I P t ( θ i ≥ a ) > k , ∑ i = 1 I P t ( θ i ≥ b ) < k . \sum_{i=1}^{I}\mathbb{P}_{t}(\theta_i \ge a)>k,\qquad\sum_{i=1}^{I}\mathbb{P}_{t}(\theta_i \ge b)<k. i = 1 ∑ I P t ( θ i ≥ a ) > k , i = 1 ∑ I P t ( θ i ≥ b ) < k .
Since q ↦ ∑ i P t ( θ i ≥ q ) q\mapsto\sum_i\mathbb{P}_{t}(\theta_i\ge q) q ↦ ∑ i P t ( θ i ≥ q ) is nonincreasing in q q q and equals k k k at q ⋆ ( t ) q^\star(t) q ⋆ ( t ) by (2) , q ⋆ ( t ) ∈ K : = [ a , b ] q^\star(t)\in K:=[a,b] q ⋆ ( t ) ∈ K := [ a , b ] for all sufficiently large t t t .
For q † ( t ) q^\dagger(t) q † ( t ) , since every posterior mean converges to a point in J \mathcal{J} J , we can enlarge K K K within J \mathcal{J} J , if necessary, so that it also contains every μ i ( t ) \mu_i(t) μ i ( t ) for all sufficiently large t t t . By (3) , μ [ k + 1 ] ( t ) ≤ q † ( t ) ≤ μ [ k ] ( t ) \mu_{[k+1]}(t)\le q^\dagger(t)\le\mu_{[k]}(t) μ [ k + 1 ] ( t ) ≤ q † ( t ) ≤ μ [ k ] ( t ) , so q † ( t ) ∈ K q^\dagger(t)\in K q † ( t ) ∈ K as well.
Applying Lemma 6 to Π i ∞ \Pi_i^\infty Π i ∞ with the compact set K K K gives η i > 0 \eta_i>0 η i > 0 such that
E Π i ∞ [ ( q ( t ) − θ i ) + ] − E [ ( q ( t ) − X c i ∞ ) + ] ≥ η i , \mathbb{E}_{\Pi_i^\infty}\left[(q(t)-\theta_i)^+\right]-\mathbb{E}\left[(q(t)-X_{c_i}^\infty)^+\right]\ge\eta_i, E Π i ∞ [ ( q ( t ) − θ i ) + ] − E [ ( q ( t ) − X c i ∞ ) + ] ≥ η i ,
where X c i ∞ : = μ i ∞ + c i ∞ ( θ i − μ i ∞ ) X_{c_i}^\infty:=\mu_i^\infty+c_i^\infty(\theta_i-\mu_i^\infty) X c i ∞ := μ i ∞ + c i ∞ ( θ i − μ i ∞ ) and c i ∞ : = v ˉ i ∞ ( 1 ) / v i ∞ c_i^\infty:=\sqrt{\bar{v}_i^\infty(1)/v_i^\infty} c i ∞ := v ˉ i ∞ ( 1 ) / v i ∞ . Once Π i , t = Π i ∞ \Pi_{i,t}=\Pi_i^\infty Π i , t = Π i ∞ , the left-hand side is exactly ℓ i , t ( 0 ) − ℓ i , t ( 1 ) \ell_{i,t}(0)-\ell_{i,t}(1) ℓ i , t ( 0 ) − ℓ i , t ( 1 ) . Hence ℓ i , t ( 0 ) − ℓ i , t ( 1 ) ≥ η i \ell_{i,t}(0)-\ell_{i,t}(1)\ge\eta_i ℓ i , t ( 0 ) − ℓ i , t ( 1 ) ≥ η i for all sufficiently large t t t . Let c F : = min i ∈ F η i > 0 c_F:=\min_{i\in F}\eta_i>0 c F := min i ∈ F η i > 0 . Then for all sufficiently large t t t ,
ℓ i , t ( 0 ) − ℓ i , t ( 1 ) ≥ c F for every i ∈ F . \ell_{i,t}(0)-\ell_{i,t}(1)\ge c_F \qquad\text{for every }i\in F. ℓ i , t ( 0 ) − ℓ i , t ( 1 ) ≥ c F for every i ∈ F .
To get a contradiction, we next show that for every j ∉ F j\notin F j ∈ / F , the maximum possible improvement from allocating samples to item j j j converges to 0. For j ∉ F j\notin F j ∈ / F , let
R j , t : = ℓ j , t ( 0 ) − inf d ≥ 0 ℓ j , t ( d ) R_{j,t}:=\ell_{j,t}(0)-\inf_{d\ge0}\ell_{j,t}(d) R j , t := ℓ j , t ( 0 ) − d ≥ 0 inf ℓ j , t ( d )
be the maximum possible improvement from allocating any number of samples to item j j j . Since x ↦ ( q − x ) + x\mapsto(q-x)^+ x ↦ ( q − x ) + is 1-Lipschitz, for any random X X X ,
∣ E [ ( q − X ) + ] − ( q − E [ X ] ) + ∣ ≤ E ∣ X − E [ X ] ∣ ≤ V ( X ) . \left|\mathbb{E}[(q-X)^+]-(q-\mathbb{E}[X])^+\right|\le\mathbb{E}|X-\mathbb{E}[X]|\le\sqrt{\mathop{\rm V}(X)}. E [( q − X ) + ] − ( q − E [ X ] ) + ≤ E ∣ X − E [ X ] ∣ ≤ V ( X ) .
The current distribution for item j j j has variance v j ( t ) = v ˉ j ( t , 0 ) v_j(t)=\bar{v}_j(t,0) v j ( t ) = v ˉ j ( t , 0 ) , and v ˉ j ( t , d ) ≤ v ˉ j ( t , 0 ) \bar{v}_j(t,d)\le\bar{v}_j(t,0) v ˉ j ( t , d ) ≤ v ˉ j ( t , 0 ) . Therefore
R j , t ≤ 2 v j ( t ) → 0. R_{j,t}\le2\sqrt{v_j(t)}\to0. R j , t ≤ 2 v j ( t ) → 0.
Since F c F^c F c is finite, ∑ j ∉ F R j , t → 0 \sum_{j\notin F}R_{j,t}\to0 ∑ j ∈ / F R j , t → 0 , and for all sufficiently large t t t , ∑ j ∉ F R j , t < c F \sum_{j\notin F}R_{j,t}<c_F ∑ j ∈ / F R j , t < c F . Thus, for sufficiently large t t t , the feasible allocation that places one sample on some i 0 ∈ F i_0\in F i 0 ∈ F and distributes the remaining B t − 1 B_t-1 B t − 1 samples arbitrarily achieves total improvement
( ℓ i 0 , t ( 0 ) − ℓ i 0 , t ( 1 ) ) + ∑ j ≠ i 0 ( ℓ j , t ( 0 ) − ℓ j , t ( d j ) ) ≥ c F . \left(\ell_{i_0,t}(0)-\ell_{i_0,t}(1)\right)+\sum_{j\ne i_0}\left(\ell_{j,t}(0)-\ell_{j,t}(d_j)\right)\ge c_F. ( ℓ i 0 , t ( 0 ) − ℓ i 0 , t ( 1 ) ) + j = i 0 ∑ ( ℓ j , t ( 0 ) − ℓ j , t ( d j ) ) ≥ c F .
By contrast, any allocation that assigns no samples to items in F F F has a total improvement of at most ∑ j ∉ F R j , t < c F \sum_{j\notin F}R_{j,t}<c_F ∑ j ∈ / F R j , t < c F . Therefore, the optimal solution allocates a sample to at least one item in F F F for every sufficiently large t t t , contradicting the assumption. Hence F = ∅ F=\varnothing F = ∅ . □ \square □
Proof of Proposition 4 Fix θ 0 ∈ Θ ∗ \theta^0 \in\Theta^* θ 0 ∈ Θ ∗ . By Lemma 7 , N i ( t ) → ∞ N_i(t) \to\infty N i ( t ) → ∞ for every i i i , almost surely. Hence μ i ( t ) → θ i 0 \mu_i(t) \to\theta_i^0 μ i ( t ) → θ i 0 and v i ( t ) → 0 v_i(t) \to0 v i ( t ) → 0 for every i i i , almost surely. Next, for any realized θ \theta θ ,
OC ( S k ( μ ( t ) ) , θ ) = ∑ i ∈ S k ( θ ) θ i − ∑ i ∈ S k ( μ ( t ) ) θ i ≤ ∑ i ∈ S k ( θ ) ∣ θ i − μ i ( t ) ∣ + ∑ i ∈ S k ( μ ( t ) ) ∣ θ i − μ i ( t ) ∣ \begin{aligned}
\operatorname{OC}(S_k(\mu(t)),\theta)=\sum_{i\in S_k(\theta)}\theta_i-\sum_{i\in S_k(\mu(t))}\theta_i \\
&\leq\sum_{i\in S_k(\theta)}|\theta_i-\mu_i(t)|+\sum_{i\in S_k(\mu(t))}|\theta_i-\mu_i(t)|
\end{aligned} OC ( S k ( μ ( t )) , θ ) = i ∈ S k ( θ ) ∑ θ i − i ∈ S k ( μ ( t )) ∑ θ i ≤ i ∈ S k ( θ ) ∑ ∣ θ i − μ i ( t ) ∣ + i ∈ S k ( μ ( t )) ∑ ∣ θ i − μ i ( t ) ∣
≤ 2 k ∥ θ − μ ( t ) ∥ ∞ . \leq2k\lVert\theta-\mu(t)\rVert_\infty. ≤ 2 k ∥ θ − μ ( t ) ∥ ∞ .
Taking expectation,
EOC ( H t ) ≤ 2 k E t ∥ θ − μ ( t ) ∥ ∞ ≤ 2 k ∑ i = 1 I E t ∣ θ i − μ i ( t ) ∣ ≤ 2 k ∑ i = 1 I v i ( t ) . \operatorname{EOC}(\mathcal{H}_t)\leq2k\mathbb{E}_t\lVert\theta-\mu(t)\rVert_\infty\leq2k\sum_{i=1}^{I}\mathbb{E}_t|\theta_i-\mu_i(t)|\leq2k\sum_{i=1}^{I}\sqrt{v_i(t)}. EOC ( H t ) ≤ 2 k E t ∥ θ − μ ( t ) ∥ ∞ ≤ 2 k i = 1 ∑ I E t ∣ θ i − μ i ( t ) ∣ ≤ 2 k i = 1 ∑ I v i ( t ) .
Since v i ( t ) → 0 v_i(t)\to0 v i ( t ) → 0 for every i i i , EOC ( H t ) → 0 \operatorname{EOC}(\mathcal{H}_t)\to0 EOC ( H t ) → 0 almost surely.
Finally, assume θ [ k ] 0 > θ [ k + 1 ] 0 \theta^0_{[k]}>\theta^0_{[k+1]} θ [ k ] 0 > θ [ k + 1 ] 0 , and let g : = θ [ k ] 0 − θ [ k + 1 ] 0 > 0 g:=\theta^0_{[k]}-\theta^0_{[k+1]}>0 g := θ [ k ] 0 − θ [ k + 1 ] 0 > 0 . Since μ i ( t ) → θ i 0 \mu_i(t)\to\theta_i^0 μ i ( t ) → θ i 0 for every i i i , eventually ∣ μ i ( t ) − θ i 0 ∣ < g / 3 |\mu_i(t)-\theta_i^0|<g/3 ∣ μ i ( t ) − θ i 0 ∣ < g /3 . If i ∈ S k ( θ 0 ) i\in S_k(\theta^0) i ∈ S k ( θ 0 ) and j ∉ S k ( θ 0 ) j\notin S_k(\theta^0) j ∈ / S k ( θ 0 ) , then θ i 0 ≥ θ [ k ] 0 \theta_i^0\geq\theta^0_{[k]} θ i 0 ≥ θ [ k ] 0 and θ j 0 ≤ θ [ k + 1 ] 0 \theta_j^0\leq\theta^0_{[k+1]} θ j 0 ≤ θ [ k + 1 ] 0 . Hence, eventually,
μ i ( t ) ≥ θ [ k ] 0 − g / 3 > θ [ k + 1 ] 0 + g / 3 ≥ μ j ( t ) . \mu_i(t)\geq\theta^0_{[k]}-g/3>\theta^0_{[k+1]}+g/3\geq\mu_j(t). μ i ( t ) ≥ θ [ k ] 0 − g /3 > θ [ k + 1 ] 0 + g /3 ≥ μ j ( t ) .
Thus S k ( μ ( t ) ) = S k ( θ 0 ) S_k(\mu(t))=S_k(\theta^0) S k ( μ ( t )) = S k ( θ 0 ) eventually almost surely. □
The optimal exponential rate
Throughout this subsection and the next, assume Assumption 2 and 1 ≤ B t ≤ B 1\leq B_t\leq B 1 ≤ B t ≤ B for every t t t , where B B B is a fixed positive integer. All convergence statements hold P θ 0 \mathbb{P}_{\theta^0} P θ 0 -almost surely.
Proof of Lemma 3 By the definition of Alt ( θ 0 ) \operatorname{Alt}(\theta^0) Alt ( θ 0 ) ,
Γ ( w , θ 0 ) = inf x ∈ Alt ( θ 0 ) ∑ ℓ = 1 I w ℓ d ℓ ( θ 0 , x ℓ ) = min i ≤ k < j inf x ∈ J I x i < x j ∑ ℓ = 1 I w ℓ d ℓ ( θ 0 , x ℓ ) = min i ≤ k < j inf u , v ∈ J u < v { w i d i ( θ 0 , u ) + w j d j ( θ 0 , v ) } . \begin{aligned}
\Gamma(w,\theta^0)=\inf_{x\in\operatorname{Alt}(\theta^0)}\sum_{\ell=1}^{I}w_\ell d_\ell(\theta^0,x_\ell) \\
&=\min_{i\leq k<j}\inf_{\substack{x\in\mathcal{J}^{I}\\x_i<x_j}}\sum_{\ell=1}^{I}w_\ell d_\ell(\theta^0,x_\ell) \\
&=\min_{i\leq k<j}\inf_{\substack{u,v\in\mathcal{J}\\u<v}}\{w_i d_i(\theta^0,u)+w_j d_j(\theta^0,v)\}.
\end{aligned} Γ ( w , θ 0 ) = x ∈ Alt ( θ 0 ) inf ℓ = 1 ∑ I w ℓ d ℓ ( θ 0 , x ℓ ) = i ≤ k < j min x ∈ J I x i < x j inf ℓ = 1 ∑ I w ℓ d ℓ ( θ 0 , x ℓ ) = i ≤ k < j min u , v ∈ J u < v inf { w i d i ( θ 0 , u ) + w j d j ( θ 0 , v )} .
The last equality follows by setting x ℓ = θ ℓ 0 x_\ell=\theta_\ell^0 x ℓ = θ ℓ 0 for ℓ ∉ { i , j } \ell\notin\{i,j\} ℓ ∈ / { i , j } . We conclude by showing that the inner infimum equals
min x ∈ [ θ j 0 , θ i 0 ] { w i d i ( θ 0 , x ) + w j d j ( θ 0 , x ) } . \min_{x\in[\theta_j^0,\theta_i^0]}\{w_i d_i(\theta^0,x)+w_j d_j(\theta^0,x)\}. x ∈ [ θ j 0 , θ i 0 ] min { w i d i ( θ 0 , x ) + w j d j ( θ 0 , x )} .
Under Assumption 2, d ℓ ( θ 0 , x ) d_\ell(\theta^0,x) d ℓ ( θ 0 , x ) is continuous and decreases as x x x moves toward θ ℓ 0 \theta_\ell^0 θ ℓ 0 . By continuity of d ℓ ( θ 0 , ⋅ ) d_\ell(\theta^0,\cdot) d ℓ ( θ 0 , ⋅ ) , we may replace u < v u<v u < v with u ≤ v u\leq v u ≤ v . Since moving u u u toward θ i 0 \theta_i^0 θ i 0 and v v v toward θ j 0 \theta_j^0 θ j 0 cannot increase the sum, we may restrict to θ j 0 ≤ u ≤ v ≤ θ i 0 \theta_j^0\leq u\leq v\leq\theta_i^0 θ j 0 ≤ u ≤ v ≤ θ i 0 . Within this interval, replacing u u u by v v v cannot increase d i ( θ 0 , u ) d_i(\theta^0,u) d i ( θ 0 , u ) . Thus we may take u = v = x ∈ [ θ j 0 , θ i 0 ] u=v=x\in[\theta_j^0,\theta_i^0] u = v = x ∈ [ θ j 0 , θ i 0 ] , and the infimum is a minimum by continuity and compactness. □
Lemma 8 (EOC and posterior error rates). For every sampling rule,
− log EOC ( H t ) ∑ i N i ( t ) − Γ ( w ^ ( t ) ; θ 0 ) ⟶ 0 and − log P t ( S k ( θ ) ≠ S k ( θ 0 ) ) ∑ i N i ( t ) − Γ ( w ^ ( t ) ; θ 0 ) ⟶ 0. -\frac{\log\operatorname{EOC}(\mathcal{H}_t)}{\sum_i N_i(t)}-\Gamma(\widehat{\mathbf{w}}(t);\boldsymbol{\theta}^0)\longrightarrow0
\quad\text{and}\quad
-\frac{\log\mathbb{P}_t(S_k(\boldsymbol{\theta})\ne S_k(\boldsymbol{\theta}^0))}{\sum_i N_i(t)}-\Gamma(\widehat{\mathbf{w}}(t);\boldsymbol{\theta}^0)\longrightarrow0. − ∑ i N i ( t ) log EOC ( H t ) − Γ ( w ( t ) ; θ 0 ) ⟶ 0 and − ∑ i N i ( t ) log P t ( S k ( θ ) = S k ( θ 0 )) − Γ ( w ( t ) ; θ 0 ) ⟶ 0. Proof. The posterior error statement follows from Lemma 2 with O = Alt ( θ 0 ) O=\operatorname{Alt}(\boldsymbol{\theta}^0) O = Alt ( θ 0 ) . To prove the EOC statement, we first bound the posterior expected loss of selecting the true top-k k k set, R t : = E t [ OC ( S k ( θ 0 ) , θ ) ] R_t:=\mathbb{E}_t[\operatorname{OC}(S_k(\boldsymbol{\theta}^0),\boldsymbol{\theta})] R t := E t [ OC ( S k ( θ 0 ) , θ )] . We then compare R t R_t R t with EOC ( H t ) \operatorname{EOC}(\mathcal{H}_t) EOC ( H t ) .
For 0 < δ < U − L 0<\delta<U-L 0 < δ < U − L , define
O δ : = ⋃ i ≤ k < j { x ∈ J I : x j > x i + δ } . O_\delta:=\bigcup_{i\le k<j}\{\mathbf{x}\in\mathcal{J}^I:x_j>x_i+\delta\}. O δ := i ≤ k < j ⋃ { x ∈ J I : x j > x i + δ } . On O δ O_\delta O δ , the opportunity cost of selecting S k ( θ 0 ) S_k(\boldsymbol{\theta}^0) S k ( θ 0 ) is at least δ \delta δ . Also, opportunity cost is at most k ( U − L ) k(U-L) k ( U − L ) and is zero outside Alt ( θ 0 ) \operatorname{Alt}(\boldsymbol{\theta}^0) Alt ( θ 0 ) . Therefore,
δ P t ( θ ∈ O δ ) ≤ R t ≤ k ( U − L ) P t ( θ ∈ Alt ( θ 0 ) ) . (16) \delta\mathbb{P}_t(\boldsymbol{\theta}\in O_\delta)\le R_t\le k(U-L)\mathbb{P}_t(\boldsymbol{\theta}\in\operatorname{Alt}(\boldsymbol{\theta}^0)). \tag*{(16)} δ P t ( θ ∈ O δ ) ≤ R t ≤ k ( U − L ) P t ( θ ∈ Alt ( θ 0 )) . (16) Applying Lemma 2 to the probabilities in (16) gives
Γ ( w ^ ( t ) ; θ 0 ) − o ( 1 ) ≤ − log R t ∑ i N i ( t ) ≤ inf y ∈ O δ ∑ ℓ w ^ ℓ ( t ) d ℓ ( θ ℓ 0 , y ℓ ) + o ( 1 ) . \Gamma(\widehat{\mathbf{w}}(t);\boldsymbol{\theta}^0)-o(1)
\le-\frac{\log R_t}{\sum_iN_i(t)}
\le\inf_{\mathbf{y}\in O_\delta}\sum_\ell\widehat{w}_\ell(t)d_\ell(\theta_\ell^0,y_\ell)+o(1). Γ ( w ( t ) ; θ 0 ) − o ( 1 ) ≤ − ∑ i N i ( t ) log R t ≤ y ∈ O δ inf ℓ ∑ w ℓ ( t ) d ℓ ( θ ℓ 0 , y ℓ ) + o ( 1 ) . It therefore suffices to show that for every ε > 0 \varepsilon>0 ε > 0 , there is a δ > 0 \delta>0 δ > 0 such that, for every w ∈ Δ I \mathbf{w}\in\Delta_I w ∈ Δ I ,
Γ ( w ; θ 0 ) ≤ inf y ∈ O δ ∑ ℓ w ℓ d ℓ ( θ ℓ 0 , y ℓ ) ≤ Γ ( w ; θ 0 ) + ε . (17) \Gamma(\mathbf{w};\boldsymbol{\theta}^0)
\le\inf_{\mathbf{y}\in O_\delta}\sum_\ell w_\ell d_\ell(\theta_\ell^0,y_\ell)
\le\Gamma(\mathbf{w};\boldsymbol{\theta}^0)+\varepsilon. \tag*{(17)} Γ ( w ; θ 0 ) ≤ y ∈ O δ inf ℓ ∑ w ℓ d ℓ ( θ ℓ 0 , y ℓ ) ≤ Γ ( w ; θ 0 ) + ε . (17) The first inequality follows from O δ ⊆ Alt ( θ 0 ) O_\delta\subseteq\operatorname{Alt}(\boldsymbol{\theta}^0) O δ ⊆ Alt ( θ 0 ) . For the second, choose δ > 0 \delta>0 δ > 0 small enough that x ± δ ∈ J x\pm\delta\in\mathcal{J} x ± δ ∈ J and
∣ d i ( θ i 0 , x ± δ ) − d i ( θ i 0 , x ) ∣ ≤ ε for every i and x ∈ [ θ i 0 , θ i 0 ] . \lvert d_i(\theta_i^0,x\pm\delta)-d_i(\theta_i^0,x)\rvert\le\varepsilon
\quad\text{for every }i\text{ and }x\in[\theta_i^0,\theta_i^0]. ∣ d i ( θ i 0 , x ± δ ) − d i ( θ i 0 , x )∣ ≤ ε for every i and x ∈ [ θ i 0 , θ i 0 ] . Fix w \mathbf{w} w and choose i , j , x i,j,x i , j , x attaining the minimum in (12). Setting y i = x − δ y_i=x-\delta y i = x − δ , y j = x + δ y_j=x+\delta y j = x + δ , and y ℓ = θ ℓ 0 y_\ell=\theta_\ell^0 y ℓ = θ ℓ 0 for all other items gives a vector in O δ O_\delta O δ . Hence
inf y ∈ O δ ∑ ℓ w ℓ d ℓ ( θ ℓ 0 , y ℓ ) ≤ w i d i ( θ i 0 , x − δ ) + w j d j ( θ j 0 , x + δ ) \inf_{\mathbf{y}\in O_\delta}\sum_\ell w_\ell d_\ell(\theta_\ell^0,y_\ell)
\le w_i d_i(\theta_i^0,x-\delta)+w_jd_j(\theta_j^0,x+\delta) y ∈ O δ inf ℓ ∑ w ℓ d ℓ ( θ ℓ 0 , y ℓ ) ≤ w i d i ( θ i 0 , x − δ ) + w j d j ( θ j 0 , x + δ ) ≤ w i d i ( θ i 0 , x ) + w j d j ( θ j 0 , x ) + ε ( w i + w j ) \le w_i d_i(\theta_i^0,x)+w_jd_j(\theta_j^0,x)+\varepsilon(w_i+w_j) ≤ w i d i ( θ i 0 , x ) + w j d j ( θ j 0 , x ) + ε ( w i + w j ) ≤ Γ ( w ; θ 0 ) + ε . \le\Gamma(\mathbf{w};\boldsymbol{\theta}^0)+\varepsilon. ≤ Γ ( w ; θ 0 ) + ε . This proves (16). Combining it with the preceding bounds on − log R t / ∑ i N i ( t ) -\log R_t/\sum_iN_i(t) − log R t / ∑ i N i ( t ) and letting ε ↓ 0 \varepsilon\downarrow0 ε ↓ 0 gives
− log R t ∑ i N i ( t ) − Γ ( w ^ ( t ) ; θ 0 ) ⟶ 0. (18) -\frac{\log R_t}{\sum_iN_i(t)}-\Gamma(\widehat{\mathbf{w}}(t);\boldsymbol{\theta}^0)\longrightarrow0. \tag*{(18)} − ∑ i N i ( t ) log R t − Γ ( w ( t ) ; θ 0 ) ⟶ 0. (18) We next compare R t R_t R t with EOC ( H t ) \operatorname{EOC}(\mathcal{H}_t) EOC ( H t ) . Let g : = θ k 0 − θ k + 1 0 > 0 g:=\theta_k^0-\theta_{k+1}^0>0 g := θ k 0 − θ k + 1 0 > 0 and V : = { x ∈ J I : ∥ x − θ 0 ∥ ∞ < g / 4 } V:=\{\mathbf{x}\in\mathcal{J}^I:\lVert\mathbf{x}-\boldsymbol{\theta}^0\rVert_\infty<g/4\} V := { x ∈ J I : ∥ x − θ 0 ∥ ∞ < g /4 } so that for every x ∈ V \mathbf{x}\in V x ∈ V , S k ( x ) = S k ( θ 0 ) S_k(\mathbf{x})=S_k(\boldsymbol{\theta}^0) S k ( x ) = S k ( θ 0 ) . If S k ( μ ( t ) ) ≠ S k ( θ 0 ) S_k(\boldsymbol{\mu}(t))\ne S_k(\boldsymbol{\theta}^0) S k ( μ ( t )) = S k ( θ 0 ) , its opportunity cost is at least g / 2 g/2 g /2 when θ ∈ V \boldsymbol{\theta}\in V θ ∈ V , thus EOC ( H t ) ≥ ( g / 2 ) P t ( θ ∈ V ) \operatorname{EOC}(\mathcal{H}_t)\ge(g/2)\mathbb{P}_t(\boldsymbol{\theta}\in V) EOC ( H t ) ≥ ( g /2 ) P t ( θ ∈ V ) . If S k ( μ ( t ) ) = S k ( θ 0 ) S_k(\boldsymbol{\mu}(t))=S_k(\boldsymbol{\theta}^0) S k ( μ ( t )) = S k ( θ 0 ) , then EOC ( H t ) = R t \operatorname{EOC}(\mathcal{H}_t)=R_t EOC ( H t ) = R t . Since selecting the largest posterior means minimizes posterior expected opportunity cost, we also have EOC ( H t ) ≤ R t \operatorname{EOC}(\mathcal{H}_t)\le R_t EOC ( H t ) ≤ R t in both cases. Hence
min { R t , ( g / 2 ) P t ( θ ∈ V ) } ≤ EOC ( H t ) ≤ R t . \min\{R_t,(g/2)\mathbb{P}_t(\boldsymbol{\theta}\in V)\}\le\operatorname{EOC}(\mathcal{H}_t)\le R_t. min { R t , ( g /2 ) P t ( θ ∈ V )} ≤ EOC ( H t ) ≤ R t .
Since θ 0 ∈ V \theta^{0} \in V θ 0 ∈ V , the infimum in Lemma 2 is zero for O = V O=V O = V , giving
− log P t ( θ ∈ V ) ∑ i N i ( t ) ⟶ 0. -\frac{\log P_t(\theta\in V)}{\sum_i N_i(t)} \longrightarrow0. − ∑ i N i ( t ) log P t ( θ ∈ V ) ⟶ 0.
Taking logarithms and using (17) proves the EOC statement. □ \square □
Proof of Proposition 5 For part (i), Γ \Gamma Γ is continuous in w \boldsymbol{w} w by (12), since each inner minimum is over a fixed compact interval. It therefore attains a finite maximum on Δ I \Delta_I Δ I . If every w i > 0 w_i>0 w i > 0 , each pair minimum is positive because the two KL terms cannot both vanish when θ i 0 > θ j 0 \theta_i^0>\theta_j^0 θ i 0 > θ j 0 . Thus Γ ∗ ( θ 0 ) > 0 \Gamma^*(\theta^0)>0 Γ ∗ ( θ 0 ) > 0 .
We will also use that every maximizing allocation has positive elements. To see this, take w i = 0 w_i=0 w i = 0 and choose some j j j on the other side of the true top-k k k boundary. Evaluating the pair at x = θ j 0 x=\theta_j^0 x = θ j 0 gives
0 ≤ Γ ( w ; θ 0 ) ≤ w i d i ( θ j 0 , θ i 0 ) + w j d j ( θ j 0 , θ j 0 ) = 0. 0 \le\Gamma(\boldsymbol{w};\theta^0) \le w_i d_i(\theta_j^0,\theta_i^0)+w_j d_j(\theta_j^0,\theta_j^0)=0. 0 ≤ Γ ( w ; θ 0 ) ≤ w i d i ( θ j 0 , θ i 0 ) + w j d j ( θ j 0 , θ j 0 ) = 0.
Such an allocation cannot attain the positive maximum.
For part (ii), Lemma 8 and the definition of Γ ∗ \Gamma^* Γ ∗ give
lim sup t → ∞ − log EOC ( H t ) ∑ i N i ( t ) ≤ Γ ∗ ( θ 0 ) . \limsup_{t\to\infty}\frac{-\log\operatorname{EOC}(\mathcal{H}_t)}{\sum_i N_i(t)}\le\Gamma^*(\theta^0). t → ∞ lim sup ∑ i N i ( t ) − log EOC ( H t ) ≤ Γ ∗ ( θ 0 ) .
For part (iii), if w ^ ( t ) → w ∗ \widehat{\boldsymbol{w}}(t)\to\boldsymbol{w}^* w ( t ) → w ∗ for a maximizing allocation w ∗ \boldsymbol{w}^* w ∗ , continuity gives
− log EOC ( H t ) ∑ i N i ( t ) ⟶ Γ ( w ∗ ; θ 0 ) = Γ ∗ ( θ 0 ) . -\frac{\log\operatorname{EOC}(\mathcal{H}_t)}{\sum_i N_i(t)}\longrightarrow\Gamma(\boldsymbol{w}^*;\theta^0)=\Gamma^*(\theta^0). − ∑ i N i ( t ) log EOC ( H t ) ⟶ Γ ( w ∗ ; θ 0 ) = Γ ∗ ( θ 0 ) .
The posterior error result follows from Lemma 8. □ \square □
The rate of TEAk
We now prove Theorems 1 and 2. We first establish Theorem 1 for q ( t ) → q 0 ∈ ( θ k + 1 0 , θ k 0 ) q(t)\to q_0\in(\theta_{k+1}^0,\theta_k^0) q ( t ) → q 0 ∈ ( θ k + 1 0 , θ k 0 ) . We then prove Remark 3 and Lemma 4 and apply Theorem 1 with q 0 = q † q_0=q^\dagger q 0 = q † . Finally, we compare the resulting rate with Γ ∗ ( θ 0 ) \Gamma^*(\theta^0) Γ ∗ ( θ 0 ) to prove Theorem 2.
To prove Theorem 1, we first determine the exponential rate of D i , t ( d ) D_{i,t}(d) D i , t ( d ) . For this, we need the following lemma on the posterior density, mean, and variance. The mean and variance convergence was already established in Lemma 5 for prior-almost every true parameter. Here, under the stronger assumptions of Assumption 2, we establish it for every fixed true parameter, together with the additional estimates needed to determine the rate of D i , t ( d ) D_{i,t}(d) D i , t ( d ) . The proof relies on Russo (2020, Proposition 4 and Lemmas EC.5, EC.7, and EC.8).
Lemma 9 (Posterior density, mean, and variance). Let Π i ( n ) \Pi_i^{(n)} Π i ( n ) be the posterior after the first n n n observations of item i i i , with density π i ( n ) \pi_i^{(n)} π i ( n ) , mean μ i , n \mu_{i,n} μ i , n , and variance v i , n v_{i,n} v i , n . Thus Π i ( 0 ) = Π i , 0 \Pi_i^{(0)}=\Pi_{i,0} Π i ( 0 ) = Π i , 0 and Π i , t = Π i ( N i ( t ) ) \Pi_{i,t}=\Pi_i^{(N_i(t))} Π i , t = Π i ( N i ( t )) . For every i i i ,
ε i , n : = sup x ∈ J ∣ 1 n log π i ( n ) ( x ) π i , 0 ( x ) + d i ( θ i 0 , x ) ∣ ⟶ 0 , (19) \varepsilon_{i,n}:=\sup_{x\in J}\left|\frac{1}{n}\log\frac{\pi_i^{(n)}(x)}{\pi_{i,0}(x)}+d_i(\theta_i^0,x)\right|\longrightarrow0, \tag*{(19)} ε i , n := x ∈ J sup n 1 log π i , 0 ( x ) π i ( n ) ( x ) + d i ( θ i 0 , x ) ⟶ 0 , (19) μ i , n ⟶ θ i 0 , v i , n ⟶ 0 , − 1 n log v i , n ⟶ 0. \mu_{i,n}\longrightarrow\theta_i^0,\qquad v_{i,n}\longrightarrow0,\qquad-\frac{1}{n}\log v_{i,n}\longrightarrow0. μ i , n ⟶ θ i 0 , v i , n ⟶ 0 , − n 1 log v i , n ⟶ 0. *If N i ( t ) → ∞ N_i(t)\to\infty N i ( t ) → ∞ , then for every fixed integer m ≥ 0 m\ge0 m ≥ 0 ,
v ˉ i ( t , m ) v i ( t ) ⟶ 1. (20) \frac{\bar{v}_i(t,m)}{v_i(t)}\longrightarrow1. \tag*{(20)} v i ( t ) v ˉ i ( t , m ) ⟶ 1. (20) :::`
Proof Fix i i i and let π ~ i ( n ) \tilde{\pi}^{(n)}_i π ~ i ( n ) be the posterior density of η i ( θ i ) \eta_i(\theta_i) η i ( θ i ) . By Russo [44 ] , with the latter two applied over E i \mathcal{E}_i E i ,
sup x ∈ J ∣ 1 n log π ~ i ( n ) ( η i ( x ) ) + d i ( θ i 0 , x ) ∣ ⟶ 0. \sup_{x\in\mathcal{J}}\left|\frac{1}{n}\log\tilde{\pi}^{(n)}_i\left(\eta_i(x)\right)+d_i\left(\theta_i^0,x\right)\right|\longrightarrow0. x ∈ J sup n 1 log π ~ i ( n ) ( η i ( x ) ) + d i ( θ i 0 , x ) ⟶ 0.
Since π ~ i , 0 \tilde{\pi}_{i,0} π ~ i , 0 is bounded above and bounded away from zero, the same limit holds after dividing π ~ i ( n ) \tilde{\pi}^{(n)}_i π ~ i ( n ) by π ~ i , 0 \tilde{\pi}_{i,0} π ~ i , 0 . The posterior-to-prior density ratio is unchanged by the transformation η i \eta_i η i , proving (19) .
We next establish convergence of the posterior mean and variance. By Russo [44 ] , the posterior concentrates at θ i 0 \theta_i^0 θ i 0 . Since J \mathcal{J} J is bounded, this gives μ i , n → θ i 0 \mu_{i,n}\to\theta_i^0 μ i , n → θ i 0 and v i , n → 0 v_{i,n}\to0 v i , n → 0 . His proof of that proposition in Section EC.6.2 also shows that, for every sufficiently small δ > 0 \delta>0 δ > 0 , there is a constant c i , δ > 0 c_{i,\delta}>0 c i , δ > 0 such that, for all sufficiently large n n n ,
Π i ( n ) ( ∣ θ i − θ i 0 ∣ ≥ δ ) ≤ e − n c i , δ . (21) \Pi_i^{(n)}\left(\left\lvert\theta_i-\theta_i^0\right\rvert\ge\delta\right)\le e^{-nc_{i,\delta}}. \tag*{(21)} Π i ( n ) ( θ i − θ i 0 ≥ δ ) ≤ e − n c i , δ . (21)
We next show that − n − 1 log v i , n → 0 -n^{-1}\log v_{i,n}\to0 − n − 1 log v i , n → 0 . Fix ε > 0 \varepsilon>0 ε > 0 and choose δ > 0 \delta>0 δ > 0 so that V : = ( θ i 0 − 2 δ , θ i 0 − δ ) ⊂ J V:=\left(\theta_i^0-2\delta,\theta_i^0-\delta\right)\subset\mathcal{J} V := ( θ i 0 − 2 δ , θ i 0 − δ ) ⊂ J and d i ( θ i 0 , x ) ≤ ε d_i(\theta_i^0,x)\le\varepsilon d i ( θ i 0 , x ) ≤ ε for every x ∈ V x\in V x ∈ V . Since μ i , n → θ i 0 \mu_{i,n}\to\theta_i^0 μ i , n → θ i 0 , eventually μ i , n ≥ θ i 0 − δ / 2 \mu_{i,n}\ge\theta_i^0-\delta/2 μ i , n ≥ θ i 0 − δ /2 , giving
v i , n ≥ ∫ V ( x − μ i , n ) 2 Π i ( n ) ( d x ) ≥ δ 2 4 Π i ( n ) ( V ) . v_{i,n}\ge\int_V(x-\mu_{i,n})^2\Pi_i^{(n)}(dx)\ge\frac{\delta^2}{4}\Pi_i^{(n)}(V). v i , n ≥ ∫ V ( x − μ i , n ) 2 Π i ( n ) ( d x ) ≥ 4 δ 2 Π i ( n ) ( V ) .
Taking logarithms and applying Lemma 2,
lim sup n → ∞ − 1 n log v i , n ≤ inf x ∈ V d i ( θ i 0 , x ) ≤ ε . \limsup_{n\to\infty}-\frac{1}{n}\log v_{i,n}\le\inf_{x\in V}d_i(\theta_i^0,x)\le\varepsilon. n → ∞ lim sup − n 1 log v i , n ≤ x ∈ V inf d i ( θ i 0 , x ) ≤ ε .
Letting ε ↓ 0 \varepsilon\downarrow0 ε ↓ 0 and using that the variance is bounded gives − n − 1 log v i , n → 0 -n^{-1}\log v_{i,n}\to0 − n − 1 log v i , n → 0 .
It remains to prove (20) . The claim is trivial for m = 0 m=0 m = 0 . Fix m ≥ 1 m\ge1 m ≥ 1 . The law of total variance gives v ˉ i ( t , m ) / v i ( t ) ≤ 1 \bar{v}_i(t,m)/v_i(t)\le1 v ˉ i ( t , m ) / v i ( t ) ≤ 1 . We will show that lim inf t → ∞ v ˉ i ( t , m ) / v i ( t ) ≥ 1 \liminf_{t\to\infty}\bar{v}_i(t,m)/v_i(t)\ge1 lim inf t → ∞ v ˉ i ( t , m ) / v i ( t ) ≥ 1 .
Let Y 1 , … , Y m Y_1,\ldots,Y_m Y 1 , … , Y m denote the new observations of item i i i . The expectation E θ i 0 \mathbb{E}_{\theta_i^0} E θ i 0 is over these additional observations only. By Bayes’ formula and minimization of expected squared error,
v ˉ i ( t , m ) = E t [ min a ∈ R ∫ J ( x − a ) 2 ∏ r = 1 m p i ( Y r ∣ x ) Π i , t ( d x ) ∫ J ∏ r = 1 m p i ( Y r ∣ z ) Π i , t ( d z ) ] = E θ i 0 [ ∫ J ∏ r = 1 m p i ( Y r ∣ z ) Π i , t ( d z ) ∏ r = 1 m p i ( Y r ∣ θ i 0 ) × min a ∈ R ∫ J ( x − a ) 2 ∏ r = 1 m p i ( Y r ∣ x ) Π i , t ( d x ) ∫ J ∏ r = 1 m p i ( Y r ∣ z ) Π i , t ( d z ) ] = E θ i 0 [ min a ∈ R ∫ J ( x − a ) 2 ∏ r = 1 m p i ( Y r ∣ x ) p i ( Y r ∣ θ i 0 ) Π i , t ( d x ) ] . \begin{aligned}
\bar{v}_i(t,m)
&=\mathbb{E}_t\left[\frac{\min_{a\in\mathbb{R}}\int_{\mathcal{J}}(x-a)^2\prod_{r=1}^{m}p_i(Y_r\mid x)\Pi_{i,t}(dx)}{\int_{\mathcal{J}}\prod_{r=1}^{m}p_i(Y_r\mid z)\Pi_{i,t}(dz)}\right]\\
&=\mathbb{E}_{\theta_i^0}\left[\frac{\int_{\mathcal{J}}\prod_{r=1}^{m}p_i(Y_r\mid z)\Pi_{i,t}(dz)}{\prod_{r=1}^{m}p_i(Y_r\mid\theta_i^0)}\times\frac{\min_{a\in\mathbb{R}}\int_{\mathcal{J}}(x-a)^2\prod_{r=1}^{m}p_i(Y_r\mid x)\Pi_{i,t}(dx)}{\int_{\mathcal{J}}\prod_{r=1}^{m}p_i(Y_r\mid z)\Pi_{i,t}(dz)}\right]\\
&=\mathbb{E}_{\theta_i^0}\left[\min_{a\in\mathbb{R}}\int_{\mathcal{J}}(x-a)^2\prod_{r=1}^{m}\frac{p_i(Y_r\mid x)}{p_i(Y_r\mid\theta_i^0)}\Pi_{i,t}(dx)\right].
\end{aligned} v ˉ i ( t , m ) = E t [ ∫ J ∏ r = 1 m p i ( Y r ∣ z ) Π i , t ( d z ) min a ∈ R ∫ J ( x − a ) 2 ∏ r = 1 m p i ( Y r ∣ x ) Π i , t ( d x ) ] = E θ i 0 [ ∏ r = 1 m p i ( Y r ∣ θ i 0 ) ∫ J ∏ r = 1 m p i ( Y r ∣ z ) Π i , t ( d z ) × ∫ J ∏ r = 1 m p i ( Y r ∣ z ) Π i , t ( d z ) min a ∈ R ∫ J ( x − a ) 2 ∏ r = 1 m p i ( Y r ∣ x ) Π i , t ( d x ) ] = E θ i 0 [ a ∈ R min ∫ J ( x − a ) 2 r = 1 ∏ m p i ( Y r ∣ θ i 0 ) p i ( Y r ∣ x ) Π i , t ( d x ) ] .
We first bound the logarithm of the likelihood product term. We have
log ∏ r = 1 m p i ( Y r ∣ x ) p i ( Y r ∣ θ i 0 ) = { η i ( x ) − η i ( θ i 0 ) } ∑ r = 1 m T i ( Y r ) − m { A i ( η i ( x ) ) − A i ( η i ( θ i 0 ) ) } ≥ − ∣ η i ( x ) − η i ( θ i 0 ) ∣ ∣ ∑ r = 1 m T i ( Y r ) ∣ − m ∣ A i ( η i ( x ) ) − A i ( η i ( θ i 0 ) ) ∣ . \begin{aligned}
\log\prod_{r=1}^{m} \frac{p_i(Y_r \mid x)}{p_i(Y_r \mid\theta_i^0)} = \{\eta_i(x)-\eta_i(\theta_i^0)\}\sum_{r=1}^{m}T_i(Y_r)-m\{A_i(\eta_i(x))-A_i(\eta_i(\theta_i^0))\} \\
&\geq-|\eta_i(x)-\eta_i(\theta_i^0)|\left|\sum_{r=1}^{m}T_i(Y_r)\right|-m|A_i(\eta_i(x))-A_i(\eta_i(\theta_i^0))|.
\end{aligned} log r = 1 ∏ m p i ( Y r ∣ θ i 0 ) p i ( Y r ∣ x ) = { η i ( x ) − η i ( θ i 0 )} r = 1 ∑ m T i ( Y r ) − m { A i ( η i ( x )) − A i ( η i ( θ i 0 ))} ≥ − ∣ η i ( x ) − η i ( θ i 0 ) ∣ r = 1 ∑ m T i ( Y r ) − m ∣ A i ( η i ( x )) − A i ( η i ( θ i 0 )) ∣.
To bound ∣ ∑ r = 1 m T i ( Y r ) ∣ \left|\sum_{r=1}^{m}T_i(Y_r)\right| ∣ ∑ r = 1 m T i ( Y r ) ∣ , fix ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) and choose M M M so that
P θ i 0 ( max 1 ≤ r ≤ m ∣ T i ( Y r ) ∣ ≤ M ) ≥ 1 − ε . \mathbb{P}_{\theta_i^0}\left(\max_{1\leq r\leq m}|T_i(Y_r)|\leq M\right)\geq1-\varepsilon. P θ i 0 ( 1 ≤ r ≤ m max ∣ T i ( Y r ) ∣ ≤ M ) ≥ 1 − ε .
If max 1 ≤ r ≤ m ∣ T i ( Y r ) ∣ ≤ M \max_{1\leq r\leq m}|T_i(Y_r)|\leq M max 1 ≤ r ≤ m ∣ T i ( Y r ) ∣ ≤ M , then ∣ ∑ r = 1 m T i ( Y r ) ∣ ≤ m M \left|\sum_{r=1}^{m}T_i(Y_r)\right|\leq mM ∣ ∑ r = 1 m T i ( Y r ) ∣ ≤ m M . By continuity of η i \eta_i η i and A i A_i A i , choose V = [ θ i 0 − δ , θ i 0 + δ ] ⊂ J V=[\theta_i^0-\delta,\theta_i^0+\delta]\subset\mathcal{J} V = [ θ i 0 − δ , θ i 0 + δ ] ⊂ J so that for x ∈ V x\in V x ∈ V
m M ∣ η i ( x ) − η i ( θ i 0 ) ∣ + m ∣ A i ( η i ( x ) ) − A i ( η i ( θ i 0 ) ) ∣ ≤ ε . mM|\eta_i(x)-\eta_i(\theta_i^0)|+m|A_i(\eta_i(x))-A_i(\eta_i(\theta_i^0))|\leq\varepsilon. m M ∣ η i ( x ) − η i ( θ i 0 ) ∣ + m ∣ A i ( η i ( x )) − A i ( η i ( θ i 0 )) ∣ ≤ ε .
Thus, whenever max 1 ≤ r ≤ m ∣ T i ( Y r ) ∣ ≤ M \max_{1\leq r\leq m}|T_i(Y_r)|\leq M max 1 ≤ r ≤ m ∣ T i ( Y r ) ∣ ≤ M , for x ∈ V x\in V x ∈ V we have
∏ r = 1 m p i ( Y r ∣ x ) p i ( Y r ∣ θ i 0 ) ≥ e − ε . \prod_{r=1}^{m}\frac{p_i(Y_r\mid x)}{p_i(Y_r\mid\theta_i^0)}\geq e^{-\varepsilon}. r = 1 ∏ m p i ( Y r ∣ θ i 0 ) p i ( Y r ∣ x ) ≥ e − ε .
Plugging this into the expression for v ˉ i ( t , m ) \bar v_i(t,m) v ˉ i ( t , m ) gives
v ˉ i ( t , m ) ≥ e − ε ( 1 − ε ) min a ∈ R ∫ V ( x − a ) 2 Π i , t ( d x ) ≥ e − ε ( 1 − ε ) { v i ( t ) − ( U − L ) 2 Π i , t ( V c ) } . \bar v_i(t,m)\geq e^{-\varepsilon}(1-\varepsilon)\min_{a\in\mathbb{R}}\int_V(x-a)^2\Pi_{i,t}(dx)\geq e^{-\varepsilon}(1-\varepsilon)\{v_i(t)-(U-L)^2\Pi_{i,t}(V^c)\}. v ˉ i ( t , m ) ≥ e − ε ( 1 − ε ) a ∈ R min ∫ V ( x − a ) 2 Π i , t ( d x ) ≥ e − ε ( 1 − ε ) { v i ( t ) − ( U − L ) 2 Π i , t ( V c )} .
For the second inequality, the minimizing a a a belongs to V V V . The integral over V c V^c V c is therefore at most ( U − L ) 2 Π i , t ( V c ) (U-L)^2\Pi_{i,t}(V^c) ( U − L ) 2 Π i , t ( V c ) , while the integral over J \mathcal{J} J is at least v i ( t ) v_i(t) v i ( t ) .
By (20) and − n − 1 log v i , n → 0 -n^{-1}\log v_{i,n}\to0 − n − 1 log v i , n → 0 , Π i , t ( V c ) / v i ( t ) → 0 \Pi_{i,t}(V^c)/v_i(t)\to0 Π i , t ( V c ) / v i ( t ) → 0 when N i ( t ) → ∞ N_i(t)\to\infty N i ( t ) → ∞ . Dividing by v i ( t ) v_i(t) v i ( t ) and taking the liminf gives
lim inf t → ∞ v ˉ i ( t , m ) v i ( t ) ≥ e − ε ( 1 − ε ) . \liminf_{t\to\infty}\frac{\bar v_i(t,m)}{v_i(t)}\geq e^{-\varepsilon}(1-\varepsilon). t → ∞ lim inf v i ( t ) v ˉ i ( t , m ) ≥ e − ε ( 1 − ε ) .
Letting ε ↓ 0 \varepsilon\downarrow0 ε ↓ 0 proves (19). □ \square □
Proof of Theorem 1 We first show that every item is sampled infinitely often. Since q ( t ) → q 0 ∈ ( θ k + 1 0 , θ k 0 ) q(t)\to q_0\in(\theta_{k+1}^0,\theta_k^0) q ( t ) → q 0 ∈ ( θ k + 1 0 , θ k 0 ) , eventually q ( t ) q(t) q ( t ) belongs to a compact interval K ⊂ J K\subset\mathcal{J} K ⊂ J . The proof of Lemma 7 then applies, using Lemma 9 for items sampled infinitely often and Lemma 6 for items that stop receiving samples. Thus N i ( t ) → ∞ N_i(t)\to\infty N i ( t ) → ∞ and μ i ( t ) → θ i 0 \mu_i(t)\to\theta_i^0 μ i ( t ) → θ i 0 for every i i i .
For part (i), we first establish the rates of D i , t ( d ) D_{i,t}(d) D i , t ( d ) . We will show that
max 0 ≤ d < B ∣ log D i , t ( d ) N i ( t ) − d i ( θ i 0 , q 0 ) ∣ ⟶ 0. (22) \max_{0\leq d<B}\left|\frac{\log D_{i,t}(d)}{N_i(t)}-d_i(\theta_i^0,q_0)\right|\longrightarrow0. \tag*{(22)} 0 ≤ d < B max N i ( t ) log D i , t ( d ) − d i ( θ i 0 , q 0 ) ⟶ 0. (22)
We will then use these rates and optimality of each batch to prove w ^ i ( t ) → w i ( q 0 ) \widehat w_i(t)\to w_i(q_0) w i ( t ) → w i ( q 0 ) . To prove (21), define
J i , t ( d ) : = ℓ i , t ( d ) − ( q ( t ) − μ i ( t ) ) + . J_{i,t}(d):=\ell_{i,t}(d)-(q(t)-\mu_i(t))^+. J i , t ( d ) := ℓ i , t ( d ) − ( q ( t ) − μ i ( t ) ) + .
We first establish the bounds
v ˉ i ( t , B − 1 ) 2 V t ( Y ) J i , t ( B − 1 ) ≤ D i , t ( d ) ≤ J i , t ( 0 ) , 0 ≤ d < B , (23) \frac{\bar v_i(t,B-1)}{2V_t(Y)}J_{i,t}(B-1)\leq D_{i,t}(d)\leq J_{i,t}(0),\qquad0\leq d<B, \tag*{(23)} 2 V t ( Y ) v ˉ i ( t , B − 1 ) J i , t ( B − 1 ) ≤ D i , t ( d ) ≤ J i , t ( 0 ) , 0 ≤ d < B , (23)
where Y Y Y is an additional observation of item i i i .
By (5), θ ~ i ( d + 1 ) \widetilde{\theta}_i(d+1) θ i ( d + 1 ) is a contraction of θ ~ i ( d ) \widetilde{\theta}_i(d) θ i ( d ) about μ i ( t ) \mu_i(t) μ i ( t ) with factor c i ( t , d + 1 ) / c i ( t , d ) c_i(t,d+1)/c_i(t,d) c i ( t , d + 1 ) / c i ( t , d ) . The convexity argument in the proof of Lemma 6 gives
0 ≤ ( 1 − c i ( t , d + 1 ) c i ( t , d ) ) J i , t ( d ) ≤ D i , t ( d ) = J i , t ( d ) − J i , t ( d + 1 ) ≤ J i , t ( d ) ≤ J i , t ( 0 ) . (24) 0 \le\left(1-\frac{c_i(t,d+1)}{c_i(t,d)}\right)J_{i,t}(d) \le D_{i,t}(d)=J_{i,t}(d)-J_{i,t}(d+1) \le J_{i,t}(d) \le J_{i,t}(0). \tag*{(24)} 0 ≤ ( 1 − c i ( t , d ) c i ( t , d + 1 ) ) J i , t ( d ) ≤ D i , t ( d ) = J i , t ( d ) − J i , t ( d + 1 ) ≤ J i , t ( d ) ≤ J i , t ( 0 ) . (24)
This proves the upper bound in (22). For the lower bound, we next bound 1 − c i ( t , d + 1 ) / c i ( t , d ) 1-c_i(t,d+1)/c_i(t,d) 1 − c i ( t , d + 1 ) / c i ( t , d ) from below.
Let Z d = ( Y 1 , … , Y d ) Z_d=(Y_1,\ldots,Y_d) Z d = ( Y 1 , … , Y d ) be the next d d d observations of item i i i , and let Y = Y d + 1 Y=Y_{d+1} Y = Y d + 1 . Applying the variance and covariance identities in the proof of Lemma 6 conditional on ( H t , Z d ) (\mathcal{H}_t,Z_d) ( H t , Z d ) , followed by Cauchy–Schwarz, gives
v ‾ i ( t , d ) − v ‾ i ( t , d + 1 ) ≥ E t [ V ( θ i ∣ H t , Z d ) 2 V ( Y ∣ H t , Z d ) ] ≥ v ‾ i ( t , d ) 2 E t [ V ( Y ∣ H t , Z d ) ] ≥ v ‾ i ( t , d ) 2 V t ( Y ) . \overline{v}_i(t,d)-\overline{v}_i(t,d+1) \ge\mathbb{E}_t\left[\frac{\mathop{\mathrm{V}}(\theta_i\mid\mathcal{H}_t,Z_d)^2}{\mathop{\mathrm{V}}(Y\mid\mathcal{H}_t,Z_d)}\right] \ge\frac{\overline{v}_i(t,d)^2}{\mathbb{E}_t[\mathop{\mathrm{V}}(Y\mid\mathcal{H}_t,Z_d)]} \ge\frac{\overline{v}_i(t,d)^2}{\mathop{\mathrm{V}}_t(Y)}. v i ( t , d ) − v i ( t , d + 1 ) ≥ E t [ V ( Y ∣ H t , Z d ) V ( θ i ∣ H t , Z d ) 2 ] ≥ E t [ V ( Y ∣ H t , Z d )] v i ( t , d ) 2 ≥ V t ( Y ) v i ( t , d ) 2 .
The last inequality follows from the law of total variance. Therefore,
1 − c i ( t , d + 1 ) c i ( t , d ) = v ‾ i ( t , d ) − v ‾ i ( t , d + 1 ) v ‾ i ( t , d ) ( 1 + c i ( t , d + 1 ) / c i ( t , d ) ) ≥ v ‾ i ( t , d ) 2 V t ( Y ) ≥ v ‾ i ( t , B − 1 ) 2 V t ( Y ) . 1-\frac{c_i(t,d+1)}{c_i(t,d)}
=\frac{\overline{v}_i(t,d)-\overline{v}_i(t,d+1)}{\overline{v}_i(t,d)(1+c_i(t,d+1)/c_i(t,d))}
\ge\frac{\overline{v}_i(t,d)}{2\mathop{\mathrm{V}}_t(Y)}
\ge\frac{\overline{v}_i(t,B-1)}{2\mathop{\mathrm{V}}_t(Y)}. 1 − c i ( t , d ) c i ( t , d + 1 ) = v i ( t , d ) ( 1 + c i ( t , d + 1 ) / c i ( t , d )) v i ( t , d ) − v i ( t , d + 1 ) ≥ 2 V t ( Y ) v i ( t , d ) ≥ 2 V t ( Y ) v i ( t , B − 1 ) .
Also, (23) gives J i , t ( d ) ≥ J i , t ( B − 1 ) J_{i,t}(d)\ge J_{i,t}(B-1) J i , t ( d ) ≥ J i , t ( B − 1 ) for d < B d<B d < B . Substituting into the lower bound in (23) proves (22).
We now show that both J i , t ( 0 ) J_{i,t}(0) J i , t ( 0 ) and J i , t ( B − 1 ) J_{i,t}(B-1) J i , t ( B − 1 ) have exponential rate d i ( θ i 0 , q 0 ) d_i(\theta_i^0,q_0) d i ( θ i 0 , q 0 ) :
− log J i , t ( d ) N i ( t ) ⟶ d i ( θ i 0 , q 0 ) , d ∈ { 0 , B − 1 } . (25) -\frac{\log J_{i,t}(d)}{N_i(t)} \longrightarrow d_i(\theta_i^0,q_0),\qquad d\in\{0,B-1\}. \tag*{(25)} − N i ( t ) log J i , t ( d ) ⟶ d i ( θ i 0 , q 0 ) , d ∈ { 0 , B − 1 } . (25)
By Lemma 9,
c i ( t , d ) ⟶ 1 , z i ( t , d ) = μ i ( t ) + q ( t ) − μ i ( t ) c i ( t , d ) ⟶ q 0 . c_i(t,d)\longrightarrow1,\qquad z_i(t,d)=\mu_i(t)+\frac{q(t)-\mu_i(t)}{c_i(t,d)}\longrightarrow q_0. c i ( t , d ) ⟶ 1 , z i ( t , d ) = μ i ( t ) + c i ( t , d ) q ( t ) − μ i ( t ) ⟶ q 0 .
Since μ i ( t ) ⟶ θ i 0 \mu_i(t)\longrightarrow\theta_i^0 μ i ( t ) ⟶ θ i 0 and q 0 ∈ ( θ k + 1 0 , θ k 0 ) q_0\in(\theta_{k+1}^0,\theta_k^0) q 0 ∈ ( θ k + 1 0 , θ k 0 ) , (7) gives, for all sufficiently large t t t ,
J i , t ( d ) = { c i ( t , d ) E t [ ( z i ( t , d ) − θ i ) + ] , i ≤ k , c i ( t , d ) E t [ ( θ i − z i ( t , d ) ) + ] , i > k . J_{i,t}(d)=
\begin{cases}
c_i(t,d)\mathbb{E}_t[(z_i(t,d)-\theta_i)^+], & i\le k,\\
c_i(t,d)\mathbb{E}_t[(\theta_i-z_i(t,d))^+], & i>k.
\end{cases} J i , t ( d ) = { c i ( t , d ) E t [( z i ( t , d ) − θ i ) + ] , c i ( t , d ) E t [( θ i − z i ( t , d ) ) + ] , i ≤ k , i > k .
Write n = N i ( t ) n=N_i(t) n = N i ( t ) . By (18) and monotonicity of d i ( θ i 0 , x ) d_i(\theta_i^0,x) d i ( θ i 0 , x ) ,
J i , t ( d ) ≤ ( U − L ) e − n ( d i ( θ i 0 , z i ( t , d ) ) − ε i , n ) . J_{i,t}(d)\le(U-L)e^{-n(d_i(\theta_i^0,z_i(t,d))-\varepsilon_{i,n})}. J i , t ( d ) ≤ ( U − L ) e − n ( d i ( θ i 0 , z i ( t , d )) − ε i , n ) .
For a lower bound when i ≤ k i\le k i ≤ k , choose a sufficiently small δ > 0 \delta>0 δ > 0 and let V = [ q 0 − 2 δ , q 0 − δ ] ⊂ J V=[q_0-2\delta,q_0-\delta]\subset\mathcal{J} V = [ q 0 − 2 δ , q 0 − δ ] ⊂ J . Eventually ∣ z i ( t , d ) − q 0 ∣ < δ / 2 |z_i(t,d)-q_0|<\delta/2 ∣ z i ( t , d ) − q 0 ∣ < δ /2 , so
J i , t ( d ) ≥ c i ( t , d ) δ 2 Π i , t ( V ) ≥ c i ( t , d ) δ 2 Π i , 0 ( V ) e − n ( d i ( θ i 0 , q 0 − 2 δ ) + ε i , n ) . J_{i,t}(d)\ge c_i(t,d)\frac{\delta}{2}\Pi_{i,t}(V)\ge c_i(t,d)\frac{\delta}{2}\Pi_{i,0}(V)e^{-n(d_i(\theta_i^0,q_0-2\delta)+\varepsilon_{i,n})}. J i , t ( d ) ≥ c i ( t , d ) 2 δ Π i , t ( V ) ≥ c i ( t , d ) 2 δ Π i , 0 ( V ) e − n ( d i ( θ i 0 , q 0 − 2 δ ) + ε i , n ) .
For i > k i>k i > k , take V = [ q 0 + δ , q 0 + 2 δ ] V=[q_0+\delta,q_0+2\delta] V = [ q 0 + δ , q 0 + 2 δ ] and obtain the same bound with q 0 + 2 δ q_0+2\delta q 0 + 2 δ in place of q 0 − 2 δ . S i n c e q_0-2\delta. Since q 0 − 2 δ . S in ce c_i(t,d)\longrightarrow 1$ and Π i , 0 ( V ) > 0 \Pi_{i,0}(V)>0 Π i , 0 ( V ) > 0 , taking logarithms, letting t → ∞ t\to\infty t → ∞ , and then letting δ ↓ 0 \delta\downarrow0 δ ↓ 0 proves (24).
To conclude (21) from (22), it remains to show that
− 1 n log v ‾ i ( t , B − 1 ) 2 V t ( Y ) ⟶ 0. -\frac{1}{n}\log\frac{\overline{v}_i(t,B-1)}{2\mathop{\mathrm{V}}_t(Y)}\longrightarrow0. − n 1 log 2 V t ( Y ) v i ( t , B − 1 ) ⟶ 0.
The numerator is covered by Lemma 9 . For the denominator, let M i : = ∫ J E x [ Y 2 ] Π i , 0 ( d x ) < ∞ M_i := \int_{\mathcal{J}} \mathbb{E}_x[Y^2]\Pi_{i,0}(\mathrm{d}x) < \infty M i := ∫ J E x [ Y 2 ] Π i , 0 ( d x ) < ∞ , by Assumption 1. Equation (19) gives
V t ( Y ) ≤ E t [ Y 2 ] ≤ M i e n ε i , n . V_t(Y) \le\mathbb{E}_t[Y^2] \le M_i e^{n\varepsilon_{i,n}}. V t ( Y ) ≤ E t [ Y 2 ] ≤ M i e n ε i , n .
Since V t ( Y ) ≥ v i ( t ) ≥ v ˉ i ( t , B − 1 ) V_t(Y) \ge v_i(t) \ge\bar{v}_i(t,B-1) V t ( Y ) ≥ v i ( t ) ≥ v ˉ i ( t , B − 1 ) ,
0 ≤ − 1 n log v ˉ i ( t , B − 1 ) 2 V t ( Y ) ≤ − 1 n log v ˉ i ( t , B − 1 ) + ε i , n + log ( 2 M i ) n ⟶ 0. 0 \le-\frac{1}{n}\log\frac{\bar{v}_i(t,B-1)}{2V_t(Y)} \le-\frac{1}{n}\log\bar{v}_i(t,B-1) + \varepsilon_{i,n} + \frac{\log(2M_i)}{n} \longrightarrow0. 0 ≤ − n 1 log 2 V t ( Y ) v ˉ i ( t , B − 1 ) ≤ − n 1 log v ˉ i ( t , B − 1 ) + ε i , n + n log ( 2 M i ) ⟶ 0.
Combining this with (25) in (23) proves (22) .
We now use these rates and batch optimality to show that
d i ( θ i 0 , q 0 ) N i ( t ) − min j d j ( θ j 0 , q 0 ) N j ( t ) ∑ j N j ( t ) ⟶ 0 \frac{d_i(\theta_i^0,q_0)N_i(t)-\min_j d_j(\theta_j^0,q_0)N_j(t)}{\sum_j N_j(t)} \longrightarrow0 ∑ j N j ( t ) d i ( θ i 0 , q 0 ) N i ( t ) − min j d j ( θ j 0 , q 0 ) N j ( t ) ⟶ 0
for every i i i .
We first compare the sample counts for items sampled in the current round. Write
ε t : = max i , 0 ≤ d < B ∣ − log D i , t ( d ) − d i ( θ i 0 , q 0 ) N i ( t ) ∣ ∑ j N j ( t ) . \varepsilon_t := \max_{i,\,0\leq d<B}\frac{\left|-\log D_{i,t}(d)-d_i(\theta_i^0,q_0)N_i(t)\right|}{\sum_j N_j(t)}. ε t := i , 0 ≤ d < B max ∑ j N j ( t ) − log D i , t ( d ) − d i ( θ i 0 , q 0 ) N i ( t ) .
By (22) , ε t → 0 \varepsilon_t \to0 ε t → 0 . If Δ i t > 0 \Delta_i^t>0 Δ i t > 0 and j ≠ i j\ne i j = i , transferring one sample from i i i to j j j is feasible. Optimality of Δ t \Delta^t Δ t gives
0 ≤ ℓ i , t ( Δ i t − 1 ) + ℓ j , t ( Δ j t + 1 ) − ℓ i , t ( Δ i t ) − ℓ j , t ( Δ j t ) = D i , t ( Δ i t − 1 ) − D j , t ( Δ j t ) . 0\leq\ell_{i,t}(\Delta_i^t-1)+\ell_{j,t}(\Delta_j^t+1)-\ell_{i,t}(\Delta_i^t)-\ell_{j,t}(\Delta_j^t)=D_{i,t}(\Delta_i^t-1)-D_{j,t}(\Delta_j^t). 0 ≤ ℓ i , t ( Δ i t − 1 ) + ℓ j , t ( Δ j t + 1 ) − ℓ i , t ( Δ i t ) − ℓ j , t ( Δ j t ) = D i , t ( Δ i t − 1 ) − D j , t ( Δ j t ) .
Since 0 ≤ Δ i t − 1 ≤ B − 1 0\leq\Delta_i^t-1\leq B-1 0 ≤ Δ i t − 1 ≤ B − 1 and 0 ≤ Δ j t ≤ B − 1 0\leq\Delta_j^t\leq B-1 0 ≤ Δ j t ≤ B − 1 ,
d i ( θ i 0 , q 0 ) N i ( t ) ≤ − log D i , t ( Δ i t − 1 ) + ε t ∑ ℓ N ℓ ( t ) ≤ − log D j , t ( Δ j t ) + ε t ∑ ℓ N ℓ ( t ) ≤ d j ( θ j 0 , q 0 ) N j ( t ) + 2 ε t ∑ ℓ N ℓ ( t ) . \begin{aligned}
d_i(\theta_i^0,q_0)N_i(t)
&\leq-\log D_{i,t}(\Delta_i^t-1)+\varepsilon_t\sum_{\ell}N_\ell(t)\\
&\leq-\log D_{j,t}(\Delta_j^t)+\varepsilon_t\sum_{\ell}N_\ell(t)\\
&\leq d_j(\theta_j^0,q_0)N_j(t)+2\varepsilon_t\sum_{\ell}N_\ell(t).
\end{aligned} d i ( θ i 0 , q 0 ) N i ( t ) ≤ − log D i , t ( Δ i t − 1 ) + ε t ℓ ∑ N ℓ ( t ) ≤ − log D j , t ( Δ j t ) + ε t ℓ ∑ N ℓ ( t ) ≤ d j ( θ j 0 , q 0 ) N j ( t ) + 2 ε t ℓ ∑ N ℓ ( t ) .
Taking the minimum over j j j gives
Δ i t > 0 ⟹ d i ( θ i 0 , q 0 ) N i ( t ) ≤ min j d j ( θ j 0 , q 0 ) N j ( t ) + 2 ε t ∑ j N j ( t ) . (26) \Delta_i^t>0\quad\Longrightarrow\quad d_i(\theta_i^0,q_0)N_i(t)\leq\min_j d_j(\theta_j^0,q_0)N_j(t)+2\varepsilon_t\sum_jN_j(t). \tag*{(26)} Δ i t > 0 ⟹ d i ( θ i 0 , q 0 ) N i ( t ) ≤ j min d j ( θ j 0 , q 0 ) N j ( t ) + 2 ε t j ∑ N j ( t ) . (26)
To extend this analysis to every item, we apply it at the last round in which that item was sampled. Let τ i ( t ) < t \tau_i(t)<t τ i ( t ) < t be that round. Since N i ( t ) → ∞ N_i(t)\to\infty N i ( t ) → ∞ , we have τ i ( t ) → ∞ \tau_i(t)\to\infty τ i ( t ) → ∞ , and boundedness of the batches gives
N i ( t ) = N i ( τ i ( t ) ) + Δ i τ i ( t ) ≤ N i ( τ i ( t ) ) + B . N_i(t)=N_i(\tau_i(t))+\Delta_i^{\tau_i(t)}\leq N_i(\tau_i(t))+B. N i ( t ) = N i ( τ i ( t )) + Δ i τ i ( t ) ≤ N i ( τ i ( t )) + B .
Also, min j d j ( θ j 0 , q 0 ) N j ( t ) \min_jd_j(\theta_j^0,q_0)N_j(t) min j d j ( θ j 0 , q 0 ) N j ( t ) is nondecreasing. Applying (26) at τ i ( t ) \tau_i(t) τ i ( t ) therefore gives
0 ≤ d i ( θ i 0 , q 0 ) N i ( t ) − min j d j ( θ j 0 , q 0 ) N j ( t ) ∑ j N j ( t ) ≤ B d i ( θ i 0 , q 0 ) ∑ j N j ( t ) + 2 ε τ i ( t ) ∑ j N j ( τ i ( t ) ) ∑ j N j ( t ) ≤ B d i ( θ i 0 , q 0 ) ∑ j N j ( t ) + 2 ε τ i ( t ) ⟶ 0. \begin{aligned}
0\leq\frac{d_i(\theta_i^0,q_0)N_i(t)-\min_jd_j(\theta_j^0,q_0)N_j(t)}{\sum_jN_j(t)}
\leq\frac{Bd_i(\theta_i^0,q_0)}{\sum_jN_j(t)}+2\varepsilon_{\tau_i(t)}\frac{\sum_jN_j(\tau_i(t))}{\sum_jN_j(t)} \\
&\le\frac{B d_i(\theta_i^0,q_0)}{\sum_j N_j(t)} + 2\varepsilon\tau_i(t) \longrightarrow0.
\end{aligned} 0 ≤ ∑ j N j ( t ) d i ( θ i 0 , q 0 ) N i ( t ) − min j d j ( θ j 0 , q 0 ) N j ( t ) ≤ ∑ j N j ( t ) B d i ( θ i 0 , q 0 ) + 2 ε τ i ( t ) ∑ j N j ( t ) ∑ j N j ( τ i ( t )) ≤ ∑ j N j ( t ) B d i ( θ i 0 , q 0 ) + 2 ε τ i ( t ) ⟶ 0.
Dividing by d i ( θ i 0 , q 0 ) d_i(\theta_i^0,q_0) d i ( θ i 0 , q 0 ) , summing over i i i , and using ∑ i w ^ i ( t ) = 1 \sum_i \widehat{w}_i(t)=1 ∑ i w i ( t ) = 1 gives
min j d j ( θ j 0 , q 0 ) N j ( t ) ∑ j N j ( t ) ⟶ ( ∑ i 1 d i ( θ i 0 , q 0 ) ) − 1 . \frac{\min_j d_j(\theta_j^0,q_0)N_j(t)}{\sum_j N_j(t)}
\longrightarrow
\left(\sum_i \frac{1}{d_i(\theta_i^0,q_0)}\right)^{-1}. ∑ j N j ( t ) min j d j ( θ j 0 , q 0 ) N j ( t ) ⟶ ( i ∑ d i ( θ i 0 , q 0 ) 1 ) − 1 .
Hence
w ^ i ( t ) ⟶ 1 / d i ( θ i 0 , q 0 ) ∑ j 1 / d j ( θ j 0 , q 0 ) = w i ( q 0 ) , \widehat{w}_i(t) \longrightarrow
\frac{1/d_i(\theta_i^0,q_0)}{\sum_j 1/d_j(\theta_j^0,q_0)}
= w_i(q_0), w i ( t ) ⟶ ∑ j 1/ d j ( θ j 0 , q 0 ) 1/ d i ( θ i 0 , q 0 ) = w i ( q 0 ) ,
proving part (i). Part (ii) follows from Lemma 8 and continuity of Γ \Gamma Γ .
For part (iii), w i ( q 0 ) d i ( θ i 0 , q 0 ) = ( ∑ ℓ = 1 I 1 / d ℓ ( θ ℓ 0 , q 0 ) ) − 1 w_i(q_0)d_i(\theta_i^0,q_0)=\left(\sum_{\ell=1}^{I}1/d_\ell(\theta_\ell^0,q_0)\right)^{-1} w i ( q 0 ) d i ( θ i 0 , q 0 ) = ( ∑ ℓ = 1 I 1/ d ℓ ( θ ℓ 0 , q 0 ) ) − 1 for every i i i . For any i ≤ k < j i\le k<j i ≤ k < j and x ∈ [ θ j 0 , θ i 0 ] x\in[\theta_j^0,\theta_i^0] x ∈ [ θ j 0 , θ i 0 ] , monotonicity gives
w i ( q 0 ) d i ( θ i 0 , x ) + w j ( q 0 ) d j ( θ j 0 , x ) ≥ { w i ( q 0 ) d i ( θ i 0 , q 0 ) = ( ∑ ℓ = 1 I 1 / d ℓ ( θ ℓ 0 , q 0 ) ) − 1 , x ≤ q 0 , w j ( q 0 ) d j ( θ j 0 , q 0 ) = ( ∑ ℓ = 1 I 1 / d ℓ ( θ ℓ 0 , q 0 ) ) − 1 , x ≥ q 0 . w_i(q_0)d_i(\theta_i^0,x)+w_j(q_0)d_j(\theta_j^0,x)\ge
\begin{cases}
w_i(q_0)d_i(\theta_i^0,q_0)=\left(\sum_{\ell=1}^{I}1/d_\ell(\theta_\ell^0,q_0)\right)^{-1}, & x\le q_0,\\
w_j(q_0)d_j(\theta_j^0,q_0)=\left(\sum_{\ell=1}^{I}1/d_\ell(\theta_\ell^0,q_0)\right)^{-1}, & x\ge q_0.
\end{cases} w i ( q 0 ) d i ( θ i 0 , x ) + w j ( q 0 ) d j ( θ j 0 , x ) ≥ ⎩ ⎨ ⎧ w i ( q 0 ) d i ( θ i 0 , q 0 ) = ( ∑ ℓ = 1 I 1/ d ℓ ( θ ℓ 0 , q 0 ) ) − 1 , w j ( q 0 ) d j ( θ j 0 , q 0 ) = ( ∑ ℓ = 1 I 1/ d ℓ ( θ ℓ 0 , q 0 ) ) − 1 , x ≤ q 0 , x ≥ q 0 .
Taking the minimum over x x x and then over i ≤ k < j i\le k<j i ≤ k < j in (12) gives Γ ( w ( q 0 ) ; θ 0 ) ≥ ( ∑ ℓ = 1 I 1 / d ℓ ( θ ℓ 0 , q 0 ) ) − 1 \Gamma(\boldsymbol{w}(q_0);\theta^0)\ge\left(\sum_{\ell=1}^{I}1/d_\ell(\theta_\ell^0,q_0)\right)^{-1} Γ ( w ( q 0 ) ; θ 0 ) ≥ ( ∑ ℓ = 1 I 1/ d ℓ ( θ ℓ 0 , q 0 ) ) − 1 . □
Proof of Remark 3 Fix x \boldsymbol{x} x with x [ k ] > x [ k + 1 ] x_{[k]}>x_{[k+1]} x [ k ] > x [ k + 1 ] . The objective ∑ i 1 / d i ( x i , q ) \sum_i 1/d_i(x_i,q) ∑ i 1/ d i ( x i , q ) is continuous on ( x [ k + 1 ] , x [ k ] ) (x_{[k+1]},x_{[k]}) ( x [ k + 1 ] , x [ k ] ) and tends to infinity at its endpoints, so it attains a minimum. We prove uniqueness for each family by strict convexity in q q q or in a strictly increasing function of q q q .
For Gaussian observations, each term is strictly convex in q q q , since
1 d i ( x i , q ) = 2 σ i 2 ( x i − q ) 2 , d 2 d q 2 1 d i ( x i , q ) = 12 σ i 2 ( x i − q ) 4 > 0. \frac{1}{d_i(x_i,q)}=\frac{2\sigma_i^2}{(x_i-q)^2}, \qquad
\frac{d^2}{dq^2}\frac{1}{d_i(x_i,q)}=\frac{12\sigma_i^2}{(x_i-q)^4}>0. d i ( x i , q ) 1 = ( x i − q ) 2 2 σ i 2 , d q 2 d 2 d i ( x i , q ) 1 = ( x i − q ) 4 12 σ i 2 > 0.
For lognormal observations, set z = log q z=\log q z = log q . Then
1 d i ( x i , e z ) = 2 σ i 2 ( log x i − z ) 2 , d 2 d z 2 1 d i ( x i , e z ) = 12 σ i 2 ( log x i − z ) 4 > 0. \frac{1}{d_i(x_i,e^z)}=\frac{2\sigma_i^2}{(\log x_i-z)^2}, \qquad
\frac{d^2}{dz^2}\frac{1}{d_i(x_i,e^z)}=\frac{12\sigma_i^2}{(\log x_i-z)^4}>0. d i ( x i , e z ) 1 = ( log x i − z ) 2 2 σ i 2 , d z 2 d 2 d i ( x i , e z ) 1 = ( log x i − z ) 4 12 σ i 2 > 0.
For Bernoulli observations, write q = e z / ( 1 + e z ) q=e^z/(1+e^z) q = e z / ( 1 + e z ) . We show that 1 / d i ( x i , q ) 1/d_i(x_i,q) 1/ d i ( x i , q ) is strictly convex in z z z . Differentiating gives
d 2 d z 2 1 d i ( x i , q ) = 2 ( q − x i ) 2 − d i ( x i , q ) q ( 1 − q ) d i ( x i , q ) 3 . \frac{d^2}{dz^2}\frac{1}{d_i(x_i,q)}
=
\frac{2(q-x_i)^2-d_i(x_i,q)q(1-q)}{d_i(x_i,q)^3}. d z 2 d 2 d i ( x i , q ) 1 = d i ( x i , q ) 3 2 ( q − x i ) 2 − d i ( x i , q ) q ( 1 − q ) .
To show that the numerator is positive, we bound d i ( x i , q ) d_i(x_i,q) d i ( x i , q ) from above. Using log u ≤ u − 1 \log u\le u-1 log u ≤ u − 1 ,
d i ( x i , q ) = x i log x i q + ( 1 − x i ) log 1 − x i 1 − q ≤ x i ( x i q − 1 ) + ( 1 − x i ) ( 1 − x i 1 − q − 1 ) = ( x i − q ) 2 q ( 1 − q ) . d_i(x_i,q)=x_i\log\frac{x_i}{q}+(1-x_i)\log\frac{1-x_i}{1-q}
\le x_i\left(\frac{x_i}{q}-1\right)+(1-x_i)\left(\frac{1-x_i}{1-q}-1\right)
=\frac{(x_i-q)^2}{q(1-q)}. d i ( x i , q ) = x i log q x i + ( 1 − x i ) log 1 − q 1 − x i ≤ x i ( q x i − 1 ) + ( 1 − x i ) ( 1 − q 1 − x i − 1 ) = q ( 1 − q ) ( x i − q ) 2 .
Substituting gives
d 2 d z 2 1 d i ( x i , q ) ≥ ( q − x i ) 2 d i ( x i , q ) 3 > 0 , \frac{d^2}{dz^2}\frac{1}{d_i(x_i,q)}
\ge\frac{(q-x_i)^2}{d_i(x_i,q)^3}>0, d z 2 d 2 d i ( x i , q ) 1 ≥ d i ( x i , q ) 3 ( q − x i ) 2 > 0 ,
since q ∈ ( x [ k + 1 ] , x [ k ] ) q\in(x_{[k+1]},x_{[k]}) q ∈ ( x [ k + 1 ] , x [ k ] ) implies q ≠ x i q\ne x_i q = x i .
For Poisson and Gamma observations, write q = e z q=e^z q = e z . Then
d i ( x i , q ) = { x i ( e v − 1 − v ) , v = z − log x i , Poisson , κ i ( e v − 1 − v ) , v = log x i − z , Gamma . d_i(x_i,q)=
\begin{cases}
x_i(e^v-1-v), & v=z-\log x_i,\quad\text{Poisson},\\
\kappa_i(e^v-1-v), & v=\log x_i-z,\quad\text{Gamma}.
\end{cases} d i ( x i , q ) = { x i ( e v − 1 − v ) , κ i ( e v − 1 − v ) , v = z − log x i , Poisson , v = log x i − z , Gamma .
Since x i , κ i > 0 x_i,\kappa_i>0 x i , κ i > 0 and d v / d z = ± 1 dv/dz=\pm1 d v / d z = ± 1 , it suffices to show that 1 / ( e v − 1 − v ) 1/(e^v-1-v) 1/ ( e v − 1 − v ) is strictly convex for v ≠ 0 v\ne0 v = 0 . Differentiating gives
d 2 d v 2 1 e v − 1 − v = e v ( e v + 2 e − v + v − 3 ) ( e v − 1 − v ) 3 . \frac{d^2}{dv^2}\frac{1}{e^v-1-v}
=
\frac{e^v(e^v+2e^{-v}+v-3)}{(e^v-1-v)^3}. d v 2 d 2 e v − 1 − v 1 = ( e v − 1 − v ) 3 e v ( e v + 2 e − v + v − 3 ) .
The denominator is positive for v ≠ 0 v\ne0 v = 0 . To show that the numerator is positive, use e v > 1 + v e^v>1+v e v > 1 + v and e − v > 1 − v e^{-v}>1-v e − v > 1 − v to get
e v + 2 e − v + v − 3 > ( 1 + v ) + 2 ( 1 − v ) + v − 3 = 0. e^v+2e^{-v}+v-3>(1+v)+2(1-v)+v-3=0. e v + 2 e − v + v − 3 > ( 1 + v ) + 2 ( 1 − v ) + v − 3 = 0.
Thus the second derivative is positive, proving strict convexity in z z z for both families. □
Proof of Lemma 4 By Lemma 9 and the proof of Lemma 7 , μ ( t ) → θ 0 \boldsymbol{\mu}(t)\to\boldsymbol{\theta}^0 μ ( t ) → θ 0 . Define
H t ( q ) : = ∑ i 1 d i ( μ i ( t ) , q ) , H ( q ) : = ∑ i 1 d i ( θ i 0 , q ) . H_t(q):=\sum_i\frac{1}{d_i(\mu_i(t),q)},\qquad H(q):=\sum_i\frac{1}{d_i(\theta_i^0,q)}. H t ( q ) := i ∑ d i ( μ i ( t ) , q ) 1 , H ( q ) := i ∑ d i ( θ i 0 , q ) 1 .
We will show that every limit of q † ( t ) q^\dagger(t) q † ( t ) belongs to ( θ k + 1 0 , θ k 0 ) (\theta_{k+1}^0,\theta_k^0) ( θ k + 1 0 , θ k 0 ) and minimizes H H H . Uniqueness then gives convergence to q † q^\dagger q † .
Since μ [ k ] ( t ) → θ k 0 \mu_{[k]}(t)\to\theta_k^0 μ [ k ] ( t ) → θ k 0 and μ [ k + 1 ] ( t ) → θ k + 1 0 \mu_{[k+1]}(t)\to\theta_{k+1}^0 μ [ k + 1 ] ( t ) → θ k + 1 0 , eventually μ [ k + 1 ] ( t ) < q † < μ [ k ] ( t ) \mu_{[k+1]}(t)<q^\dagger<\mu_{[k]}(t) μ [ k + 1 ] ( t ) < q † < μ [ k ] ( t ) . Since q † ( t ) q^\dagger(t) q † ( t ) minimizes H t H_t H t on this interval,
H t ( q † ( t ) ) ≤ H t ( q † ) ⟶ H ( q † ) < ∞ . (27) H_t(q^\dagger(t))\le H_t(q^\dagger)\longrightarrow H(q^\dagger)<\infty. \tag*{(27)} H t ( q † ( t )) ≤ H t ( q † ) ⟶ H ( q † ) < ∞. (27)
Let t n → ∞ t_n\to\infty t n → ∞ satisfy q † ( t n ) → q ˉ q^\dagger(t_n)\to\bar q q † ( t n ) → q ˉ . Since μ [ k + 1 ] ( t ) ≤ q † ( t ) ≤ μ [ k ] ( t ) \mu_{[k+1]}(t)\le q^\dagger(t)\le\mu_{[k]}(t) μ [ k + 1 ] ( t ) ≤ q † ( t ) ≤ μ [ k ] ( t ) , we have q ˉ ∈ [ θ k + 1 0 , θ k 0 ] \bar q\in[\theta_{k+1}^0,\theta_k^0] q ˉ ∈ [ θ k + 1 0 , θ k 0 ] . If q ˉ = θ k 0 \bar q=\theta_k^0 q ˉ = θ k 0 (and likewise q ˉ = θ k + 1 0 \bar q=\theta_{k+1}^0 q ˉ = θ k + 1 0 ), then
H t n ( q † ( t n ) ) ≥ 1 d k ( μ k ( t n ) , q † ( t n ) ) ⟶ ∞ , H_{t_n}(q^\dagger(t_n))\ge\frac{1}{d_k(\mu_k(t_n),q^\dagger(t_n))}\longrightarrow\infty, H t n ( q † ( t n )) ≥ d k ( μ k ( t n ) , q † ( t n )) 1 ⟶ ∞ ,
contradicting (26). Therefore q ˉ ∈ ( θ k + 1 0 , θ k 0 ) \bar q\in(\theta_{k+1}^0,\theta_k^0) q ˉ ∈ ( θ k + 1 0 , θ k 0 ) , and continuity gives
H ( q ˉ ) = lim n → ∞ H t n ( q † ( t n ) ) ≤ H ( q † ) . H(\bar q)=\lim_{n\to\infty}H_{t_n}(q^\dagger(t_n))\le H(q^\dagger). H ( q ˉ ) = n → ∞ lim H t n ( q † ( t n )) ≤ H ( q † ) .
Thus q ˉ \bar q q ˉ minimizes H H H , and Assumption 3 gives q ˉ = q † \bar q=q^\dagger q ˉ = q † . Since q † ( t ) q^\dagger(t) q † ( t ) is eventually contained in a compact interval and every such limit equals q † q^\dagger q † , we conclude that q † ( t ) → q † q^\dagger(t)\to q^\dagger q † ( t ) → q † . □
Proof of Theorem 2 By Lemma 4 and Theorem 1(ii),
− log EOC ( H t ) ∑ i N i ( t ) ⟶ Γ ( w ( q † ) ; θ 0 ) ≤ Γ ∗ ( θ 0 ) . -\frac{\log\operatorname{EOC}(H_t)}{\sum_iN_i(t)}
\longrightarrow\Gamma(w(q^\dagger);\theta^0)\le\Gamma^*(\theta^0). − ∑ i N i ( t ) log EOC ( H t ) ⟶ Γ ( w ( q † ) ; θ 0 ) ≤ Γ ∗ ( θ 0 ) .
For the lower bound, write H ( q ) : = ∑ i 1 / d i ( θ i 0 , q ) H(q):=\sum_i1/d_i(\theta_i^0,q) H ( q ) := ∑ i 1/ d i ( θ i 0 , q ) . Part (iii) of Theorem 1 gives
Γ ( w ( q † ) ; θ 0 ) ≥ 1 H ( q † ) . \Gamma(w(q^\dagger);\theta^0)\ge\frac{1}{H(q^\dagger)}. Γ ( w ( q † ) ; θ 0 ) ≥ H ( q † ) 1 .
It therefore remains to show Γ ∗ ( θ 0 ) / 2 ≤ 1 / H ( q † ) \Gamma^*(\theta^0)/2\le1/H(q^\dagger) Γ ∗ ( θ 0 ) /2 ≤ 1/ H ( q † ) . Let w ∗ \mathbf{w}^{*} w ∗ maximize Γ \Gamma Γ . By the proof of Proposition 5, w i ∗ > 0 w_i^{*}>0 w i ∗ > 0 for every i i i . The functions (of q q q )
min i ≤ k w i ∗ d i ( θ i 0 , q ) , min j > k w j ∗ d j ( θ j 0 , q ) \min_{i\leq k} w_i^{*}d_i(\theta_{i}^{0},q), \qquad\min_{j>k} w_j^{*}d_j(\theta_{j}^{0},q) i ≤ k min w i ∗ d i ( θ i 0 , q ) , j > k min w j ∗ d j ( θ j 0 , q )
are continuous on [ θ k + 1 0 , θ k 0 ] [\theta_{k+1}^{0},\theta_{k}^{0}] [ θ k + 1 0 , θ k 0 ] . The first is positive at θ k + 1 0 \theta_{k+1}^{0} θ k + 1 0 and zero at θ k 0 \theta_{k}^{0} θ k 0 , while the second is zero at θ k + 1 0 \theta_{k+1}^{0} θ k + 1 0 and positive at θ k 0 \theta_{k}^{0} θ k 0 . Thus they are equal at some q ˉ ∈ ( θ k + 1 0 , θ k 0 ) \bar{q}\in(\theta_{k+1}^{0},\theta_{k}^{0}) q ˉ ∈ ( θ k + 1 0 , θ k 0 ) . Write
r : = min i ≤ k w i ∗ d i ( θ i 0 , q ˉ ) = min j > k w j ∗ d j ( θ j 0 , q ˉ ) > 0. r:=\min_{i\leq k}w_i^{*}d_i(\theta_{i}^{0},\bar{q})=\min_{j>k}w_j^{*}d_j(\theta_{j}^{0},\bar{q})>0. r := i ≤ k min w i ∗ d i ( θ i 0 , q ˉ ) = j > k min w j ∗ d j ( θ j 0 , q ˉ ) > 0.
Choose i ≤ k < j i\leq k<j i ≤ k < j attaining the two minima. Evaluating (12) at this pair and x = q ˉ x=\bar{q} x = q ˉ gives
Γ ∗ ( θ 0 ) ≤ w i ∗ d i ( θ i 0 , q ˉ ) + w j ∗ d j ( θ j 0 , q ˉ ) = 2 r . \Gamma^{*}(\theta^{0})\leq w_i^{*}d_i(\theta_{i}^{0},\bar{q})+w_j^{*}d_j(\theta_{j}^{0},\bar{q})=2r. Γ ∗ ( θ 0 ) ≤ w i ∗ d i ( θ i 0 , q ˉ ) + w j ∗ d j ( θ j 0 , q ˉ ) = 2 r .
Since w i ∗ d i ( θ i 0 , q ˉ ) ≥ r w_i^{*}d_i(\theta_{i}^{0},\bar{q})\geq r w i ∗ d i ( θ i 0 , q ˉ ) ≥ r for every i i i ,
r H ( q ˉ ) = ∑ i r d i ( θ i 0 , q ˉ ) ≤ ∑ i w i ∗ = 1. rH(\bar{q})=\sum_i\frac{r}{d_i(\theta_{i}^{0},\bar{q})}\leq\sum_i w_i^{*}=1. r H ( q ˉ ) = i ∑ d i ( θ i 0 , q ˉ ) r ≤ i ∑ w i ∗ = 1.
Since q † q^{\dagger} q † minimizes H H H ,
1 2 Γ ∗ ( θ 0 ) ≤ r ≤ 1 H ( q ˉ ) ≤ 1 H ( q † ) ≤ Γ ( w ( q † ) ; θ 0 ) . \frac{1}{2}\Gamma^{*}(\theta^{0})\leq r\leq\frac{1}{H(\bar{q})}\leq\frac{1}{H(q^{\dagger})}\leq\Gamma(w(q^{\dagger});\theta^{0}). 2 1 Γ ∗ ( θ 0 ) ≤ r ≤ H ( q ˉ ) 1 ≤ H ( q † ) 1 ≤ Γ ( w ( q † ) ; θ 0 ) .
The corresponding result for the posterior error follows from Lemma 8. □
Additional simulation results
This section presents the remaining plots of the experiments in §5. §D.1 gives the EOC plots for the Bernoulli, exponential, and lognormal families and the PCS counterparts of all the EOC plots, which use the middle column in Table 1 for distributions of the true means. §D.2 and §D.3 give the EOC and PCS plots for the right and left columns, respectively. Table 1 is repeated below for reference.
Table 1. The four likelihood families and the three distributions used to generate the true means.
Table 1 (PDF p. 44).
Middle column
Figure 8. Bernoulli: same format as Figure 6.
Figure 9. Exponential: same format as Figure 6.
Figure 10. Lognormal: same format as Figure 6.
Figure 11. Gaussian: PCS.
Figure 12. Bernoulli: PCS.
Figure 13. Exponential: PCS.
Figure 14. Lognormal: PCS.
Right column
Figure 15. Gaussian: EOC.
Figure 16. Bernoulli: EOC.
Figure 17. Exponential: EOC.
Figure 18. Lognormal: EOC.
Figure 19. Gaussian: PCS.
Figure 20. Bernoulli: PCS.
Figure 21. Exponential: PCS.
Figure 22. Lognormal: PCS.
Left column
Figure 23. Gaussian: EOC.
Figure 24. Bernoulli: EOC.
Figure 25. Exponential: EOC.
Figure 26. Lognormal: EOC.
Figure 27. Gaussian: PCS.
Figure 28. Bernoulli: PCS.
Figure 29. Exponential: PCS.
Figure 30. Lognormal: PCS.