Introduction
Contention resolution has emerged as a fundamental algorithmic primitive, abstracting the familiar task of turning a random set which satisfies a system of constraints ex-ante, i.e., on average, into one which satisfies them ex-post, i.e., always. Originally formulated as a tool for enforcing feasibility in randomized rounding of linear programs [9 ] , it has since found many more applications to online and stochastic decision making problems such as prophet inequalities, stochastic probing, secretary problems, and more (e.g. [18 , 2 , 24 , 13 , 8 , 15 ] ). The broad reach of contention resolution arguably stems from the fact that it provides per-element guarantees: a c-balanced contention resolution scheme (CRS) selects an element i i i with probability at least c c c when i i i is active , meaning it is available for selection. This lends itself to objective-agnostic guarantees that hold across problems: all linear objectives, and many more, are preserved up to the same c c c factor.
Despite the aforementioned generality, the literature on contention resolution relies on a strong assumption: the distribution of active elements—which is described fully by the marginal activation probabilities p i p_i p i for product distributions—is known and given up front. Indeed, activation probabilities feature prominently in the design of optimal contention resolution schemes, even for the simplest of constraint systems. This precludes applying contention resolution to settings where the distribution may be difficult to describe exactly, or must be learned from (perhaps limited) historical data. Somewhat surprisingly, much remains open with regards to optimal contention resolution from samples, even for product distributions and the simplest of constraints, despite the fact that the analogous question has been studied extensively for the closely-related setting of prophet inequalities [6 , 29 , 21 , 11 , 16 ] .
In this paper, we study contention resolution from samples for the simplest of settings: product distributions with unknown activation probabilities p i p_i p i for each element i i i , for k k k -uniform matroid constraints (also known as cardinality constraints), paying special attention to the single-item (k = 1 k = 1 k = 1 ) setting. We consider online arrivals in adversarial or random order and ask the following question:
How many samples are needed, per element, to obtain an optimal online contention resolution scheme? \textit{How many samples are needed, per element, to obtain an optimal online contention resolution scheme?} How many samples are needed, per element, to obtain an optimal online contention resolution scheme?
Results and Techniques
We consider online contention resolution in both the adversarial and random order settings, for single-item and k k k -uniform matroid constraints. For the precise problem statement and relevant definitions, see § 2 .
Single-item. For the simplest case of a single-item constraint with known activation probabilities, there is a ( 1 − 1 / e ) (1 - 1/e) ( 1 − 1/ e ) -balanced Random Order Contention Resolution Scheme (ROCRS) [2 ] and a 1 / 2 1/2 1/2 -balanced Online Contention Resolution Scheme (OCRS) when the elements arrive in adversarial order [18 ] . Both guarantees are the best possible in their respective settings, and in fact the 1 − 1 / e 1 - 1/e 1 − 1/ e guarantee is optimal even for offline contention resolution.
We show a dichotomy between the random and adversarial order settings: we design a ( 1 − 1 / e ) (1 - 1/e) ( 1 − 1/ e ) -balanced single-item ROCRS that uses a single sample per element, whereas we show that every single-sample single-item OCRS has its balance ratio bounded away from the optimal ratio of 1 / 2 1/2 1/2 . Our ROCRS is quite simple: active elements are accepted greedily, except that each element whose sample is also active is discarded with probability 1 / e 1/e 1/ e . Our impossibility result for adversarial arrivals is through a case analysis on a small example.
Though a single sample does not suffice for an optimal OCRS, we show, perhaps surprisingly, that two samples do suffice. Our two-sample 1 / 2 1/2 1/2 -balanced OCRS is based on the following simple yet powerful observation: a scheme which chooses a start time T T T such that Pr [ T = 0 ] = 1 / 2 \Pr[T=0]=1/2 Pr [ T = 0 ] = 1/2 and Pr [ T = i ] = p i / 2 \Pr[T=i]=p_i/2 Pr [ T = i ] = p i /2 for all i i i , and accepts the first active element arriving strictly after T T T , is 1 / 2 1/2 1/2 -balanced. We show how to sample such a T T T using only the two samples per element. This is closely related to the Bernoulli race problem studied in [14 ] , and more broadly to the literature on combinatorial Bernoulli factories [25 , 27 , 26 ] , though we are not aware of any constant sample factories for such problems.1 Our approach to sampling T T T is different and interesting in its own right, however: we reduce sampling T T T to none other than a different contention resolution problem, this time offline and with a single sample! In particular, by using one set of samples to design a 1 / 2 1/2 1/2 -balanced CRS for the other, and enforcing the balance guarantee with equality, we obtain the desired p i / 2 p_i/2 p i /2 probabilities. We lean on a CRS of Feige and Vondrák [17 ] , modifying it appropriately to use a single sample and enforce the balance of 1 / 2 1/2 1/2 with equality, to accomplish just that.
Finally, we show that a single sample per element can be used to approximate this distribution of T T T and obtain a 0.48 0.48 0.48 -balanced OCRS. While this result is not tight, our aforementioned impossibility provides an upper bound strictly smaller than 1 / 2 1/2 1/2 .
General k k k . We next turn our attention to general k k k -uniform matroid constraints. When activation probabilities are known, these admit an optimal ( 1 − e − k k k / k ! ) (1-e^{-k}k^k/k!) ( 1 − e − k k k / k !) -balanced ROCRS [5 ] which is optimal even for the offline setting of contention resolution [9 , 30 ] . When the elements arrive in adversarial order, no general closed-form expression in k k k is known for the optimal balance ratio, but it is implicitly characterized by a factor-revealing linear program [23 ] .
For random arrivals, we show that a single sample per element again suffices to recover the optimal ( 1 − e − k k k / k ! ) (1-e^{-k}k^k/k!) ( 1 − e − k k k / k !) guarantee for every k k k . Our ROCRS accepts the first k k k active elements, except that the k k k -th is discarded with probability k / ( 2 k + 1 ) k/(2k+1) k / ( 2 k + 1 ) if its sample is also active; if discarded, it is replaced by the next active element. In other words, our ROCRS greedily selects the first k − 1 k-1 k − 1 active elements without looking at their samples, and only uses the sample of the k k k -th active element to decide between that or the ( k + 1 ) (k+1) ( k + 1 ) -th active element. We also give an alternative proof in Appendix § 8 , using a different scheme that directly generalizes our single-item ROCRS.
For adversarial arrivals, we design a single-sample ( 1 − O ( 1 / k ) ) (1-O(1/\sqrt{k})) ( 1 − O ( 1/ k )) -balanced OCRS, matching the asymptotically optimal dependence on k k k [3 , 23 ] . Our approach is a single-sample analogue of the OCRS of Dinev and Weinberg [12 ] : we use the samples in place of the known activation probabilities to control how quickly we accept elements. More specifically, we admit an active element as a candidate if the resulting number of candidates does not exceed the number of active samples among the elements that have arrived, plus a random allowance of order k \sqrt{k} k . We then select among the candidates online, giving each the same acceptance probability while ensuring that we accept at most k k k elements.
Sample complexity. Finally, we investigate the exact sample complexity of optimal schemes, in particular as we vary k k k . We find a surprising contrast between random and adversarial arrivals: increasing k k k reduces the required number of samples per element in the case of random arrivals, but does the reverse for adversarial arrivals.
For random order arrivals, we determine the minimum number of samples per element needed to achieve the optimal balance ratio: one for k ∈ { 1 , 2 , 3 , 4 } k\in\{1,2,3,4\} k ∈ { 1 , 2 , 3 , 4 } , and zero for k ≥ 5 k\geq5 k ≥ 5 . The latter follows directly from a result of Arnosti and Ma [5 Lemma 6] , as greedily accepting the first k k k active elements already yields the optimal guarantee when k ≥ 5 k \ge5 k ≥ 5 . For k ≤ 4 k \le4 k ≤ 4 , we show that no scheme using zero samples can be better than k / ( k + 1 ) k/(k + 1) k / ( k + 1 ) -balanced, strictly below the optimum. This impossibility also holds for offline contention resolution, and therefore so does the characterization.
For adversarial arrivals, we show a striking separation between the single-item case and larger cardinality constraints, where the latter require more samples (reversing the trend observed for random arrivals). Whereas two samples per element suffice to recover the optimal guarantee for known activation probabilities when k = 1 k = 1 k = 1 , no constant number of samples suffices for any k ≥ 2 k \ge2 k ≥ 2 ! This impossibility holds even when the arrival order is known in advance, and even if the number of samples is allowed to depend on k k k . Our proof builds on the characterization of Jiang, Ma, and Zhang [23 ] : we construct two families of instances for which optimality requires the probability of accepting at least two elements in an initial segment to tend to zero in one family and stay bounded away from zero in the other. We then show that a fixed number of samples cannot support this difference.
Additional Discussion of Related Work
There is a large literature on contention resolution and closely-related stochastic decision problems, most notably prophet inequalities, with known prior distributions. We cannot hope to do justice to this vast literature, and instead refer the reader to related work discussions in [13 ] and [4 ] . Below, we overview work on contention resolution and related problems from samples, as that is most relevant to our focus in this paper.
Contention Resolution. To our knowledge, there are few papers discussing contention resolution from samples. The work of Fu, Lu, Tang, Turkieltaub, Wu, Wu and Zhang [20 ] considers oblivious schemes that have neither distributional knowledge nor access to any samples. They design a 1 / e 1/e 1/ e -balanced oblivious OCRS for the single-item case with adversarial arrivals, and show that this is the best possible without distributional information, implying a separation from the setting with known activation probabilities. The same work also considers schemes with sample access, and shows that certain matroid constraints prohibit constant balance guarantees with constantly-many samples per element. Subsequent work by Fu, Lu, Tang, Wu, Wu and Zhang [21 ] designed a ( 1 / 4 − ε ) (1/4 - \varepsilon) ( 1/4 − ε ) -balanced OCRS for matroid constraints with O ε ( ( log n ) 4 ) O_{\varepsilon}((\log n)^4) O ε (( log n ) 4 ) samples per element, for any ε > 0 \varepsilon> 0 ε > 0 . Recently, Feldman, Svensson and Zenklusen [19 ] improved upon this by achieving the same balance guarantee using only O ( ( log r ( log log r ) 2 ) ) O((\log r(\log\log r)^2)) O (( log r ( log log r ) 2 )) many samples, almost matching the Ω ( log r ) \Omega(\log r) Ω ( log r ) lower bound due to [21 ] , where r r r is the rank of the matroid.
Prophet Inequalities and Related Problems. Closely related to online contention resolution are prophet inequality problems. Here, elements arrive online in adversarial order, and instead of per-element activations we get per-element rewards v i v_i v i . The goal is to achieve a high total reward, competing with an omniscient prophet. In contrast to contention resolution, there has been a large body of work studying prophet inequalities from samples. A single sample suffices for an optimal factor of 1 / 2 1/2 1/2 in the single-choice setting [29 , 10 ] , as well as for an asymptotically-optimal guarantee in the k k k -choice setting as k k k grows large [7 ] . The same question has also been studied for more elaborate constraints, as well as random order arrivals (known as prophet secretary problems). Most recently, [1 ] exhibit a single-sample matroid prophet inequality achieving an optimal competitive ratio of 1 / 2 1/2 1/2 when the order is adversarial yet fixed, and [28 ] achieve a constant competitive ratio with respect to the more powerful almighty adversary which adaptively chooses the arrival order.
One matter worth addressing is the relationship between prophet inequality problems and contention resolution. Indeed, for known prior distributions the problems are almost equivalent, with reductions in both directions [24 ] .2 One may therefore wonder whether our results can be obtained by reducing to the corresponding prophet (or prophet secretary) problem from samples. The answer is emphatically no. The reductions of [24 ] are sensitive to knowing the distribution, and our impossibility results for both single-sample, single-item and finite-sample, k k k -uniform OCRSs serve to formally separate the two problems; in particular, a single sample permits a 1 / 2 1/2 1/2 prophet inequality, but not a 1 / 2 1/2 1/2 -balanced OCRS.
Preliminaries
Let { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } denote a ground set of elements, k ≥ 1 k \ge1 k ≥ 1 be an integer capacity, and p = ( p 1 , … , p n ) ∈ [ 0 , 1 ] n p=(p_1,\ldots,p_n)\in[0,1]^n p = ( p 1 , … , p n ) ∈ [ 0 , 1 ] n be an activation probability vector satisfying ∑ i = 1 n p i ≤ k \sum_{i=1}^{n}p_i\le k ∑ i = 1 n p i ≤ k . We sometimes use [ n ] [n] [ n ] to denote { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } . A subset of [ n ] [n] [ n ] is feasible if it contains at most k k k elements; this is a k k k -uniform matroid constraint—also known as a cardinality constraint—with the single-item case corresponding to k = 1 k=1 k = 1 . We denote the k k k -uniform matroid polytope by P k : = { x ∈ [ 0 , 1 ] n ∣ ∑ i = 1 n x i ≤ k } \mathcal{P}_k:=\{x\in[0,1]^n\mid\sum_{i=1}^{n}x_i\le k\} P k := { x ∈ [ 0 , 1 ] n ∣ ∑ i = 1 n x i ≤ k } . Let support ( p ) : = { i ∈ [ n ] ∣ p i > 0 } \operatorname{support}(p):=\{i\in[n]\mid p_i>0\} support ( p ) := { i ∈ [ n ] ∣ p i > 0 } .
Definition 2.1 (Contention Resolution Scheme). An (offline) Contention Resolution Scheme (CRS) π \pi π for the polytope P k \mathcal{P}_k P k is a procedure that, given a vector p ∈ P k p\in\mathcal{P}_k p ∈ P k and W ⊆ [ n ] W\subseteq[n] W ⊆ [ n ] , returns a random set π p ( W ) ⊆ W ∩ support ( p ) \pi_p(W)\subseteq W\cap\operatorname{support}(p) π p ( W ) ⊆ W ∩ support ( p ) such that ∣ π p ( W ) ∣ ≤ k |\pi_p(W)|\le k ∣ π p ( W ) ∣ ≤ k with probability 1 1 1 , for all W ⊆ [ n ] W\subseteq[n] W ⊆ [ n ] , p ∈ P k p\in\mathcal{P}_k p ∈ P k . The scheme is said to be monotone if Pr [ i ∈ π p ( A 1 ) ] ≥ Pr [ i ∈ π p ( A 2 ) ] \Pr[i\in\pi_p(A_1)]\ge\Pr[i\in\pi_p(A_2)] Pr [ i ∈ π p ( A 1 )] ≥ Pr [ i ∈ π p ( A 2 )] for every i ∈ A 1 ⊆ A 2 i\in A_1\subseteq A_2 i ∈ A 1 ⊆ A 2 .
Contention resolution schemes were introduced in [9 ] as a tool for rounding fractional solutions for submodular maximization, though have found a variety of other uses since. Often p p p denotes a fractional linear programming solution and we draw a random subset W ( p ) W(p) W ( p ) of [ n ] [n] [ n ] where each i ∈ [ n ] i\in[n] i ∈ [ n ] appears independently with probability p i p_i p i . The issue is that W ( p ) W(p) W ( p ) might not be feasible for the given polytope. A CRS is then applied to W ( p ) W(p) W ( p ) to return a set π p ( W ( p ) ) ⊆ W ( p ) \pi_p(W(p))\subseteq W(p) π p ( W ( p )) ⊆ W ( p ) that is feasible with probability 1 1 1 ; in our case, this means it satisfies ∣ π p ( W ( p ) ) ∣ ≤ k |\pi_p(W(p))|\le k ∣ π p ( W ( p )) ∣ ≤ k .
In the description above, π \pi π is given all elements of W ( p ) W(p) W ( p ) and can then choose π p ( W ( p ) ) \pi_p(W(p)) π p ( W ( p )) . Feldman, Svensson and Zenklusen [18 ] introduce an Online Contention Resolution Scheme (OCRS) where the random set W ( p ) W(p) W ( p ) is obtained in the same way, but the indicator i ∈ W ( p ) i\in W(p) i ∈ W ( p ) is revealed sequentially to π \pi π in an adversarial order fixed independently of the events i ∈ W ( p ) i\in W(p) i ∈ W ( p ) , the samples and any internal randomness of π \pi π . After each arrival, the OCRS has to immediately and irrevocably decide whether or not to accept i ∈ W ( p ) i\in W(p) i ∈ W ( p ) into π p ( W ( p ) ) \pi_p(W(p)) π p ( W ( p )) , subject to feasibility. Later, Adamczyk and Włodarczyk [2 ] introduced Random Order Contention Resolution Schemes (ROCRSs) which are OCRSs with the arrival order chosen uniformly at random. We use X i ∼ Ber ( p i ) X_i\sim\operatorname{Ber}(p_i) X i ∼ Ber ( p i ) , where Ber ( p i ) \operatorname{Ber}(p_i) Ber ( p i ) denotes the Bernoulli distribution with success probability p i p_i p i , to denote the random variable indicating whether or not i ∈ W ( p ) i\in W(p) i ∈ W ( p ) . We call i i i online-active if X i = 1 X_i=1 X i = 1 and online-inactive otherwise.
In this work, we study ROCRSs and OCRSs that are given n n n and k k k , but not the activation probability vector p p p . Instead, before observing the online activations, they receive m m m samples per element for some m ≥ 0 m\ge0 m ≥ 0 . We write Y i ( s ) ∼ Ber ( p i ) Y_i^{(s)}\sim\operatorname{Ber}(p_i) Y i ( s ) ∼ Ber ( p i ) for the s s s -th sample of element i i i . For a sample-based scheme on an arbitrary input set W W W , we require the output to be a feasible subset of W W W ; we do not additionally require it to lie in support ( p ) \operatorname{support}(p) support ( p ) . On the random input W ( p ) W(p) W ( p ) , the latter property holds automatically. A sample-based scheme is called monotone if Pr [ i ∈ π p ( A 1 ) ] ≥ Pr [ i ∈ π p ( A 2 ) ] \Pr[i\in\pi_p(A_1)]\ge\Pr[i\in\pi_p(A_2)] Pr [ i ∈ π p ( A 1 )] ≥ Pr [ i ∈ π p ( A 2 )] holds for all p ∈ P k p\in\mathcal{P}_k p ∈ P k and i ∈ A 1 ⊆ A 2 i\in A_1\subseteq A_2 i ∈ A 1 ⊆ A 2 , when the samples Y j ( ℓ ) Y_j^{(\ell)} Y j ( ℓ ) are independently drawn from Ber ( p j ) \operatorname{Ber}(p_j) Ber ( p j ) for all j ∈ [ n ] j\in[n] j ∈ [ n ] . In the single-sample setting, we write Y i Y_i Y i and call i i i sample-active if Y i = 1 Y_i=1 Y i = 1 and sample-inactive otherwise. All samples and online activations are mutually independent. For adversarial arrivals, we index elements in arrival order, without loss of generality, so the online observations are X 1 , … , X n X_1,\ldots,X_n X 1 , … , X n . For random arrivals, indices identify fixed elements, rather than their positions in the arrival order.
For a scheme π \pi π , let A i , π A_{i,\pi} A i , π be the event that π \pi π accepts element i i i . For p i > 0 p_i>0 p i > 0 , let
C i , π ( p ) : = Pr [ A i , π ∣ X i = 1 ] . C_{i,\pi}(p):=\Pr[A_{i,\pi}\mid X_i=1]. C i , π ( p ) := Pr [ A i , π ∣ X i = 1 ] .
For c ∈ [ 0 , 1 ] c\in[0,1] c ∈ [ 0 , 1 ] , we say that π \pi π is c c c -balanced, if C i , π ( p ) ≥ c C_{i,\pi}(p)\ge c C i , π ( p ) ≥ c for every activation vector p p p and every element i i i with p i > 0 p_i>0 p i > 0 ; for an ROCRS, this probability is also taken over the randomness in the arrival order. Equivalently, Pr [ A i , π ] ≥ c p i \Pr[A_{i,\pi}]\ge cp_i Pr [ A i , π ] ≥ c p i for every i ∈ [ n ] i\in[n] i ∈ [ n ] . When π \pi π is clear from context, we write A i A_i A i and C i ( p ) C_i(p) C i ( p ) ; when p p p is also clear, we write C i C_i C i .
For an online scheme π \pi π , let R i , π R_{i,\pi} R i , π be the event that π \pi π reaches element i i i , meaning that it has accepted fewer than k k k elements before i i i arrives. We write R i R_i R i when π \pi π is clear from context. Observe that, in the single-item case with adversarial arrivals,
R i , π = ( ⋃ j < i A j , π ) c . R_{i,\pi}=\left(\bigcup_{j<i}A_{j,\pi}\right)^c. R i , π = ( j < i ⋃ A j , π ) c .
where E c E^c E c denotes the complement of an event E E E .
For a set S S S and an element i i i , write S + i : = S ∪ { i } S+i:=S\cup\{i\} S + i := S ∪ { i } and S − i : = S ∖ { i } S-i:=S\setminus\{i\} S − i := S ∖ { i } . For an event E E E , 1 E \mathbf{1}_E 1 E is its indicator, and for x ∈ R x\in\mathbb{R} x ∈ R , ( x ) + : = max { 0 , x } (x)_+:=\max\{0,x\} ( x ) + := max { 0 , x } . We write Bin ( m , q ) \operatorname{Bin}(m,q) Bin ( m , q ) for the binomial distribution with m m m trials and success probability q q q , and Poi ( λ ) \operatorname{Poi}(\lambda) Poi ( λ ) for the Poisson distribution with mean λ \lambda λ .
The Single-Item Case
We start with the single-item case. Here, we show that a single sample suffices to design an optimal ( 1 − 1 / e ) (1-1/e) ( 1 − 1/ e ) -balanced ROCRS (and thus also an offline CRS). We also show that this is not the case for adversarial arrivals, giving an impossibility of 0.499. We then proceed to design an optimal 1 / 2 1/2 1/2 -balanced OCRS using two samples per element, as well as a 0.48-balanced OCRS with one sample.
Random Order
We start with the random-order single-item case. Though we obtain a more general result for arbitrary k k k in § 4.1 , the algorithm we present here, and its analysis, are appealing due to their simplicity. We prove the guarantee when ∑ i p i = 1 \sum_i p_i=1 ∑ i p i = 1 ; its extension to the case ∑ i p i ≤ 1 \sum_i p_i\le1 ∑ i p i ≤ 1 is justified in Appendix § 9 (see also Remark 2.1). As in § 2 , X i X_i X i indicates whether element i i i is online-active, and Y i Y_i Y i independently indicates whether it is sample-active.
Our single-item ROCRS is shown in Algorithm 1. For every online-active element i i i , this ROCRS tosses an independent coin and accepts i i i with some probability depending on the sample Y i Y_i Y i . We prove the following.
Theorem 3.1. For every n ∈ N n\in\mathbb{N} n ∈ N , (unknown) probability vector p ∈ [ 0 , 1 ] n p\in[0,1]^n p ∈ [ 0 , 1 ] n with ∑ i = 1 n p i = 1 \sum_{i=1}^{n}p_i=1 ∑ i = 1 n p i = 1 , and every element i ∈ [ n ] i\in[n] i ∈ [ n ] with p i > 0 p_i>0 p i > 0 , Algorithm 1 always accepts at most one element and satisfies
C i ≥ 1 − 1 e . C_i\ge1-\frac{1}{e}. C i ≥ 1 − e 1 .
Algorithm 1 The Conservative Scaling algorithm for $k = 1$.
Input: $\{Y_1,\ldots,Y_n\}$
1: for elements $i = 1,\ldots,n$ in order of arrival do
2: if $X_i = 1$ and $Y_i = 0$ then
3: $q_i \leftarrow 1$
4: else if $X_i = 1$ and $Y_i = 1$ then
5: $q_i \leftarrow 1 - 1/e$
6: else
7: $q_i \leftarrow 0$
8: $Q_i \leftarrow \operatorname{Ber}(q_i)$
9: if $Q_i = 1$ then
10: Accept $i$ and stop
11: else
12: Reject $i$
Feasibility is obvious by the algorithm’s description. Next, notice that the probability that element i i i is online-active and its coin succeeds is p i ( 1 − p i / e ) p_i(1-p_i/e) p i ( 1 − p i / e ) . This implies an alternative description of the algorithm: it observes a sequence of independent Bernoulli random variables Z 1 , … , Z n Z_1,\ldots,Z_n Z 1 , … , Z n where Z i ∼ Ber ( p i ( 1 − p i / e ) ) Z_i \sim\operatorname{Ber}(p_i(1-p_i/e)) Z i ∼ Ber ( p i ( 1 − p i / e )) and accepts the first i i i such that Z i = 1 Z_i = 1 Z i = 1 . Since the arrival order is uniformly random, the probability that we accept element i i i , conditional on X i = 1 X_i = 1 X i = 1 , can be written as
C i = ( 1 − p i e ) E [ 1 1 + ∑ j ≠ i Z j ] , C_i = \left(1-\frac{p_i}{e}\right)\mathbb{E}\left[\frac{1}{1+\sum_{j\ne i}Z_j}\right], C i = ( 1 − e p i ) E [ 1 + ∑ j = i Z j 1 ] ,
since this is the probability that Z i = 1 Z_i = 1 Z i = 1 and i i i arrives first from a sequence of 1 + ∑ j ≠ i Z j 1+\sum_{j\ne i}Z_j 1 + ∑ j = i Z j ones.
Next, notice that if all p j p_j p j for j ≠ i j\ne i j = i were close to 0, then ∑ j ≠ i Z j → Poi ( 1 − p i ) \sum_{j\ne i}Z_j \to\operatorname{Poi}(1-p_i) ∑ j = i Z j → Poi ( 1 − p i ) , and the probability that i i i is accepted conditional on X i = 1 X_i = 1 X i = 1 would be
( 1 − p i e ) 1 − e − ( 1 − p i ) 1 − p i ≥ 1 − 1 e , \left(1-\frac{p_i}{e}\right)\frac{1-e^{-(1-p_i)}}{1-p_i}\ge1-\frac{1}{e}, ( 1 − e p i ) 1 − p i 1 − e − ( 1 − p i ) ≥ 1 − e 1 ,
where the inequality follows from elementary manipulations, interpreting, at p i = 1 p_i = 1 p i = 1 , the fraction by its continuous value 1. Thus, it suffices to show that this is the worst case. In other words, it suffices to show that, for Z j ′ ∼ Poi ( p j ) Z'_j\sim\operatorname{Poi}(p_j) Z j ′ ∼ Poi ( p j ) ,
E [ 1 1 + ∑ j ≠ i Z j ] ≥ E [ 1 1 + ∑ j ≠ i Z j ′ ] . (1) \mathbb{E}\left[\frac{1}{1+\sum_{j\ne i}Z_j}\right]\ge\mathbb{E}\left[\frac{1}{1+\sum_{j\ne i}Z'_j}\right]. \tag*{(1)} E [ 1 + ∑ j = i Z j 1 ] ≥ E [ 1 + ∑ j = i Z j ′ 1 ] . (1)
By linearity of expectation, we have
E [ 1 1 + ∑ j ≠ i Z j ] = ∫ 0 1 E [ t ∑ j ≠ i Z j ] d t . \mathbb{E}\left[\frac{1}{1+\sum_{j\ne i}Z_j}\right]=\int_0^1\mathbb{E}\left[t^{\sum_{j\ne i}Z_j}\right]\,dt. E [ 1 + ∑ j = i Z j 1 ] = ∫ 0 1 E [ t ∑ j = i Z j ] d t .
Taking an arbitrary j 1 ≠ i j_1\ne i j 1 = i and defining F ( t ) = E [ t ∑ j ≠ i , j 1 Z j ] F(t)=\mathbb{E}\left[t^{\sum_{j\ne i,j_1}Z_j}\right] F ( t ) = E [ t ∑ j = i , j 1 Z j ] , we get
E [ 1 1 + ∑ j ≠ i Z j ] = ∫ 0 1 E [ t Z j 1 ] F ( t ) d t = ∫ 0 1 ( 1 ⋅ ( 1 − p j 1 + p j 1 2 e ) + t ⋅ ( p j 1 − p j 1 2 e ) ) F ( t ) d t \mathbb{E}\left[\frac{1}{1+\sum_{j\ne i}Z_j}\right]=\int_0^1\mathbb{E}\left[t^{Z_{j_1}}\right]F(t)\,dt=\int_0^1\left(1\cdot\left(1-p_{j_1}+\frac{p_{j_1}^2}{e}\right)+t\cdot\left(p_{j_1}-\frac{p_{j_1}^2}{e}\right)\right)F(t)\,dt E [ 1 + ∑ j = i Z j 1 ] = ∫ 0 1 E [ t Z j 1 ] F ( t ) d t = ∫ 0 1 ( 1 ⋅ ( 1 − p j 1 + e p j 1 2 ) + t ⋅ ( p j 1 − e p j 1 2 ) ) F ( t ) d t
∫ 0 1 ( 1 − ( 1 − t ) p j 1 + ( 1 − t ) p j 1 2 e ) F ( t ) d t = ∫ 0 1 ( 1 − t p j 1 + t p j 1 2 e ) F ( 1 − t ) d t \int_{0}^{1}\left(1-(1-t)p_{j_1}+(1-t)\frac{p_{j_1}^{2}}{e}\right)F(t)\,\mathrm{d}t=\int_{0}^{1}\left(1-tp_{j_1}+t\frac{p_{j_1}^{2}}{e}\right)F(1-t)\,\mathrm{d}t ∫ 0 1 ( 1 − ( 1 − t ) p j 1 + ( 1 − t ) e p j 1 2 ) F ( t ) d t = ∫ 0 1 ( 1 − t p j 1 + t e p j 1 2 ) F ( 1 − t ) d t
Note that
∫ 0 1 ( t 3 − t 2 2 ) F ( 1 − t ) d t = ∫ 0 1 ( t 2 6 − t 3 6 ) F ′ ( 1 − t ) d t ≥ 0 , \int_{0}^{1}\left(\frac{t}{3}-\frac{t^{2}}{2}\right)F(1-t)\,\mathrm{d}t=\int_{0}^{1}\left(\frac{t^{2}}{6}-\frac{t^{3}}{6}\right)F'(1-t)\,\mathrm{d}t\ge0, ∫ 0 1 ( 3 t − 2 t 2 ) F ( 1 − t ) d t = ∫ 0 1 ( 6 t 2 − 6 t 3 ) F ′ ( 1 − t ) d t ≥ 0 ,
where the equality follows by integration-by-parts, and the inequality from noting that F F F is increasing. Thus,
∫ 0 1 t 3 F ( 1 − t ) d t ≥ ∫ 0 1 t 2 2 F ( 1 − t ) d t . (2) \int_{0}^{1}\frac{t}{3}F(1-t)\,\mathrm{d}t\ge\int_{0}^{1}\frac{t^{2}}{2}F(1-t)\,\mathrm{d}t . \tag*{(2)} ∫ 0 1 3 t F ( 1 − t ) d t ≥ ∫ 0 1 2 t 2 F ( 1 − t ) d t . (2)
We conclude that
E [ 1 1 + ∑ j ≠ i Z j ] = ∫ 0 1 ( 1 − t p j 1 + t p j 1 2 e ) F ( 1 − t ) d t ≥ ∫ 0 1 ( 1 − t p j 1 + t p j 1 2 3 ) F ( 1 − t ) d t ≥ ∫ 0 1 ( 1 − t p j 1 + t 2 p j 1 2 2 ) F ( 1 − t ) d t \begin{aligned}
\mathbb{E}\left[\frac{1}{1+\sum_{j\ne i}Z_j}\right]=\int_{0}^{1}\left(1-tp_{j_1}+t\frac{p_{j_1}^{2}}{e}\right)F(1-t)\,\mathrm{d}t\ge\int_{0}^{1}\left(1-tp_{j_1}+t\frac{p_{j_1}^{2}}{3}\right)F(1-t)\,\mathrm{d}t \\
&\ge\int_{0}^{1}\left(1-tp_{j_1}+\frac{t^{2}p_{j_1}^{2}}{2}\right)F(1-t)\,\mathrm{d}t
\end{aligned} E [ 1 + ∑ j = i Z j 1 ] = ∫ 0 1 ( 1 − t p j 1 + t e p j 1 2 ) F ( 1 − t ) d t ≥ ∫ 0 1 ( 1 − t p j 1 + t 3 p j 1 2 ) F ( 1 − t ) d t ≥ ∫ 0 1 ( 1 − t p j 1 + 2 t 2 p j 1 2 ) F ( 1 − t ) d t
where the last inequality follows from (2) . Employing the Taylor series for the exponential, we get
E [ 1 1 + ∑ j ≠ i Z j ] ≥ ∫ 0 1 e − p j 1 t F ( 1 − t ) d t . \mathbb{E}\left[\frac{1}{1+\sum_{j\ne i}Z_j}\right]\ge\int_{0}^{1}e^{-p_{j_1}t}F(1-t)\,\mathrm{d}t. E [ 1 + ∑ j = i Z j 1 ] ≥ ∫ 0 1 e − p j 1 t F ( 1 − t ) d t .
Finally, observe that
e − p j 1 t = e − p j 1 e p j 1 ( 1 − t ) = e − p j 1 ∑ ℓ = 0 ∞ ( p j 1 ( 1 − t ) ) ℓ ℓ ! = e − p j 1 ∑ ℓ = 0 ∞ ( 1 − t ) ℓ p j 1 ℓ ℓ ! = E [ ( 1 − t ) Z j 1 ′ ] . e^{-p_{j_1}t}=e^{-p_{j_1}}e^{p_{j_1}(1-t)}=e^{-p_{j_1}}\sum_{\ell=0}^{\infty}\frac{\left(p_{j_1}(1-t)\right)^{\ell}}{\ell!}=e^{-p_{j_1}}\sum_{\ell=0}^{\infty}(1-t)^{\ell}\frac{p_{j_1}^{\ell}}{\ell!}=\mathbb{E}\left[(1-t)^{Z'_{j_1}}\right]. e − p j 1 t = e − p j 1 e p j 1 ( 1 − t ) = e − p j 1 ℓ = 0 ∑ ∞ ℓ ! ( p j 1 ( 1 − t ) ) ℓ = e − p j 1 ℓ = 0 ∑ ∞ ( 1 − t ) ℓ ℓ ! p j 1 ℓ = E [ ( 1 − t ) Z j 1 ′ ] .
Therefore,
E [ 1 1 + ∑ j ≠ i Z j ] ≥ ∫ 0 1 E [ ( 1 − t ) Z j 1 ′ ] F ( 1 − t ) d t = E [ 1 1 + Z j 1 ′ + ∑ j ≠ i , j 1 Z j ] , \mathbb{E}\left[\frac{1}{1+\sum_{j\ne i}Z_j}\right]\ge\int_{0}^{1}\mathbb{E}\left[(1-t)^{Z'_{j_1}}\right]F(1-t)\,\mathrm{d}t=\mathbb{E}\left[\frac{1}{1+Z'_{j_1}+\sum_{j\ne i,j_1}Z_j}\right], E [ 1 + ∑ j = i Z j 1 ] ≥ ∫ 0 1 E [ ( 1 − t ) Z j 1 ′ ] F ( 1 − t ) d t = E [ 1 + Z j 1 ′ + ∑ j = i , j 1 Z j 1 ] ,
where the last equality follows by linearity of expectation and the fact that, for every r ∈ N r\in\mathbb{N} r ∈ N ,
∫ 0 1 ( 1 − t ) r d t = 1 1 + r . \int_{0}^{1}(1-t)^r\,\mathrm{d}t=\frac{1}{1+r}. ∫ 0 1 ( 1 − t ) r d t = 1 + r 1 .
Repeating the same process for the remaining j ≠ i j\ne i j = i yields (1) .
Adversarial Order: Impossibility
Next, we construct a hard instance showing that, for adversarial arrivals and k = 1 k=1 k = 1 , there does not exist a single-sample 1 / 2 1/2 1/2 -balanced OCRS. In the proof, we use the fact that for an OCRS π \pi π to accept element i i i , it has to first reach i i i , and thus for every probability vector p p p
C i ( p ) ≤ Pr [ R i , π ∣ X i = 1 ] = 1 − ∑ j < i p j C j ( p ) . (3) C_i(p)\le\Pr[R_{i,\pi}\mid X_i=1]=1-\sum_{j<i}p_jC_j(p). \tag*{(3)} C i ( p ) ≤ Pr [ R i , π ∣ X i = 1 ] = 1 − j < i ∑ p j C j ( p ) . (3)
Here, we present a proof sketch – the full proof can be found in Appendix § 7 .§ 1 .
Theorem 3.2. There does not exist a single-sample, 1/2-balanced OCRS in the single-item setting, when the elements arrive in adversarial order.
Proof Sketch of Theorem 3.2. Suppose, by way of contradiction, that there exists a single-sample OCRS π \pi π that is 1 / 2 1/2 1/2 -balanced. We consider the following instances p ( i ) p^{(i)} p ( i ) on 6 elements, and study how well the algorithm performs on them, not knowing which instance it is actually facing.
Table 1.
Each instance above is a limiting instance. In each row, the zero values are actually ε > 0 \varepsilon> 0 ε > 0 and the non-zero values are appropriately adjusted so that the total remains one. For the fixed algorithm, every conditional acceptance probability extends continuously to each p ( i ) p^{(i)} p ( i ) , and C j ( p ( i ) ) C_j(p^{(i)}) C j ( p ( i ) ) denotes this limiting value.
For each S ⊆ { 3 , 4 , 5 } S \subseteq\{3,4,5\} S ⊆ { 3 , 4 , 5 } , let a S a_S a S be the probability of A 3 A_3 A 3 , conditional on elements 1 and 2 being online-inactive, element 3 being online-active, the sample-active elements among { 3 , 4 , 5 } \{3,4,5\} { 3 , 4 , 5 } being exactly S S S , and all other elements being sample-inactive.
In the limit, C j ( p ( i ) ) ≥ 1 / 2 C_j(p^{(i)}) \ge1/2 C j ( p ( i ) ) ≥ 1/2 for all i , j i,j i , j , and (3) applied for i = 6 i = 6 i = 6 yields
1 ≤ 1 2 ∑ j = 1 5 p j + 1 2 ≤ ∑ j = 1 5 p j C j ( p ) + C 6 ( p ) ≤ 1 , 1 \le\frac{1}{2}\sum_{j=1}^{5}p_j+\frac{1}{2}\le\sum_{j=1}^{5}p_jC_j(p)+C_6(p)\le1, 1 ≤ 2 1 j = 1 ∑ 5 p j + 2 1 ≤ j = 1 ∑ 5 p j C j ( p ) + C 6 ( p ) ≤ 1 ,
and equality in this chain forces C j ( p ( i ) ) = 1 / 2 C_j(p^{(i)}) = 1/2 C j ( p ( i ) ) = 1/2 whenever the corresponding p j ( i ) p_j^{(i)} p j ( i ) is positive. In particular, under p ( 1 ) p^{(1)} p ( 1 ) we have C 1 ( p ( 1 ) ) = C 2 ( p ( 1 ) ) = 1 / 2 C_1(p^{(1)}) = C_2(p^{(1)}) = 1/2 C 1 ( p ( 1 ) ) = C 2 ( p ( 1 ) ) = 1/2 , so Pr [ R 3 ] = 1 / 2 \Pr[R_3] = 1/2 Pr [ R 3 ] = 1/2 . Since 1 / 2 ≤ C 3 ( p ( 1 ) ) ≤ Pr [ R 3 ] 1/2 \le C_3(p^{(1)}) \le\Pr[R_3] 1/2 ≤ C 3 ( p ( 1 ) ) ≤ Pr [ R 3 ] , this also gives C 3 ( p ( 1 ) ) = 1 / 2 C_3(p^{(1)}) = 1/2 C 3 ( p ( 1 ) ) = 1/2 . Thus, whenever R 3 R_3 R 3 occurs and element 3 is online-active, the algorithm must accept element 3. Since under p ( 1 ) p^{(1)} p ( 1 ) the elements { 3 , 4 , 5 } \{3,4,5\} { 3 , 4 , 5 } are all sample-inactive, this implies a ∅ = 1 a_{\varnothing} = 1 a ∅ = 1 .
Next consider the fact that the algorithm might be facing p ( 2 ) p^{(2)} p ( 2 ) , p ( 3 ) p^{(3)} p ( 3 ) or p ( 4 ) p^{(4)} p ( 4 ) . In these cases, elements 1 and 2 are online-inactive, and the sample-active set on { 3 , 4 , 5 } \{3,4,5\} { 3 , 4 , 5 } is respectively { 3 } \{3\} { 3 } , { 4 } \{4\} { 4 } , and { 5 } \{5\} { 5 } . The 1 / 2 1/2 1/2 -balancedness constraint for element 3 in these three instances therefore gives:
a { 3 } ≥ 1 2 , a { 4 } ≥ 1 2 , a { 5 } ≥ 1 2 . a_{\{3\}} \ge\frac{1}{2},\qquad a_{\{4\}} \ge\frac{1}{2},\qquad a_{\{5\}} \ge\frac{1}{2}. a { 3 } ≥ 2 1 , a { 4 } ≥ 2 1 , a { 5 } ≥ 2 1 .
Finally consider the fact that the algorithm might be facing p ( 5 ) p^{(5)} p ( 5 ) . Let S S S be the random set of sample-active elements among { 3 , 4 , 5 } \{3,4,5\} { 3 , 4 , 5 } . Since elements 1 and 2 are again online-inactive,
C 3 ( p ( 5 ) ) = E [ a S ] . C_3(p^{(5)}) = \mathbb{E}[a_S]. C 3 ( p ( 5 ) ) = E [ a S ] .
Note that a S ≥ 1 − ∣ S ∣ / 2 a_S \ge1 - |S|/2 a S ≥ 1 − ∣ S ∣/2 , with the inequality being strict if ∣ S ∣ = 3 |S| = 3 ∣ S ∣ = 3 . We conclude that:
C 3 ( p ( 5 ) ) = E [ a S ] > E [ 1 − ∣ S ∣ / 2 ] = 1 / 2 , C_3(p^{(5)}) = \mathbb{E}[a_S] > \mathbb{E}[1 - |S|/2] = 1/2, C 3 ( p ( 5 ) ) = E [ a S ] > E [ 1 − ∣ S ∣/2 ] = 1/2 ,
which contradicts C 3 ( p ( 5 ) ) = 1 / 2 C_3(p^{(5)}) = 1/2 C 3 ( p ( 5 ) ) = 1/2 .
Adversarial Order: Two-Sample 1/2-balanced OCRS
In this section, we use two independent samples Y i ( 1 ) , Y i ( 2 ) ∼ Ber ( p i ) Y_i^{(1)}, Y_i^{(2)} \sim\operatorname{Ber}(p_i) Y i ( 1 ) , Y i ( 2 ) ∼ Ber ( p i ) per element to design a 1 / 2 1/2 1/2 -balanced OCRS for the single-item setting. We start with a useful reduction to a simple threshold construction.
Lemma 3.1. Fix n ∈ N n \in\mathbb{N} n ∈ N and a probability vector p ∈ [ 0 , 1 ] n p \in[0,1]^n p ∈ [ 0 , 1 ] n with ∑ i = 1 n p i = 1 \sum_{i=1}^{n} p_i = 1 ∑ i = 1 n p i = 1 . Let T T T be a random variable independent of the online activations X 1 , … , X n X_1,\ldots,X_n X 1 , … , X n that satisfies
Pr [ T = 0 ] = 1 2 , and Pr [ T = i ] = p i 2 for every i ∈ [ n ] . \Pr[T=0]=\frac{1}{2}, \qquad\text{and} \qquad\Pr[T=i]=\frac{p_i}{2} \qquad\text{for every } i \in[n]. Pr [ T = 0 ] = 2 1 , and Pr [ T = i ] = 2 p i for every i ∈ [ n ] . The OCRS π \pi π that accepts the first online-active element strictly after T T T , if there exists one, is 1 / 2 1/2 1/2 -balanced.
Proof. It suffices to show that C i ≥ 1 / 2 C_i \ge1/2 C i ≥ 1/2 for every element i i i with p i > 0 p_i>0 p i > 0 . Conditional on X i = 1 X_i=1 X i = 1 , the event A i A_i A i occurs exactly when T < i T<i T < i and X T + 1 = ⋯ = X i − 1 = 0 X_{T+1}=\cdots=X_{i-1}=0 X T + 1 = ⋯ = X i − 1 = 0 . Thus,
C i = Pr [ T = 0 ] Pr [ X 1 = ⋯ = X i − 1 = 0 ] + ∑ j = 1 i − 1 Pr [ T = j ] Pr [ X j + 1 = ⋯ = X i − 1 = 0 ] C_i = \Pr[T=0]\Pr[X_1=\cdots=X_{i-1}=0] + \sum_{j=1}^{i-1}\Pr[T=j]\Pr[X_{j+1}=\cdots=X_{i-1}=0] C i = Pr [ T = 0 ] Pr [ X 1 = ⋯ = X i − 1 = 0 ] + j = 1 ∑ i − 1 Pr [ T = j ] Pr [ X j + 1 = ⋯ = X i − 1 = 0 ] = Pr [ T = 0 ] ∏ ℓ = 1 i − 1 ( 1 − p ℓ ) + ∑ j = 1 i − 1 Pr [ T = j ] ∏ j < ℓ < i ( 1 − p ℓ ) = \Pr[T=0]\prod_{\ell=1}^{i-1}(1-p_\ell) + \sum_{j=1}^{i-1}\Pr[T=j]\prod_{j<\ell<i}(1-p_\ell) = Pr [ T = 0 ] ℓ = 1 ∏ i − 1 ( 1 − p ℓ ) + j = 1 ∑ i − 1 Pr [ T = j ] j < ℓ < i ∏ ( 1 − p ℓ ) = 1 2 ∏ ℓ = 1 i − 1 ( 1 − p ℓ ) + 1 2 ∑ j = 1 i − 1 p j ∏ j < ℓ < i ( 1 − p ℓ ) = 1 2 , = \frac{1}{2}\prod_{\ell=1}^{i-1}(1-p_\ell) + \frac{1}{2}\sum_{j=1}^{i-1}p_j\prod_{j<\ell<i}(1-p_\ell) = \frac{1}{2}, = 2 1 ℓ = 1 ∏ i − 1 ( 1 − p ℓ ) + 2 1 j = 1 ∑ i − 1 p j j < ℓ < i ∏ ( 1 − p ℓ ) = 2 1 , where the last equality follows from the fact that ∏ ℓ = 1 i − 1 ( 1 − p ℓ ) \prod_{\ell=1}^{i-1}(1-p_\ell) ∏ ℓ = 1 i − 1 ( 1 − p ℓ ) is the probability that none of the first i − 1 i-1 i − 1 elements are active, and p j ∏ j < ℓ < i ( 1 − p ℓ ) p_j\prod_{j<\ell<i}(1-p_\ell) p j ∏ j < ℓ < i ( 1 − p ℓ ) is the probability that the j j j th element is the last active element among the first i − 1 i-1 i − 1 , which are mutually exclusive and exhaustive events. □ \square □
By Lemma 3.1 if, using only the samples, we can construct a threshold T ∈ { 0 , 1 , … , n } T \in\{0,1,\ldots,n\} T ∈ { 0 , 1 , … , n } such that
Pr [ T = 0 ] = 1 2 , and Pr [ T = i ] = p i 2 for every i ∈ [ n ] , \Pr[T=0]=\frac{1}{2}, \qquad\text{and} \qquad\Pr[T=i]=\frac{p_i}{2} \qquad\text{for every } i \in[n], Pr [ T = 0 ] = 2 1 , and Pr [ T = i ] = 2 p i for every i ∈ [ n ] ,
the result follows. Next, we show how to construct such a threshold by reducing it in turn to the design of a single-sample offline CRS with certain guarantees, with the first set of samples playing the role of online arrivals and the second set of samples serving as samples. In more detail, we choose T T T by applying a modified version of the ( 1 − 1 / e ) (1-1/e) ( 1 − 1/ e ) -balanced (offline) CRS of Feige and Vondrák [17 Section 1.2] to { i ∣ Y i ( 1 ) = 1 } \left\{i \mid Y_i^{(1)}=1\right\} { i ∣ Y i ( 1 ) = 1 } , which we also implement using only a single sample per element—in this case the Y i ( 2 ) Y_i^{(2)} Y i ( 2 ) 's. Our final OCRS simply accepts the first online-active element strictly after T T T .
Theorem 3.3. For every n ∈ N n \in\mathbb{N} n ∈ N and (unknown) probability vector p ∈ [ 0 , 1 ] n p \in[0,1]^n p ∈ [ 0 , 1 ] n with ∑ i = 1 n p i = 1 \sum_{i=1}^{n}p_i=1 ∑ i = 1 n p i = 1 , the threshold T T T in Algorithm 2 satisfies
Pr [ T = 0 ] = 1 2 , and Pr [ T = i ] = p i 2 for every i ∈ [ n ] . \Pr[T=0]=\frac{1}{2}, \qquad\text{and} \qquad\Pr[T=i]=\frac{p_i}{2} \qquad\text{for every } i \in[n]. Pr [ T = 0 ] = 2 1 , and Pr [ T = i ] = 2 p i for every i ∈ [ n ] .
Below, we analyze Algorithm 2 using the Feige and Vondrák (offline) CRS [17 Section 1.2] as a black-box and describe the main ideas behind the proof of Theorem 3.3. The formal proof of the theorem is self-contained and can be found in Appendix § 7 .§ 4 .
Algorithm 2 Threshold T T T from a single-sample (offline) CRS on S S S .
Input: { Y 1 ( 1 ) , … , Y n ( 1 ) } , { Y 1 ( 2 ) , … , Y n ( 2 ) } \left\{Y_1^{(1)},\ldots,Y_n^{(1)}\right\},\left\{Y_1^{(2)},\ldots,Y_n^{(2)}\right\} { Y 1 ( 1 ) , … , Y n ( 1 ) } , { Y 1 ( 2 ) , … , Y n ( 2 ) } Output: T T T
S ← { i ∈ [ n ] ∣ Y i ( 1 ) = 1 } S \leftarrow\left\{i \in[n]\mid Y_i^{(1)}=1\right\} S ← { i ∈ [ n ] ∣ Y i ( 1 ) = 1 }
if S = ∅ S=\varnothing S = ∅ then
Set T ← 0 T \leftarrow0 T ← 0
else if S = { j } S=\{j\} S = { j } for some j j j then
if Y j ( 2 ) = 1 Y_j^{(2)}=1 Y j ( 2 ) = 1 then
With probability 1 2 \frac{1}{2} 2 1 , set T ← 0 T\leftarrow0 T ← 0 , otherwise set T ← j T\leftarrow j T ← j
else
Set T ← j T\leftarrow j T ← j
else
Q ← Ber ( 1 2 ) Q\leftarrow\operatorname{Ber}\left(\frac{1}{2}\right) Q ← Ber ( 2 1 )
if Q = 1 Q=1 Q = 1 then
Set T ← 0 T\leftarrow0 T ← 0
else
Let J J J be a uniformly random element of S S S
if Y J ( 2 ) = 1 Y_J^{(2)}=1 Y J ( 2 ) = 1 then
Set T ← J ′ T\leftarrow J' T ← J ′ where J ′ J' J ′ is chosen uniformly at random from S − J S-J S − J
else
T ← J T\leftarrow J T ← J
For i ∈ [ n ] i\in[n] i ∈ [ n ] and S ⊆ [ n ] S\subseteq[n] S ⊆ [ n ] , let
r i ( S ) = { 0 , ∀ i ∉ S , 1 , if S = { i } , 1 ∣ S ∣ ∑ j ∉ S p j + 1 ∣ S ∣ − 1 ∑ j ∈ S − i p j , ∀ i ∈ S , if ∣ S ∣ ≥ 2. r_i(S)=
\begin{cases}
0, & \forall i\notin S,\\
1, & \text{if }S=\{i\},\\
\frac{1}{|S|}\sum_{j\notin S}p_j+\frac{1}{|S|-1}\sum_{j\in S-i}p_j, & \forall i\in S,\text{ if }|S|\ge2.
\end{cases} r i ( S ) = ⎩ ⎨ ⎧ 0 , 1 , ∣ S ∣ 1 ∑ j ∈ / S p j + ∣ S ∣ − 1 1 ∑ j ∈ S − i p j , ∀ i ∈ / S , if S = { i } , ∀ i ∈ S , if ∣ S ∣ ≥ 2.
The Feige–Vondrák CRS [17 Section 1.2] , applied to the Y j ( 1 ) Y_j^{(1)} Y j ( 1 ) 's, accepts an element j ∈ [ n ] j\in[n] j ∈ [ n ] with probability r j ( S ) r_j(S) r j ( S ) when { ℓ ∣ Y ℓ ( 1 ) = 1 } = S \left\{\ell\mid Y_\ell^{(1)}=1\right\}=S { ℓ ∣ Y ℓ ( 1 ) = 1 } = S . We show that, for sets S S S such that i ∈ S i\in S i ∈ S and ∣ S ∣ ≥ 2 |S|\ge2 ∣ S ∣ ≥ 2 , we have
Pr [ J = i ∧ Y i ( 2 ) = 0 ∣ S = S ] + Pr [ J ≠ i ∧ Y J ( 2 ) = 1 ∧ J ′ = i ∣ S = S ] = r i ( S ) , \Pr\left[J=i\land Y_i^{(2)}=0\mid S=S\right]+\Pr\left[J\ne i\land Y_J^{(2)}=1\land J'=i\mid S=S\right]=r_i(S), Pr [ J = i ∧ Y i ( 2 ) = 0 ∣ S = S ] + Pr [ J = i ∧ Y J ( 2 ) = 1 ∧ J ′ = i ∣ S = S ] = r i ( S ) ,
and use this to write
Pr [ T = i ] = ( 1 − p i 2 ) Pr [ S = { i } ] + 1 2 ∑ S ⊆ [ n ] i ∈ S , ∣ S ∣ ≥ 2 Pr [ S = S ] r i ( S ) , \Pr[T=i]=\left(1-\frac{p_i}{2}\right)\Pr[S=\{i\}]+\frac{1}{2}\sum_{\substack{S\subseteq[n]\\i\in S,\ |S|\ge2}}\Pr[S=S]r_i(S), Pr [ T = i ] = ( 1 − 2 p i ) Pr [ S = { i }] + 2 1 S ⊆ [ n ] i ∈ S , ∣ S ∣ ≥ 2 ∑ Pr [ S = S ] r i ( S ) ,
which can be re-arranged as
Pr [ T = i ] = 1 2 E [ r i ( S ) ] + 1 − p i 2 Pr [ S = { i } ] = p i 2 Pr [ S ≠ ∅ ] + p i 2 Pr [ S = ∅ ] = p i 2 , \Pr[T=i]=\frac{1}{2}\mathbb{E}[r_i(S)]+\frac{1-p_i}{2}\Pr[S=\{i\}]=\frac{p_i}{2}\Pr[S\ne\varnothing]+\frac{p_i}{2}\Pr[S=\varnothing]=\frac{p_i}{2}, Pr [ T = i ] = 2 1 E [ r i ( S )] + 2 1 − p i Pr [ S = { i }] = 2 p i Pr [ S = ∅ ] + 2 p i Pr [ S = ∅ ] = 2 p i ,
where the second equality follows from E [ r i ( S ) ] = p i Pr [ S ≠ ∅ ] \mathbb{E}[r_i(S)]=p_i\Pr[S\ne\varnothing] E [ r i ( S )] = p i Pr [ S = ∅ ] [17 Lemma 1.5] and the fact that
( 1 − p i ) Pr [ S = { i } ] = ( 1 − p i ) p i ∏ j ≠ i ( 1 − p j ) = p i ∏ j = 1 n ( 1 − p j ) = p i Pr [ S = ∅ ] . (1-p_i)\Pr[S=\{i\}]=(1-p_i)p_i\prod_{j\ne i}(1-p_j)=p_i\prod_{j=1}^{n}(1-p_j)=p_i\Pr[S=\varnothing]. ( 1 − p i ) Pr [ S = { i }] = ( 1 − p i ) p i j = i ∏ ( 1 − p j ) = p i j = 1 ∏ n ( 1 − p j ) = p i Pr [ S = ∅ ] .
Finally, since T ∈ { 0 , 1 , … , n } T \in\{0,1,\ldots,n\} T ∈ { 0 , 1 , … , n } and ∑ i = 1 n p i = 1 \sum_{i=1}^{n}p_i=1 ∑ i = 1 n p i = 1 , we have Pr [ T = 0 ] = 1 − ∑ i = 1 n Pr [ T = i ] = 1 − ( 1 / 2 ) ∑ i = 1 n p i = 1 / 2 \Pr[T=0]=1-\sum_{i=1}^{n}\Pr[T=i]=1-(1/2)\sum_{i=1}^{n}p_i=1/2 Pr [ T = 0 ] = 1 − ∑ i = 1 n Pr [ T = i ] = 1 − ( 1/2 ) ∑ i = 1 n p i = 1/2 .
Adversarial Order: Single-Sample 0.48-balanced OCRS
Next, we design a single-sample, 0.48-balanced OCRS for the single-item setting and adversarial arrivals. The idea behind our OCRS is to use the samples to construct a threshold T T T that is close to the ideal one that satisfies Pr [ T = 0 ] = 1 / 2 \Pr[T=0]=1/2 Pr [ T = 0 ] = 1/2 and Pr [ T = i ] = p i / 2 \Pr[T=i]=p_i/2 Pr [ T = i ] = p i /2 .
Algorithm 3 A single-sample 0.48-balanced OCRS.
Input: { Y 1 , … , Y n } \{Y_1,\ldots,Y_n\} { Y 1 , … , Y n }
S ← { i ∈ [ n ] ∣ Y i = 1 } S \leftarrow\{i \in[n] \mid Y_i=1\} S ← { i ∈ [ n ] ∣ Y i = 1 }
if S = ∅ S=\varnothing S = ∅ then
Set T ← 0 T \leftarrow0 T ← 0
else if S = { j } S=\{j\} S = { j } for some j j j then
With probability 1 2 \frac{1}{2} 2 1 , set T ← 0 T \leftarrow0 T ← 0 , otherwise set T ← j T \leftarrow j T ← j
else
Set T ← I T \leftarrow I T ← I , where I I I is chosen uniformly at random from S S S
for elements i = 1 , … , n i=1,\ldots,n i = 1 , … , n in order of arrival do
if i ≤ T i \le T i ≤ T or X i = 0 X_i=0 X i = 0 then
Reject i i i
else
Accept i i i and stop
Theorem 3.4. For every n ∈ N n \in\mathbb{N} n ∈ N , (unknown) probability vector p ∈ [ 0 , 1 ] n p \in[0,1]^n p ∈ [ 0 , 1 ] n with ∑ i = 1 n p i = 1 \sum_{i=1}^{n}p_i=1 ∑ i = 1 n p i = 1 and every element i ∈ [ n ] i \in[n] i ∈ [ n ] with p i > 0 p_i>0 p i > 0 , Algorithm 3 always accepts at most one element and satisfies C i > 0.48 C_i>0.48 C i > 0.48 .
Feasibility is obvious by the algorithm’s description. If, for some i i i we have p i = 1 p_i=1 p i = 1 , Algorithm 3 accepts element i i i with probability 1 / 2 1/2 1/2 , so assume that p i < 1 p_i<1 p i < 1 for all i ∈ [ n ] i \in[n] i ∈ [ n ] .
Let T ∗ T^* T ∗ be the ideal threshold in Lemma 3.1, where Pr [ T ∗ = 0 ] = 1 / 2 \Pr[T^*=0]=1/2 Pr [ T ∗ = 0 ] = 1/2 and Pr [ T ∗ = i ] = p i / 2 \Pr[T^*=i]=p_i/2 Pr [ T ∗ = i ] = p i /2 . For i ∈ [ n ] i \in[n] i ∈ [ n ] , denote the error between the ideal distribution for T T T and our actual distribution by
ε i : = p i 2 − Pr [ T = i ] ≥ 0 , \varepsilon_i := \frac{p_i}{2}-\Pr[T=i]\ge0, ε i := 2 p i − Pr [ T = i ] ≥ 0 ,
where the inequality follows from the fact that, conditional on Y i = 1 Y_i=1 Y i = 1 , Algorithm 3 chooses T = i T=i T = i with probability at most 1 / 2 1/2 1/2 . Thus, the distribution of T T T is obtained from that of T ∗ T^* T ∗ by moving ε i \varepsilon_i ε i mass from each i i i to $0.
For a deterministic threshold t t t , let g ℓ ( t ) g_\ell(t) g ℓ ( t ) be the probability of A ℓ A_\ell A ℓ conditional on X ℓ = 1 X_\ell=1 X ℓ = 1 , when the algorithm uses threshold t t t . Under this conditioning, if t < ℓ t<\ell t < ℓ , the event A ℓ A_\ell A ℓ occurs exactly when every element strictly between t t t and ℓ \ell ℓ is online-inactive. If t ≥ ℓ t\ge\ell t ≥ ℓ , the algorithm rejects ℓ \ell ℓ . Therefore,
g ℓ ( t ) = { ∏ t < j < ℓ ( 1 − p j ) , 0 ≤ t < ℓ , 0 , ℓ ≤ t ≤ n . g_\ell(t)=
\begin{cases}
\prod_{t<j<\ell}(1-p_j), & 0\le t<\ell,\\
0, & \ell\le t\le n.
\end{cases} g ℓ ( t ) = { ∏ t < j < ℓ ( 1 − p j ) , 0 , 0 ≤ t < ℓ , ℓ ≤ t ≤ n .
It follows that
C ℓ = E [ g ℓ ( T ) ] , and E [ g ℓ ( T ∗ ) ] = 1 2 , C_\ell=\mathbb{E}[g_\ell(T)], \qquad\text{and} \qquad\mathbb{E}[g_\ell(T^*)]=\frac{1}{2}, C ℓ = E [ g ℓ ( T )] , and E [ g ℓ ( T ∗ )] = 2 1 ,
where the second equality follows from Lemma 3.1.
The proof of Theorem 3.4 uses the following two lemmas, which we prove in Appendices A.2 and A.3, respectively. First, we show that the distribution of T T T is not too far from that of T ∗ T^* T ∗ .
Lemma 3.2. For every element i i i ,
ε i ≤ 1 − 1 / e 12 p i ( 1 − p i ) . \varepsilon_i \le\frac{1-1/e}{12}p_i(1-p_i). ε i ≤ 12 1 − 1/ e p i ( 1 − p i ) .
Next, we provide a way to move from the error estimate on the threshold to error estimates on C ℓ C_\ell C ℓ , for a fixed element ℓ \ell ℓ , via a bound on the difference between different values of g ℓ g_\ell g ℓ .
Lemma 3.3. For every p ∈ [ 0 , 1 ] n p \in[0,1]^n p ∈ [ 0 , 1 ] n and ℓ ∈ [ n ] \ell\in[n] ℓ ∈ [ n ] with ∑ i = 1 ℓ p i ≤ 1 \sum_{i=1}^{\ell}p_i \le1 ∑ i = 1 ℓ p i ≤ 1 , we have
∑ i = 1 ℓ − 1 p i ( 1 − p i ) ( g ℓ ( i ) − g ℓ ( 0 ) ) ≤ 3 8 . \sum_{i=1}^{\ell-1}p_i(1-p_i)(g_\ell(i)-g_\ell(0)) \le\frac{3}{8}. i = 1 ∑ ℓ − 1 p i ( 1 − p i ) ( g ℓ ( i ) − g ℓ ( 0 )) ≤ 8 3 .
We are ready to prove the theorem.
Proof of Theorem 3.4 . Fix an element ℓ \ell ℓ with p ℓ > 0 p_\ell> 0 p ℓ > 0 . Observe that, for 1 ≤ i < ℓ 1 \le i < \ell 1 ≤ i < ℓ , we have
g ℓ ( 0 ) = ( ∏ j = 1 i ( 1 − p j ) ) g ℓ ( i ) ≤ g ℓ ( i ) . g_\ell(0)=\left(\prod_{j=1}^{i}(1-p_j)\right)g_\ell(i)\le g_\ell(i). g ℓ ( 0 ) = ( j = 1 ∏ i ( 1 − p j ) ) g ℓ ( i ) ≤ g ℓ ( i ) .
Thus, changing threshold i < ℓ i<\ell i < ℓ to 0 decreases the conditional acceptance probability from g ℓ ( i ) g_\ell(i) g ℓ ( i ) to g ℓ ( 0 ) g_\ell(0) g ℓ ( 0 ) , since the additional earlier elements can prevent ℓ \ell ℓ from being accepted. If i ≥ ℓ i\ge\ell i ≥ ℓ , the same change makes ℓ \ell ℓ eligible and increases its conditional acceptance probability from 0 to g ℓ ( 0 ) g_\ell(0) g ℓ ( 0 ) . Therefore, moving probability ε i \varepsilon_i ε i mass from threshold i i i to 0 changes the expectation of g ℓ g_\ell g ℓ by ε i ( g ℓ ( 0 ) − g ℓ ( i ) ) \varepsilon_i(g_\ell(0)-g_\ell(i)) ε i ( g ℓ ( 0 ) − g ℓ ( i )) . Summing over all i i i yields
1 2 − C ℓ = E [ g ℓ ( T ∗ ) ] − E [ g ℓ ( T ) ] = ∑ i = 1 n ε i ( g ℓ ( i ) − g ℓ ( 0 ) ) = ∑ i = 1 ℓ − 1 ε i ( g ℓ ( i ) − g ℓ ( 0 ) ) − g ℓ ( 0 ) ∑ i = ℓ n ε i ≤ ∑ i = 1 ℓ − 1 ε i ( g ℓ ( i ) − g ℓ ( 0 ) ) ≤ 1 − 1 / e 12 ∑ i = 1 ℓ − 1 p i ( 1 − p i ) ( g ℓ ( i ) − g ℓ ( 0 ) ) ≤ 1 − 1 / e 32 , \begin{aligned}
\frac{1}{2}-C_\ell=\mathbb{E}[g_\ell(T^*)]-\mathbb{E}[g_\ell(T)]=\sum_{i=1}^{n}\varepsilon_i(g_\ell(i)-g_\ell(0)) \\
&=\sum_{i=1}^{\ell-1}\varepsilon_i(g_\ell(i)-g_\ell(0))-g_\ell(0)\sum_{i=\ell}^{n}\varepsilon_i \\
&\le\sum_{i=1}^{\ell-1}\varepsilon_i(g_\ell(i)-g_\ell(0))\le\frac{1-1/e}{12}\sum_{i=1}^{\ell-1}p_i(1-p_i)(g_\ell(i)-g_\ell(0)) \\
&\le\frac{1-1/e}{32},
\end{aligned} 2 1 − C ℓ = E [ g ℓ ( T ∗ )] − E [ g ℓ ( T )] = i = 1 ∑ n ε i ( g ℓ ( i ) − g ℓ ( 0 )) = i = 1 ∑ ℓ − 1 ε i ( g ℓ ( i ) − g ℓ ( 0 )) − g ℓ ( 0 ) i = ℓ ∑ n ε i ≤ i = 1 ∑ ℓ − 1 ε i ( g ℓ ( i ) − g ℓ ( 0 )) ≤ 12 1 − 1/ e i = 1 ∑ ℓ − 1 p i ( 1 − p i ) ( g ℓ ( i ) − g ℓ ( 0 )) ≤ 32 1 − 1/ e ,
where the second inequality follows from Lemma 3.2 and the third from Lemma 3.3. Thus,
C ℓ ≥ 1 2 − 1 − 1 / e 32 > 0.48. C_\ell\ge\frac{1}{2}-\frac{1-1/e}{32}>0.48. C ℓ ≥ 2 1 − 32 1 − 1/ e > 0.48.
General k k k
We continue with the cardinality case for general k ∈ N k\in\mathbb{N} k ∈ N . Here we show that, perhaps surprisingly, for uniformly random arrivals a single sample suffices to obtain an optimal ( 1 − e − k k k / k ! ) (1-e^{-k}k^k/k!) ( 1 − e − k k k / k !) -balanced ROCRS (and thus also offline CRS) for every k k k , generalizing our result from § 3.1 . We then move on to adversarial arrivals. Even though a single sample does not suffice for an optimal OCRS for k = 1 k=1 k = 1 , we show that, for general k k k , a single sample does suffice to obtain an asymptotically optimal 1 − O ( 1 / k ) 1-O(1/\sqrt{k}) 1 − O ( 1/ k ) -balanced OCRS.
Random Order
We start with the random order case. The ROCRS we design, shown in Algorithm 4, is surprisingly simple: greedily accept the first k − 1 k-1 k − 1 online-active elements and when observing the k k k -th online-active element i i i , if Y i = 0 Y_i=0 Y i = 0 , accept it. Else, if Y i = 1 Y_i=1 Y i = 1 , accept i i i with probability ( k + 1 ) / ( 2 k + 1 ) (k+1)/(2k+1) ( k + 1 ) / ( 2 k + 1 ) , else reject it and greedily accept the next online-active element. We call this the Almost-Greedy ROCRS. Notice that it satisfies an interesting property: it only ever looks at a single sample Y i Y_i Y i , but it cannot a priori know which Y i Y_i Y i is the useful one so it needs a sample per element. We prove the following.
Algorithm 4 The Almost-Greedy algorithm.
Input: $\{Y_1,\ldots,Y_n\}$
Output: $\mathcal{A}$
1: $\mathcal{A}\leftarrow\emptyset$, flag $\leftarrow\textsc{False}$
2: for elements $i=1,\ldots,n$ in order of arrival do
3: if $X_i=1$ and $|\mathcal{A}|<k-1$ then
4: Accept $i$
5: $\mathcal{A}\leftarrow\mathcal{A}+i$
6: else if $X_i=1$, $|\mathcal{A}|=k-1$ and flag $=\textsc{False}$ then
7: if $Y_i=0$ then
8: Accept $i$
9: $\mathcal{A}\leftarrow\mathcal{A}+i$
10: else
11: flag $\leftarrow\textsc{True}$
12: $Q\leftarrow\operatorname{Ber}\left(\frac{k+1}{2k+1}\right)$
13: if $Q=1$ then
14: Accept $i$
15: $\mathcal{A}\leftarrow\mathcal{A}+i$
16: else
17: Reject $i$
18: else if $X_i=1$, $|\mathcal{A}|=k-1$ and flag $=\textsc{True}$ then
19: Accept $i$
20: $\mathcal{A}\leftarrow\mathcal{A}+i$
21: else
22: Reject $i$
Theorem 4.1. For every n , k ∈ N n,k\in\mathbb{N} n , k ∈ N , (unknown) probability vector p ∈ [ 0 , 1 ] n p\in[0,1]^n p ∈ [ 0 , 1 ] n with ∑ i = 1 n p i = k \sum_{i=1}^{n}p_i=k ∑ i = 1 n p i = k and every element i ∈ [ n ] i\in[n] i ∈ [ n ] with p i > 0 p_i>0 p i > 0 , Algorithm 4 always accepts at most k k k elements and satisfies
C i ≥ 1 − e − k k k k ! . C_i \ge1-e^{-k}\frac{k^k}{k!}. C i ≥ 1 − e − k k ! k k .
Proof. Feasibility follows easily from the algorithm’s description. Fix an element i i i with p i > 0 p_i>0 p i > 0 , and let S − i = ∑ j ≠ i X j S_{-i}=\sum_{j\ne i}X_j S − i = ∑ j = i X j be the number of other online-active elements. First we analyze the greedy rule which accepts the first k k k online-active elements, before comparing our algorithm to this rule in order to lower-bound C i C_i C i .
Condition on X i = 1 X_i=1 X i = 1 and on the other online activations { X j } j ≠ i \{X_j\}_{j\ne i} { X j } j = i . The arrival order of the S − i + 1 S_{-i}+1 S − i + 1 online-active elements is uniformly random, so each possible rank of i i i has probability 1 / ( S − i + 1 ) 1/(S_{-i}+1) 1/ ( S − i + 1 ) . The greedy rule accepts i i i exactly when its rank is at most k k k . Thus, its conditional probability of accepting i i i is A R k ( S − i ) \mathrm{AR}_k(S_{-i}) AR k ( S − i ) where, for s ≥ 0 s \ge0 s ≥ 0
A R k ( s ) : = min { 1 , k s + 1 } . \mathrm{AR}_k(s) := \min\left\{1,\frac{k}{s+1}\right\}. AR k ( s ) := min { 1 , s + 1 k } .
Notice that the Almost-Greedy ROCRS differs from this greedy rule only at the k k k -th and ( k + 1 ) (k+1) ( k + 1 ) -st online-active elements. If i i i has rank k k k , we reject it with probability k p i / ( 2 k + 1 ) kp_i/(2k+1) k p i / ( 2 k + 1 ) , since Y i Y_i Y i is independent of the online activations and the arrival order and element i i i is sample-active with probability p i p_i p i . Therefore, when S − i < k − 1 S_{-i} < k-1 S − i < k − 1 , the conditional probability of accepting i i i does not change but, when S − i ≥ k − 1 S_{-i} \ge k-1 S − i ≥ k − 1 , it decreases by k p i / ( ( 2 k + 1 ) ( S − i + 1 ) ) kp_i/((2k+1)(S_{-i}+1)) k p i / (( 2 k + 1 ) ( S − i + 1 )) .
On the other hand, if i i i has rank k + 1 k+1 k + 1 , we accept it exactly when the k k k -th online-active element is rejected. Conditional on i i i having rank k + 1 k+1 k + 1 , each of the other S − i S_{-i} S − i online-active elements is equally likely to have rank k k k . If the element of rank k k k is j j j , it is rejected with probability k p j / ( 2 k + 1 ) kp_j/(2k+1) k p j / ( 2 k + 1 ) and thus, when S − i ≥ k S_{-i} \ge k S − i ≥ k , the conditional probability of accepting i i i increases by
1 S − i + 1 ∑ j ≠ i X j S − i ⋅ k p j 2 k + 1 = k 2 k + 1 ∑ j ≠ i p j X j S − i ( S − i + 1 ) . \frac{1}{S_{-i}+1}\sum_{j\ne i}\frac{X_j}{S_{-i}}\cdot\frac{kp_j}{2k+1}
=\frac{k}{2k+1}\sum_{j\ne i}\frac{p_jX_j}{S_{-i}(S_{-i}+1)}. S − i + 1 1 j = i ∑ S − i X j ⋅ 2 k + 1 k p j = 2 k + 1 k j = i ∑ S − i ( S − i + 1 ) p j X j .
whereas when S − i < k S_{-i} < k S − i < k it does not change since i i i cannot have rank k + 1 k+1 k + 1 . Since the other online activations are independent of X i X_i X i , averaging over their original distributions gives
C i = E [ A R k ( S − i ) ] − k p i 2 k + 1 E [ 1 { S − i ≥ k − 1 } S − i + 1 ] + k 2 k + 1 ∑ j ≠ i p j E [ X j ⋅ 1 { S − i ≥ k } S − i ( S − i + 1 ) ] . (4) \begin{aligned}
C_i={}&\mathbb{E}[\mathrm{AR}_k(S_{-i})]-\frac{kp_i}{2k+1}\mathbb{E}\left[\frac{\mathbf{1}_{\{S_{-i}\ge k-1\}}}{S_{-i}+1}\right]\\
&+\frac{k}{2k+1}\sum_{j\ne i}p_j\mathbb{E}\left[\frac{X_j\cdot\mathbf{1}_{\{S_{-i}\ge k\}}}{S_{-i}(S_{-i}+1)}\right]. \tag*{(4)}
\end{aligned} C i = E [ AR k ( S − i )] − 2 k + 1 k p i E [ S − i + 1 1 { S − i ≥ k − 1 } ] + 2 k + 1 k j = i ∑ p j E [ S − i ( S − i + 1 ) X j ⋅ 1 { S − i ≥ k } ] . (4)
where by convention, the last fraction is taken to be zero when S − i = 0 S_{-i}=0 S − i = 0 .
Next, we rewrite the two correction terms in (4) in terms of S − i S_{-i} S − i . For the last term, observe that
A R k ( S − i − X j ) − A R k ( S − i ) = k X j ⋅ 1 { S − i ≥ k } S − i ( S − i + 1 ) . \mathrm{AR}_k(S_{-i}-X_j)-\mathrm{AR}_k(S_{-i})=\frac{kX_j\cdot\mathbf{1}_{\{S_{-i}\ge k\}}}{S_{-i}(S_{-i}+1)}. AR k ( S − i − X j ) − AR k ( S − i ) = S − i ( S − i + 1 ) k X j ⋅ 1 { S − i ≥ k } .
Indeed, both sides vanish if X j = 0 X_j=0 X j = 0 or S − i < k S_{-i}<k S − i < k , while for X j = 1 X_j=1 X j = 1 and S − i ≥ k S_{-i}\ge k S − i ≥ k the left side is
k S − i − k S − i + 1 = k S − i ( S − i + 1 ) . \frac{k}{S_{-i}}-\frac{k}{S_{-i}+1}=\frac{k}{S_{-i}(S_{-i}+1)}. S − i k − S − i + 1 k = S − i ( S − i + 1 ) k .
Furthermore, X j X_j X j is independent of S − i − X j S_{-i}-X_j S − i − X j , and hence
∑ j ≠ i p j E [ A R k ( S − i − X j ) ] = ∑ j ≠ i E [ X j A R k ( S − i − X j ) ] = E [ min { k , S − i } ] , \sum_{j\ne i}p_j\mathbb{E}[\mathrm{AR}_k(S_{-i}-X_j)]
=\sum_{j\ne i}\mathbb{E}[X_j\mathrm{AR}_k(S_{-i}-X_j)]
=\mathbb{E}[\min\{k,S_{-i}\}], j = i ∑ p j E [ AR k ( S − i − X j )] = j = i ∑ E [ X j AR k ( S − i − X j )] = E [ min { k , S − i }] ,
where the last equality follows because, whenever S − i > 0 S_{-i}>0 S − i > 0 , each of the S − i S_{-i} S − i non-zero summands for which X j = 1 X_j=1 X j = 1 equals min { 1 , k / S − i } \min\{1,k/S_{-i}\} min { 1 , k / S − i } . Combining these identities and using ∑ j ≠ i p j = k − p i \sum_{j\ne i}p_j=k-p_i ∑ j = i p j = k − p i , we obtain
k ∑ j ≠ i p j E [ X j ⋅ 1 { S − i ≥ k } S − i ( S − i + 1 ) ] = ∑ j ≠ i p j E [ A R k ( S − i − X j ) − A R k ( S − i ) ] = E [ min { k , S − i } ] − ( k − p i ) E [ A R k ( S − i ) ] . \begin{aligned}
k\sum_{j\ne i}p_j\mathbb{E}\left[\frac{X_j\cdot\mathbf{1}_{\{S_{-i}\ge k\}}}{S_{-i}(S_{-i}+1)}\right]
=\sum_{j\ne i}p_j\mathbb{E}[\mathrm{AR}_k(S_{-i}-X_j)-\mathrm{AR}_k(S_{-i})] \\
&=\mathbb{E}[\min\{k,S_{-i}\}]-(k-p_i)\mathbb{E}[\mathrm{AR}_k(S_{-i})].
\end{aligned} k j = i ∑ p j E [ S − i ( S − i + 1 ) X j ⋅ 1 { S − i ≥ k } ] = j = i ∑ p j E [ AR k ( S − i − X j ) − AR k ( S − i )] = E [ min { k , S − i }] − ( k − p i ) E [ AR k ( S − i )] .
For the second term in (4) , notice that
E [ A R k ( S − i ) ] = E [ 1 ⋅ 1 { S − i ≤ k − 2 } ] + k E [ 1 { S − i ≥ k − 1 } S − i + 1 ] \mathbb{E}[\mathrm{AR}_k(S_{-i})] = \mathbb{E}[1\cdot\mathbf{1}_{\{S_{-i}\le k-2\}}] + k\mathbb{E}\left[\frac{\mathbf{1}_{\{S_{-i}\ge k-1\}}}{S_{-i}+1}\right] E [ AR k ( S − i )] = E [ 1 ⋅ 1 { S − i ≤ k − 2 } ] + k E [ S − i + 1 1 { S − i ≥ k − 1 } ]
k E [ 1 { S − i ≥ k − 1 } S − i + 1 ] = E [ A R k ( S − i ) ] − Pr [ S − i ≤ k − 2 ] . k\mathbb{E}\left[\frac{\mathbf{1}_{\{S_{-i}\ge k-1\}}}{S_{-i}+1}\right] = \mathbb{E}[\mathrm{AR}_k(S_{-i})] - \Pr[S_{-i}\le k-2]. k E [ S − i + 1 1 { S − i ≥ k − 1 } ] = E [ AR k ( S − i )] − Pr [ S − i ≤ k − 2 ] .
Substituting the two identities into (4) , we obtain
C i = E [ A R k ( S − i ) ] − p i 2 k + 1 ( E [ A R k ( S − i ) ] − Pr [ S − i ≤ k − 2 ] ) + 1 2 k + 1 ( E [ min { k , S − i } ] − ( k − p i ) E [ A R k ( S − i ) ] ) = k + 1 2 k + 1 E [ A R k ( S − i ) ] + 1 2 k + 1 E [ min { k , S − i } ] + p i 2 k + 1 Pr [ S − i ≤ k − 2 ] . \begin{aligned}
C_i &= \mathbb{E}[\mathrm{AR}_k(S_{-i})] - \frac{p_i}{2k+1}\left(\mathbb{E}[\mathrm{AR}_k(S_{-i})]-\Pr[S_{-i}\le k-2]\right) \\
&\quad+ \frac{1}{2k+1}\left(\mathbb{E}[\min\{k,S_{-i}\}]-(k-p_i)\mathbb{E}[\mathrm{AR}_k(S_{-i})]\right) \\
&= \frac{k+1}{2k+1}\mathbb{E}[\mathrm{AR}_k(S_{-i})] + \frac{1}{2k+1}\mathbb{E}[\min\{k,S_{-i}\}] + \frac{p_i}{2k+1}\Pr[S_{-i}\le k-2].
\end{aligned} C i = E [ AR k ( S − i )] − 2 k + 1 p i ( E [ AR k ( S − i )] − Pr [ S − i ≤ k − 2 ] ) + 2 k + 1 1 ( E [ min { k , S − i }] − ( k − p i ) E [ AR k ( S − i )] ) = 2 k + 1 k + 1 E [ AR k ( S − i )] + 2 k + 1 1 E [ min { k , S − i }] + 2 k + 1 p i Pr [ S − i ≤ k − 2 ] .
Next, let
h ( s ) : = ( k + 1 ) A R k ( s ) + min { k , s } 2 k + 1 . h(s) := \frac{(k+1)\mathrm{AR}_k(s)+\min\{k,s\}}{2k+1}. h ( s ) := 2 k + 1 ( k + 1 ) AR k ( s ) + min { k , s } .
We can thus write the conditional acceptance probability as
C i = E [ h ( S − i ) ] + p i 2 k + 1 Pr [ S − i ≤ k − 2 ] . (5) C_i=\mathbb{E}[h(S_{-i})]+\frac{p_i}{2k+1}\Pr[S_{-i}\le k-2]. \tag*{(5)} C i = E [ h ( S − i )] + 2 k + 1 p i Pr [ S − i ≤ k − 2 ] . (5)
To see why this rewriting is useful, consider Z ∼ Poi ( k ) Z\sim\operatorname{Poi}(k) Z ∼ Poi ( k ) . We will show that E [ h ( Z ) ] = 1 − e − k k k / k ! \mathbb{E}[h(Z)]=1-e^{-k}k^k/k! E [ h ( Z )] = 1 − e − k k k / k ! and that C i ≥ E [ h ( Z ) ] C_i\ge\mathbb{E}[h(Z)] C i ≥ E [ h ( Z )] . First, using the fact that
Pr [ Z = s + 1 ] = e − k k s + 1 ( s + 1 ) ! = k s + 1 e − k k s s ! = k s + 1 Pr [ Z = s ] , \Pr[Z=s+1]=e^{-k}\frac{k^{s+1}}{(s+1)!}=\frac{k}{s+1}e^{-k}\frac{k^s}{s!}=\frac{k}{s+1}\Pr[Z=s], Pr [ Z = s + 1 ] = e − k ( s + 1 )! k s + 1 = s + 1 k e − k s ! k s = s + 1 k Pr [ Z = s ] ,
we have
E [ A R k ( Z ) ] = Pr [ Z ≤ k − 1 ] + ∑ s = k ∞ k s + 1 Pr [ Z = s ] = Pr [ Z ≤ k − 1 ] + ∑ s = k ∞ Pr [ Z = s + 1 ] = 1 − Pr [ Z = k ] , \begin{aligned}
\mathbb{E}[\mathrm{AR}_k(Z)] &= \Pr[Z\le k-1]+\sum_{s=k}^{\infty}\frac{k}{s+1}\Pr[Z=s] \\
&= \Pr[Z\le k-1]+\sum_{s=k}^{\infty}\Pr[Z=s+1] \\
&= 1-\Pr[Z=k],
\end{aligned} E [ AR k ( Z )] = Pr [ Z ≤ k − 1 ] + s = k ∑ ∞ s + 1 k Pr [ Z = s ] = Pr [ Z ≤ k − 1 ] + s = k ∑ ∞ Pr [ Z = s + 1 ] = 1 − Pr [ Z = k ] ,
and
1 k E [ min { k , Z } ] = ∑ s = 1 k s k Pr [ Z = s ] + Pr [ Z ≥ k + 1 ] = Pr [ Z ≤ k − 1 ] + Pr [ Z ≥ k + 1 ] = 1 − Pr [ Z = k ] . (6) \begin{aligned}
\frac{1}{k}\mathbb{E}[\min\{k,Z\}] &= \sum_{s=1}^{k}\frac{s}{k}\Pr[Z=s]+\Pr[Z\ge k+1] \\
&= \Pr[Z\le k-1]+\Pr[Z\ge k+1] \\
&= 1-\Pr[Z=k]. \tag*{(6)}
\end{aligned} k 1 E [ min { k , Z }] = s = 1 ∑ k k s Pr [ Z = s ] + Pr [ Z ≥ k + 1 ] = Pr [ Z ≤ k − 1 ] + Pr [ Z ≥ k + 1 ] = 1 − Pr [ Z = k ] . (6)
Next, notice that
h ( s ) = ( k + 1 ) A R k ( s ) + min { k , s } 2 k + 1 = k + 1 2 k + 1 ⋅ A R k ( s ) + k 2 k + 1 ⋅ min { k , s } k , h(s)=\frac{(k+1)\mathrm{AR}_k(s)+\min\{k,s\}}{2k+1}
=\frac{k+1}{2k+1}\cdot\mathrm{AR}_k(s)+\frac{k}{2k+1}\cdot\frac{\min\{k,s\}}{k}, h ( s ) = 2 k + 1 ( k + 1 ) AR k ( s ) + min { k , s } = 2 k + 1 k + 1 ⋅ AR k ( s ) + 2 k + 1 k ⋅ k min { k , s } ,
and thus h ( s ) h(s) h ( s ) is a convex combination of A R k ( s ) \mathrm{AR}_k(s) AR k ( s ) and min { k , s } / k \min\{k,s\}/k min { k , s } / k . Since both these values are equal on expectation, it follows that
E [ h ( Z ) ] = 1 − Pr [ Z = k ] = 1 − e − k k k k ! . \mathbb{E}[h(Z)]=1-\Pr[Z=k]=1-e^{-k}\frac{k^k}{k!}. E [ h ( Z )] = 1 − Pr [ Z = k ] = 1 − e − k k ! k k .
Thus, it suffices to show that the expression in (5) is at least E [ h ( Z ) ] \mathbb{E}[h(Z)] E [ h ( Z )] .
To prove this, the idea is to use the additional term in (5) to include i i i in the count. Let S = S − i + X i = ∑ j = 1 n X j S=S_{-i}+X_i=\sum_{j=1}^{n}X_j S = S − i + X i = ∑ j = 1 n X j be the unconditioned number of online-active elements, so that E [ S ] = k \mathbb{E}[S]=k E [ S ] = k . We will show that C i ≥ E [ h ( S ) ] C_i\geq\mathbb{E}[h(S)] C i ≥ E [ h ( S )] , reducing the problem to comparing E [ h ( S ) ] \mathbb{E}[h(S)] E [ h ( S )] and E [ h ( Z ) ] \mathbb{E}[h(Z)] E [ h ( Z )] , i.e. a sum of independent Bernoulli random variables with a Poisson random variable of the same mean.
Observe that, for every integer s ≥ 0 s\geq0 s ≥ 0 ,
h ( s + 1 ) − h ( s ) = { 1 2 k + 1 , 0 ≤ s ≤ k − 2 , 0 , s = k − 1 , − k ( k + 1 ) ( 2 k + 1 ) ( s + 1 ) ( s + 2 ) , s ≥ k , (7) h(s+1)-h(s)=
\begin{cases}
\frac{1}{2k+1}, & 0\leq s\leq k-2,\\
0, & s=k-1,\\
-\frac{k(k+1)}{(2k+1)(s+1)(s+2)}, & s\geq k,
\end{cases} \tag*{(7)} h ( s + 1 ) − h ( s ) = ⎩ ⎨ ⎧ 2 k + 1 1 , 0 , − ( 2 k + 1 ) ( s + 1 ) ( s + 2 ) k ( k + 1 ) , 0 ≤ s ≤ k − 2 , s = k − 1 , s ≥ k , (7)
and thus
E [ h ( S − i + 1 ) − h ( S − i ) ] ≤ 1 2 k + 1 Pr [ S − i ≤ k − 2 ] . \mathbb{E}[h(S_{-i}+1)-h(S_{-i})]\leq\frac{1}{2k+1}\Pr[S_{-i}\leq k-2]. E [ h ( S − i + 1 ) − h ( S − i )] ≤ 2 k + 1 1 Pr [ S − i ≤ k − 2 ] .
Also, since X i ∼ Ber ( p i ) X_i\sim\operatorname{Ber}(p_i) X i ∼ Ber ( p i ) is independent of S − i S_{-i} S − i , this implies
E [ h ( S ) ] = E [ h ( S − i ) ] + p i E [ h ( S − i + 1 ) − h ( S − i ) ] ≤ E [ h ( S − i ) ] + p i 2 k + 1 Pr [ S − i ≤ k − 2 ] = C i , \begin{aligned}
\mathbb{E}[h(S)]=\mathbb{E}[h(S_{-i})]+p_i\mathbb{E}[h(S_{-i}+1)-h(S_{-i})] \\
&\leq\mathbb{E}[h(S_{-i})]+\frac{p_i}{2k+1}\Pr[S_{-i}\leq k-2]=C_i,
\end{aligned} E [ h ( S )] = E [ h ( S − i )] + p i E [ h ( S − i + 1 ) − h ( S − i )] ≤ E [ h ( S − i )] + 2 k + 1 p i Pr [ S − i ≤ k − 2 ] = C i ,
where the last equality follows from (5).
It remains to show that E [ h ( S ) ] ≥ E [ h ( Z ) ] \mathbb{E}[h(S)]\geq\mathbb{E}[h(Z)] E [ h ( S )] ≥ E [ h ( Z )] . Notice from (7) that h h h increases up to k − 1 k-1 k − 1 , has the same value at k − 1 k-1 k − 1 and k k k , and decreases thereafter. Therefore, for every integer N ≥ n N\geq n N ≥ n and every t ∈ [ 0 , 1 ] t\in[0,1] t ∈ [ 0 , 1 ] , the integers s ∈ { 0 , … , N } s\in\{0,\ldots,N\} s ∈ { 0 , … , N } satisfying h ( s ) ≥ t h(s)\geq t h ( s ) ≥ t form either an empty set or an interval containing k k k .
By Hoeffding’s theorem [22 Theorem 5] , among sums of N N N independent Bernoulli random variables with mean k k k , equal probabilities minimize the probability of each integer interval containing k k k . Append N − n N-n N − n zero-probability summands to S S S , which changes neither its distribution nor its mean, and let B N ∼ Bin ( N , k / N ) B_N\sim\operatorname{Bin}(N,k/N) B N ∼ Bin ( N , k / N ) . Applying Hoeffding’s theorem to the intervals above gives, for every t ∈ [ 0 , 1 ] t\in[0,1] t ∈ [ 0 , 1 ] ,
Pr [ h ( S ) ≥ t ] ≥ Pr [ h ( B N ) ≥ t ] . \Pr[h(S)\geq t]\geq\Pr[h(B_N)\geq t]. Pr [ h ( S ) ≥ t ] ≥ Pr [ h ( B N ) ≥ t ] .
Since 0 ≤ h ( s ) ≤ 1 0\leq h(s)\leq1 0 ≤ h ( s ) ≤ 1 , we have h ( s ) = ∫ 0 1 1 { h ( s ) ≥ t } d t h(s)=\int_0^1\mathbf{1}_{\{h(s)\geq t\}}\,dt h ( s ) = ∫ 0 1 1 { h ( s ) ≥ t } d t . Integrating the last inequality over t t t and using linearity of expectation, we obtain
E [ h ( S ) ] = ∫ 0 1 Pr [ h ( S ) ≥ t ] d t ≥ ∫ 0 1 Pr [ h ( B N ) ≥ t ] d t = E [ h ( B N ) ] . \mathbb{E}[h(S)]=\int_0^1\Pr[h(S)\geq t]\,dt\geq\int_0^1\Pr[h(B_N)\geq t]\,dt=\mathbb{E}[h(B_N)]. E [ h ( S )] = ∫ 0 1 Pr [ h ( S ) ≥ t ] d t ≥ ∫ 0 1 Pr [ h ( B N ) ≥ t ] d t = E [ h ( B N )] .
Finally, B N B_N B N converges in distribution to Z Z Z as N → ∞ N\to\infty N → ∞ . Since 0 ≤ h ≤ 1 0\leq h\leq1 0 ≤ h ≤ 1 , taking the limit yields E [ h ( S ) ] ≥ E [ h ( Z ) ] \mathbb{E}[h(S)]\geq\mathbb{E}[h(Z)] E [ h ( S )] ≥ E [ h ( Z )] . Therefore,
C i ≥ E [ h ( S ) ] ≥ E [ h ( Z ) ] = 1 − e − k k k k ! . C_i\geq\mathbb{E}[h(S)]\geq\mathbb{E}[h(Z)]=1-e^{-k}\frac{k^k}{k!}. C i ≥ E [ h ( S )] ≥ E [ h ( Z )] = 1 − e − k k ! k k .
Adversarial Order
We continue with the adversarial order case. Without loss of generality, let 1 , … , n 1,\ldots,n 1 , … , n be the arrival order and p p p be a probability vector such that ∑ i = 1 n p i ≤ k \sum_{i=1}^{n}p_i\leq k ∑ i = 1 n p i ≤ k . The idea behind our OCRS, shown in Algorithm 5, is the following: for each online-active element, we call it a candidate if it passes
Algorithm 5 The Count Test algorithm.
Input: r r r , { Y 1 , … , Y n } \{Y_1,\ldots,Y_n\} { Y 1 , … , Y n }
Output: A \mathcal{A} A
A ← ∅ \mathcal{A}\leftarrow\varnothing A ← ∅ , C ← 0 C\leftarrow0 C ← 0 , A ← 0 A\leftarrow0 A ← 0
Draw R R R uniformly from { 0 , … , r } \{0,\ldots,r\} { 0 , … , r } and set N ← R + ∑ i = 1 n Y i N\leftarrow R+\sum_{i=1}^{n}Y_i N ← R + ∑ i = 1 n Y i
for elements i = 1 , … , n i=1,\ldots,n i = 1 , … , n in order of arrival do
if X i = 1 X_i=1 X i = 1 and C + 1 ≤ R + ∑ j ≤ i Y j C+1\le R+\sum_{j\le i}Y_j C + 1 ≤ R + ∑ j ≤ i Y j then
Q ← Ber ( min { k , N } − A N − C ) Q\leftarrow\operatorname{Ber}\left(\frac{\min\{k,N\}-A}{N-C}\right) Q ← Ber ( N − C m i n { k , N } − A )
C ← C + 1 C\leftarrow C+1 C ← C + 1
if Q = 1 Q=1 Q = 1 then
Accept i i i
A ← A + i \mathcal{A}\leftarrow\mathcal{A}+i A ← A + i
A ← A + 1 A\leftarrow A+1 A ← A + 1
else
Reject i i i
else
Reject i i i
a certain count test , maintaining a counter C C C of candidates seen and a counter A A A of number of accepted elements. Afterwards, we accept every candidate with a certain probability that changes as the algorithm progresses, depending on C C C and A A A . We call this the Count Test OCRS.
The OCRS we design is closely related to that of Dinev and Weinberg [12 ] for known activation probabilities. However, it differs in a few ways. First, our algorithm uses a random R R R instead of fixing it at k \sqrt{k} k as in [12 ] . Second, the acceptance probability of our algorithm changes as C C C and A A A change, instead of being fixed at 1 − 1 / k 1-1/\sqrt{k} 1 − 1/ k as in [12 ] . Third, we frame the algorithm in terms of a running count of candidates and have a slightly different acceptance rule than that of [12 ] .
All of these three changes are actually not necessary: we can simply use R = ⌈ k ⌉ R=\lceil\sqrt{k}\rceil R = ⌈ k ⌉ deterministically, we can accept at a flat rate of min { 1 , ( k − k ) / N } \min\{1,(k-\sqrt{k})/N\} min { 1 , ( k − k ) / N } until we run out of space and we can also remove the candidates and set q = 1 q=1 q = 1 if N = R N=R N = R and q = min { 1 , ( k − k ) / ( N − R ) } q=\min\{1,(k-\sqrt{k})/(N-R)\} q = min { 1 , ( k − k ) / ( N − R )} otherwise, accepting an online-active element i i i with probability q q q only if A + 1 ≤ R + q ∑ j ≤ i Y j A+1\le R+q\sum_{j\le i}Y_j A + 1 ≤ R + q ∑ j ≤ i Y j ; this is exactly equivalent to the OCRS of [12 ] , with the (unknown) p i p_i p i ’s replaced by the Y i Y_i Y i ’s. All these changes, however, significantly simplify the analysis and thus were made for the sake of clarity of exposition.
Theorem 4.2. For every n , k ∈ N n,k\in\mathbb{N} n , k ∈ N , integer r ≥ 1 r\ge1 r ≥ 1 , (unknown) probability vector p ∈ [ 0 , 1 ] n p\in[0,1]^n p ∈ [ 0 , 1 ] n with ∑ i = 1 n p i ≤ k \sum_{i=1}^{n}p_i\le k ∑ i = 1 n p i ≤ k and every element i ∈ [ n ] i\in[n] i ∈ [ n ] with p i > 0 p_i>0 p i > 0 , Algorithm 5 always accepts at most k k k elements and satisfies
C i ≥ 1 − 1 r + 1 − r 2 k − 1 2 k . C_i\ge1-\frac{1}{r+1}-\frac{r}{2k}-\frac{1}{2\sqrt{k}}. C i ≥ 1 − r + 1 1 − 2 k r − 2 k 1 .
Before we prove the theorem, observe that, for r = ⌈ 2 k ⌉ r=\lceil\sqrt{2k}\rceil r = ⌈ 2 k ⌉ , the guarantee becomes
C i ≥ 1 − 2 + 1 / 2 k = 1 − O ( 1 k ) . C_i\ge1-\frac{\sqrt{2}+1/2}{\sqrt{k}}=1-O\left(\frac{1}{\sqrt{k}}\right). C i ≥ 1 − k 2 + 1/2 = 1 − O ( k 1 ) .
Proof of Theorem 4.2. We first give an equivalent description of the acceptance rule in Algorithm 5. Condition on R R R , the samples, and the online activations. The list of candidates is then fixed, since the count test does not depend on the acceptance decisions. Moreover, the count test ensures that there are at most N = R + ∑ j = 1 ∞ Y j N = R + \sum_{j=1}^{\infty} Y_j N = R + ∑ j = 1 ∞ Y j candidates.
Consider choosing min { k , N } \min\{k, N\} min { k , N } of the N N N possible candidate positions uniformly at random, and accepting each candidate exactly when its position is chosen. Any chosen positions beyond the end of the list are unused. After processing C C C candidates, of which A A A were accepted, there are N − C N-C N − C positions left, of which min { k , N } − A \min\{k, N\}-A min { k , N } − A are chosen. Conditional on the choices for the first C C C positions, the chosen positions among the remaining ones are still uniformly distributed. Thus, the conditional probability of accepting the next candidate is
min { k , N } − A N − C , \frac{\min\{k,N\}-A}{N-C}, N − C min { k , N } − A ,
which is exactly the acceptance probability in Algorithm 5. This description shows that the acceptance probabilities are well-defined and that the algorithm accepts at most k k k elements. If N = 0 N=0 N = 0 , the count test admits no candidates and no acceptance decision is needed.
Fix an element i i i with p i > 0 p_i>0 p i > 0 . Conditional on X i = 1 X_i=1 X i = 1 , the algorithm rejects i i i either because it fails the count test or because it is a candidate whose position is not chosen. We first use the description above to bound the probability of the latter event.
For fixed R R R , samples, and online activations, the position of each candidate is fixed, while each of the N N N positions is equally likely to be chosen. Since exactly min { k , N } \min\{k,N\} min { k , N } positions are chosen, each candidate is accepted with probability min { k , N } / N \min\{k,N\}/N min { k , N } / N . Therefore, when N ≤ k N\leq k N ≤ k , every candidate is accepted, while for N > k N>k N > k the rejection probability is
1 − k N = N − k N ≤ N − k k . 1-\frac{k}{N}=\frac{N-k}{N}\leq\frac{N-k}{k}. 1 − N k = N N − k ≤ k N − k .
Overall, for every fixed realization of R R R , the samples, and the online activations, this rejection probability is at most ( N − k ) + / k (N-k)^+/k ( N − k ) + / k . Averaging over R R R , the samples, and the other online activations gives
Pr [ { i is a candidate } ∩ A i c ∣ X i = 1 ] ≤ 1 k E [ ( N − k ) + ∣ X i = 1 ] = 1 k E [ ( N − k ) + ] . \Pr[\{i\text{ is a candidate}\}\cap A_i^c\mid X_i=1]\leq\frac{1}{k}\mathbb{E}[(N-k)^+\mid X_i=1]=\frac{1}{k}\mathbb{E}[(N-k)^+]. Pr [{ i is a candidate } ∩ A i c ∣ X i = 1 ] ≤ k 1 E [( N − k ) + ∣ X i = 1 ] = k 1 E [( N − k ) + ] .
Taking also into account the probability that i i i fails the count test, we obtain
1 − C i ≤ Pr [ i is not a candidate ∣ X i = 1 ] + 1 k E [ ( N − k ) + ] . (8) 1-C_i\leq\Pr[i\text{ is not a candidate}\mid X_i=1]+\frac{1}{k}\mathbb{E}[(N-k)^+]. \tag*{(8)} 1 − C i ≤ Pr [ i is not a candidate ∣ X i = 1 ] + k 1 E [( N − k ) + ] . (8)
Thus, it suffices to bound the probability of failing the count test and the expected value of ( N − k ) + (N-k)^+ ( N − k ) + .
For the first term, let B t B_t B t be the difference between R + ∑ j = 1 t Y j R+\sum_{j=1}^{t}Y_j R + ∑ j = 1 t Y j and the number of candidates among the first t t t elements. The count test ensures that B t ≥ 0 B_t\geq0 B t ≥ 0 . Upon observing element t t t , we first add Y t Y_t Y t to B t − 1 B_{t-1} B t − 1 . If X t = 1 X_t=1 X t = 1 and B t − 1 + Y t ≥ 1 B_{t-1}+Y_t\geq1 B t − 1 + Y t ≥ 1 , the element becomes a candidate, and we subtract one. Otherwise, the number of candidates does not change. Therefore,
B 0 = R , and B t = ( B t − 1 + Y t − X t ) + for t > 0. B_0=R,\qquad\text{and}\qquad B_t=(B_{t-1}+Y_t-X_t)^+\quad\text{for }t>0. B 0 = R , and B t = ( B t − 1 + Y t − X t ) + for t > 0.
Conditional on X i = 1 X_i=1 X i = 1 , element i i i fails the count test exactly when B i − 1 + Y i < 1 B_{i-1}+Y_i<1 B i − 1 + Y i < 1 , or equivalently, when B i − 1 = 0 B_{i-1}=0 B i − 1 = 0 and Y i = 0 Y_i=0 Y i = 0 . Furthermore, B i − 1 B_{i-1} B i − 1 depends only on R R R and the samples and online activations of the elements up to i − 1 i-1 i − 1 . It is therefore independent of both Y i Y_i Y i and X i X_i X i , and thus
Pr [ i is not a candidate ∣ X i = 1 ] = ( 1 − p i ) Pr [ B i − 1 = 0 ] < Pr [ B i − 1 = 0 ] . \Pr[i\text{ is not a candidate}\mid X_i=1]=(1-p_i)\Pr[B_{i-1}=0]<\Pr[B_{i-1}=0]. Pr [ i is not a candidate ∣ X i = 1 ] = ( 1 − p i ) Pr [ B i − 1 = 0 ] < Pr [ B i − 1 = 0 ] .
Next, we show that Pr [ B i − 1 = 0 ] ≤ 1 / ( r + 1 ) \Pr[B_{i-1}=0] \le1/(r+1) Pr [ B i − 1 = 0 ] ≤ 1/ ( r + 1 ) . In fact, we bound all point probabilities of B t B_t B t together and show something stronger: for every t ∈ { 0 , 1 , … , n } t \in\{0,1,\ldots,n\} t ∈ { 0 , 1 , … , n } and integer m ≥ 0 m \ge0 m ≥ 0 ,
Pr [ B t = m ] ≤ 1 r + 1 . \Pr[B_t=m] \le\frac{1}{r+1}. Pr [ B t = m ] ≤ r + 1 1 .
We prove this by induction on t t t . For t = 0 t=0 t = 0 , it follows because R R R is uniform on { 0 , … , r } \{0,\ldots,r\} { 0 , … , r } . For the induction step, since X t X_t X t and Y t Y_t Y t are independent of B t − 1 B_{t-1} B t − 1 and of each other, Y t − X t Y_t-X_t Y t − X t equals either 1 1 1 or − 1 -1 − 1 with probability p t ( 1 − p t ) p_t(1-p_t) p t ( 1 − p t ) each, and 0 0 0 with probability 1 − 2 p t ( 1 − p t ) 1-2p_t(1-p_t) 1 − 2 p t ( 1 − p t ) . If B t − 1 = 0 B_{t-1}=0 B t − 1 = 0 , then B t = ( Y t − X t ) + B_t=(Y_t-X_t)^+ B t = ( Y t − X t ) + . If B t − 1 = 1 B_{t-1}=1 B t − 1 = 1 , then B t = 0 B_t=0 B t = 0 exactly when Y t − X t = − 1 Y_t-X_t=-1 Y t − X t = − 1 . Thus,
Pr [ B t = 0 ] = ( 1 − p t ( 1 − p t ) ) Pr [ B t − 1 = 0 ] + p t ( 1 − p t ) Pr [ B t − 1 = 1 ] . \Pr[B_t=0]=(1-p_t(1-p_t))\Pr[B_{t-1}=0]+p_t(1-p_t)\Pr[B_{t-1}=1]. Pr [ B t = 0 ] = ( 1 − p t ( 1 − p t )) Pr [ B t − 1 = 0 ] + p t ( 1 − p t ) Pr [ B t − 1 = 1 ] .
Furthermore, for B t = m B_t=m B t = m where m ≥ 1 m \ge1 m ≥ 1 , the previous value must be m − 1 m-1 m − 1 , m m m , or m + 1 m+1 m + 1 , and the corresponding increment must be 1 1 1 , 0 0 0 , or − 1 -1 − 1 , respectively. Therefore,
Pr [ B t = m ] = p t ( 1 − p t ) Pr [ B t − 1 = m − 1 ] + ( 1 − 2 p t ( 1 − p t ) ) Pr [ B t − 1 = m ] + p t ( 1 − p t ) Pr [ B t − 1 = m + 1 ] . \Pr[B_t=m]=p_t(1-p_t)\Pr[B_{t-1}=m-1]
+(1-2p_t(1-p_t))\Pr[B_{t-1}=m]+p_t(1-p_t)\Pr[B_{t-1}=m+1]. Pr [ B t = m ] = p t ( 1 − p t ) Pr [ B t − 1 = m − 1 ] + ( 1 − 2 p t ( 1 − p t )) Pr [ B t − 1 = m ] + p t ( 1 − p t ) Pr [ B t − 1 = m + 1 ] .
Each expression is a convex combination of probabilities at time t − 1 t-1 t − 1 , all of which are at most 1 / ( r + 1 ) 1/(r+1) 1/ ( r + 1 ) by the induction hypothesis. This completes the induction, and hence
Pr [ i is not a candidate ∣ X i = 1 ] ≤ 1 r + 1 . \Pr[i\text{ is not a candidate}\mid X_i=1]\le\frac{1}{r+1}. Pr [ i is not a candidate ∣ X i = 1 ] ≤ r + 1 1 .
It remains to bound the second term in (8) . Let S = ∑ j = 1 n Y j S=\sum_{j=1}^{n}Y_j S = ∑ j = 1 n Y j be the number of sample-active elements, so that N = R + S N=R+S N = R + S . Since ∑ j = 1 n p j ≤ k \sum_{j=1}^{n}p_j\le k ∑ j = 1 n p j ≤ k , we have
E [ S ] = ∑ j = 1 n p j ≤ k , and Var ( S ) = ∑ j = 1 n p j ( 1 − p j ) ≤ k . \mathbb{E}[S]=\sum_{j=1}^{n}p_j\le k,\qquad\text{and}\qquad\operatorname{Var}(S)=\sum_{j=1}^{n}p_j(1-p_j)\le k. E [ S ] = j = 1 ∑ n p j ≤ k , and Var ( S ) = j = 1 ∑ n p j ( 1 − p j ) ≤ k .
Thus,
( N − k ) + = ( R + S − k ) + ≤ R + ( S − E [ S ] ) + . (N-k)^+=(R+S-k)^+\le R+(S-\mathbb{E}[S])^+. ( N − k ) + = ( R + S − k ) + ≤ R + ( S − E [ S ] ) + .
To bound the second term, use the identity ( x ) + = ( x + ∣ x ∣ ) / 2 (x)^+=(x+|x|)/2 ( x ) + = ( x + ∣ x ∣ ) /2 . Since S − E [ S ] S-\mathbb{E}[S] S − E [ S ] has mean zero, this gives
E [ ( S − E [ S ] ) + ] = E [ S − E [ S ] ] 2 + E [ ∣ S − E [ S ] ∣ ] 2 = E [ ∣ S − E [ S ] ∣ ] 2 ≤ E [ ( S − E [ S ] ) 2 ] 2 = Var ( S ) 2 , \begin{aligned}
\mathbb{E}\left[(S-\mathbb{E}[S])^+\right]
=\frac{\mathbb{E}[S-\mathbb{E}[S]]}{2}
+\frac{\mathbb{E}[|S-\mathbb{E}[S]|]}{2}
=\frac{\mathbb{E}[|S-\mathbb{E}[S]|]}{2} \\
&\le\frac{\sqrt{\mathbb{E}\left[(S-\mathbb{E}[S])^2\right]}}{2}
=\frac{\sqrt{\operatorname{Var}(S)}}{2},
\end{aligned} E [ ( S − E [ S ] ) + ] = 2 E [ S − E [ S ]] + 2 E [ ∣ S − E [ S ] ∣ ] = 2 E [ ∣ S − E [ S ] ∣ ] ≤ 2 E [ ( S − E [ S ] ) 2 ] = 2 Var ( S ) ,
where the inequality follows from the Cauchy–Schwarz inequality. Combining the above and using the fact that E [ R ] = r / 2 \mathbb{E}[R]=r/2 E [ R ] = r /2 , we obtain
E [ ( N − k ) + ] k ≤ E [ R ] k + E [ ( S − E [ S ] ) + ] k ≤ r 2 k + Var ( S ) 2 k ≤ r 2 k + 1 2 k . \frac{\mathbb{E}[(N-k)^+]}{k}
\le\frac{\mathbb{E}[R]}{k}
+\frac{\mathbb{E}[(S-\mathbb{E}[S])^+]}{k}
\le\frac{r}{2k}+\frac{\sqrt{\operatorname{Var}(S)}}{2k}
\le\frac{r}{2k}+\frac{1}{2\sqrt{k}}. k E [( N − k ) + ] ≤ k E [ R ] + k E [( S − E [ S ] ) + ] ≤ 2 k r + 2 k Var ( S ) ≤ 2 k r + 2 k 1 .
Substituting the two bounds into (8) , we obtain
C i ≥ 1 − 1 r + 1 − r 2 k − 1 2 k . C_i\ge1-\frac{1}{r+1}-\frac{r}{2k}-\frac{1}{2\sqrt{k}}. C i ≥ 1 − r + 1 1 − 2 k r − 2 k 1 .
Sample Complexity
Next, we investigate whether the samples used by our schemes are necessary to obtain optimal guarantees. For random arrivals, the answer depends on k k k : one sample per element is necessary for k ∈ { 1 , 2 , 3 , 4 } k \in\{1,2,3,4\} k ∈ { 1 , 2 , 3 , 4 } , whereas no samples are needed for k ≥ 5 k \ge5 k ≥ 5 . The latter fact follows directly from a lemma by Arnosti and Ma [5 ] . Perhaps surprisingly, for adversarial arrivals and every fixed k ≥ 2 k \ge2 k ≥ 2 , we show that no fixed finite number of samples per element suffices to attain the optimal guarantee for known activation probabilities.
Random Order
We start with the random order case. Consider the greedy rule that accepts the first k k k online-active elements. Clearly, this rule uses no samples and does not need to know p p p . The following guarantee is a direct consequence of [5 Lemma 6] .
Corollary 5.1. For every n , k ≥ 1 n,k \ge1 n , k ≥ 1 , probability vector p ∈ [ 0 , 1 ] n p \in[0,1]^n p ∈ [ 0 , 1 ] n with ∑ i = 1 n p i ≤ k \sum_{i=1}^{n}p_i \le k ∑ i = 1 n p i ≤ k , and element i i i with p i > 0 p_i > 0 p i > 0 , the ROCRS that greedily accepts the first k k k active elements satisfies
C i ≥ min { k k + 1 , 1 − e − k k k k ! } . C_i \ge\min\left\{\frac{k}{k+1},1-e^{-k}\frac{k^k}{k!}\right\}. C i ≥ min { k + 1 k , 1 − e − k k ! k k } . In particular, it is an optimal ( 1 − e − k k k / k ! ) (1-e^{-k}k^k/k!) ( 1 − e − k k k / k !) -balanced ROCRS for k ≥ 5 k \ge5 k ≥ 5 .
Proof. Firstly, the set returned by the ROCRS is trivially feasible. Assume that ∑ i = 1 n p i = k \sum_{i=1}^{n}p_i=k ∑ i = 1 n p i = k , and let S = ∑ j = 1 n X j S=\sum_{j=1}^{n}X_j S = ∑ j = 1 n X j and S − i = ∑ j ≠ i X j S_{-i}=\sum_{j\ne i}X_j S − i = ∑ j = i X j . By [5 Lemma 6] , for every sum S S S of independent Bernoulli random variables with mean k k k , we have
E [ A R k ( S ) ] ≥ min { k k + 1 , 1 − e − k k k k ! } . \mathbb{E}[\mathrm{AR}_k(S)] \ge\min\left\{\frac{k}{k+1},1-e^{-k}\frac{k^k}{k!}\right\}. E [ AR k ( S )] ≥ min { k + 1 k , 1 − e − k k ! k k } .
Conditional on X i = 1 X_i=1 X i = 1 and the other online activations, the rank of i i i among the S − i + 1 S_{-i}+1 S − i + 1 online-active elements is uniform. Thus, using the fact that A R k \mathrm{AR}_k AR k is non-increasing,
C i = E [ A R k ( S − i ) ] ≥ E [ A R k ( S ) ] ≥ min { k k + 1 , 1 − e − k k k k ! } . C_i=\mathbb{E}[\mathrm{AR}_k(S_{-i})]\ge\mathbb{E}[\mathrm{AR}_k(S)]\ge\min\left\{\frac{k}{k+1},1-e^{-k}\frac{k^k}{k!}\right\}. C i = E [ AR k ( S − i )] ≥ E [ AR k ( S )] ≥ min { k + 1 k , 1 − e − k k ! k k } .
Finally, if ∑ i p i < k \sum_i p_i<k ∑ i p i < k , we can simply add independent Bernoulli random variables to S S S such that E [ S ] = k \mathbb{E}[S]=k E [ S ] = k . Since A R k \mathrm{AR}_k AR k is non-increasing, this can only decrease E [ A R k ( S ) ] \mathbb{E}[\mathrm{AR}_k(S)] E [ AR k ( S )] , and thus the same bound follows. □
For k ∈ { 1 , 2 , 3 , 4 } k \in\{1,2,3,4\} k ∈ { 1 , 2 , 3 , 4 } , we have k / ( k + 1 ) < 1 − e − k k k / k ! k/(k+1)<1-e^{-k}k^k/k! k / ( k + 1 ) < 1 − e − k k k / k ! , whereas the inequality is reversed for k ≥ 5 k \ge5 k ≥ 5 . Next, we show that the guarantee in Corollary 5.1 is tight for schemes with no samples, even in the offline setting. Together with Theorem 4.1 , this characterizes exactly the minimum number of samples per element needed for an optimal ROCRS: one for k ∈ { 1 , 2 , 3 , 4 } k \in\{1,2,3,4\} k ∈ { 1 , 2 , 3 , 4 } and zero for k ≥ 5 k \ge5 k ≥ 5 .
Proposition 5.1. Fix an integer k ≥ 1 k \ge1 k ≥ 1 . If an ROCRS (respectively, an offline CRS) that uses no samples is c c c -balanced uniformly over all ground-set sizes and all p ∈ P k p \in\mathcal{P}_k p ∈ P k , then
c ≤ min { k k + 1 , 1 − e − k k k k ! } . c \le\min\left\{\frac{k}{k+1},1-e^{-k}\frac{k^k}{k!}\right\}. c ≤ min { k + 1 k , 1 − e − k k ! k k } .
Proof. First we show that c ≤ k / ( k + 1 ) c \le k/(k+1) c ≤ k / ( k + 1 ) . Let n = k + 1 n = k+1 n = k + 1 . Whenever all elements are online-active, feasibility implies that some element is accepted with probability at most k / ( k + 1 ) k/(k+1) k / ( k + 1 ) ; let i i i be this element. This probability is taken over the uniformly random arrival order and any internal randomness of π \pi π . Since π \pi π receives no samples and does not know p p p , it is the same for every probability vector p ∈ ( 0 , 1 ] n p \in(0,1]^n p ∈ ( 0 , 1 ] n .
For ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) , consider
p i = ε , p j = 1 − ε k for every j ≠ i . p_i = \varepsilon,\qquad p_j = 1-\frac{\varepsilon}{k}\quad\text{for every }j \ne i. p i = ε , p j = 1 − k ε for every j = i .
Observe that ∑ j p j = k \sum_j p_j = k ∑ j p j = k . Conditional on X i = 1 X_i = 1 X i = 1 , all other elements are online-active with probability ( 1 − ε / k ) k (1-\varepsilon/k)^k ( 1 − ε / k ) k . Therefore,
C i ≤ k k + 1 ( 1 − ε k ) k + 1 − ( 1 − ε k ) k = 1 − 1 k + 1 ( 1 − ε k ) k ≤ k + ε k + 1 . C_i \le\frac{k}{k+1}\left(1-\frac{\varepsilon}{k}\right)^k+1-\left(1-\frac{\varepsilon}{k}\right)^k=1-\frac{1}{k+1}\left(1-\frac{\varepsilon}{k}\right)^k\le\frac{k+\varepsilon}{k+1}. C i ≤ k + 1 k ( 1 − k ε ) k + 1 − ( 1 − k ε ) k = 1 − k + 1 1 ( 1 − k ε ) k ≤ k + 1 k + ε .
where the last inequality uses ( 1 − ε / k ) k ≥ 1 − ε (1-\varepsilon/k)^k \ge1-\varepsilon ( 1 − ε / k ) k ≥ 1 − ε . Since c ≤ C i c \le C_i c ≤ C i on every such instance, letting ε → 0 \varepsilon\to0 ε → 0 gives c ≤ k / ( k + 1 ) c \le k/(k+1) c ≤ k / ( k + 1 ) . The same argument applies to an offline CRS since, even after observing the entire online-active set, it must reject some element with probability at least 1 / ( k + 1 ) 1/(k+1) 1/ ( k + 1 ) .
For the other upper bound, consider n ≥ k n \ge k n ≥ k elements with p i = k / n p_i = k/n p i = k / n for every i ∈ [ n ] i \in[n] i ∈ [ n ] , and let S = ∑ i = 1 n X i ∼ Bin ( n , k / n ) S=\sum_{i=1}^n X_i \sim\operatorname{Bin}(n,k/n) S = ∑ i = 1 n X i ∼ Bin ( n , k / n ) . Suppose that π \pi π is c c c -balanced for some c ∈ [ 0 , 1 ] c \in[0,1] c ∈ [ 0 , 1 ] . Then,
c k ≤ ∑ i = 1 n Pr [ A i ] ≤ E [ min { k , S } ] . ck \le\sum_{i=1}^{n}\Pr[A_i]\le\mathbb{E}[\min\{k,S\}]. c k ≤ i = 1 ∑ n Pr [ A i ] ≤ E [ min { k , S }] .
where the second inequality follows from the fact that π \pi π has to output a feasible set. As n → ∞ n \to\infty n → ∞ , S S S converges in distribution to Z ∼ Poi ( k ) Z \sim\operatorname{Poi}(k) Z ∼ Poi ( k ) . Taking the limit and using (6) yields
c ≤ 1 k E [ min { k , Z } ] = 1 − e − k k k k ! . c \le\frac{1}{k}\mathbb{E}[\min\{k,Z\}]=1-e^{-k}\frac{k^k}{k!}. c ≤ k 1 E [ min { k , Z }] = 1 − e − k k ! k k .
Adversarial Order
We continue with adversarial arrivals. As shown in § 3.3 , two samples per element suffice to recover the optimal 1 / 2 1/2 1/2 -balanced OCRS for k = 1 k=1 k = 1 . We show that for k ≥ 2 k \ge2 k ≥ 2 even an arbitrarily large fixed number of samples per element does not suffice to attain the optimal guarantee for known activation probabilities.
Fix an integer k ≥ 2 k \ge2 k ≥ 2 . We use γ \gamma γ (and drop the dependency on k k k ) to denote the optimal guarantee of an OCRS that knows p p p , uniformly over all n n n and all probability vectors with ∑ i p i = k \sum_i p_i=k ∑ i p i = k ; this is characterized for every k k k by Jiang, Ma, and Zhang [23 ] .
Theorem 5.1. For every fixed integer k ≥ 2 k \ge2 k ≥ 2 , finite integer m ≥ 0 m \ge0 m ≥ 0 , and every OCRS π \pi π using at most m m m independent samples per element, there exist a ground-set size n n n and a probability vector p ∈ [ 0 , 1 ] n p \in[0,1]^n p ∈ [ 0 , 1 ] n with ∑ i p i = k \sum_i p_i=k ∑ i p i = k such that
min { i ∣ p i > 0 } C i , π ( p ) < γ . \min_{\{i\mid p_i>0\}} C_{i,\pi}(p)<\gamma. { i ∣ p i > 0 } min C i , π ( p ) < γ . This holds even if the fixed arrival order is given to π \pi π in advance.
The idea behind the proof is to compare two instances p ( 1 ) , p ( 2 ) p^{(1)},p^{(2)} p ( 1 ) , p ( 2 ) on which optimality requires different behavior before the same element arrives. In one instance, the probability of having accepted two elements must tend to zero, whereas in the other it must stay bounded away from zero. We first derive this restriction from the characterization of the optimal OCRS when p p p is known. We then show that a fixed number of samples cannot support these two different behaviors.
Let y ~ ℓ : [ 0 , k ] → [ 0 , 1 ] \tilde{y}_{\ell}:[0,k]\to[0,1] y ~ ℓ : [ 0 , k ] → [ 0 , 1 ] denote the functions y ~ ℓ , γ \tilde{y}_{\ell,\gamma} y ~ ℓ , γ of [23 Definition 3 and Appendix C.8] , with the fixed parameter γ \gamma γ denoted by γ k ∗ \gamma_k^* γ k ∗ in [23 ] . The equations of [23 ] can be written as
y ~ ℓ ′ ( t ) = ( γ − 1 + y ~ ℓ − 1 ( t ) ) + − ( γ − 1 + y ~ ℓ ( t ) ) + ( 1 ≤ ℓ < k ) , y ~ k ′ ( t ) = ( γ − 1 + y ~ k − 1 ( t ) ) + . (9) \begin{aligned}
\tilde{y}_{\ell}'(t) &= \left(\gamma-1+\tilde{y}_{\ell-1}(t)\right)^{+}-\left(\gamma-1+\tilde{y}_{\ell}(t)\right)^{+} && (1\leq\ell<k),\\
\tilde{y}_{k}'(t) &= \left(\gamma-1+\tilde{y}_{k-1}(t)\right)^{+}. \tag*{(9)}
\end{aligned} y ~ ℓ ′ ( t ) y ~ k ′ ( t ) = ( γ − 1 + y ~ ℓ − 1 ( t ) ) + − ( γ − 1 + y ~ ℓ ( t ) ) + = ( γ − 1 + y ~ k − 1 ( t ) ) + . ( 1 ≤ ℓ < k ) , (9)
where y ~ 0 ( t ) = 1 \tilde{y}_{0}(t)=1 y ~ 0 ( t ) = 1 and y ~ ℓ ( 0 ) = 0 \tilde{y}_{\ell}(0)=0 y ~ ℓ ( 0 ) = 0 for 1 ≤ ℓ ≤ k 1\leq\ell\leq k 1 ≤ ℓ ≤ k . Let
h ℓ ( t ) : = ∑ r = ℓ k y ~ r ( t ) , and h ℓ ′ ( t ) : = ∑ r = ℓ k y ~ r ′ ( t ) , ( 1 ≤ ℓ ≤ k ) . h_{\ell}(t):=\sum_{r=\ell}^{k}\tilde{y}_{r}(t),\qquad\text{and}\qquad h_{\ell}'(t):=\sum_{r=\ell}^{k}\tilde{y}_{r}'(t),\qquad(1\leq\ell\leq k). h ℓ ( t ) := r = ℓ ∑ k y ~ r ( t ) , and h ℓ ′ ( t ) := r = ℓ ∑ k y ~ r ′ ( t ) , ( 1 ≤ ℓ ≤ k ) .
The functions y ~ ℓ \tilde{y}_{\ell} y ~ ℓ are non-decreasing and, at the optimal parameter γ \gamma γ , satisfy
1 = y ~ 0 ( t ) ≥ y ~ 1 ( t ) ≥ ⋯ ≥ y ~ k ( t ) ≥ 0. 1=\tilde{y}_{0}(t)\geq\tilde{y}_{1}(t)\geq\cdots\geq\tilde{y}_{k}(t)\geq0. 1 = y ~ 0 ( t ) ≥ y ~ 1 ( t ) ≥ ⋯ ≥ y ~ k ( t ) ≥ 0.
Since h k = y ~ k h_k=\tilde{y}_k h k = y ~ k , the characterization of [23 ] gives the following identity.
Proposition 5.2 (Jiang, Ma, and Zhang [23 Theorem 2] ). The optimal balance satisfies 0 < γ < 1 0<\gamma<1 0 < γ < 1 and
h k ( k ) = y ~ k ( k ) = 1 − γ . h_k(k)=\tilde{y}_k(k)=1-\gamma. h k ( k ) = y ~ k ( k ) = 1 − γ .
Next, observe that the right-hand sides of (9) telescope when summed over r = ℓ , … , k r=\ell,\ldots,k r = ℓ , … , k . For ℓ = 1 \ell=1 ℓ = 1 , this gives h 1 ′ ( t ) = γ h_1'(t)=\gamma h 1 ′ ( t ) = γ . Let t 2 : = ( 1 − γ ) / γ t_2:=(1-\gamma)/\gamma t 2 := ( 1 − γ ) / γ . For ℓ ≥ 2 \ell\geq2 ℓ ≥ 2 , using y ~ ℓ − 1 = h ℓ − 1 − h ℓ \tilde{y}_{\ell-1}=h_{\ell-1}-h_{\ell} y ~ ℓ − 1 = h ℓ − 1 − h ℓ , we obtain
h 1 ( t ) = γ t , h ℓ ( 0 ) = 0 , h ℓ ′ ( t ) = ( γ − 1 + h ℓ − 1 ( t ) − h ℓ ( t ) ) + ( 2 ≤ ℓ ≤ k ) . (10) h_1(t)=\gamma t,\qquad h_{\ell}(0)=0,\qquad h_{\ell}'(t)=\left(\gamma-1+h_{\ell-1}(t)-h_{\ell}(t)\right)^{+}\qquad(2\leq\ell\leq k). \tag*{(10)} h 1 ( t ) = γ t , h ℓ ( 0 ) = 0 , h ℓ ′ ( t ) = ( γ − 1 + h ℓ − 1 ( t ) − h ℓ ( t ) ) + ( 2 ≤ ℓ ≤ k ) . (10)
Solving (10) for ℓ = 2 \ell=2 ℓ = 2 gives
h 2 ( t ) = { 0 , 0 ≤ t ≤ t 2 , γ ( t − t 2 − 1 + e − ( t − t 2 ) ) , t > t 2 . (11) h_2(t)=
\begin{cases}
0, & 0\leq t\leq t_2,\\
\gamma\left(t-t_2-1+e^{-(t-t_2)}\right), & t>t_2.
\end{cases} \tag*{(11)} h 2 ( t ) = { 0 , γ ( t − t 2 − 1 + e − ( t − t 2 ) ) , 0 ≤ t ≤ t 2 , t > t 2 . (11)
Thus h 2 ( t ) > 0 h_2(t)>0 h 2 ( t ) > 0 for t > t 2 t>t_2 t > t 2 . Also, h 2 ( k ) ≥ h k ( k ) = 1 − γ > 0 h_2(k)\geq h_k(k)=1-\gamma>0 h 2 ( k ) ≥ h k ( k ) = 1 − γ > 0 , so 0 < t 2 < k 0<t_2<k 0 < t 2 < k . The time t 2 t_2 t 2 is the first time that y ~ 1 \tilde{y}_1 y ~ 1 reaches 1 − γ 1-\gamma 1 − γ .
Next, we compare these functions with the behavior of an arbitrary γ \gamma γ -balanced OCRS. For an OCRS π \pi π and an instance with p i > 0 p_i>0 p i > 0 for all i i i and ∑ i p i = k \sum_i p_i=k ∑ i p i = k , let
N j : = ∑ i = 1 j 1 A i , s j : = ∑ i = 1 j p i , H ℓ , j : = E [ ( N j − ℓ + 1 ) + ] ( 1 ≤ ℓ ≤ k ) . N_j:=\sum_{i=1}^{j}\mathbf{1}_{A_i},\qquad s_j:=\sum_{i=1}^{j}p_i,\qquad H_{\ell,j}:=\mathbb{E}\left[(N_j-\ell+1)^{+}\right]\qquad(1\leq\ell\leq k). N j := i = 1 ∑ j 1 A i , s j := i = 1 ∑ j p i , H ℓ , j := E [ ( N j − ℓ + 1 ) + ] ( 1 ≤ ℓ ≤ k ) .
with N 0 = s 0 = H ℓ , 0 = 0 N_0=s_0=H_{\ell,0}=0 N 0 = s 0 = H ℓ , 0 = 0 . Thus, N j N_j N j counts the acceptances among the first j j j elements, and H ℓ , j H_{\ell,j} H ℓ , j is their expected number beyond the first ℓ − 1 \ell-1 ℓ − 1 . Also, let δ : = max i p i \delta:=\max_i p_i δ := max i p i , and H ℓ ( δ ) : [ 0 , k ] → R H_{\ell}^{(\delta)}:[0,k]\to\mathbb{R} H ℓ ( δ ) : [ 0 , k ] → R be the linear interpolation of the values H ℓ , j H_{\ell,j} H ℓ , j at the points s j s_j s j . The proof of the following lemma can be found in Appendix § 7 .§ 5 .
Lemma 5.1. Consider any sequence of γ \gamma γ -balanced OCRSs and instances with positive activation probabilities summing to k k k , such that δ → 0 \delta\to0 δ → 0 . Then, H 2 ( δ ) H_2^{(\delta)} H 2 ( δ ) converges uniformly to h 2 h_2 h 2 on [ 0 , k ] [0,k] [ 0 , k ] . In particular, for any choice of prefix lengths j r j_r j r along the sequence of instances p ( r ) p^{(r)} p ( r ) such that
s j r ( r ) = ∑ i = 1 j r p i ( r ) ⟶ t , s_{j_r}^{(r)} = \sum_{i=1}^{j_r} p_i^{(r)} \longrightarrow t, s j r ( r ) = i = 1 ∑ j r p i ( r ) ⟶ t , we have
E [ ( N j r ( r ) − 1 ) + ] ⟶ h 2 ( t ) . \mathbb{E}\left[(N_{j_r}^{(r)}-1)^+\right] \longrightarrow h_2(t). E [ ( N j r ( r ) − 1 ) + ] ⟶ h 2 ( t ) .
We are ready to prove the impossibility theorem.
Proof of Theorem 5.1. Suppose, towards contradiction, that there exists a γ \gamma γ -balanced OCRS π \pi π using at most m m m samples per element, for a fixed finite m m m .
Since $0 < t_2 < k$, we can choose a , b a,b a , b such that $0 < a < t_2 < b < k$. For sufficiently large n n n , consider the following two instances on 2 n 2n 2 n elements, both arriving in order 1 , … , 2 n 1,\ldots,2n 1 , … , 2 n :
Table 2 (PDF p. 24).
Both vectors have total activation mass k k k and their maximum coordinates tend to zero as n → ∞ n \to\infty n → ∞ . Abusing notation, we write Pr 1 \Pr_1 Pr 1 and E 1 \mathbb{E}_1 E 1 (resp. Pr 2 \Pr_2 Pr 2 and E 2 \mathbb{E}_2 E 2 ) for probabilities and expectation under instance p ( 1 ) p^{(1)} p ( 1 ) (resp. p ( 2 ) p^{(2)} p ( 2 ) ).
Consider the event E n = { N n ≥ 2 } E_n = \{N_n \ge2\} E n = { N n ≥ 2 } that π \pi π accepts at least two of the first n n n elements. First, since the activation mass of the first n n n elements is a < t 2 a < t_2 a < t 2 in the first instance, by Lemma 5.1, we have
E 1 [ ( N n − 1 ) + ] ⟶ h 2 ( a ) = 0 , \mathbb{E}_1\left[(N_n-1)^+\right] \longrightarrow h_2(a)=0, E 1 [ ( N n − 1 ) + ] ⟶ h 2 ( a ) = 0 ,
where the equality follows from (11). Furthermore, observe that 1 E n ≤ ( N n − 1 ) + \mathbf{1}_{E_n} \le(N_n-1)^+ 1 E n ≤ ( N n − 1 ) + , which implies Pr 1 [ E n ] → 0 \Pr_1[E_n] \to0 Pr 1 [ E n ] → 0 , as n → ∞ n \to\infty n → ∞ . Next, since the activation mass of the first n n n elements is b > t 2 b > t_2 b > t 2 in the second instance, by Lemma 5.1, we have
E 2 [ ( N n − 1 ) + ] ⟶ h 2 ( b ) > 0 , \mathbb{E}_2\left[(N_n-1)^+\right] \longrightarrow h_2(b)>0, E 2 [ ( N n − 1 ) + ] ⟶ h 2 ( b ) > 0 ,
where the inequality follows from (11). Furthermore, ( N n − 1 ) + ≤ ( k − 1 ) 1 E n (N_n-1)^+ \le(k-1)\mathbf{1}_{E_n} ( N n − 1 ) + ≤ ( k − 1 ) 1 E n , which implies lim inf n → ∞ Pr 2 [ E n ] ≥ h 2 ( b ) / ( k − 1 ) > 0 \liminf_{n\to\infty}\Pr_2[E_n] \ge h_2(b)/(k-1)>0 lim inf n → ∞ Pr 2 [ E n ] ≥ h 2 ( b ) / ( k − 1 ) > 0 . Overall, we have
Pr 1 [ E n ] ⟶ 0 , and lim inf n → ∞ Pr 2 [ E n ] ≥ h 2 ( b ) k − 1 > 0. (12) \Pr_1[E_n] \longrightarrow0,\qquad\text{and}\qquad\liminf_{n\to\infty}\Pr_2[E_n] \ge\frac{h_2(b)}{k-1}>0. \tag*{(12)} 1 Pr [ E n ] ⟶ 0 , and n → ∞ lim inf 2 Pr [ E n ] ≥ k − 1 h 2 ( b ) > 0. (12)
Next, we show that the first limit in (12) forces Pr 2 [ E n ] → 0 \Pr_2[E_n] \to0 Pr 2 [ E n ] → 0 as well. Let P 1 , P 2 P_1,P_2 P 1 , P 2 be the distributions of the full array of m m m sample rows and one online row, together with an independent random seed for the algorithm, for instances p ( 1 ) p^{(1)} p ( 1 ) and p ( 2 ) p^{(2)} p ( 2 ) , respectively. The seed has the same law under both instances. Let L n = d P 2 / d P 1 L_n=dP_2/dP_1 L n = d P 2 / d P 1 be the likelihood ratio under p ( 2 ) p^{(2)} p ( 2 ) relative to p ( 1 ) p^{(1)} p ( 1 ) of all samples, all online activations, and the internal random seed of π \pi π . In other words, L n L_n L n measures how much more likely an observation record is under instance p ( 2 ) p^{(2)} p ( 2 ) compared to p ( 1 ) p^{(1)} p ( 1 ) . The seed has the same distribution in both instances and is independent of the samples and online activations.
For one Bernoulli variable whose success probability is p p p in the first instance and q q q in the second, the second moment of its likelihood ratio under the first instance is
p ( q p ) 2 + ( 1 − p ) ( 1 − q 1 − p ) 2 = 1 + ( q − p ) 2 p ( 1 − p ) . p\left(\frac{q}{p}\right)^2+(1-p)\left(\frac{1-q}{1-p}\right)^2=1+\frac{(q-p)^2}{p(1-p)}. p ( p q ) 2 + ( 1 − p ) ( 1 − p 1 − q ) 2 = 1 + p ( 1 − p ) ( q − p ) 2 .
In the first block of n n n elements, we have p = a / n p=a/n p = a / n and q = b / n q=b/n q = b / n . Substituting gives
1 + ( b − a ) 2 a n ( 1 − a / n ) = 1 + ( b − a ) 2 a n + O ( n − 2 ) , 1+\frac{(b-a)^2}{an(1-a/n)}=1+\frac{(b-a)^2}{an}+O(n^{-2}), 1 + an ( 1 − a / n ) ( b − a ) 2 = 1 + an ( b − a ) 2 + O ( n − 2 ) ,
because 1 / ( 1 − a / n ) = 1 + O ( n − 1 ) 1/(1-a/n)=1+O(n^{-1}) 1/ ( 1 − a / n ) = 1 + O ( n − 1 ) . In the second block of n n n elements, p = ( k − a ) / n p=(k-a)/n p = ( k − a ) / n and q = ( k − b ) / n q=(k-b)/n q = ( k − b ) / n , so the same calculation gives
1 + ( b − a ) 2 ( k − a ) n ( 1 − ( k − a ) / n ) = 1 + ( b − a ) 2 ( k − a ) n + O ( n − 2 ) . 1+\frac{(b-a)^2}{(k-a)n(1-(k-a)/n)}=1+\frac{(b-a)^2}{(k-a)n}+O(n^{-2}). 1 + ( k − a ) n ( 1 − ( k − a ) / n ) ( b − a ) 2 = 1 + ( k − a ) n ( b − a ) 2 + O ( n − 2 ) .
Each block has n n n elements, and each element supplies its m m m samples and its online activation for a total of m + 1 m+1 m + 1 independent Bernoulli observations. Since the random variables of each block are independent, the full likelihood ratio is the product of the individual likelihood ratios for each block. Thus, for
c 1 = ( b − a ) 2 a , and c 2 = ( b − a ) 2 k − a , c_1=\frac{(b-a)^2}{a},\qquad\text{and}\qquad c_2=\frac{(b-a)^2}{k-a}, c 1 = a ( b − a ) 2 , and c 2 = k − a ( b − a ) 2 ,
we obtain
E 1 [ L n 2 ] = ∏ i = 1 2 n ( 1 + ( p i ( 2 ) − p i ( 1 ) ) 2 p i ( 1 ) ( 1 − p i ( 1 ) ) ) m + 1 = ( 1 + c 1 n + O ( n − 2 ) ) n ( m + 1 ) ( 1 + c 2 n + O ( n − 2 ) ) n ( m + 1 ) ⟶ exp ( ( m + 1 ) ( c 1 + c 2 ) ) < ∞ , (13) \begin{aligned}
\mathbb{E}_1[L_n^2]&=\prod_{i=1}^{2n}\left(1+\frac{(p_i^{(2)}-p_i^{(1)})^2}{p_i^{(1)}(1-p_i^{(1)})}\right)^{m+1}\\
&=\left(1+\frac{c_1}{n}+O(n^{-2})\right)^{n(m+1)}
\left(1+\frac{c_2}{n}+O(n^{-2})\right)^{n(m+1)}
\longrightarrow\exp((m+1)(c_1+c_2))<\infty, \tag*{(13)}
\end{aligned} E 1 [ L n 2 ] = i = 1 ∏ 2 n ( 1 + p i ( 1 ) ( 1 − p i ( 1 ) ) ( p i ( 2 ) − p i ( 1 ) ) 2 ) m + 1 = ( 1 + n c 1 + O ( n − 2 ) ) n ( m + 1 ) ( 1 + n c 2 + O ( n − 2 ) ) n ( m + 1 ) ⟶ exp (( m + 1 ) ( c 1 + c 2 )) < ∞ , (13)
where we use that ( 1 + c / n + O ( n − 2 ) ) n → e c (1+c/n+O(n^{-2}))^n\to e^c ( 1 + c / n + O ( n − 2 ) ) n → e c and the fact that the random seed contributes a likelihood-ratio factor of one because it is independent of the observations and has the same distribution in both instances.
Next, let B n B_n B n denote all the samples, online activations, and the algorithm’s random seed. Since π \pi π does not know p p p , the event E n E_n E n is determined by the same function of B n B_n B n . Thus, there exists a function f n f_n f n , common to both instances, such that 1 E n = f n ( B n ) \mathbf{1}_{E_n}=f_n(B_n) 1 E n = f n ( B n ) . Therefore, by the change-of-measure identity, we have
Pr 2 [ E n ] = E 2 [ 1 E n ] = E 1 [ d P 2 d P 1 ⋅ 1 E n ] = E 1 [ L n 1 E n ] , \Pr_2[E_n]=\mathbb{E}_2[\mathbf{1}_{E_n}]=\mathbb{E}_1\left[\frac{dP_2}{dP_1}\cdot\mathbf{1}_{E_n}\right]=\mathbb{E}_1[L_n\mathbf{1}_{E_n}], 2 Pr [ E n ] = E 2 [ 1 E n ] = E 1 [ d P 1 d P 2 ⋅ 1 E n ] = E 1 [ L n 1 E n ] ,
and, by the Cauchy–Schwarz inequality, we obtain
Pr 2 [ E n ] = E 1 [ L n 1 E n ] ≤ E 1 [ L n 2 ] Pr 1 [ E n ] ⟶ 0 , \Pr_2[E_n]=\mathbb{E}_1[L_n\mathbf{1}_{E_n}]\le\sqrt{\mathbb{E}_1[L_n^2]\Pr_1[E_n]}\longrightarrow0, 2 Pr [ E n ] = E 1 [ L n 1 E n ] ≤ E 1 [ L n 2 ] 1 Pr [ E n ] ⟶ 0 ,
where the limit follows from (13) and Pr 1 [ E n ] → 0 \Pr_1[E_n]\to0 Pr 1 [ E n ] → 0 . This contradicts the positive lower bound in (12) .
The same argument gives a positive gap from γ \gamma γ for each fixed sample bound. For k = 1 k=1 k = 1 , we have γ = 1 / 2 \gamma=1/2 γ = 1/2 and t 2 = 1 = k t_2=1=k t 2 = 1 = k , so the choice a < t 2 < b < k a<t_2<b<k a < t 2 < b < k is impossible, which is why there exists an optimal two-sample OCRS like the one we present in § 3.3 .
Corollary 5.2. For every fixed k ≥ 2 k\ge2 k ≥ 2 and finite m ≥ 0 m\ge0 m ≥ 0 , there is ε k , m > 0 \varepsilon_{k,m}>0 ε k , m > 0 such that every OCRS using at most m m m samples per element has worst-case balancedness at most γ − ε k , m \gamma-\varepsilon_{k,m} γ − ε k , m , even on instances with ∑ i p i = k \sum_i p_i=k ∑ i p i = k .
Proof. Suppose, towards contradiction, that there is a sequence of OCRSs with balancedness guarantees c r → γ c_r \to\gamma c r → γ , all using at most m m m samples per element. Apply the r r r -th OCRS to the two instances above with block size n r → ∞ n_r \to\infty n r → ∞ . The inequalities for a fixed instance in the proof of Lemma 5.1 hold with c r c_r c r in place of γ \gamma γ . Since c r → γ c_r \to\gamma c r → γ , taking the limit gives the same inequalities for H ℓ H_\ell H ℓ and the same bound H k ( k ) ≤ 1 − γ H_k(k) \le1-\gamma H k ( k ) ≤ 1 − γ . That proof therefore still gives (12) . The second moments in (13) remain bounded because m m m is fixed, and the same Cauchy–Schwarz argument that yields a contradiction still holds.
AI Disclosure Statement
The problem formulation and the proof of Theorem 3.1 were developed by the authors. The authors also developed the original ROCRS in Appendix § 8 . Subsequently, a simpler ROCRS was obtained with the use of ChatGPT (GPT 6 Astra); this is the scheme presented in § 4.1 . The remaining proofs were developed by ChatGPT (GPT 5.6 Sol and GPT 6 Astra) after lengthy discussions with the authors who provided guidance and feedback for the AI’s approaches. The paper was written by the authors, who take full responsibility for its correctness and logical integrity.
Missing Proofs
Proof of Theorem 3.2
Theorem 3.2. There does not exist a single-sample, 1 / 2 1/2 1/2 -balanced OCRS in the single-item setting, when the elements arrive in adversarial order.
Proof. Suppose, towards contradiction, that there exists a single-sample 1 / 2 1/2 1/2 -balanced OCRS π \pi π . Fix ε = 1 / 1000 \varepsilon= 1/1000 ε = 1/1000 . We consider the following five instances p ( 1 ) , … , p ( 5 ) p^{(1)}, \ldots, p^{(5)} p ( 1 ) , … , p ( 5 ) on 6 elements and study how well the algorithm performs on them, not knowing which instance it is actually facing.
Table 3.
For each S ⊆ { 3 , 4 , 5 } S \subseteq\{3,4,5\} S ⊆ { 3 , 4 , 5 } , let a S a_S a S be the probability that π \pi π accepts element 3, conditional on elements 1 and 2 being online-inactive, element 3 being online-active, the sample-active elements among { 3 , 4 , 5 } \{3,4,5\} { 3 , 4 , 5 } being exactly S S S , and all other elements being sample-inactive. In other words,
a S ≔ Pr [ A 3 ∣ X 1 = X 2 = 0 , X 3 = 1 , ( Y 3 , Y 4 , Y 5 ) = 1 S , ( Y 1 , Y 2 , Y 6 ) = 0 ] . a_S \coloneqq\Pr\left[A_3 \mid X_1=X_2=0, X_3=1, (Y_3,Y_4,Y_5)=1_S, (Y_1,Y_2,Y_6)=0\right]. a S : = Pr [ A 3 ∣ X 1 = X 2 = 0 , X 3 = 1 , ( Y 3 , Y 4 , Y 5 ) = 1 S , ( Y 1 , Y 2 , Y 6 ) = 0 ] .
Since the algorithm does not know p p p and a S a_S a S depends only on the fixed observations up to element 3, the values a S a_S a S are the same across all five instances.
First, consider the fact that the algorithm might be facing p ( 1 ) p^{(1)} p ( 1 ) . Since π \pi π is 1/2-balanced, C 1 ( p ( 1 ) ) , C 2 ( p ( 1 ) ) ≥ 1 / 2 C_1(p^{(1)}), C_2(p^{(1)}) \ge1/2 C 1 ( p ( 1 ) ) , C 2 ( p ( 1 ) ) ≥ 1/2 and we have
Pr [ R 3 ∣ X 3 = 1 ] = 1 − Pr [ A 1 ∣ X 3 = 1 ] − Pr [ A 2 ∣ X 3 = 1 ] = 1 − Pr [ A 1 ] − Pr [ A 2 ] = 1 − ( 1 2 − ε ) C 1 ( p ( 1 ) ) − 1 2 C 2 ( p ( 1 ) ) ≤ 1 − ( 1 2 − ε ) 1 2 − 1 2 ⋅ 1 2 ⋅ 1 2 = 1 2 + ε 2 . \begin{aligned}
\Pr[R_3 \mid X_3 = 1] &= 1 - \Pr[A_1 \mid X_3 = 1] - \Pr[A_2 \mid X_3 = 1] = 1 - \Pr[A_1] - \Pr[A_2] \\
&= 1 - \left(\frac{1}{2} - \varepsilon\right) C_1(p^{(1)}) - \frac{1}{2}C_2(p^{(1)}) \le1 - \left(\frac{1}{2} - \varepsilon\right)\frac{1}{2} - \frac{1}{2}\cdot\frac{1}{2}\cdot\frac{1}{2} \\
&= \frac{1}{2} + \frac{\varepsilon}{2}.
\end{aligned} Pr [ R 3 ∣ X 3 = 1 ] = 1 − Pr [ A 1 ∣ X 3 = 1 ] − Pr [ A 2 ∣ X 3 = 1 ] = 1 − Pr [ A 1 ] − Pr [ A 2 ] = 1 − ( 2 1 − ε ) C 1 ( p ( 1 ) ) − 2 1 C 2 ( p ( 1 ) ) ≤ 1 − ( 2 1 − ε ) 2 1 − 2 1 ⋅ 2 1 ⋅ 2 1 = 2 1 + 2 ε .
Let D 3 D_3 D 3 be the event that element 3 is online-active, π \pi π reaches it, and π \pi π rejects it, i.e. D 3 : = { X 3 = 1 } ∩ R 3 ∩ A 3 c D_3 := \{X_3 = 1\} \cap R_3 \cap A_3^c D 3 := { X 3 = 1 } ∩ R 3 ∩ A 3 c , and observe that A 3 ⊆ R 3 ∩ { X 3 = 1 } A_3 \subseteq R_3 \cap\{X_3 = 1\} A 3 ⊆ R 3 ∩ { X 3 = 1 } . Since π \pi π is 1/2-balanced, C 3 ( p ( 1 ) ) ≥ 1 / 2 C_3(p^{(1)}) \ge1/2 C 3 ( p ( 1 ) ) ≥ 1/2 , and we have
Pr [ D 3 ∣ X 3 = 1 ] = Pr [ R 3 ∣ X 3 = 1 ] − Pr [ A 3 ∣ X 3 = 1 ] = Pr [ R 3 ∣ X 3 = 1 ] − C 3 ( p ( 1 ) ) ≤ ε 2 . \begin{aligned}
\Pr[D_3 \mid X_3 = 1] &= \Pr[R_3 \mid X_3 = 1] - \Pr[A_3 \mid X_3 = 1] \\
&= \Pr[R_3 \mid X_3 = 1] - C_3(p^{(1)}) \le\frac{\varepsilon}{2}.
\end{aligned} Pr [ D 3 ∣ X 3 = 1 ] = Pr [ R 3 ∣ X 3 = 1 ] − Pr [ A 3 ∣ X 3 = 1 ] = Pr [ R 3 ∣ X 3 = 1 ] − C 3 ( p ( 1 ) ) ≤ 2 ε .
Next, consider the event E = { X 1 = X 2 = 0 , Y 1 = Y 2 = ⋯ = Y 6 = 0 } E = \{X_1 = X_2 = 0, Y_1 = Y_2 = \cdots= Y_6 = 0\} E = { X 1 = X 2 = 0 , Y 1 = Y 2 = ⋯ = Y 6 = 0 } . Whenever E E E happens, we cannot accept elements 1 and 2, thus E ⊆ R 3 E \subseteq R_3 E ⊆ R 3 . Furthermore,
Pr [ A 3 ∣ E , X 3 = 1 ] = a ∅ , \Pr[A_3 \mid E, X_3 = 1] = a_{\varnothing}, Pr [ A 3 ∣ E , X 3 = 1 ] = a ∅ ,
and also Pr [ E ] = ( 1 / 4 ) ( 1 / 2 + ε ) 2 ( 1 − ε ) ≥ 1 / 16 \Pr[E] = (1/4)(1/2 + \varepsilon)^2(1 - \varepsilon) \ge1/16 Pr [ E ] = ( 1/4 ) ( 1/2 + ε ) 2 ( 1 − ε ) ≥ 1/16 . Whenever E E E occurs, element 3 is online-active, and the algorithm rejects it, then the event D 3 D_3 D 3 occurs. Therefore,
Pr [ D 3 ∣ X 3 = 1 ] ≥ Pr [ E ∩ A 3 c ∣ X 3 = 1 ] = Pr [ E ∣ X 3 = 1 ] Pr [ A 3 c ∣ E , X 3 = 1 ] = Pr [ E ] ( 1 − a ∅ ) ≥ 1 16 ( 1 − a ∅ ) , \begin{aligned}
\Pr[D_3 \mid X_3 = 1] &\ge\Pr[E \cap A_3^c \mid X_3 = 1] \\
&= \Pr[E \mid X_3 = 1]\Pr[A_3^c \mid E, X_3 = 1] = \Pr[E](1 - a_{\varnothing}) \\
&\ge\frac{1}{16}(1 - a_{\varnothing}),
\end{aligned} Pr [ D 3 ∣ X 3 = 1 ] ≥ Pr [ E ∩ A 3 c ∣ X 3 = 1 ] = Pr [ E ∣ X 3 = 1 ] Pr [ A 3 c ∣ E , X 3 = 1 ] = Pr [ E ] ( 1 − a ∅ ) ≥ 16 1 ( 1 − a ∅ ) ,
which implies that
1 16 ( 1 − a ∅ ) ≤ ε 2 ⟺ a ∅ ≥ 1 − 8 ε . \frac{1}{16}(1 - a_{\varnothing}) \le\frac{\varepsilon}{2} \Longleftrightarrow a_{\varnothing} \ge1 - 8\varepsilon. 16 1 ( 1 − a ∅ ) ≤ 2 ε ⟺ a ∅ ≥ 1 − 8 ε .
Next consider the fact that the algorithm might be facing p ( 2 ) , p ( 3 ) p^{(2)}, p^{(3)} p ( 2 ) , p ( 3 ) or p ( 4 ) p^{(4)} p ( 4 ) . Under p ( 2 ) p^{(2)} p ( 2 ) , elements 1 and 2 are online-inactive and the sample-active set is exactly { 3 } \{3\} { 3 } , thus
a { 3 } = C 3 ( p ( 2 ) ) ≥ 1 2 . a_{\{3\}} = C_3(p^{(2)}) \ge\frac{1}{2}. a { 3 } = C 3 ( p ( 2 ) ) ≥ 2 1 .
For each j ∈ { 4 , 5 } j \in\{4,5\} j ∈ { 4 , 5 } , under p ( j − 1 ) p^{(j-1)} p ( j − 1 ) elements 1 and 2 are again online-inactive, and the sample-active set is exactly { j } \{j\} { j } with probability ( 1 − ε ) 2 (1 - \varepsilon)^2 ( 1 − ε ) 2 , independently of X 3 X_3 X 3 . Since the probability of accepting element 3 on any other sample outcome is at most 1,
1 2 ≤ C 3 ( p ( j − 1 ) ) ≤ ( 1 − ε ) 2 a { j } + 1 − ( 1 − ε ) 2 ≤ a { j } + 2 ε . \frac{1}{2} \le C_3(p^{(j-1)}) \le(1 - \varepsilon)^2 a_{\{j\}} + 1 - (1 - \varepsilon)^2 \le a_{\{j\}} + 2\varepsilon. 2 1 ≤ C 3 ( p ( j − 1 ) ) ≤ ( 1 − ε ) 2 a { j } + 1 − ( 1 − ε ) 2 ≤ a { j } + 2 ε .
Consequently, a { 4 } , a { 5 } ≥ 1 / 2 − 2 ε a_{\{4\}}, a_{\{5\}} \ge1/2 - 2\varepsilon a { 4 } , a { 5 } ≥ 1/2 − 2 ε .
Finally, consider p ( 5 ) p^{(5)} p ( 5 ) , and let S S S be the random set of sample-active elements among { 3 , 4 , 5 } \{3,4,5\} { 3 , 4 , 5 } . Elements 1 and 2 are both online-inactive and sample-inactive, while Y 6 Y_6 Y 6 is independent of S S S and X 3 X_3 X 3 . Therefore,
C 3 ( p ( 5 ) ) ≥ ( 1 − ε ) Pr [ A 3 ∣ Y 6 = 0 , X 3 = 1 ] = ( 1 − ε ) E [ a S ] . C_3(p^{(5)}) \ge(1 - \varepsilon)\Pr[A_3 \mid Y_6 = 0, X_3 = 1] = (1 - \varepsilon)\mathbb{E}[a_S]. C 3 ( p ( 5 ) ) ≥ ( 1 − ε ) Pr [ A 3 ∣ Y 6 = 0 , X 3 = 1 ] = ( 1 − ε ) E [ a S ] .
Also, when facing p ( 5 ) p^{(5)} p ( 5 ) ,
Pr [ S = ∅ ] = ( 2 3 ) 2 ( 2 3 + ε ) ≥ 8 27 , \Pr[S=\emptyset]=\left(\frac{2}{3}\right)^2\left(\frac{2}{3}+\varepsilon\right)\ge\frac{8}{27}, Pr [ S = ∅ ] = ( 3 2 ) 2 ( 3 2 + ε ) ≥ 27 8 ,
and
Pr [ ∣ S ∣ = 1 ] = 2 ⋅ 1 3 ⋅ 2 3 ( 2 3 + ε ) + ( 1 3 − ε ) ( 2 3 ) 2 = 4 9 . \Pr[|S|=1]=2\cdot\frac{1}{3}\cdot\frac{2}{3}\left(\frac{2}{3}+\varepsilon\right)+\left(\frac{1}{3}-\varepsilon\right)\left(\frac{2}{3}\right)^2=\frac{4}{9}. Pr [ ∣ S ∣ = 1 ] = 2 ⋅ 3 1 ⋅ 3 2 ( 3 2 + ε ) + ( 3 1 − ε ) ( 3 2 ) 2 = 9 4 .
Therefore,
C 3 ( p ( 5 ) ) ≥ ( 1 − ε ) ( 8 27 ( 1 − 8 ε ) + 4 9 ( 1 2 − 2 ε ) ) ≥ 14 27 − 4 ε > 1 2 + 3 ε 2 . (14) C_3(p^{(5)})\ge(1-\varepsilon)\left(\frac{8}{27}(1-8\varepsilon)+\frac{4}{9}\left(\frac{1}{2}-2\varepsilon\right)\right)\ge\frac{14}{27}-4\varepsilon>\frac{1}{2}+\frac{3\varepsilon}{2}. \tag*{(14)} C 3 ( p ( 5 ) ) ≥ ( 1 − ε ) ( 27 8 ( 1 − 8 ε ) + 9 4 ( 2 1 − 2 ε ) ) ≥ 27 14 − 4 ε > 2 1 + 2 3 ε . (14)
where the last inequality uses ε = 1 / 1000 \varepsilon=1/1000 ε = 1/1000 .
Furthermore, the 1 / 2 1/2 1/2 -balancedness for elements 4, 5, and 6 together with (3) for i = 6 i=6 i = 6 , imply that
1 3 C 3 ( p ( 5 ) ) ≤ 1 − C 6 ( p ( 5 ) ) − 1 3 C 4 ( p ( 5 ) ) − ( 1 3 − ε ) C 5 ( p ( 5 ) ) \frac{1}{3}C_3(p^{(5)})\le1-C_6(p^{(5)})-\frac{1}{3}C_4(p^{(5)})-\left(\frac{1}{3}-\varepsilon\right)C_5(p^{(5)}) 3 1 C 3 ( p ( 5 ) ) ≤ 1 − C 6 ( p ( 5 ) ) − 3 1 C 4 ( p ( 5 ) ) − ( 3 1 − ε ) C 5 ( p ( 5 ) )
≤ 1 − 1 2 − 1 6 − ( 1 6 − ε 2 ) = 1 6 + ε 2 . \le1-\frac{1}{2}-\frac{1}{6}-\left(\frac{1}{6}-\frac{\varepsilon}{2}\right)=\frac{1}{6}+\frac{\varepsilon}{2}. ≤ 1 − 2 1 − 6 1 − ( 6 1 − 2 ε ) = 6 1 + 2 ε .
Thus, C 3 ( p ( 5 ) ) ≤ 1 / 2 + 3 ε / 2 C_3(p^{(5)})\le1/2+3\varepsilon/2 C 3 ( p ( 5 ) ) ≤ 1/2 + 3 ε /2 , contradicting (14) . Therefore, there does not exist a single-sample, 1 / 2 1/2 1/2 -balanced OCRS.
In fact, this construction shows an upper bound on the balancedness of single-sample OCRSs of 0.499. To see this, set c = 0.499 c=0.499 c = 0.499 and use the same five instances with ε = 1 / 10000 \varepsilon=1/10000 ε = 1/10000 . If the scheme were c c c -balanced, the preceding reach and rejection calculation would give
a ∅ ≥ 1 − 16 ( 1 − ( 2 − ε ) c ) , a { 3 } ≥ c , a { 4 } , a { 5 } ≥ c − 2 ε . a_{\emptyset}\ge1-16(1-(2-\varepsilon)c),\qquad a_{\{3\}}\ge c,\qquad a_{\{4\}},a_{\{5\}}\ge c-2\varepsilon. a ∅ ≥ 1 − 16 ( 1 − ( 2 − ε ) c ) , a { 3 } ≥ c , a { 4 } , a { 5 } ≥ c − 2 ε .
Thus,
C 3 ( p ( 5 ) ) ≥ ( 1 − ε ) ( 8 27 ( 1 − 16 ( 1 − ( 2 − ε ) c ) ) + 4 9 ( c − 2 ε ) ) > 0.5082. C_3(p^{(5)})\ge(1-\varepsilon)\left(\frac{8}{27}(1-16(1-(2-\varepsilon)c))+\frac{4}{9}(c-2\varepsilon)\right)>0.5082. C 3 ( p ( 5 ) ) ≥ ( 1 − ε ) ( 27 8 ( 1 − 16 ( 1 − ( 2 − ε ) c )) + 9 4 ( c − 2 ε ) ) > 0.5082.
However, the constraint for element 6 gives
C 3 ( p ( 5 ) ) ≤ 3 − ( 5 − 3 ε ) c < 0.5052 , C_3(p^{(5)})\le3-(5-3\varepsilon)c<0.5052, C 3 ( p ( 5 ) ) ≤ 3 − ( 5 − 3 ε ) c < 0.5052 ,
a contradiction.
Proof of Lemma 3.2
Lemma 3.2. For every element i i i ,
ε i ≤ 1 − 1 / e 12 p i ( 1 − p i ) . \varepsilon_i\le\frac{1-1/e}{12}p_i(1-p_i). ε i ≤ 12 1 − 1/ e p i ( 1 − p i ) . Proof. If p i = 0 p_i=0 p i = 0 , then ε i = 0 \varepsilon_i=0 ε i = 0 ; thus assume p i > 0 p_i>0 p i > 0 . Condition on Y i = 1 Y_i=1 Y i = 1 and let
∣ S − i ∣ = ∑ j ≠ i Y j , and q i : = E [ ∣ S − i ∣ ] = ∑ j ≠ i p j = 1 − p i . |S-i|=\sum_{j\ne i}Y_j,\qquad\text{and}\qquad q_i:=\mathbb{E}[|S-i|]=\sum_{j\ne i}p_j=1-p_i. ∣ S − i ∣ = j = i ∑ Y j , and q i := E [ ∣ S − i ∣ ] = j = i ∑ p j = 1 − p i .
If ∣ S − i ∣ = 0 , 1 |S-i|=0,1 ∣ S − i ∣ = 0 , 1 , Algorithm 3 sets T = i T=i T = i with probability 1 / 2 1/2 1/2 . If, on the other hand, ∣ S − i ∣ = z ≥ 2 |S-i|=z\ge2 ∣ S − i ∣ = z ≥ 2 , T T T is chosen uniformly at random among the z + 1 z+1 z + 1 sample-active elements; thus, it sets T = i T=i T = i with probability 1 / ( z + 1 ) 1/(z+1) 1/ ( z + 1 ) . Define φ : N → R \varphi:\mathbb{N}\to\mathbb{R} φ : N → R as
φ ( z ) : = { 0 for z ≤ 1 , 1 2 − 1 z + 1 for z ≥ 2 , \varphi(z):=
\begin{cases}
0 & \text{for } z\le1,\\
\frac{1}{2}-\frac{1}{z+1} & \text{for } z\ge2,
\end{cases} φ ( z ) := { 0 2 1 − z + 1 1 for z ≤ 1 , for z ≥ 2 ,
and notice that
ε i = p i E [ φ ( ∣ S − i ∣ ) ] . \varepsilon_i=p_i\mathbb{E}[\varphi(|S-i|)]. ε i = p i E [ φ ( ∣ S − i ∣ )] .
Observe that, for every integer z ≥ 2 z\ge2 z ≥ 2 ,
1 2 − 1 z + 1 ≤ z 12 , \frac{1}{2}-\frac{1}{z+1}\le\frac{z}{12}, 2 1 − z + 1 1 ≤ 12 z ,
since this inequality is equivalent to ( z − 2 ) ( z − 3 ) ≥ 0 (z-2)(z-3)\ge0 ( z − 2 ) ( z − 3 ) ≥ 0 . Therefore,
ε i p i = ∑ z ≥ 2 ( 1 2 − 1 z + 1 ) Pr [ ∣ S − i ∣ = z ] ≤ 1 12 ∑ z ≥ 2 z Pr [ ∣ S − i ∣ = z ] = 1 12 ( E [ ∣ S − i ∣ ] − Pr [ ∣ S − i ∣ = 1 ] ) = q i − Pr [ ∣ S − i ∣ = 1 ] 12 . (15) \begin{aligned}
\frac{\varepsilon_i}{p_i}
&=\sum_{z\ge2}\left(\frac{1}{2}-\frac{1}{z+1}\right)\Pr[|S-i|=z]\\
&\le\frac{1}{12}\sum_{z\ge2}z\Pr[|S-i|=z]\\
&=\frac{1}{12}\left(\mathbb{E}[|S-i|]-\Pr[|S-i|=1]\right)
=\frac{q_i-\Pr[|S-i|=1]}{12}. \tag*{(15)}
\end{aligned} p i ε i = z ≥ 2 ∑ ( 2 1 − z + 1 1 ) Pr [ ∣ S − i ∣ = z ] ≤ 12 1 z ≥ 2 ∑ z Pr [ ∣ S − i ∣ = z ] = 12 1 ( E [ ∣ S − i ∣ ] − Pr [ ∣ S − i ∣ = 1 ] ) = 12 q i − Pr [ ∣ S − i ∣ = 1 ] . (15)
If q i = 0 q_i=0 q i = 0 , the desired inequality follows trivially. Otherwise, 0 < q i < 1 0<q_i<1 0 < q i < 1 since p i > 0 p_i>0 p i > 0 . By Hoeffding’s theorem [22 Corollary 2.1] , the minimum singleton probability at fixed mean q i q_i q i is attained by r r r equal non-zero probabilities q i / r q_i/r q i / r . Thus,
Pr [ ∣ S − i ∣ = 1 ] ≥ q i ( 1 − q i / r ) r − 1 ≥ q i e − q i , \Pr[|S-i|=1]\ge q_i(1-q_i/r)^{r-1}\ge q_i e^{-q_i}, Pr [ ∣ S − i ∣ = 1 ] ≥ q i ( 1 − q i / r ) r − 1 ≥ q i e − q i ,
where the last inequality follows from ( 1 − x / r ) r − 1 ≥ e − x (1-x/r)^{r-1}\ge e^{-x} ( 1 − x / r ) r − 1 ≥ e − x for 0 ≤ x ≤ 1 0\le x\le1 0 ≤ x ≤ 1 . Substituting this into (15) , we get that
ε i ≤ 1 − e − q i 12 p i q i = 1 − e − q i 12 p i ( 1 − p i ) ≤ 1 − 1 / e 12 p i ( 1 − p i ) , \varepsilon_i\le\frac{1-e^{-q_i}}{12}p_iq_i=\frac{1-e^{-q_i}}{12}p_i(1-p_i)\le\frac{1-1/e}{12}p_i(1-p_i), ε i ≤ 12 1 − e − q i p i q i = 12 1 − e − q i p i ( 1 − p i ) ≤ 12 1 − 1/ e p i ( 1 − p i ) ,
where the last inequality follows from q i ≤ 1 q_i\le1 q i ≤ 1 .3
Proof of Lemma 3.3
Lemma 3.3. For every p ∈ [ 0 , 1 ] n p\in[0,1]^n p ∈ [ 0 , 1 ] n and ℓ ∈ [ n ] \ell\in[n] ℓ ∈ [ n ] with ∑ i = 1 ℓ p i ≤ 1 \sum_{i=1}^{\ell}p_i\le1 ∑ i = 1 ℓ p i ≤ 1 , we have
∑ i = 1 ℓ − 1 p i ( 1 − p i ) ( g ℓ ( i ) − g ℓ ( 0 ) ) ≤ 3 8 . \sum_{i=1}^{\ell-1}p_i(1-p_i)(g_\ell(i)-g_\ell(0))\le\frac{3}{8}. i = 1 ∑ ℓ − 1 p i ( 1 − p i ) ( g ℓ ( i ) − g ℓ ( 0 )) ≤ 8 3 .
Proof. For ℓ = 1 \ell=1 ℓ = 1 , the sum is empty and the statement follows trivially, so assume ℓ ≥ 2 \ell\ge2 ℓ ≥ 2 . Let S < ℓ : = S ∩ [ ℓ − 1 ] S_{<\ell}:=S\cap[\ell-1] S < ℓ := S ∩ [ ℓ − 1 ] be the set of sample-active elements before ℓ \ell ℓ , and let J J J be its last element, with J = 0 J=0 J = 0 if S < ℓ = ∅ S_{<\ell}=\varnothing S < ℓ = ∅ . Observe that, for every i < ℓ i<\ell i < ℓ ,
Pr [ J = i ] = p i ∏ i < j < ℓ ( 1 − p j ) = p i g ℓ ( i ) , \Pr[J=i]=p_i\prod_{i<j<\ell}(1-p_j)=p_i g_\ell(i), Pr [ J = i ] = p i i < j < ℓ ∏ ( 1 − p j ) = p i g ℓ ( i ) ,
and
( 1 − p i ) Pr [ J = i and ∣ S < ℓ ∣ = 1 ] = ( 1 − p i ) p i ∏ j < ℓ j ≠ i ( 1 − p j ) = p i g ℓ ( 0 ) , (1-p_i)\Pr[J=i\text{ and }|S_{<\ell}|=1]=(1-p_i)p_i\prod_{\substack{j<\ell\\j\ne i}}(1-p_j)=p_i g_\ell(0), ( 1 − p i ) Pr [ J = i and ∣ S < ℓ ∣ = 1 ] = ( 1 − p i ) p i j < ℓ j = i ∏ ( 1 − p j ) = p i g ℓ ( 0 ) ,
since { J = i , ∣ S < ℓ ∣ = 1 } \{J=i, |S_{<\ell}|=1\} { J = i , ∣ S < ℓ ∣ = 1 } is the event S < ℓ = { i } S_{<\ell}=\{i\} S < ℓ = { i } . Therefore,
∑ i = 1 ℓ − 1 p i ( 1 − p i ) ( g ℓ ( i ) − g ℓ ( 0 ) ) = ∑ i < ℓ ( 1 − p i ) ( p i g ℓ ( i ) − p i g ℓ ( 0 ) ) = ∑ i = 1 ℓ − 1 ( 1 − p i ) ( Pr [ J = i ] − ( 1 − p i ) Pr [ J = i , ∣ S < ℓ ∣ = 1 ] ) = ∑ i = 1 ℓ − 1 ( 1 − p i ) Pr [ J = i , ∣ S < ℓ ∣ ≥ 2 ] + ∑ i = 1 ℓ − 1 ( ( 1 − p i ) − ( 1 − p i ) 2 ) Pr [ J = i , ∣ S < ℓ ∣ = 1 ] = ∑ i = 1 ℓ − 1 ( 1 − p i ) Pr [ J = i , ∣ S < ℓ ∣ ≥ 2 ] + ∑ i = 1 ℓ − 1 p i ( 1 − p i ) Pr [ J = i , ∣ S < ℓ ∣ = 1 ] ≤ ∑ i = 1 ℓ − 1 Pr [ J = i , ∣ S < ℓ ∣ ≥ 2 ] + 1 4 ∑ i = 1 ℓ − 1 Pr [ J = i , ∣ S < ℓ ∣ = 1 ] ≤ Pr [ ∣ S < ℓ ∣ ≥ 2 ] + 1 4 Pr [ ∣ S < ℓ ∣ = 1 ] = 1 − Pr [ ∣ S < ℓ ∣ = 0 ] − 3 4 Pr [ ∣ S < ℓ ∣ = 1 ] , \begin{aligned}
\sum_{i=1}^{\ell-1}p_i(1-p_i)(g_\ell(i)-g_\ell(0))
&=\sum_{i<\ell}(1-p_i)(p_i g_\ell(i)-p_i g_\ell(0))\\
&=\sum_{i=1}^{\ell-1}(1-p_i)\bigl(\Pr[J=i]-(1-p_i)\Pr[J=i,|S_{<\ell}|=1]\bigr)\\
&=\sum_{i=1}^{\ell-1}(1-p_i)\Pr[J=i,|S_{<\ell}|\ge2]\\
&\quad+\sum_{i=1}^{\ell-1}\bigl((1-p_i)-(1-p_i)^2\bigr)\Pr[J=i,|S_{<\ell}|=1]\\
&=\sum_{i=1}^{\ell-1}(1-p_i)\Pr[J=i,|S_{<\ell}|\ge2]\\
&\quad+\sum_{i=1}^{\ell-1}p_i(1-p_i)\Pr[J=i,|S_{<\ell}|=1]\\
&\le\sum_{i=1}^{\ell-1}\Pr[J=i,|S_{<\ell}|\ge2]
+\frac{1}{4}\sum_{i=1}^{\ell-1}\Pr[J=i,|S_{<\ell}|=1]\\
&\le\Pr[|S_{<\ell}|\ge2]+\frac{1}{4}\Pr[|S_{<\ell}|=1]\\
&=1-\Pr[|S_{<\ell}|=0]-\frac{3}{4}\Pr[|S_{<\ell}|=1],
\end{aligned} i = 1 ∑ ℓ − 1 p i ( 1 − p i ) ( g ℓ ( i ) − g ℓ ( 0 )) = i < ℓ ∑ ( 1 − p i ) ( p i g ℓ ( i ) − p i g ℓ ( 0 )) = i = 1 ∑ ℓ − 1 ( 1 − p i ) ( Pr [ J = i ] − ( 1 − p i ) Pr [ J = i , ∣ S < ℓ ∣ = 1 ] ) = i = 1 ∑ ℓ − 1 ( 1 − p i ) Pr [ J = i , ∣ S < ℓ ∣ ≥ 2 ] + i = 1 ∑ ℓ − 1 ( ( 1 − p i ) − ( 1 − p i ) 2 ) Pr [ J = i , ∣ S < ℓ ∣ = 1 ] = i = 1 ∑ ℓ − 1 ( 1 − p i ) Pr [ J = i , ∣ S < ℓ ∣ ≥ 2 ] + i = 1 ∑ ℓ − 1 p i ( 1 − p i ) Pr [ J = i , ∣ S < ℓ ∣ = 1 ] ≤ i = 1 ∑ ℓ − 1 Pr [ J = i , ∣ S < ℓ ∣ ≥ 2 ] + 4 1 i = 1 ∑ ℓ − 1 Pr [ J = i , ∣ S < ℓ ∣ = 1 ] ≤ Pr [ ∣ S < ℓ ∣ ≥ 2 ] + 4 1 Pr [ ∣ S < ℓ ∣ = 1 ] = 1 − Pr [ ∣ S < ℓ ∣ = 0 ] − 4 3 Pr [ ∣ S < ℓ ∣ = 1 ] ,
where the third equality follows from the fact that Pr [ J = i ] = Pr [ J = i , ∣ S < ℓ ∣ = 1 ] + Pr [ J = i , ∣ S < ℓ ∣ ≥ 2 ] \Pr[J=i]=\Pr[J=i,|S_{<\ell}|=1]+\Pr[J=i,|S_{<\ell}|\ge2] Pr [ J = i ] = Pr [ J = i , ∣ S < ℓ ∣ = 1 ] + Pr [ J = i , ∣ S < ℓ ∣ ≥ 2 ] , the fourth equality follows from the fact that ( 1 − p i ) − ( 1 − p i ) 2 = p i ( 1 − p i ) (1-p_i)-(1-p_i)^2=p_i(1-p_i) ( 1 − p i ) − ( 1 − p i ) 2 = p i ( 1 − p i ) and the inequality follows from the facts that 1 − p i ≤ 1 1-p_i\le1 1 − p i ≤ 1 and p i ( 1 − p i ) ≤ 1 / 4 p_i(1-p_i)\le1/4 p i ( 1 − p i ) ≤ 1/4 , together with the law of total probability. Thus, it suffices to show that
Pr [ ∣ S < ℓ ∣ = 0 ] + 3 4 Pr [ ∣ S < ℓ ∣ = 1 ] ≥ 5 8 . \Pr[|S_{<\ell}|=0]+\frac{3}{4}\Pr[|S_{<\ell}|=1]\ge\frac{5}{8}. Pr [ ∣ S < ℓ ∣ = 0 ] + 4 3 Pr [ ∣ S < ℓ ∣ = 1 ] ≥ 8 5 .
Define ψ : N → R \psi:\mathbb{N}\to\mathbb{R} ψ : N → R as
ψ ( z ) : = { 1 for z = 0 , 3 4 for z = 1 , 0 for z ≥ 2 , \psi(z):=
\begin{cases}
1 & \text{for }z=0,\\
\frac{3}{4} & \text{for }z=1,\\
0 & \text{for }z\ge2,
\end{cases} ψ ( z ) := ⎩ ⎨ ⎧ 1 4 3 0 for z = 0 , for z = 1 , for z ≥ 2 ,
and observe that Pr [ ∣ S < ℓ ∣ = 0 ] + ( 3 / 4 ) Pr [ ∣ S < ℓ ∣ = 1 ] = E [ ψ ( ∣ S < ℓ ∣ ) ] \Pr[|S_{<\ell}|=0]+(3/4)\Pr[|S_{<\ell}|=1]=\mathbb{E}[\psi(|S_{<\ell}|)] Pr [ ∣ S < ℓ ∣ = 0 ] + ( 3/4 ) Pr [ ∣ S < ℓ ∣ = 1 ] = E [ ψ ( ∣ S < ℓ ∣ )] . Furthermore, ψ \psi ψ is non-increasing and thus increasing any p i p_i p i for i < ℓ i<\ell i < ℓ cannot increase E [ ψ ( ∣ S < ℓ ∣ ) ] \mathbb{E}[\psi(|S_{<\ell}|)] E [ ψ ( ∣ S < ℓ ∣ )] . Therefore, E [ ψ ( ∣ S < ℓ ∣ ) ] \mathbb{E}[\psi(|S_{<\ell}|)] E [ ψ ( ∣ S < ℓ ∣ )] is minimized for ∑ i = 1 ℓ − 1 p i = 1 \sum_{i=1}^{\ell-1}p_i=1 ∑ i = 1 ℓ − 1 p i = 1 .
By Hoeffding’s theorem [22 Corollary 2.1] , we can choose such a minimizing vector with probabilities p i ∈ { 0 , a , 1 } p_i\in\{0,a,1\} p i ∈ { 0 , a , 1 } for all i ∈ [ ℓ − 1 ] i\in[\ell-1] i ∈ [ ℓ − 1 ] and for some a ∈ ( 0 , 1 ) a\in(0,1) a ∈ ( 0 , 1 ) . If there exists p i = 1 p_i=1 p i = 1 then p j = 0 p_j=0 p j = 0 for all j ≠ i j\ne i j = i and ∣ S < ℓ ∣ = 1 |S_{<\ell}|=1 ∣ S < ℓ ∣ = 1 with probability one, in which case E [ ψ ( ∣ S < ℓ ∣ ) ] = 3 / 4 > 5 / 8 \mathbb{E}[\psi(|S_{<\ell}|)]=3/4>5/8 E [ ψ ( ∣ S < ℓ ∣ )] = 3/4 > 5/8 . Assume that there are r ≥ 2 r\ge2 r ≥ 2 non-zero probabilities, all equal to a = 1 / r a=1/r a = 1/ r , and thus ∣ S < ℓ ∣ ∼ Bin ( r , 1 / r ) |S_{<\ell}|\sim\operatorname{Bin}(r,1/r) ∣ S < ℓ ∣ ∼ Bin ( r , 1/ r ) . In this case,
E [ ψ ( ∣ S < ℓ ∣ ) ] = ( 1 − 1 r ) r + 3 4 ( 1 − 1 r ) r − 1 = ( 1 − 1 r ) r − 1 ( 7 4 − 1 r ) . \mathbb{E}[\psi(|S_{<\ell}|)]
=\left(1-\frac{1}{r}\right)^r+\frac{3}{4}\left(1-\frac{1}{r}\right)^{r-1}
=\left(1-\frac{1}{r}\right)^{r-1}\left(\frac{7}{4}-\frac{1}{r}\right). E [ ψ ( ∣ S < ℓ ∣ )] = ( 1 − r 1 ) r + 4 3 ( 1 − r 1 ) r − 1 = ( 1 − r 1 ) r − 1 ( 4 7 − r 1 ) .
Let
f ( r ) : = log ( ( 1 − 1 r ) r − 1 ( 7 4 − 1 r ) ) = ( r − 1 ) log ( 1 − 1 r ) + log ( 7 4 − 1 r ) . f(r):=\log\left(\left(1-\frac{1}{r}\right)^{r-1}\left(\frac{7}{4}-\frac{1}{r}\right)\right)
=(r-1)\log\left(1-\frac{1}{r}\right)+\log\left(\frac{7}{4}-\frac{1}{r}\right). f ( r ) := log ( ( 1 − r 1 ) r − 1 ( 4 7 − r 1 ) ) = ( r − 1 ) log ( 1 − r 1 ) + log ( 4 7 − r 1 ) .
For r ≥ 2 r \ge2 r ≥ 2 , we have
f ′ ( r ) = log ( 1 − 1 r ) + 1 r + 4 r ( 7 r − 4 ) , and f ′ ′ ( r ) = 16 − 7 r r ( r − 1 ) ( 7 r − 4 ) 2 . f'(r) = \log\left(1-\frac{1}{r}\right)+\frac{1}{r}+\frac{4}{r(7r-4)}, \qquad\text{and} \qquad f''(r)=\frac{16-7r}{r(r-1)(7r-4)^2}. f ′ ( r ) = log ( 1 − r 1 ) + r 1 + r ( 7 r − 4 ) 4 , and f ′′ ( r ) = r ( r − 1 ) ( 7 r − 4 ) 2 16 − 7 r .
Thus f ′ f' f ′ increases on [ 2 , 16 / 7 ] [2,16/7] [ 2 , 16/7 ] and decreases to 0 0 0 afterwards. Since f ′ ( 2 ) = 7 / 10 − log 2 > 0 f'(2)=7/10-\log2>0 f ′ ( 2 ) = 7/10 − log 2 > 0 , it follows that e f ′ e^{f'} e f ′ is increasing on [ 2 , ∞ ) [2,\infty) [ 2 , ∞ ) , and hence e f ′ ( r ) ≥ e f ′ ( 2 ) = 5 8 e^{f'(r)}\ge e^{f'(2)}=\frac{5}{8} e f ′ ( r ) ≥ e f ′ ( 2 ) = 8 5 . Therefore,
∑ i = 1 ℓ − 1 p i ( 1 − p i ) ( g ℓ ( i ) − g ℓ ( 0 ) ) ≤ 1 − 5 8 = 3 8 . \sum_{i=1}^{\ell-1}p_i(1-p_i)(g_{\ell}(i)-g_{\ell}(0))\le1-\frac{5}{8}=\frac{3}{8}. i = 1 ∑ ℓ − 1 p i ( 1 − p i ) ( g ℓ ( i ) − g ℓ ( 0 )) ≤ 1 − 8 5 = 8 3 .
□ \square □
A Self-Contained Proof of Theorem 3.3
Theorem 3.3. For every p ∈ [ 0 , 1 ] n p\in[0,1]^n p ∈ [ 0 , 1 ] n with ∑ i = 1 n p i = 1 \sum_{i=1}^{n}p_i=1 ∑ i = 1 n p i = 1 , the threshold T T T in Algorithm 2 satisfies
Pr [ T = 0 ] = 1 2 , and Pr [ T = i ] = p i 2 for every i ∈ [ n ] . \Pr[T=0]=\frac{1}{2}, \qquad\text{and} \qquad\Pr[T=i]=\frac{p_i}{2}\qquad\text{for every }i\in[n]. Pr [ T = 0 ] = 2 1 , and Pr [ T = i ] = 2 p i for every i ∈ [ n ] . Proof. Recall that S = { j ∈ [ n ] ∣ Y j ( 1 ) = 1 } \mathcal{S}=\left\{j\in[n]\mid Y_j^{(1)}=1\right\} S = { j ∈ [ n ] ∣ Y j ( 1 ) = 1 } is the set of sample-active elements in the first samples, where the Y j ( 1 ) ∼ Ber ( p j ) Y_j^{(1)}\sim\operatorname{Ber}(p_j) Y j ( 1 ) ∼ Ber ( p j ) are independent. Algorithm 2 can choose T = i T=i T = i only when Y i ( 1 ) = 1 Y_i^{(1)}=1 Y i ( 1 ) = 1 , so Pr [ T = i ] = 0 \Pr[T=i]=0 Pr [ T = i ] = 0 whenever p i = 0 p_i=0 p i = 0 . If p i = 1 p_i=1 p i = 1 , then S = { i } \mathcal{S}=\{i\} S = { i } almost surely and the singleton branch chooses i i i with probability 1 / 2 1/2 1/2 , as required. Fix an element i i i with 0 < p i < 1 0<p_i<1 0 < p i < 1 . It suffices to show that
Pr [ T = i ∣ Y i ( 1 ) = 1 ] = 1 2 . \Pr\left[T=i\mid Y_i^{(1)}=1\right]=\frac{1}{2}. Pr [ T = i ∣ Y i ( 1 ) = 1 ] = 2 1 . Condition on Y i ( 1 ) = 1 Y_i^{(1)}=1 Y i ( 1 ) = 1 and on the other first samples. The probabilities below are over the second samples and the algorithm’s internal randomness. If S − i = ∅ \mathcal{S}-i=\varnothing S − i = ∅ , the algorithm chooses T = i T=i T = i with probability 1 − p i / 2 1-p_i/2 1 − p i /2 . Otherwise, conditioning on S − i ≠ ∅ \mathcal{S}-i\ne\varnothing S − i = ∅ , we have
Pr [ T = i ∣ S − i ≠ ∅ ] = 1 2 Pr [ J = i ∧ Y i ( 2 ) = 0 ∣ S − i ≠ ∅ ] + 1 2 Pr [ J ≠ i ∧ Y J ( 2 ) = 1 ∧ J ′ = i ∣ S − i ≠ ∅ ] . (16) \begin{aligned}
\Pr[T=i\mid\mathcal{S}-i\ne\varnothing]
={}&\frac{1}{2}\Pr\left[J=i\land Y_i^{(2)}=0\mid\mathcal{S}-i\ne\varnothing\right]\\
&+\frac{1}{2}\Pr\left[J\ne i\land Y_J^{(2)}=1\land J'=i\mid\mathcal{S}-i\ne\varnothing\right]. \tag*{(16)}
\end{aligned} Pr [ T = i ∣ S − i = ∅ ] = 2 1 Pr [ J = i ∧ Y i ( 2 ) = 0 ∣ S − i = ∅ ] + 2 1 Pr [ J = i ∧ Y J ( 2 ) = 1 ∧ J ′ = i ∣ S − i = ∅ ] . (16) Fix S \mathcal{S} S with i ∈ S i\in\mathcal{S} i ∈ S and ∣ S ∣ ≥ 2 |\mathcal{S}|\ge2 ∣ S ∣ ≥ 2 , and condition on S = S \mathcal{S}=\mathcal{S} S = S . The choice of J J J is uniformly random from S \mathcal{S} S and, conditional on J = j J=j J = j , the choice J ′ J' J ′ is uniform on S − j \mathcal{S}-j S − j . These choices use random coins that are independent of the Y j ( 2 ) Y_j^{(2)} Y j ( 2 ) ’s and of each other. Thus, we have
Pr [ J = i ∧ Y i ( 2 ) = 0 ∣ S = S ] + Pr [ J ≠ i ∧ Y J ( 2 ) = 1 ∧ J ′ = i ∣ S = S ] = 1 − p i ∣ S ∣ + ∑ j ∈ S − i 1 ∣ S ∣ ⋅ p j ∣ S ∣ − 1 . \Pr\left[J=i\land Y_i^{(2)}=0\mid\mathcal{S}=\mathcal{S}\right]+\Pr\left[J\ne i\land Y_J^{(2)}=1\land J'=i\mid\mathcal{S}=\mathcal{S}\right]=\frac{1-p_i}{|\mathcal{S}|}+\sum_{j\in\mathcal{S}-i}\frac{1}{|\mathcal{S}|}\cdot\frac{p_j}{|\mathcal{S}|-1}. Pr [ J = i ∧ Y i ( 2 ) = 0 ∣ S = S ] + Pr [ J = i ∧ Y J ( 2 ) = 1 ∧ J ′ = i ∣ S = S ] = ∣ S ∣ 1 − p i + j ∈ S − i ∑ ∣ S ∣ 1 ⋅ ∣ S ∣ − 1 p j . Furthermore,
1 − p i ∣ S ∣ + ∑ j ∈ S − i 1 ∣ S ∣ ⋅ p j ∣ S ∣ − 1 = 1 ∣ S ∣ ( ∑ j ∉ S p j + ∑ j ∈ S − i p j ) + ∑ j ∈ S − i 1 ∣ S ∣ ⋅ p j ∣ S ∣ − 1 = 1 ∣ S ∣ ∑ j ≠ i p j + ∑ j ∈ S − i p j ∣ S ∣ ( 1 + 1 ∣ S ∣ − 1 ) = 1 ∣ S ∣ ∑ j ≠ i p j + ∑ j ∈ S − i p j ∣ S ∣ ∣ S ∣ ∣ S ∣ − 1 \begin{aligned}
\frac{1-p_i}{|\mathcal{S}|}+\sum_{j\in\mathcal{S}-i}\frac{1}{|\mathcal{S}|}\cdot\frac{p_j}{|\mathcal{S}|-1}
&=\frac{1}{|\mathcal{S}|}\left(\sum_{j\notin\mathcal{S}}p_j+\sum_{j\in\mathcal{S}-i}p_j\right)+\sum_{j\in\mathcal{S}-i}\frac{1}{|\mathcal{S}|}\cdot\frac{p_j}{|\mathcal{S}|-1}\\
&=\frac{1}{|\mathcal{S}|}\sum_{j\ne i}p_j+\sum_{j\in\mathcal{S}-i}\frac{p_j}{|\mathcal{S}|}\left(1+\frac{1}{|\mathcal{S}|-1}\right)\\
&=\frac{1}{|\mathcal{S}|}\sum_{j\ne i}p_j+\sum_{j\in\mathcal{S}-i}\frac{p_j}{|\mathcal{S}|}\frac{|\mathcal{S}|}{|\mathcal{S}|-1}
\end{aligned} ∣ S ∣ 1 − p i + j ∈ S − i ∑ ∣ S ∣ 1 ⋅ ∣ S ∣ − 1 p j = ∣ S ∣ 1 j ∈ / S ∑ p j + j ∈ S − i ∑ p j + j ∈ S − i ∑ ∣ S ∣ 1 ⋅ ∣ S ∣ − 1 p j = ∣ S ∣ 1 j = i ∑ p j + j ∈ S − i ∑ ∣ S ∣ p j ( 1 + ∣ S ∣ − 1 1 ) = ∣ S ∣ 1 j = i ∑ p j + j ∈ S − i ∑ ∣ S ∣ p j ∣ S ∣ − 1 ∣ S ∣
= 1 ∣ S ∣ ∑ j ∉ S p j + 1 ∣ S ∣ − 1 ∑ j ∈ S − i p j , = \frac{1}{|S|}\sum_{j\notin S}p_j+\frac{1}{|S|-1}\sum_{j\in S-i}p_j, = ∣ S ∣ 1 j ∈ / S ∑ p j + ∣ S ∣ − 1 1 j ∈ S − i ∑ p j ,
where the first equality follows from the fact that ∑ j = 1 n p j = 1 \sum_{j=1}^{n}p_j=1 ∑ j = 1 n p j = 1 . Therefore,
Pr [ J = i ∧ Y i ( 2 ) = 0 ∣ S = S ] + Pr [ J ≠ i ∧ Y J ( 2 ) = 1 ∧ J ′ = i ∣ S = S ] = 1 ∣ S ∣ ∑ j ∉ S p j + 1 ∣ S ∣ − 1 ∑ j ∈ S − i p j . (17) \Pr\left[J=i\land Y_i^{(2)}=0\mid S=S\right]+\Pr\left[J\ne i\land Y_J^{(2)}=1\land J'=i\mid S=S\right]
= \frac{1}{|S|}\sum_{j\notin S}p_j+\frac{1}{|S|-1}\sum_{j\in S-i}p_j. \tag*{(17)} Pr [ J = i ∧ Y i ( 2 ) = 0 ∣ S = S ] + Pr [ J = i ∧ Y J ( 2 ) = 1 ∧ J ′ = i ∣ S = S ] = ∣ S ∣ 1 j ∈ / S ∑ p j + ∣ S ∣ − 1 1 j ∈ S − i ∑ p j . (17)
Combining (16) and (17) , we get
Pr [ T = i ∣ S − i ≠ ∅ ] = 1 2 ∑ S ⊆ [ n ] i ∈ S , ∣ S ∣ ≥ 2 Pr [ S = S ∣ S − i ≠ ∅ ] ( 1 ∣ S ∣ ∑ j ∉ S p j + 1 ∣ S ∣ − 1 ∑ j ∈ S − i p j ) . \Pr[T=i\mid S-i\ne\varnothing]=\frac{1}{2}\sum_{\substack{S\subseteq[n]\\ i\in S,|S|\ge2}}\Pr[S=S\mid S-i\ne\varnothing]\left(\frac{1}{|S|}\sum_{j\notin S}p_j+\frac{1}{|S|-1}\sum_{j\in S-i}p_j\right). Pr [ T = i ∣ S − i = ∅ ] = 2 1 S ⊆ [ n ] i ∈ S , ∣ S ∣ ≥ 2 ∑ Pr [ S = S ∣ S − i = ∅ ] ∣ S ∣ 1 j ∈ / S ∑ p j + ∣ S ∣ − 1 1 j ∈ S − i ∑ p j .
To average this expression, we rewrite the inner summand using only the first samples of elements other than i i i and j j j . Since i ∈ S i\in S i ∈ S , notice that ∣ S − i − j ∣ + 1 |S-i-j|+1 ∣ S − i − j ∣ + 1 equals ∣ S ∣ |S| ∣ S ∣ if j ∉ S j\notin S j ∈ / S and ∣ S ∣ − 1 |S|-1 ∣ S ∣ − 1 if j ∈ S − i j\in S-i j ∈ S − i . Thus,
Pr [ T = i ∣ S − i ≠ ∅ ] = 1 2 ∑ S ⊆ [ n ] i ∈ S , ∣ S ∣ ≥ 2 Pr [ S = S ∣ S − i ≠ ∅ ] ∑ j ≠ i p j ∣ S − i − j ∣ + 1 = 1 2 ∑ j ≠ i p j E [ 1 ∣ S − i − j ∣ + 1 ∣ S − i ≠ ∅ ] . \begin{aligned}
\Pr[T=i\mid S-i\ne\varnothing]=\frac{1}{2}\sum_{\substack{S\subseteq[n]\\ i\in S,|S|\ge2}}\Pr[S=S\mid S-i\ne\varnothing]\sum_{j\ne i}\frac{p_j}{|S-i-j|+1} \\
&=\frac{1}{2}\sum_{j\ne i}p_j\mathbb{E}\left[\left.\frac{1}{|S-i-j|+1}\right|S-i\ne\varnothing\right].
\end{aligned} Pr [ T = i ∣ S − i = ∅ ] = 2 1 S ⊆ [ n ] i ∈ S , ∣ S ∣ ≥ 2 ∑ Pr [ S = S ∣ S − i = ∅ ] j = i ∑ ∣ S − i − j ∣ + 1 p j = 2 1 j = i ∑ p j E [ ∣ S − i − j ∣ + 1 1 S − i = ∅ ] .
Combining both cases and averaging over their original distributions gives
Pr [ T = i ∣ Y i ( 1 ) = 1 ] = ( 1 − p i 2 ) Pr [ S − i = ∅ ] \Pr\left[T=i\mid Y_i^{(1)}=1\right]=\left(1-\frac{p_i}{2}\right)\Pr[S-i=\varnothing] Pr [ T = i ∣ Y i ( 1 ) = 1 ] = ( 1 − 2 p i ) Pr [ S − i = ∅ ]
+ 1 2 Pr [ S − i ≠ ∅ ] ∑ j ≠ i p j E [ 1 ∣ S − i − j ∣ + 1 ∣ S − i ≠ ∅ ] = ( 1 − p i 2 ) Pr [ S − i = ∅ ] + 1 2 ∑ j ≠ i p j ( E [ 1 ∣ S − i − j ∣ + 1 ] − Pr [ S − i = ∅ ] ) = ( 1 − p i 2 − 1 2 ∑ j ≠ i p j ) Pr [ S − i = ∅ ] + 1 2 ∑ j ≠ i p j E [ 1 ∣ S − i − j ∣ + 1 ] = 1 2 Pr [ S − i = ∅ ] + 1 2 ∑ j ≠ i p j E [ 1 ∣ S − i − j ∣ + 1 ] . (18) \begin{aligned}
\quad+\frac{1}{2}\Pr[S-i\ne\varnothing]\sum_{j\ne i}p_j\mathbb{E}\left[\left.\frac{1}{|S-i-j|+1}\right|S-i\ne\varnothing\right] \\
&=\left(1-\frac{p_i}{2}\right)\Pr[S-i=\varnothing]+\frac{1}{2}\sum_{j\ne i}p_j\left(\mathbb{E}\left[\frac{1}{|S-i-j|+1}\right]-\Pr[S-i=\varnothing]\right) \\
&=\left(1-\frac{p_i}{2}-\frac{1}{2}\sum_{j\ne i}p_j\right)\Pr[S-i=\varnothing]+\frac{1}{2}\sum_{j\ne i}p_j\mathbb{E}\left[\frac{1}{|S-i-j|+1}\right] \\
&=\frac{1}{2}\Pr[S-i=\varnothing]+\frac{1}{2}\sum_{j\ne i}p_j\mathbb{E}\left[\frac{1}{|S-i-j|+1}\right]. \tag*{(18)}
\end{aligned} + 2 1 Pr [ S − i = ∅ ] j = i ∑ p j E [ ∣ S − i − j ∣ + 1 1 S − i = ∅ ] = ( 1 − 2 p i ) Pr [ S − i = ∅ ] + 2 1 j = i ∑ p j ( E [ ∣ S − i − j ∣ + 1 1 ] − Pr [ S − i = ∅ ] ) = 1 − 2 p i − 2 1 j = i ∑ p j Pr [ S − i = ∅ ] + 2 1 j = i ∑ p j E [ ∣ S − i − j ∣ + 1 1 ] = 2 1 Pr [ S − i = ∅ ] + 2 1 j = i ∑ p j E [ ∣ S − i − j ∣ + 1 1 ] . (18)
where the last equality follows from the fact that ∑ j = 1 n p j = 1 \sum_{j=1}^{n}p_j=1 ∑ j = 1 n p j = 1 . It remains to show that the sum in (18) equals Pr [ S − i ≠ ∅ ] \Pr[S-i\ne\varnothing] Pr [ S − i = ∅ ] . For every j ≠ i j\ne i j = i , the random variable ∣ S − i − j ∣ |S-i-j| ∣ S − i − j ∣ is independent of Y j ( 1 ) Y_j^{(1)} Y j ( 1 ) , and E [ Y j ( 1 ) ] = p j \mathbb{E}[Y_j^{(1)}]=p_j E [ Y j ( 1 ) ] = p j . Therefore,
∑ j ≠ i p j E [ 1 ∣ S − i − j ∣ + 1 ] = ∑ j ≠ i E [ Y j ( 1 ) ∣ S − i − j ∣ + 1 ] = E [ ∑ j ≠ i Y j ( 1 ) ∣ S − i − j ∣ + 1 ] = Pr [ S − i ≠ ∅ ] , \sum_{j\ne i}p_j\mathbb{E}\left[\frac{1}{|S-i-j|+1}\right]
=\sum_{j\ne i}\mathbb{E}\left[\frac{Y_j^{(1)}}{|S-i-j|+1}\right]
=\mathbb{E}\left[\sum_{j\ne i}\frac{Y_j^{(1)}}{|S-i-j|+1}\right]
=\Pr[S-i\ne\varnothing], j = i ∑ p j E [ ∣ S − i − j ∣ + 1 1 ] = j = i ∑ E [ ∣ S − i − j ∣ + 1 Y j ( 1 ) ] = E j = i ∑ ∣ S − i − j ∣ + 1 Y j ( 1 ) = Pr [ S − i = ∅ ] ,
where the last equality follows from the fact that, if S − i = ∅ S-i=\varnothing S − i = ∅ , the sum inside the expectation is zero, otherwise it has exactly ∣ S − i ∣ |S-i| ∣ S − i ∣ non-zero summands, each equal to 1 / ∣ S − i ∣ 1/|S-i| 1/∣ S − i ∣ , so the sum is one. Substituting into (18) , we obtain
Pr [ T = i ∣ Y i ( 1 ) = 1 ] = 1 2 ( Pr [ S − i = ∅ ] + Pr [ S − i ≠ ∅ ] ) = 1 2 . \Pr\left[T=i\mid Y_i^{(1)}=1\right]=\frac{1}{2}\left(\Pr[S-i=\varnothing]+\Pr[S-i\ne\varnothing]\right)=\frac{1}{2}. Pr [ T = i ∣ Y i ( 1 ) = 1 ] = 2 1 ( Pr [ S − i = ∅ ] + Pr [ S − i = ∅ ] ) = 2 1 .
Consequently, Pr [ T = i ] = p i / 2 \Pr[T=i]=p_i/2 Pr [ T = i ] = p i /2 for every i ∈ [ n ] i\in[n] i ∈ [ n ] . Finally, since T ∈ { 0 , 1 , … , n } T\in\{0,1,\ldots,n\} T ∈ { 0 , 1 , … , n } and ∑ i = 1 n p i = 1 \sum_{i=1}^{n}p_i=1 ∑ i = 1 n p i = 1 , we have
Pr [ T = 0 ] = 1 − ∑ i = 1 n Pr [ T = i ] = 1 − 1 2 ∑ i = 1 n p i = 1 2 . \Pr[T=0]=1-\sum_{i=1}^{n}\Pr[T=i]=1-\frac{1}{2}\sum_{i=1}^{n}p_i=\frac{1}{2}. Pr [ T = 0 ] = 1 − i = 1 ∑ n Pr [ T = i ] = 1 − 2 1 i = 1 ∑ n p i = 2 1 .
Proof of Lemma 5.1
Lemma 5.1. Consider any sequence of γ \gamma γ -balanced OCRSs and instances with positive activation probabilities summing to k k k , such that δ → 0 \delta\to0 δ → 0 . Then, H 2 ( δ ) H_2^{(\delta)} H 2 ( δ ) converges uniformly to h 2 h_2 h 2 on [ 0 , k ] [0,k] [ 0 , k ] . In particular, for any choice of prefix lengths j r j_r j r along the sequence of instances p ( r ) p^{(r)} p ( r ) such that
s j r ( r ) = ∑ i = 1 j r p i ( r ) ⟶ t , s_{j_r}^{(r)}=\sum_{i=1}^{j_r}p_i^{(r)}\longrightarrow t, s j r ( r ) = i = 1 ∑ j r p i ( r ) ⟶ t , we have
E [ ( N j r ( r ) − 1 ) + ] ⟶ h 2 ( t ) . \mathbb{E}\left[\left(N_{j_r}^{(r)}-1\right)^+\right]\longrightarrow h_2(t). E [ ( N j r ( r ) − 1 ) + ] ⟶ h 2 ( t ) .
Proof. We first analyze a fixed instance. Since Pr [ A i ] = p i C i ≥ γ p i \Pr[A_i]=p_iC_i\ge\gamma p_i Pr [ A i ] = p i C i ≥ γ p i ,
H 1 , j = E [ N j ] = ∑ i = 1 j Pr [ A i ] ≥ γ s j . H_{1,j}=\mathbb{E}[N_j]=\sum_{i=1}^{j}\Pr[A_i]\ge\gamma s_j. H 1 , j = E [ N j ] = i = 1 ∑ j Pr [ A i ] ≥ γ s j .
Also, by the definition of H ℓ , j H_{\ell,j} H ℓ , j ,
H k , j = Pr [ N j = k ] , H ℓ − 1 , j − H ℓ , j = Pr [ N j ≥ ℓ − 1 ] ( 2 ≤ ℓ ≤ k ) . H_{k,j}=\Pr[N_j=k],\qquad H_{\ell-1,j}-H_{\ell,j}=\Pr[N_j\ge\ell-1]\quad(2\le\ell\le k). H k , j = Pr [ N j = k ] , H ℓ − 1 , j − H ℓ , j = Pr [ N j ≥ ℓ − 1 ] ( 2 ≤ ℓ ≤ k ) .
For 2 ≤ ℓ ≤ k 2\le\ell\le k 2 ≤ ℓ ≤ k , accepting element j j j increases ( N j − ℓ + 1 ) + (N_j-\ell+1)^+ ( N j − ℓ + 1 ) + by one exactly when N j − 1 ≥ ℓ − 1 N_{j-1}\ge\ell-1 N j − 1 ≥ ℓ − 1 . Therefore,
H ℓ , j − H ℓ , j − 1 = Pr [ A j ∩ { N j − 1 ≥ ℓ − 1 } ] = Pr [ A j ] − Pr [ A j ∩ { N j − 1 ≤ ℓ − 2 } ] ≥ γ p j − p j Pr [ N j − 1 ≤ ℓ − 2 ] = p j ( γ − 1 + H ℓ − 1 , j − 1 − H ℓ , j − 1 ) , \begin{aligned}
H_{\ell,j}-H_{\ell,j-1}
&=\Pr\left[A_j\cap\{N_{j-1}\ge\ell-1\}\right]\\
&=\Pr[A_j]-\Pr\left[A_j\cap\{N_{j-1}\le\ell-2\}\right]\\
&\ge\gamma p_j-p_j\Pr[N_{j-1}\le\ell-2]\\
&=p_j\left(\gamma-1+H_{\ell-1,j-1}-H_{\ell,j-1}\right),
\end{aligned} H ℓ , j − H ℓ , j − 1 = Pr [ A j ∩ { N j − 1 ≥ ℓ − 1 } ] = Pr [ A j ] − Pr [ A j ∩ { N j − 1 ≤ ℓ − 2 } ] ≥ γ p j − p j Pr [ N j − 1 ≤ ℓ − 2 ] = p j ( γ − 1 + H ℓ − 1 , j − 1 − H ℓ , j − 1 ) ,
where the inequality follows from A j ⊆ { X j = 1 } A_j\subseteq\{X_j=1\} A j ⊆ { X j = 1 } and the independence of N j − 1 N_{j-1} N j − 1 and X j X_j X j . Since the increment is non-negative and requires X j = 1 X_j=1 X j = 1 , we have
p j ( γ − 1 + H ℓ − 1 , j − 1 − H ℓ , j − 1 ) + ≤ H ℓ , j − H ℓ , j − 1 ≤ p j . (19) p_j\left(\gamma-1+H_{\ell-1,j-1}-H_{\ell,j-1}\right)^+
\le H_{\ell,j}-H_{\ell,j-1}\le p_j. \tag*{(19)} p j ( γ − 1 + H ℓ − 1 , j − 1 − H ℓ , j − 1 ) + ≤ H ℓ , j − H ℓ , j − 1 ≤ p j . (19)
The upper bound also holds for ℓ = 1 \ell=1 ℓ = 1 .
Next, consider a sequence with δ → 0 \delta\to0 δ → 0 . The functions H ℓ ( δ ) H_\ell^{(\delta)} H ℓ ( δ ) are non-decreasing, 1 1 1 -Lipschitz, and bounded by k k k . By the Arzelà–Ascoli theorem, a subsequence converges uniformly to Lipschitz functions H 1 , … , H k H_1,\ldots,H_k H 1 , … , H k . These limits satisfy H ℓ ( 0 ) = 0 H_\ell(0)=0 H ℓ ( 0 ) = 0 and H 1 ( t ) ≥ γ t H_1(t)\ge\gamma t H 1 ( t ) ≥ γ t . Moreover, almost everywhere on [ 0 , k ] [0,k] [ 0 , k ] ,
H ℓ ′ ( t ) ≥ ( γ − 1 + H ℓ − 1 ( t ) − H ℓ ( t ) ) + ( 2 ≤ ℓ ≤ k ) . (20) H'_\ell(t)\ge\left(\gamma-1+H_{\ell-1}(t)-H_\ell(t)\right)^+ \qquad(2\le\ell\le k). \tag*{(20)} H ℓ ′ ( t ) ≥ ( γ − 1 + H ℓ − 1 ( t ) − H ℓ ( t ) ) + ( 2 ≤ ℓ ≤ k ) . (20)
Indeed, on ( s j − 1 , s j ) (s_{j-1},s_j) ( s j − 1 , s j ) , the slope of H ℓ ( δ ) H_\ell^{(\delta)} H ℓ ( δ ) is ( H ℓ , j − H ℓ , j − 1 ) / p j (H_{\ell,j}-H_{\ell,j-1})/p_j ( H ℓ , j − H ℓ , j − 1 ) / p j . Replacing the values at s j − 1 s_{j-1} s j − 1 in (19) by the interpolated values at t t t changes the lower bound on this slope by at most 2 δ 2\delta 2 δ . Integrating, taking the uniform limit, and differentiating gives (20) .
Next, since R n R_n R n is independent of X n X_n X n ,
γ ≤ C n ≤ Pr [ R n ∣ X n = 1 ] = 1 − H k , n − 1 . \gamma\le C_n\le\Pr[R_n\mid X_n=1]=1-H_{k,n-1}. γ ≤ C n ≤ Pr [ R n ∣ X n = 1 ] = 1 − H k , n − 1 .
Consequently, H k , n ≤ 1 − γ + p n H_{k,n}\le1-\gamma+p_n H k , n ≤ 1 − γ + p n , and hence, in the limit as p n → 0 p_n\to0 p n → 0
H k ( k ) ≤ 1 − γ . (21) H_k(k)\le1-\gamma. \tag*{(21)} H k ( k ) ≤ 1 − γ . (21)
We now show that H 2 = h 2 H_2=h_2 H 2 = h 2 . First, H ℓ ≥ h ℓ H_\ell\ge h_\ell H ℓ ≥ h ℓ for every ℓ \ell ℓ , by induction. For ℓ = 1 \ell=1 ℓ = 1 , this follows from H 1 ( t ) ≥ γ t = h 1 ( t ) H_1(t)\ge\gamma t=h_1(t) H 1 ( t ) ≥ γ t = h 1 ( t ) . If H ℓ − 1 ≥ h ℓ − 1 H_{\ell-1}\ge h_{\ell-1} H ℓ − 1 ≥ h ℓ − 1 , then wherever H ℓ < h ℓ H_\ell<h_\ell H ℓ < h ℓ , (10) and (20) give H ℓ ′ − h ℓ ′ ≥ 0 H'_\ell-h'_\ell\ge0 H ℓ ′ − h ℓ ′ ≥ 0 almost everywhere. Since both functions start at zero, their difference cannot become negative.
Let D ℓ ( t ) : = H ℓ ( t ) − h ℓ ( t ) ≥ 0 D_\ell(t):=H_\ell(t)-h_\ell(t)\ge0 D ℓ ( t ) := H ℓ ( t ) − h ℓ ( t ) ≥ 0 . Proposition 5.2 and (21) give
0 ≤ D k ( k ) = H k ( k ) − h k ( k ) ≤ ( 1 − γ ) − ( 1 − γ ) = 0. 0\le D_k(k)=H_k(k)-h_k(k)\le(1-\gamma)-(1-\gamma)=0. 0 ≤ D k ( k ) = H k ( k ) − h k ( k ) ≤ ( 1 − γ ) − ( 1 − γ ) = 0.
To complete the proof of H 2 = h 2 H_2=h_2 H 2 = h 2 , we show that D 2 ( t 0 ) > 0 D_2(t_0)>0 D 2 ( t 0 ) > 0 at any t 0 < k t_0<k t 0 < k would imply D k ( k ) > 0 D_k(k)>0 D k ( k ) > 0 , thereby arriving at a contradiction.
Since D ℓ − 1 ≥ 0 D_{\ell-1}\ge0 D ℓ − 1 ≥ 0 , monotonicity and the 1-Lipschitz property of the positive-part function in (10) and (20) give D ℓ ′ ≥ − D ℓ D'_\ell\ge-D_\ell D ℓ ′ ≥ − D ℓ almost everywhere for 2 ≤ ℓ ≤ k 2\le\ell\le k 2 ≤ ℓ ≤ k . Multiplying by e t e^t e t and integrating yields
D ℓ ( t ) ≥ e − ( t − u ) D ℓ ( u ) ( 0 ≤ u ≤ t ≤ k ) . (22) D_\ell(t)\ge e^{-(t-u)}D_\ell(u)\qquad(0\le u\le t\le k). \tag*{(22)} D ℓ ( t ) ≥ e − ( t − u ) D ℓ ( u ) ( 0 ≤ u ≤ t ≤ k ) . (22)
Also, y ~ k ( k ) > 0 \widetilde y_k(k)>0 y k ( k ) > 0 , so (9) implies that y ~ k − 1 ( t ) > 1 − γ \widetilde y_{k-1}(t)>1-\gamma y k − 1 ( t ) > 1 − γ at some t < k t<k t < k . Since the functions y ~ ℓ \widetilde y_\ell y ℓ are non-decreasing and ordered, y ~ ℓ − 1 ( t ) > 1 − γ \widetilde y_{\ell-1}(t)>1-\gamma y ℓ − 1 ( t ) > 1 − γ for every 2 ≤ ℓ ≤ k 2\le\ell\le k 2 ≤ ℓ ≤ k and every t t t sufficiently close to k k k . On this interval, the positive part in the equation for h ℓ ′ h'_\ell h ℓ ′ can be removed, and hence
D ℓ ′ ( t ) + D ℓ ( t ) ≥ D ℓ − 1 ( t ) ( 2 ≤ ℓ ≤ k ) (23) D'_\ell(t)+D_\ell(t)\ge D_{\ell-1}(t)\qquad(2\le\ell\le k) \tag*{(23)} D ℓ ′ ( t ) + D ℓ ( t ) ≥ D ℓ − 1 ( t ) ( 2 ≤ ℓ ≤ k ) (23)
holds almost everywhere.
Suppose that D 2 ( t 0 ) > 0 D_2(t_0)>0 D 2 ( t 0 ) > 0 for some t 0 < k t_0<k t 0 < k . Choose t 0 < s < k t_0<s<k t 0 < s < k so that (23) holds on [ s , k ] [s,k] [ s , k ] . By (22) , D 2 ( s ) > 0 D_2(s)>0 D 2 ( s ) > 0 . Multiplying (23) by e t e^t e t and integrating successively gives
D ℓ ( t ) ≥ D 2 ( s ) e − ( t − s ) ( t − s ) ℓ − 2 ( ℓ − 2 ) ! ( s ≤ t ≤ k , 2 ≤ ℓ ≤ k ) . D_\ell(t)\ge D_2(s)e^{-(t-s)}\frac{(t-s)^{\ell-2}}{(\ell-2)!}\qquad(s\le t\le k,\ 2\le\ell\le k). D ℓ ( t ) ≥ D 2 ( s ) e − ( t − s ) ( ℓ − 2 )! ( t − s ) ℓ − 2 ( s ≤ t ≤ k , 2 ≤ ℓ ≤ k ) .
where the case ℓ = 2 \ell=2 ℓ = 2 follows from (22) and each subsequent case uses D ℓ ( s ) ≥ 0 D_\ell(s)\ge0 D ℓ ( s ) ≥ 0 . For ℓ = t = k \ell=t=k ℓ = t = k , we obtain
D k ( k ) ≥ D 2 ( s ) e − ( k − s ) ( k − s ) k − 2 ( k − 2 ) ! > 0 , D_k(k)\ge D_2(s)e^{-(k-s)}\frac{(k-s)^{k-2}}{(k-2)!}>0, D k ( k ) ≥ D 2 ( s ) e − ( k − s ) ( k − 2 )! ( k − s ) k − 2 > 0 ,
since D 2 ( s ) > 0 D_2(s)>0 D 2 ( s ) > 0 and s < k s<k s < k . This contradicts D k ( k ) = 0 D_k(k)=0 D k ( k ) = 0 , and thus H 2 = h 2 H_2=h_2 H 2 = h 2 on [ 0 , k ] [0,k] [ 0 , k ] , including k k k by continuity.
Every uniformly convergent subsequence therefore has second component h 2 h_2 h 2 . By compactness, we get uniform convergence of the full sequence H ( δ ) H^{(\delta)} H ( δ ) to h 2 h_2 h 2 . The fact that for any choice of prefix lengths j r j_r j r along the sequence of instances p ( r ) p^{(r)} p ( r ) such that s j r ( r ) = ∑ i = 1 j r p i ( r ) ⟶ t s_{j_r}^{(r)}=\sum_{i=1}^{j_r}p_i^{(r)}\longrightarrow t s j r ( r ) = ∑ i = 1 j r p i ( r ) ⟶ t we have E [ ( N j r ( r ) − 1 ) + ] ⟶ h 2 ( t ) \mathbb{E}\left[(N_{j_r}^{(r)}-1)^+\right]\longrightarrow h_2(t) E [ ( N j r ( r ) − 1 ) + ] ⟶ h 2 ( t ) follows from uniform convergence and the continuity of h 2 h_2 h 2 . ∞ӘА
An Alternative Optimal ROCRS
In this section we give an alternative ROCRS with the same optimal balancedness as in Theorem 4.1 . Before that, we start with some definitions.
Definition B.1 (Poisson binomial distribution). The Poisson binomial distribution PB ( p 1 , … , p n ) \operatorname{PB}(p_1,\ldots,p_n) PB ( p 1 , … , p n ) is the distribution of a sum of independent Bernoulli random variables with success probabilities p 1 , … , p n p_1,\ldots,p_n p 1 , … , p n . We also write such a sum as ∑ j = 1 n Ber ( p j ) \sum_{j=1}^{n}\operatorname{Ber}(p_j) ∑ j = 1 n Ber ( p j ) , and use the same convention for sums of independent Poisson random variables.
Definition B.2 (Discrete differences and convexity). For a function f : N → R f:\mathbb{N}\to\mathbb{R} f : N → R , let
Δ f ( n ) : = f ( n + 1 ) − f ( n ) , and Δ 2 f ( n ) : = Δ f ( n + 1 ) − Δ f ( n ) . \Delta f(n) := f(n+1)-f(n), \qquad\text{and} \qquad\Delta^2 f(n) := \Delta f(n+1)-\Delta f(n). Δ f ( n ) := f ( n + 1 ) − f ( n ) , and Δ 2 f ( n ) := Δ f ( n + 1 ) − Δ f ( n ) . The function f f f is convex if Δ 2 f ( n ) ≥ 0 \Delta^2 f(n)\ge0 Δ 2 f ( n ) ≥ 0 for every n ∈ N n\in\mathbb{N} n ∈ N , and concave if Δ 2 f ( n ) ≤ 0 \Delta^2 f(n)\le0 Δ 2 f ( n ) ≤ 0 for every n ∈ N n\in\mathbb{N} n ∈ N .
Definition B.3 (Convex order). For random variables X , Y X,Y X , Y supported on N \mathbb{N} N with finite means, we say that X X X dominates Y Y Y in convex order, and write X ≥ c x Y X\ge_{\mathrm{cx}}Y X ≥ cx Y , if
E [ f ( X ) ] ≥ E [ f ( Y ) ] \mathbb{E}[f(X)]\ge\mathbb{E}[f(Y)] E [ f ( X )] ≥ E [ f ( Y )] for every convex function f : N → R f:\mathbb{N}\to\mathbb{R} f : N → R for which both expectations are finite.
For our alternative proof of Theorem 4.1 , we need the following characterization of stochastic convex order.
Characterization of Convex Order
In this section, we generalize the following consequence of Hoeffding’s theorem for Poisson binomial random variables [22 ] .
Theorem B.1 (Hoeffding, [22 ] ). Let X ∼ Poi ( λ ) X\sim\operatorname{Poi}(\lambda) X ∼ Poi ( λ ) and Y ∼ PB ( p 1 , … , p n ) Y\sim\operatorname{PB}(p_1,\ldots,p_n) Y ∼ PB ( p 1 , … , p n ) , where λ = ∑ i = 1 n p i \lambda=\sum_{i=1}^{n}p_i λ = ∑ i = 1 n p i . Then, for every convex f : N → R f:\mathbb{N}\to\mathbb{R} f : N → R we have
E [ f ( X ) ] ≥ E [ f ( Y ) ] , \mathbb{E}[f(X)]\ge\mathbb{E}[f(Y)], E [ f ( X )] ≥ E [ f ( Y )] , and the inequality is reversed if $f is concave.
We generalize the above theorem in three ways:
We allow X X X and Y Y Y to have different means.
We allow X X X and Y Y Y to follow arbitrary distributions on N \mathbb{N} N .
We allow for an arbitrary f f f that is neither convex nor concave, provided it satisfies a mild second-order condition.
Under the above assumptions, we characterize the exact conditions under which: (i) E [ f ( X ) ] ≥ E [ f ( Y ) ] \mathbb{E}[f(X)]\ge\mathbb{E}[f(Y)] E [ f ( X )] ≥ E [ f ( Y )] and (ii) X ≥ c x Y X\ge_{\mathrm{cx}}Y X ≥ cx Y , for all such X , Y X,Y X , Y and f f f . In what follows, for two random variables X , Y X,Y X , Y with finite mean, let
δ : = E [ X ] − E [ Y ] and D n : = E [ ( X − n − 1 ) + ] − E [ ( Y − n − 1 ) + ] , n ∈ N . \delta:= \mathbb{E}[X]-\mathbb{E}[Y] \qquad\text{and} \qquad D_n := \mathbb{E}[(X-n-1)^+]-\mathbb{E}[(Y-n-1)^+], \qquad n\in\mathbb{N}. δ := E [ X ] − E [ Y ] and D n := E [( X − n − 1 ) + ] − E [( Y − n − 1 ) + ] , n ∈ N .
Theorem B.2. Let X , Y X,Y X , Y be random variables with finite mean, supported on N \mathbb{N} N , δ : = E [ X ] − E [ Y ] \delta:= \mathbb{E}[X] - \mathbb{E}[Y] δ := E [ X ] − E [ Y ] and D n : = E [ ( X − n − 1 ) + ] − E [ ( Y − n − 1 ) + ] D_n := \mathbb{E}[(X-n-1)^+] - \mathbb{E}[(Y-n-1)^+] D n := E [( X − n − 1 ) + ] − E [( Y − n − 1 ) + ] for all n ∈ N n \in\mathbb{N} n ∈ N . Then, for all functions f : N → R f : \mathbb{N} \to\mathbb{R} f : N → R with
∑ n ≥ 0 ( E [ ( X − n − 1 ) + ] + E [ ( Y − n − 1 ) + ] ) ∣ Δ 2 f ( n ) ∣ < ∞ , \sum_{n \ge0} \left(\mathbb{E}[(X-n-1)^+] + \mathbb{E}[(Y-n-1)^+]\right) \left|\Delta^2 f(n)\right| < \infty, n ≥ 0 ∑ ( E [( X − n − 1 ) + ] + E [( Y − n − 1 ) + ] ) Δ 2 f ( n ) < ∞ , we have
E [ f ( X ) ] − E [ f ( Y ) ] = δ Δ f ( 0 ) + ∑ n ≥ 0 D n Δ 2 f ( n ) . \mathbb{E}[f(X)] - \mathbb{E}[f(Y)] = \delta\Delta f(0) + \sum_{n \ge0} D_n \Delta^2 f(n). E [ f ( X )] − E [ f ( Y )] = δ Δ f ( 0 ) + n ≥ 0 ∑ D n Δ 2 f ( n ) .
Proof. Note that, for all m ≥ 0 m \ge0 m ≥ 0 ,
f ( m ) − f ( 0 ) = ∑ i = 0 m − 1 ( f ( i + 1 ) − f ( i ) ) = ∑ i = 0 m − 1 Δ f ( i ) . (24) f(m) - f(0) = \sum_{i=0}^{m-1} (f(i+1)-f(i)) = \sum_{i=0}^{m-1} \Delta f(i). \tag*{(24)} f ( m ) − f ( 0 ) = i = 0 ∑ m − 1 ( f ( i + 1 ) − f ( i )) = i = 0 ∑ m − 1 Δ f ( i ) . (24)
Since Δ 2 f ( i ) = Δ f ( i + 1 ) − Δ f ( i ) \Delta^2 f(i) = \Delta f(i+1) - \Delta f(i) Δ 2 f ( i ) = Δ f ( i + 1 ) − Δ f ( i ) , we have
Δ f ( i ) − Δ f ( 0 ) = ∑ n = 0 i − 1 ( Δ f ( n + 1 ) − Δ f ( n ) ) = ∑ n = 0 i − 1 Δ 2 f ( n ) , \Delta f(i) - \Delta f(0) = \sum_{n=0}^{i-1}(\Delta f(n+1)-\Delta f(n)) = \sum_{n=0}^{i-1} \Delta^2 f(n), Δ f ( i ) − Δ f ( 0 ) = n = 0 ∑ i − 1 ( Δ f ( n + 1 ) − Δ f ( n )) = n = 0 ∑ i − 1 Δ 2 f ( n ) ,
and thus
∑ i = 0 m − 1 Δ f ( i ) = m Δ f ( 0 ) + ∑ i = 0 m − 1 ∑ n = 0 i − 1 Δ 2 f ( n ) . \sum_{i=0}^{m-1} \Delta f(i) = m\Delta f(0) + \sum_{i=0}^{m-1}\sum_{n=0}^{i-1} \Delta^2 f(n). i = 0 ∑ m − 1 Δ f ( i ) = m Δ f ( 0 ) + i = 0 ∑ m − 1 n = 0 ∑ i − 1 Δ 2 f ( n ) .
Substituting the above expression into (24) gives
f ( m ) = f ( 0 ) + m Δ f ( 0 ) + ∑ i = 0 m − 1 ∑ n = 0 i − 1 Δ 2 f ( n ) . f(m) = f(0) + m\Delta f(0) + \sum_{i=0}^{m-1}\sum_{n=0}^{i-1} \Delta^2 f(n). f ( m ) = f ( 0 ) + m Δ f ( 0 ) + i = 0 ∑ m − 1 n = 0 ∑ i − 1 Δ 2 f ( n ) .
For a fixed n ≤ m − 2 n \le m-2 n ≤ m − 2 , the term Δ 2 f ( n ) \Delta^2 f(n) Δ 2 f ( n ) occurs in the double sum exactly m − n − 1 m-n-1 m − n − 1 times, once for each i = n + 1 , n + 2 , … , m − 1 i=n+1,n+2,\ldots,m-1 i = n + 1 , n + 2 , … , m − 1 . Thus, for all m ∈ N m \in\mathbb{N} m ∈ N ,
f ( m ) = f ( 0 ) + m Δ f ( 0 ) + ∑ n ≥ 0 ( m − n − 1 ) + Δ 2 f ( n ) . (25) f(m) = f(0) + m\Delta f(0) + \sum_{n \ge0}(m-n-1)^+\Delta^2 f(n). \tag*{(25)} f ( m ) = f ( 0 ) + m Δ f ( 0 ) + n ≥ 0 ∑ ( m − n − 1 ) + Δ 2 f ( n ) . (25)
Therefore,
E [ f ( X ) ] = f ( 0 ) + E [ X ] Δ f ( 0 ) + E [ ∑ n ≥ 0 ( X − n − 1 ) + Δ 2 f ( n ) ] (26) \mathbb{E}[f(X)] = f(0) + \mathbb{E}[X]\Delta f(0) + \mathbb{E}\left[\sum_{n \ge0}(X-n-1)^+\Delta^2 f(n)\right] \tag*{(26)} E [ f ( X )] = f ( 0 ) + E [ X ] Δ f ( 0 ) + E [ n ≥ 0 ∑ ( X − n − 1 ) + Δ 2 f ( n ) ] (26)
and
E [ f ( Y ) ] = f ( 0 ) + E [ Y ] Δ f ( 0 ) + E [ ∑ n ≥ 0 ( Y − n − 1 ) + Δ 2 f ( n ) ] . (27) \mathbb{E}[f(Y)] = f(0) + \mathbb{E}[Y]\Delta f(0) + \mathbb{E}\left[\sum_{n \ge0}(Y-n-1)^+\Delta^2 f(n)\right]. \tag*{(27)} E [ f ( Y )] = f ( 0 ) + E [ Y ] Δ f ( 0 ) + E [ n ≥ 0 ∑ ( Y − n − 1 ) + Δ 2 f ( n ) ] . (27)
Subtracting (27) from (26) yields
E [ f ( X ) ] − E [ f ( Y ) ] = δ Δ f ( 0 ) + E [ ∑ n ≥ 0 ( ( X − n − 1 ) + − ( Y − n − 1 ) + ) Δ 2 f ( n ) ] = δ Δ f ( 0 ) + ∑ n ≥ 0 E [ ( X − n − 1 ) + − ( Y − n − 1 ) + ] Δ 2 f ( n ) = δ Δ f ( 0 ) + ∑ n ≥ 0 D n Δ 2 f ( n ) , \begin{aligned}
\mathbb{E}[f(X)]-\mathbb{E}[f(Y)]
&= \delta\Delta f(0) + \mathbb{E}\left[\sum_{n \ge0}\left((X-n-1)^+-(Y-n-1)^+\right)\Delta^2 f(n)\right] \\
&= \delta\Delta f(0) + \sum_{n \ge0}\mathbb{E}\left[(X-n-1)^+-(Y-n-1)^+\right]\Delta^2 f(n) \\
&= \delta\Delta f(0) + \sum_{n\ge0} D_n \Delta^2 f(n),
\end{aligned} E [ f ( X )] − E [ f ( Y )] = δ Δ f ( 0 ) + E [ n ≥ 0 ∑ ( ( X − n − 1 ) + − ( Y − n − 1 ) + ) Δ 2 f ( n ) ] = δ Δ f ( 0 ) + n ≥ 0 ∑ E [ ( X − n − 1 ) + − ( Y − n − 1 ) + ] Δ 2 f ( n ) = δ Δ f ( 0 ) + n ≥ 0 ∑ D n Δ 2 f ( n ) ,
where the second equality follows from the assumption that
∑ n ≥ 0 ( E [ ( X − n − 1 ) + ] + E [ ( Y − n − 1 ) + ] ) ∣ Δ 2 f ( n ) ∣ < ∞ . \sum_{n\ge0} \left(\mathbb{E}[(X-n-1)^+] + \mathbb{E}[(Y-n-1)^+]\right) \left|\Delta^2 f(n)\right| < \infty. n ≥ 0 ∑ ( E [( X − n − 1 ) + ] + E [( Y − n − 1 ) + ] ) Δ 2 f ( n ) < ∞.
The Theorem B.2 gives a simple characterization of the random variables and functions for which E [ f ( X ) ] ≥ E [ f ( Y ) ] \mathbb{E}[f(X)] \ge\mathbb{E}[f(Y)] E [ f ( X )] ≥ E [ f ( Y )] , under a mild assumption on f f f . It also yields the following characterization of convex order domination.
Theorem B.3. Let X , Y X,Y X , Y be random variables with finite means, supported on N \mathbb{N} N . The following are equivalent:
X ≥ c x Y X \ge_{cx} Y X ≥ c x Y .
δ = 0 \delta= 0 δ = 0 and D n ≥ 0 D_n \ge0 D n ≥ 0 for all n ∈ N n \in\mathbb{N} n ∈ N .
Proof. First, assume that X ≥ c x Y X \ge_{cx} Y X ≥ c x Y . The functions f ( Z ) = Z f(Z)=Z f ( Z ) = Z and g ( Z ) = − Z g(Z)=-Z g ( Z ) = − Z are both convex, and together imply that
{ E [ X ] ≥ E [ Y ] E [ X ] ≤ E [ Y ] ⟹ E [ X ] = E [ Y ] ⟺ δ = 0. \begin{cases}
\mathbb{E}[X] \ge\mathbb{E}[Y]\\
\mathbb{E}[X] \le\mathbb{E}[Y]
\end{cases}
\quad\Longrightarrow\quad
\mathbb{E}[X] = \mathbb{E}[Y]
\quad\Longleftrightarrow\quad
\delta= 0. { E [ X ] ≥ E [ Y ] E [ X ] ≤ E [ Y ] ⟹ E [ X ] = E [ Y ] ⟺ δ = 0. Furthermore, the function h n ( Z ) = ( Z − n − 1 ) + h_n(Z)=(Z-n-1)^+ h n ( Z ) = ( Z − n − 1 ) + is also convex for all n ∈ N n \in\mathbb{N} n ∈ N , and thus E [ h n ( X ) ] ≥ E [ h n ( Y ) ] \mathbb{E}[h_n(X)] \ge\mathbb{E}[h_n(Y)] E [ h n ( X )] ≥ E [ h n ( Y )] , which implies D n ≥ 0 D_n \ge0 D n ≥ 0 .
Next, assume that δ = 0 \delta= 0 δ = 0 and D n ≥ 0 D_n \ge0 D n ≥ 0 for all n ∈ N n \in\mathbb{N} n ∈ N . Let f : N → R f:\mathbb{N}\to\mathbb{R} f : N → R be convex. As in the proof of Theorem B.2, we have
f ( n ) − f ( 0 ) − n Δ f ( 0 ) = ∑ m ≥ 0 ( n − m − 1 ) + Δ 2 f ( m ) , f(n)-f(0)-n\Delta f(0)=\sum_{m\ge0}(n-m-1)^+\Delta^2 f(m), f ( n ) − f ( 0 ) − n Δ f ( 0 ) = m ≥ 0 ∑ ( n − m − 1 ) + Δ 2 f ( m ) , and thus
E [ f ( Y ) ] − f ( 0 ) − E [ Y ] Δ f ( 0 ) = ∑ m ≥ 0 E [ ( Y − m − 1 ) + ] Δ 2 f ( m ) ≤ ∑ m ≥ 0 E [ ( X − m − 1 ) + ] Δ 2 f ( m ) = E [ f ( X ) ] − f ( 0 ) − E [ X ] Δ f ( 0 ) , \begin{aligned}
\mathbb{E}[f(Y)]-f(0)-\mathbb{E}[Y]\Delta f(0)
&=\sum_{m\ge0}\mathbb{E}[(Y-m-1)^+]\Delta^2 f(m)\\
&\le\sum_{m\ge0}\mathbb{E}[(X-m-1)^+]\Delta^2 f(m)\\
&=\mathbb{E}[f(X)]-f(0)-\mathbb{E}[X]\Delta f(0),
\end{aligned} E [ f ( Y )] − f ( 0 ) − E [ Y ] Δ f ( 0 ) = m ≥ 0 ∑ E [( Y − m − 1 ) + ] Δ 2 f ( m ) ≤ m ≥ 0 ∑ E [( X − m − 1 ) + ] Δ 2 f ( m ) = E [ f ( X )] − f ( 0 ) − E [ X ] Δ f ( 0 ) , where the inequality follows from D n ≥ 0 D_n \ge0 D n ≥ 0 . Since δ = 0 \delta= 0 δ = 0 , we have E [ X ] = E [ Y ] \mathbb{E}[X] = \mathbb{E}[Y] E [ X ] = E [ Y ] , and thus E [ f ( Y ) ] ≤ E [ f ( X ) ] \mathbb{E}[f(Y)] \le\mathbb{E}[f(X)] E [ f ( Y )] ≤ E [ f ( X )] .
Therefore, Theorem B.3 recovers Theorem B.1 as a corollary: since λ = ∑ i = 1 n p i \lambda= \sum_{i=1}^{n}p_i λ = ∑ i = 1 n p i , we have E [ X ] = E [ Y ] ⟹ δ = 0 \mathbb{E}[X] = \mathbb{E}[Y] \Longrightarrow\delta= 0 E [ X ] = E [ Y ] ⟹ δ = 0 . Fix an integer r ≥ 0 r \ge0 r ≥ 0 , and let
V i = ∑ j = 1 i Poi ( p j ) + ∑ j = i + 1 n Ber ( p j ) . V_i=\sum_{j=1}^{i}\operatorname{Poi}(p_j)+\sum_{j=i+1}^{n}\operatorname{Ber}(p_j). V i = j = 1 ∑ i Poi ( p j ) + j = i + 1 ∑ n Ber ( p j ) .
Thus, V n V_n V n has the same distribution as X X X by the additivity of Poisson random variables, and V 0 V_0 V 0 has the same distribution as Y Y Y . For i = 1 , … , n i=1,\ldots,n i = 1 , … , n , let W i = ∑ j = 1 i − 1 Poi ( p j ) + ∑ j = i + 1 n Ber ( p j ) W_i=\sum_{j=1}^{i-1}\operatorname{Poi}(p_j)+\sum_{j=i+1}^{n}\operatorname{Ber}(p_j) W i = ∑ j = 1 i − 1 Poi ( p j ) + ∑ j = i + 1 n Ber ( p j ) , and notice that
E [ ( V i − r − 1 ) + ] − E [ ( V i − 1 − r − 1 ) + ] = E [ ( Poi ( p i ) + W i − r − 1 ) + − ( Ber ( p i ) + W i − r − 1 ) + ] . \mathbb{E}[(V_i-r-1)^+]-\mathbb{E}[(V_{i-1}-r-1)^+]
=\mathbb{E}\left[(\operatorname{Poi}(p_i)+W_i-r-1)^+-(\operatorname{Ber}(p_i)+W_i-r-1)^+\right]. E [( V i − r − 1 ) + ] − E [( V i − 1 − r − 1 ) + ] = E [ ( Poi ( p i ) + W i − r − 1 ) + − ( Ber ( p i ) + W i − r − 1 ) + ] .
Conditioning on W i = z W_i=z W i = z for some z ≥ 0 z\ge0 z ≥ 0 , the expression above becomes
∑ z ≥ 0 Pr [ W i = z ] ( E [ ( Poi ( p i ) + z − r − 1 ) + ] − E [ ( Ber ( p i ) + z − r − 1 ) + ] ) . \sum_{z\ge0}\Pr[W_i=z]\left(\mathbb{E}\left[(\operatorname{Poi}(p_i)+z-r-1)^+\right]-\mathbb{E}\left[(\operatorname{Ber}(p_i)+z-r-1)^+\right]\right). z ≥ 0 ∑ Pr [ W i = z ] ( E [ ( Poi ( p i ) + z − r − 1 ) + ] − E [ ( Ber ( p i ) + z − r − 1 ) + ] ) .
For z ≤ r z\le r z ≤ r , since Ber ( p i ) ≤ 1 \operatorname{Ber}(p_i)\le1 Ber ( p i ) ≤ 1 , we have
E [ ( Ber ( p i ) + z − r − 1 ) + ] = 0 ≤ E [ ( Poi ( p i ) + z − r − 1 ) + ] . \mathbb{E}\left[(\operatorname{Ber}(p_i)+z-r-1)^+\right]=0\le\mathbb{E}\left[(\operatorname{Poi}(p_i)+z-r-1)^+\right]. E [ ( Ber ( p i ) + z − r − 1 ) + ] = 0 ≤ E [ ( Poi ( p i ) + z − r − 1 ) + ] .
For z > r z>r z > r , both expressions are non-negative, and
E [ ( Poi ( p i ) + z − r − 1 ) − ( Ber ( p i ) + z − r − 1 ) ] = E [ Poi ( p i ) ] − E [ Ber ( p i ) ] = 0 , \mathbb{E}\left[(\operatorname{Poi}(p_i)+z-r-1)-(\operatorname{Ber}(p_i)+z-r-1)\right]=\mathbb{E}[\operatorname{Poi}(p_i)]-\mathbb{E}[\operatorname{Ber}(p_i)]=0, E [ ( Poi ( p i ) + z − r − 1 ) − ( Ber ( p i ) + z − r − 1 ) ] = E [ Poi ( p i )] − E [ Ber ( p i )] = 0 ,
since the two random variables have the same mean. Thus,
D r = E [ ( X − r − 1 ) + ] − E [ ( Y − r − 1 ) + ] = E [ ( V n − r − 1 ) + ] − E [ ( V 0 − r − 1 ) + ] ≥ 0. D_r=\mathbb{E}[(X-r-1)^+]-\mathbb{E}[(Y-r-1)^+]=\mathbb{E}[(V_n-r-1)^+]-\mathbb{E}[(V_0-r-1)^+]\ge0. D r = E [( X − r − 1 ) + ] − E [( Y − r − 1 ) + ] = E [( V n − r − 1 ) + ] − E [( V 0 − r − 1 ) + ] ≥ 0.
Therefore, applying Theorem B.3 to X , Y X,Y X , Y yields Theorem B.1.
The Main Proof
We use the notation of § 2 and assume ∑ i = 1 n p i = k \sum_{i=1}^{n}p_i=k ∑ i = 1 n p i = k . Recall the random-order acceptance-rate function from § 4.1 (see also [5 ] ): for t ≥ 0 t\ge0 t ≥ 0 ,
AR k ( t ) = min { 1 , k t + 1 } . \operatorname{AR}_k(t)=\min\left\{1,\frac{k}{t+1}\right\}. AR k ( t ) = min { 1 , t + 1 k } .
Also, let
γ k = 1 − e − k k k k ! , δ k = E [ AR k ( Poi ( k − 1 ) ) ] , α k = γ k δ k , β k = 1 − α k . \gamma_k=1-e^{-k}\frac{k^k}{k!},\qquad\delta_k=\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-1))],\qquad\alpha_k=\frac{\gamma_k}{\delta_k},\qquad\beta_k=1-\alpha_k. γ k = 1 − e − k k ! k k , δ k = E [ AR k ( Poi ( k − 1 ))] , α k = δ k γ k , β k = 1 − α k .
Consider the following generalization of Algorithm 1 for general k ∈ N k\in\mathbb{N} k ∈ N . When we observe an element i i i that is both online-active and sample-active and we still have capacity to accept it, we accept it with probability α k \alpha_k α k . Let σ \sigma σ be the uniformly random arrival permutation, so that σ ( t ) \sigma(t) σ ( t ) is the element arriving in position t t t . The set A A A contains the accepted elements, and S t S_t S t is the number of elements accepted after the first t t t arrivals.
For k = 1 k=1 k = 1 , we have δ 1 = 1 \delta_1=1 δ 1 = 1 and thus
α 1 = γ 1 = 1 − 1 e . \alpha_1=\gamma_1=1-\frac{1}{e}. α 1 = γ 1 = 1 − e 1 .
so the algorithm agrees with Algorithm 1 for the k = 1 k=1 k = 1 case.
For each element i i i , let ρ i : = p i ( 1 − β k p i ) \rho_i:=p_i(1-\beta_kp_i) ρ i := p i ( 1 − β k p i ) , ξ i ∼ Ber ( α k ) \xi_i\sim\operatorname{Ber}(\alpha_k) ξ i ∼ Ber ( α k ) , and
Z i : = X i ( ( 1 − Y i ) + Y i ξ i ) , Z_i:=X_i((1-Y_i)+Y_i\xi_i), Z i := X i (( 1 − Y i ) + Y i ξ i ) ,
where the ξ i \xi_i ξ i ’s are independent across elements and independent of the samples, online activations, and arrival order. We call an element i i i with Z i = 1 Z_i=1 Z i = 1 a candidate . Thus, an element is a candidate if it is online-active and either sample-inactive or sample-active with a successful coin ξ i \xi_i ξ i . All Z i Z_i Z i ’s are independent, and
Pr [ Z i = 1 ] = p i ( ( 1 − p i ) + p i α k ) = p i ( 1 − β k p i ) = ρ i . \Pr[Z_i=1]=p_i((1-p_i)+p_i\alpha_k)=p_i(1-\beta_kp_i)=\rho_i. Pr [ Z i = 1 ] = p i (( 1 − p i ) + p i α k ) = p i ( 1 − β k p i ) = ρ i .
Algorithm 6 The Conservative Scaling algorithm for general k k k .
Input: { Y 1 , … , Y n } \{Y_1,\ldots,Y_n\} { Y 1 , … , Y n }
Output: A \mathcal{A} A
A ← ∅ , S 0 ← 0 \mathcal{A}\leftarrow\varnothing, S_0\leftarrow0 A ← ∅ , S 0 ← 0
for arrival positions t = 1 , … , n t=1,\ldots,n t = 1 , … , n do
i ← σ ( t ) i\leftarrow\sigma(t) i ← σ ( t )
if S t − 1 < k , X i = 1 S_{t-1}<k, X_i=1 S t − 1 < k , X i = 1 and Y i = 0 Y_i=0 Y i = 0 then
q i ← 1 q_i\leftarrow1 q i ← 1
else if S t − 1 < k , X i = 1 S_{t-1}<k, X_i=1 S t − 1 < k , X i = 1 and Y i = 1 Y_i=1 Y i = 1 then
q i ← α k q_i\leftarrow\alpha_k q i ← α k
else
q i ← 0 q_i\leftarrow0 q i ← 0
Q i ← Ber ( q i ) Q_i\leftarrow\operatorname{Ber}(q_i) Q i ← Ber ( q i )
if Q i = 1 Q_i=1 Q i = 1 then
Accept i i i
A ← A + i \mathcal{A}\leftarrow\mathcal{A}+i A ← A + i
S t ← S t − 1 + 1 S_t\leftarrow S_{t-1}+1 S t ← S t − 1 + 1
else
Reject i i i
S t ← S t − 1 S_t\leftarrow S_{t-1} S t ← S t − 1
The parameter q i q_i q i in Algorithm 6 is the coin bias chosen after observing X i X_i X i , Y i Y_i Y i , and the available capacity; ρ i \rho_i ρ i is the unconditional probability that i i i is a candidate. Recall that R i R_i R i is the event that the algorithm reaches i i i . If i = σ ( t ) i=\sigma(t) i = σ ( t ) , then R i = { S t − 1 < k } R_i=\{S_{t-1}<k\} R i = { S t − 1 < k } . Coupling ξ i \xi_i ξ i with the algorithm’s coin whenever i i i is online-active and sample-active gives Q i = 1 R i Z i Q_i=1_{R_i}Z_i Q i = 1 R i Z i . Hence A i = R i ∩ { Z i = 1 } A_i=R_i\cap\{Z_i=1\} A i = R i ∩ { Z i = 1 } , or equivalently, the algorithm scans the random order and accepts the first k k k candidates.
Fix an element i i i with p i > 0 p_i>0 p i > 0 . Its conditional probability of being a candidate is
Pr [ Z i = 1 ∣ X i = 1 ] = ( 1 − p i ) + p i α k = 1 − β k p i . \Pr[Z_i=1\mid X_i=1]=(1-p_i)+p_i\alpha_k=1-\beta_kp_i. Pr [ Z i = 1 ∣ X i = 1 ] = ( 1 − p i ) + p i α k = 1 − β k p i .
Also, let G i = ∑ j ≠ i Z j G_i=\sum_{j\ne i}Z_j G i = ∑ j = i Z j denote the (random) number of elements that i i i has to compete with for a spot, and notice that G i G_i G i is a sum of independent Bernoulli variables, each with parameter ρ j \rho_j ρ j , and all independent of X i X_i X i and Z i Z_i Z i . In other words, G i ∼ PB ( ρ 1 , … , ρ i − 1 , ρ i + 1 , … , ρ n ) G_i\sim\operatorname{PB}(\rho_1,\ldots,\rho_{i-1},\rho_{i+1},\ldots,\rho_n) G i ∼ PB ( ρ 1 , … , ρ i − 1 , ρ i + 1 , … , ρ n ) . If Z i = 1 Z_i=1 Z i = 1 and G i = t G_i=t G i = t , then there are exactly t + 1 t+1 t + 1 candidate elements including i i i . Since the arrival order is uniformly random, i i i is uniformly ranked among those t + 1 t+1 t + 1 candidates. The event A i A_i A i occurs exactly when i i i ’s rank among candidates is at most k k k . Thus,
Pr [ A i ∣ X i = 1 , Z i = 1 , G i = t ] = min { 1 , k t + 1 } = AR k ( t ) . \Pr[A_i\mid X_i=1,Z_i=1,G_i=t]=\min\left\{1,\frac{k}{t+1}\right\}=\operatorname{AR}_k(t). Pr [ A i ∣ X i = 1 , Z i = 1 , G i = t ] = min { 1 , t + 1 k } = AR k ( t ) .
Therefore, its conditional acceptance probability is
C i = ( 1 − β k p i ) ⋅ E [ AR k ( G i ) ] . (28) C_i=(1-\beta_kp_i)\cdot\mathbb{E}[\operatorname{AR}_k(G_i)]. \tag*{(28)} C i = ( 1 − β k p i ) ⋅ E [ AR k ( G i )] . (28)
To show that this is at least γ k \gamma_k γ k for all k ≥ 1 k\ge1 k ≥ 1 , we will make use of two lemmas. The first is a corollary of Theorem B.2 and its proof can be found in Section B.2.1.
Lemma B.1. For every i ∈ [ n ] i\in[n] i ∈ [ n ] , we have E [ AR k ( G i ) ] ≥ E [ AR k ( Poi ( k − p i ) ) ] \mathbb{E}[\operatorname{AR}_k(G_i)]\ge\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-p_i))] E [ AR k ( G i )] ≥ E [ AR k ( Poi ( k − p i ))] .
Notice that we cannot obtain the inequality in Lemma B.1 from Theorem B.1 in a black-box way, since AR k ( ⋅ ) \operatorname{AR}_k(\cdot) AR k ( ⋅ ) is neither convex nor concave. Therefore, we develop a slightly more involved argument to prove the lemma.
The second lemma states that the reciprocal of E [ AR k ( Poi ( k − u ) ) ] \mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-u))] E [ AR k ( Poi ( k − u ))] is convex for u ∈ [ 0 , 1 ] u \in[0,1] u ∈ [ 0 , 1 ] and its proof can be found in Section B.2.2.
Lemma B.2. For k ≥ 2 k \ge2 k ≥ 2 , let
F k ( λ ) = 1 E [ AR k ( Poi ( λ ) ) ] . F_k(\lambda) = \frac{1}{\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(\lambda))]}. F k ( λ ) = E [ AR k ( Poi ( λ ))] 1 .
Then, F k ( λ ) F_k(\lambda) F k ( λ ) is convex in [ k − 1 , k ] [k-1,k] [ k − 1 , k ] or, in other words, F k ( k − u ) F_k(k-u) F k ( k − u ) is convex for u ∈ [ 0 , 1 ] u \in[0,1] u ∈ [ 0 , 1 ] .
We are finally ready to show that the Conservative Scaling algorithm is γ k \gamma_k γ k -balanced for every k ≥ 1 k \ge1 k ≥ 1 .
Theorem B.4. The Conservative Scaling algorithm is γ k \gamma_k γ k -balanced for all k ≥ 1 k \ge1 k ≥ 1 .
Proof. The case k = 1 k=1 k = 1 follows from § 3.1 . Let k ≥ 2 k \ge2 k ≥ 2 . Fix an element i i i with p i > 0 p_i > 0 p i > 0 . Combining Lemma B.1 with (28) , we get
C i ≥ ( 1 − β k p i ) E [ AR k ( Poi ( k − p i ) ) ] . (29) C_i \ge(1-\beta_k p_i)\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-p_i))]. \tag*{(29)} C i ≥ ( 1 − β k p i ) E [ AR k ( Poi ( k − p i ))] . (29)
Note that 1 − β k p i 1-\beta_k p_i 1 − β k p i is the linear interpolation between 1 1 1 at p i = 0 p_i=0 p i = 0 and α k \alpha_k α k at p i = 1 p_i=1 p i = 1 . Since, by Lemma B.2, the function F k ( λ ) = 1 / E [ AR k ( Poi ( λ ) ) ] F_k(\lambda)=1/\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(\lambda))] F k ( λ ) = 1/ E [ AR k ( Poi ( λ ))] is convex in [ k − 1 , k ] [k-1,k] [ k − 1 , k ] , we have
F k ( k − p i ) ≤ ( 1 − p i ) F k ( k ) + p i F k ( k − 1 ) . F_k(k-p_i) \le(1-p_i)F_k(k)+p_iF_k(k-1). F k ( k − p i ) ≤ ( 1 − p i ) F k ( k ) + p i F k ( k − 1 ) .
Using the fact that F k ( k ) = 1 / γ k F_k(k)=1/\gamma_k F k ( k ) = 1/ γ k and F k ( k − 1 ) = 1 / δ k = α k / γ k F_k(k-1)=1/\delta_k=\alpha_k/\gamma_k F k ( k − 1 ) = 1/ δ k = α k / γ k , we have
F k ( k − p i ) ≤ 1 − p i γ k + α k p i γ k = 1 − β k p i γ k , F_k(k-p_i) \le\frac{1-p_i}{\gamma_k}+\frac{\alpha_kp_i}{\gamma_k}=\frac{1-\beta_kp_i}{\gamma_k}, F k ( k − p i ) ≤ γ k 1 − p i + γ k α k p i = γ k 1 − β k p i ,
which implies that
( 1 − β k p i ) E [ AR k ( Poi ( k − p i ) ) ] ≥ γ k . (1-\beta_kp_i)\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-p_i))] \ge\gamma_k. ( 1 − β k p i ) E [ AR k ( Poi ( k − p i ))] ≥ γ k .
The Poisson Binomial Lemma
Lemma B.1. For every i ∈ [ n ] i \in[n] i ∈ [ n ] , we have E [ AR k ( G i ) ] ≥ E [ AR k ( Poi ( k − p i ) ) ] \mathbb{E}[\operatorname{AR}_k(G_i)] \ge\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-p_i))] E [ AR k ( G i )] ≥ E [ AR k ( Poi ( k − p i ))] .
Proof. The case k = 1 k=1 k = 1 follows from the comparison in § 3.1 . Let k ≥ 2 k \ge2 k ≥ 2 . Recall that G i ∼ PB ( ρ 1 , … , ρ i − 1 , ρ i + 1 , … , ρ n ) G_i \sim\operatorname{PB}(\rho_1,\ldots,\rho_{i-1},\rho_{i+1},\ldots,\rho_n) G i ∼ PB ( ρ 1 , … , ρ i − 1 , ρ i + 1 , … , ρ n ) . Let P i ∼ Poi ( k − p i ) P_i \sim\operatorname{Poi}(k-p_i) P i ∼ Poi ( k − p i ) , D s , i : = E [ ( G i − s − 1 ) + ] − E [ ( P i − s − 1 ) + ] D_{s,i}:=\mathbb{E}[(G_i-s-1)^{+}]-\mathbb{E}[(P_i-s-1)^{+}] D s , i := E [( G i − s − 1 ) + ] − E [( P i − s − 1 ) + ] , μ = ∑ j ≠ i ρ j \mu=\sum_{j\ne i}\rho_j μ = ∑ j = i ρ j and δ = μ − ( k − p i ) \delta=\mu-(k-p_i) δ = μ − ( k − p i ) . We claim that, for all i ∈ [ n ] i \in[n] i ∈ [ n ] ,
∑ s ≥ 0 ( E [ ( G i − s − 1 ) + ] + E [ ( P i − s − 1 ) + ] ) ∣ Δ 2 AR k ( s ) ∣ < ∞ . \sum_{s\ge0}\left(\mathbb{E}[(G_i-s-1)^{+}]+\mathbb{E}[(P_i-s-1)^{+}]\right)\left|\Delta^2\operatorname{AR}_k(s)\right|<\infty. s ≥ 0 ∑ ( E [( G i − s − 1 ) + ] + E [( P i − s − 1 ) + ] ) Δ 2 AR k ( s ) < ∞.
To see this, fix i ∈ [ n ] i \in[n] i ∈ [ n ] . For all s ≥ 0 s \ge0 s ≥ 0 , both E [ ( G i − s − 1 ) + ] \mathbb{E}[(G_i-s-1)^{+}] E [( G i − s − 1 ) + ] and E [ ( P i − s − 1 ) + ] \mathbb{E}[(P_i-s-1)^{+}] E [( P i − s − 1 ) + ] lie in [ 0 , k − p i ] [0,k-p_i] [ 0 , k − p i ] , and thus E [ ( G i − s − 1 ) + ] + E [ ( P i − s − 1 ) + ] ≤ 2 ( k − p i ) \mathbb{E}[(G_i-s-1)^{+}]+\mathbb{E}[(P_i-s-1)^{+}] \le2(k-p_i) E [( G i − s − 1 ) + ] + E [( P i − s − 1 ) + ] ≤ 2 ( k − p i ) . Since AR k ( s ) ∈ [ 0 , 1 ] \operatorname{AR}_k(s) \in[0,1] AR k ( s ) ∈ [ 0 , 1 ] and is non-increasing in s s s , we have
∣ Δ 2 AR k ( s ) ∣ = ∣ ( AR k ( s + 2 ) − AR k ( s + 1 ) ) − ( AR k ( s + 1 ) − AR k ( s ) ) ∣ = ∣ ( AR k ( s ) − AR k ( s + 1 ) ) − ( AR k ( s + 1 ) − AR k ( s + 2 ) ) ∣ ≤ ( AR k ( s ) − AR k ( s + 1 ) ) + ( AR k ( s + 1 ) − AR k ( s + 2 ) ) \begin{aligned}
\left|\Delta^2\operatorname{AR}_k(s)\right|
&=\left|(\operatorname{AR}_k(s+2)-\operatorname{AR}_k(s+1))-(\operatorname{AR}_k(s+1)-\operatorname{AR}_k(s))\right|\\
&=\left|(\operatorname{AR}_k(s)-\operatorname{AR}_k(s+1))-(\operatorname{AR}_k(s+1)-\operatorname{AR}_k(s+2))\right|\\
&\le(\operatorname{AR}_k(s)-\operatorname{AR}_k(s+1))+(\operatorname{AR}_k(s+1)-\operatorname{AR}_k(s+2))
\end{aligned} Δ 2 AR k ( s ) = ∣ ( AR k ( s + 2 ) − AR k ( s + 1 )) − ( AR k ( s + 1 ) − AR k ( s )) ∣ = ∣ ( AR k ( s ) − AR k ( s + 1 )) − ( AR k ( s + 1 ) − AR k ( s + 2 )) ∣ ≤ ( AR k ( s ) − AR k ( s + 1 )) + ( AR k ( s + 1 ) − AR k ( s + 2 ))
= AR k ( s ) − AR k ( s + 2 ) = \operatorname{AR}_{k}(s) - \operatorname{AR}_{k}(s+2) = AR k ( s ) − AR k ( s + 2 ) .
Thus, for every M ≥ 0 M \ge0 M ≥ 0 ,
∑ s = 0 M ( E [ ( G i − s − 1 ) + ] + E [ ( P i − s − 1 ) + ] ) ∣ Δ 2 AR k ( s ) ∣ ≤ 2 ( k − p i ) ∑ s = 0 M ( AR k ( s ) − AR k ( s + 2 ) ) = 2 ( k − p i ) ( AR k ( 0 ) + AR k ( 1 ) − AR k ( M + 1 ) − AR k ( M + 2 ) ) ≤ 4 ( k − p i ) . \sum_{s=0}^{M}\left(\mathbb{E}[(G_i-s-1)^{+}]+\mathbb{E}[(P_i-s-1)^{+}]\right)\left|\Delta^{2}\operatorname{AR}_{k}(s)\right|
\le2(k-p_i)\sum_{s=0}^{M}\left(\operatorname{AR}_{k}(s)-\operatorname{AR}_{k}(s+2)\right)
=2(k-p_i)\left(\operatorname{AR}_{k}(0)+\operatorname{AR}_{k}(1)-\operatorname{AR}_{k}(M+1)-\operatorname{AR}_{k}(M+2)\right)
\le4(k-p_i). s = 0 ∑ M ( E [( G i − s − 1 ) + ] + E [( P i − s − 1 ) + ] ) Δ 2 AR k ( s ) ≤ 2 ( k − p i ) s = 0 ∑ M ( AR k ( s ) − AR k ( s + 2 ) ) = 2 ( k − p i ) ( AR k ( 0 ) + AR k ( 1 ) − AR k ( M + 1 ) − AR k ( M + 2 ) ) ≤ 4 ( k − p i ) .
Letting M → ∞ M \to\infty M → ∞ , yields
∑ s ≥ 0 ( E [ ( G i − s − 1 ) + ] + E [ ( P i − s − 1 ) + ] ) ∣ Δ 2 AR k ( s ) ∣ ≤ 4 ( k − p i ) < ∞ . \sum_{s\ge0}\left(\mathbb{E}[(G_i-s-1)^{+}]+\mathbb{E}[(P_i-s-1)^{+}]\right)\left|\Delta^{2}\operatorname{AR}_{k}(s)\right|\le4(k-p_i)<\infty. s ≥ 0 ∑ ( E [( G i − s − 1 ) + ] + E [( P i − s − 1 ) + ] ) Δ 2 AR k ( s ) ≤ 4 ( k − p i ) < ∞.
Thus, by Theorem B.2, we have
E [ AR k ( G i ) ] − E [ AR k ( P i ) ] = δ Δ AR k ( 0 ) + ∑ s ≥ 0 D s , i Δ 2 AR k ( s ) . \mathbb{E}[\operatorname{AR}_{k}(G_i)]-\mathbb{E}[\operatorname{AR}_{k}(P_i)]
=\delta\Delta\operatorname{AR}_{k}(0)+\sum_{s\ge0}D_{s,i}\Delta^{2}\operatorname{AR}_{k}(s). E [ AR k ( G i )] − E [ AR k ( P i )] = δ Δ AR k ( 0 ) + s ≥ 0 ∑ D s , i Δ 2 AR k ( s ) .
Since k ≥ 2 k\ge2 k ≥ 2 , we have
Δ AR k ( 0 ) = AR k ( 1 ) − AR k ( 0 ) = min { 1 , k 2 } − min { 1 , k } = 1 − 1 = 0. \Delta\operatorname{AR}_{k}(0)=\operatorname{AR}_{k}(1)-\operatorname{AR}_{k}(0)
=\min\left\{1,\frac{k}{2}\right\}-\min\{1,k\}=1-1=0. Δ AR k ( 0 ) = AR k ( 1 ) − AR k ( 0 ) = min { 1 , 2 k } − min { 1 , k } = 1 − 1 = 0.
Thus it suffices to show that
∑ s ≥ 0 D s , i Δ 2 AR k ( s ) ≥ 0. (30) \sum_{s\ge0}D_{s,i}\Delta^{2}\operatorname{AR}_{k}(s)\ge0. \tag*{(30)} s ≥ 0 ∑ D s , i Δ 2 AR k ( s ) ≥ 0. (30)
Let
J ( X ) : = ∑ s ≥ 0 ( E [ ( X − s − 1 ) + ] − E [ ( P i − s − 1 ) + ] ) Δ 2 AR k ( s ) . J(X):=\sum_{s\ge0}\left(\mathbb{E}[(X-s-1)^{+}]-\mathbb{E}[(P_i-s-1)^{+}]\right)\Delta^{2}\operatorname{AR}_{k}(s). J ( X ) := s ≥ 0 ∑ ( E [( X − s − 1 ) + ] − E [( P i − s − 1 ) + ] ) Δ 2 AR k ( s ) .
Since Δ AR k ( 0 ) = 0 \Delta\operatorname{AR}_{k}(0)=0 Δ AR k ( 0 ) = 0 , the preceding identity gives
J ( X ) = E [ AR k ( X ) ] − E [ AR k ( P i ) ] . J(X)=\mathbb{E}[\operatorname{AR}_{k}(X)]-\mathbb{E}[\operatorname{AR}_{k}(P_i)]. J ( X ) = E [ AR k ( X )] − E [ AR k ( P i )] .
Thus, it suffices to show that J ( G i ) ≥ 0 J(G_i)\ge0 J ( G i ) ≥ 0 . Start with the original underlying masses p j p_j p j , for j ≠ i j\ne i j = i , and let H 0 = G i H_0=G_i H 0 = G i . At each step choose a largest current underlying mass x x x , replace it by two masses x / 2 x/2 x /2 , and assign to every current mass u u u the Bernoulli success probability u ( 1 − β k u ) u(1-\beta_k u) u ( 1 − β k u ) . Let H ℓ H_\ell H ℓ be the resulting sum after ℓ \ell ℓ steps. The sum of the underlying masses remains k − p i k-p_i k − p i even though the sum of the Bernoulli probabilities need not remain constant.
Observe that the largest underlying mass tends to zero. Moreover,
E [ H ℓ ] = ( k − p i ) − β k ∑ j p j 2 ⟶ k − p i , max j p j ( 1 − β k p j ) ⟶ 0 , \mathbb{E}[H_\ell]=(k-p_i)-\beta_k\sum_j p_j^2\longrightarrow k-p_i,
\qquad
\max_j p_j(1-\beta_kp_j)\longrightarrow0, E [ H ℓ ] = ( k − p i ) − β k j ∑ p j 2 ⟶ k − p i , j max p j ( 1 − β k p j ) ⟶ 0 ,
where the sums and maximum are over the current masses. By the law of small numbers we get H ℓ ⇒ P i H_\ell\Rightarrow P_i H ℓ ⇒ P i . Since AR k \operatorname{AR}_{k} AR k is bounded,
J ( H ℓ ) = E [ AR k ( H ℓ ) ] − E [ AR k ( P i ) ] ⟶ 0. J(H_\ell)=\mathbb{E}[\operatorname{AR}_{k}(H_\ell)]-\mathbb{E}[\operatorname{AR}_{k}(P_i)]\longrightarrow0. J ( H ℓ ) = E [ AR k ( H ℓ )] − E [ AR k ( P i )] ⟶ 0.
It therefore suffices to prove J ( H ℓ ) ≥ J ( H ℓ + 1 ) J(H_\ell) \ge J(H_{\ell+1}) J ( H ℓ ) ≥ J ( H ℓ + 1 ) .
Let E − i ( ℓ ) E_{-i}^{(\ell)} E − i ( ℓ ) index the current masses, where E − i ( 0 ) = [ n ] − i E_{-i}^{(0)} = [n] - i E − i ( 0 ) = [ n ] − i . Choose j x ∈ arg max j ∈ E − i ( ℓ ) p j j_x \in\arg\max_{j \in E_{-i}^{(\ell)}} p_j j x ∈ arg max j ∈ E − i ( ℓ ) p j , set x = p j x x = p_{j_x} x = p j x and let T T T be the sum of the independent Bernoulli variables with parameters ρ j = p j ( 1 − β k p j ) \rho_j = p_j(1-\beta_kp_j) ρ j = p j ( 1 − β k p j ) for j ∈ E − i ( ℓ ) − j x j \in E_{-i}^{(\ell)} - j_x j ∈ E − i ( ℓ ) − j x .
Let
q = x ( 1 − β k x ) , h = x 2 ( 1 − β k x 2 ) . q = x(1-\beta_kx), \qquad h = \frac{x}{2}\left(1-\beta_k\frac{x}{2}\right). q = x ( 1 − β k x ) , h = 2 x ( 1 − β k 2 x ) .
and note that
H ℓ = T + Ber ( q ) , H ℓ + 1 = T + Ber ( h ) + Ber ( h ) . H_\ell= T + \operatorname{Ber}(q), \qquad H_{\ell+1} = T + \operatorname{Ber}(h) + \operatorname{Ber}(h). H ℓ = T + Ber ( q ) , H ℓ + 1 = T + Ber ( h ) + Ber ( h ) .
For s ∈ N s \in\mathbb{N} s ∈ N , when T ≤ s − 1 T \le s-1 T ≤ s − 1 , we have H ℓ , H ℓ + 1 ≤ s + 1 H_\ell, H_{\ell+1} \le s+1 H ℓ , H ℓ + 1 ≤ s + 1 , and thus
( H ℓ − s − 1 ) + = ( H ℓ + 1 − s − 1 ) + = 0. (H_\ell-s-1)^+ = (H_{\ell+1}-s-1)^+ = 0. ( H ℓ − s − 1 ) + = ( H ℓ + 1 − s − 1 ) + = 0.
Furthermore, when T = s T=s T = s , we have H ℓ ≤ s + 1 H_\ell\le s+1 H ℓ ≤ s + 1 , and thus
( H ℓ − s − 1 ) + − ( H ℓ + 1 − s − 1 ) + = − ( Ber ( h ) + Ber ( h ) − 1 ) + . (H_\ell-s-1)^+-(H_{\ell+1}-s-1)^+ = -(\operatorname{Ber}(h)+\operatorname{Ber}(h)-1)^+. ( H ℓ − s − 1 ) + − ( H ℓ + 1 − s − 1 ) + = − ( Ber ( h ) + Ber ( h ) − 1 ) + .
Finally, when T ≥ s + 1 T \ge s+1 T ≥ s + 1 , we have
( H ℓ − s − 1 ) + − ( H ℓ + 1 − s − 1 ) + = ( H ℓ − s − 1 ) − ( H ℓ + 1 − s − 1 ) = Ber ( q ) − Ber ( h ) − Ber ( h ) . (H_\ell-s-1)^+-(H_{\ell+1}-s-1)^+ = (H_\ell-s-1)-(H_{\ell+1}-s-1) = \operatorname{Ber}(q)-\operatorname{Ber}(h)-\operatorname{Ber}(h). ( H ℓ − s − 1 ) + − ( H ℓ + 1 − s − 1 ) + = ( H ℓ − s − 1 ) − ( H ℓ + 1 − s − 1 ) = Ber ( q ) − Ber ( h ) − Ber ( h ) .
Putting everything together, we obtain
E [ ( H ℓ − s − 1 ) + ] − E [ ( H ℓ + 1 − s − 1 ) + ] = ( q − 2 h ) Pr [ T ≥ s + 1 ] − h 2 Pr [ T = s ] . (31) \mathbb{E}[(H_\ell-s-1)^+] - \mathbb{E}[(H_{\ell+1}-s-1)^+] = (q-2h)\Pr[T \ge s+1] - h^2\Pr[T=s]. \tag*{(31)} E [( H ℓ − s − 1 ) + ] − E [( H ℓ + 1 − s − 1 ) + ] = ( q − 2 h ) Pr [ T ≥ s + 1 ] − h 2 Pr [ T = s ] . (31)
Note that
q − 2 h = x ( 1 − β k x ) − 2 x 2 ( 1 − β k x 2 ) = − β k x 2 + β k x 2 2 = − β k x 2 2 , q-2h = x(1-\beta_kx)-2\frac{x}{2}\left(1-\beta_k\frac{x}{2}\right) = -\beta_kx^2+\beta_k\frac{x^2}{2} = -\beta_k\frac{x^2}{2}, q − 2 h = x ( 1 − β k x ) − 2 2 x ( 1 − β k 2 x ) = − β k x 2 + β k 2 x 2 = − β k 2 x 2 ,
and thus (31) becomes
E [ ( H ℓ − s − 1 ) + ] − E [ ( H ℓ + 1 − s − 1 ) + ] = − ( β k x 2 2 Pr [ T ≥ s + 1 ] + h 2 Pr [ T = s ] ) . \mathbb{E}[(H_\ell-s-1)^+] - \mathbb{E}[(H_{\ell+1}-s-1)^+] = -\left(\beta_k\frac{x^2}{2}\Pr[T \ge s+1] + h^2\Pr[T=s]\right). E [( H ℓ − s − 1 ) + ] − E [( H ℓ + 1 − s − 1 ) + ] = − ( β k 2 x 2 Pr [ T ≥ s + 1 ] + h 2 Pr [ T = s ] ) .
Using the above equality, we get that
J ( H ℓ ) − J ( H ℓ + 1 ) = ∑ s ≥ 0 ( E [ ( H ℓ − s − 1 ) + ] − E [ ( H ℓ + 1 − s − 1 ) + ] ) Δ 2 A R k ( s ) = − ∑ s ≥ 0 ( β k x 2 2 Pr [ T ≥ s + 1 ] + h 2 Pr [ T = s ] ) Δ 2 A R k ( s ) = β k x 2 2 E [ − Δ A R k ( T ) ] + h 2 E [ − Δ 2 A R k ( T ) ] , (32) \begin{aligned}
J(H_\ell)-J(H_{\ell+1})
&= \sum_{s\ge0}\left(\mathbb{E}[(H_\ell-s-1)^+] - \mathbb{E}[(H_{\ell+1}-s-1)^+]\right)\Delta^2 AR_k(s) \\
&= -\sum_{s\ge0}\left(\beta_k\frac{x^2}{2}\Pr[T \ge s+1] + h^2\Pr[T=s]\right)\Delta^2 AR_k(s) \\
&= \beta_k\frac{x^2}{2}\mathbb{E}[-\Delta AR_k(T)] + h^2\mathbb{E}[-\Delta^2 AR_k(T)], \tag*{(32)}
\end{aligned} J ( H ℓ ) − J ( H ℓ + 1 ) = s ≥ 0 ∑ ( E [( H ℓ − s − 1 ) + ] − E [( H ℓ + 1 − s − 1 ) + ] ) Δ 2 A R k ( s ) = − s ≥ 0 ∑ ( β k 2 x 2 Pr [ T ≥ s + 1 ] + h 2 Pr [ T = s ] ) Δ 2 A R k ( s ) = β k 2 x 2 E [ − Δ A R k ( T )] + h 2 E [ − Δ 2 A R k ( T )] , (32)
where the last equality follows from the fact that
∑ s ≥ 0 Pr [ T ≥ s + 1 ] Δ 2 A R k ( s ) = E [ ∑ s = 0 T − 1 Δ 2 A R k ( s ) ] = E [ Δ A R k ( T ) − Δ A R k ( 0 ) ] = E [ Δ A R k ( T ) ] . \sum_{s\ge0}\Pr[T \ge s+1]\Delta^2 AR_k(s) = \mathbb{E}\left[\sum_{s=0}^{T-1}\Delta^2 AR_k(s)\right] = \mathbb{E}[\Delta AR_k(T)-\Delta AR_k(0)] = \mathbb{E}[\Delta AR_k(T)]. s ≥ 0 ∑ Pr [ T ≥ s + 1 ] Δ 2 A R k ( s ) = E [ s = 0 ∑ T − 1 Δ 2 A R k ( s ) ] = E [ Δ A R k ( T ) − Δ A R k ( 0 )] = E [ Δ A R k ( T )] .
Next, we show that
E [ − Δ 2 A R k ( T ) ] ≥ 2 β k E [ Δ A R k ( T ) ] . (33) \mathbb{E}[-\Delta^2 AR_k(T)] \ge2\beta_k\mathbb{E}[\Delta AR_k(T)]. \tag*{(33)} E [ − Δ 2 A R k ( T )] ≥ 2 β k E [ Δ A R k ( T )] . (33)
Substituting this into (32) yields
J ( H ℓ ) − J ( H ℓ + 1 ) ≥ β k ( x 2 2 − 2 h 2 ) E [ − Δ A R k ( T ) ] ≥ 0 , J(H_{\ell})-J(H_{\ell+1})\ge\beta_k\left(\frac{x^2}{2}-2h^2\right)\mathbb{E}[-\Delta\mathrm{AR}_k(T)]\ge0, J ( H ℓ ) − J ( H ℓ + 1 ) ≥ β k ( 2 x 2 − 2 h 2 ) E [ − Δ AR k ( T )] ≥ 0 ,
where the inequality follows from the facts that 2 h 2 ≤ x 2 / 2 2h^2\le x^2/2 2 h 2 ≤ x 2 /2 and that E [ − Δ A R k ( T ) ] ≥ 0 \mathbb{E}[-\Delta\mathrm{AR}_k(T)]\ge0 E [ − Δ AR k ( T )] ≥ 0 , since A R k \mathrm{AR}_k AR k is non-increasing. Thus, to show J ( H ℓ ) ≥ J ( H ℓ + 1 ) J(H_{\ell})\ge J(H_{\ell+1}) J ( H ℓ ) ≥ J ( H ℓ + 1 ) , it suffices to show (33) , which is equivalent to
E [ Δ 2 A R k ( T ) ] + 2 β k E [ Δ A R k ( T ) ] ≤ 0. (34) \mathbb{E}[\Delta^2 \mathrm{AR}_k(T)]+2\beta_k\mathbb{E}[\Delta\mathrm{AR}_k(T)]\le0. \tag*{(34)} E [ Δ 2 AR k ( T )] + 2 β k E [ Δ AR k ( T )] ≤ 0. (34)
To show (34) , we will define a new random variable Z Z Z that point-wise dominates Δ 2 A R k ( T ) + 2 β k Δ A R k ( T ) \Delta^2 \mathrm{AR}_k(T)+2\beta_k\Delta\mathrm{AR}_k(T) Δ 2 AR k ( T ) + 2 β k Δ AR k ( T ) and that satisfies E [ Z ] = 0 \mathbb{E}[Z]=0 E [ Z ] = 0 . Note that, for all s ∈ N s\in\mathbb{N} s ∈ N
Δ 2 A R k ( s ) + 2 β k Δ A R k ( s ) = { 0 for s ≤ k − 3 , − 1 k + 1 for s = k − 2 , 2 k ( s + 1 ) ( s + 2 ) ( 1 s + 3 − β k ) for s ≥ k − 1. \Delta^2 \mathrm{AR}_k(s)+2\beta_k\Delta\mathrm{AR}_k(s)=
\begin{cases}
0 & \text{for }s\le k-3,\\
-\dfrac{1}{k+1} & \text{for }s=k-2,\\
\dfrac{2k}{(s+1)(s+2)}\left(\dfrac{1}{s+3}-\beta_k\right) & \text{for }s\ge k-1.
\end{cases} Δ 2 AR k ( s ) + 2 β k Δ AR k ( s ) = ⎩ ⎨ ⎧ 0 − k + 1 1 ( s + 1 ) ( s + 2 ) 2 k ( s + 3 1 − β k ) for s ≤ k − 3 , for s = k − 2 , for s ≥ k − 1.
Let
g ( s , t ) : = { 0 for s < k − 1 , k ( s + 1 ) ( s + 2 ) ( 2 s − k + 2 − t ) for s ≥ k − 1. g(s,t):=
\begin{cases}
0 & \text{for }s<k-1,\\
\dfrac{k}{(s+1)(s+2)(2s-k+2-t)} & \text{for }s\ge k-1.
\end{cases} g ( s , t ) := ⎩ ⎨ ⎧ 0 ( s + 1 ) ( s + 2 ) ( 2 s − k + 2 − t ) k for s < k − 1 , for s ≥ k − 1.
where s s s corresponds to the number of successes for a realization of T T T and t t t to the sum of the p j p_j p j 's for those successes. Also let F = E − i ( ℓ ) − j x F=\mathcal{E}_{-i}^{(\ell)}-jx F = E − i ( ℓ ) − j x . For j ∈ F j\in F j ∈ F , write B j ∼ Ber ( ρ j ) B_j\sim\operatorname{Ber}(\rho_j) B j ∼ Ber ( ρ j ) for the independent draws defining T T T , so that T = ∑ j ∈ F B j T=\sum_{j\in F}B_j T = ∑ j ∈ F B j . In the following computation of Z Z Z , all element indices range over F F F , and zero-mass terms are omitted. We define Z Z Z as
Z : = ∑ j ∈ F p j ρ j ( B j − ρ j ) ⋅ g ( 1 + ∑ u ∈ F − j B u , p j + ∑ u ∈ F − j p u B u ) . Z:=\sum_{j\in F}\frac{p_j}{\rho_j}(B_j-\rho_j)\cdot g\left(1+\sum_{u\in F-j}B_u,\ p_j+\sum_{u\in F-j}p_uB_u\right). Z := j ∈ F ∑ ρ j p j ( B j − ρ j ) ⋅ g 1 + u ∈ F − j ∑ B u , p j + u ∈ F − j ∑ p u B u .
Notice that the arguments of g g g describe the outcome obtained by forcing the j j j -th element to succeed, which then depends only on the other elements. Therefore, if we condition on ( B u ) u ∈ F − j (B_u)_{u\in F-j} ( B u ) u ∈ F − j , g ( 1 + ∑ u ∈ F − j B u , p j + ∑ u ∈ F − j p u B u ) g\left(1+\sum_{u\in F-j}B_u,\ p_j+\sum_{u\in F-j}p_uB_u\right) g ( 1 + ∑ u ∈ F − j B u , p j + ∑ u ∈ F − j p u B u ) becomes a constant. In addition,
E [ B j − ρ j ∣ ( B u ) u ∈ F − j ] = ρ j − ρ j = 0 , \mathbb{E}[B_j-\rho_j\mid(B_u)_{u\in F-j}]=\rho_j-\rho_j=0, E [ B j − ρ j ∣ ( B u ) u ∈ F − j ] = ρ j − ρ j = 0 ,
and thus every term in the sum defining Z Z Z has expectation equal to zero, which implies that E [ Z ] = 0 \mathbb{E}[Z]=0 E [ Z ] = 0 . Fix a realization s s s of T T T and let t = ∑ j : B j = 1 p j t=\sum_{j:B_j=1}p_j t = ∑ j : B j = 1 p j . Notice that, if B j = 1 B_j=1 B j = 1 , the arguments of g g g for that j j j are ( s , t ) (s,t) ( s , t ) . However, if B j = 0 B_j=0 B j = 0 , the arguments of g g g for that j j j are ( s + 1 , t + p j ) (s+1,t+p_j) ( s + 1 , t + p j ) , since the arguments of g g g for the j j j -th term in the sum defining Z Z Z are forcing the j j j -th Bernoulli to be a success. Thus, for the fixed realization, Z Z Z becomes
Z = ∑ j : B j = 1 p j ( 1 − ρ j ) ρ j ⋅ g ( s , t ) − ∑ j : B j = 0 p j ⋅ g ( s + 1 , t + p j ) . Z=\sum_{j:B_j=1}\frac{p_j(1-\rho_j)}{\rho_j}\cdot g(s,t)-\sum_{j:B_j=0}p_j\cdot g(s+1,t+p_j). Z = j : B j = 1 ∑ ρ j p j ( 1 − ρ j ) ⋅ g ( s , t ) − j : B j = 0 ∑ p j ⋅ g ( s + 1 , t + p j ) .
If s < k − 2 s<k-2 s < k − 2 , then Z = 0 Z=0 Z = 0 by the definition of g g g . For s = k − 2 s=k-2 s = k − 2 , we have
Z = − ∑ j : B j = 0 p j ⋅ g ( k − 1 , t + p j ) = − ∑ j : B j = 0 p j ( k + 1 ) ( 2 ( k − 1 ) − k + 2 − t − p j ) = − 1 k + 1 ∑ j : B j = 0 p j k − t − p j ≥ − 1 k + 1 ∑ j : B j = 0 p j k − t − x ≥ − 1 k + 1 . \begin{aligned}
Z=-\sum_{j:B_j=0}p_j\cdot g(k-1,t+p_j)=-\sum_{j:B_j=0}\frac{p_j}{(k+1)(2(k-1)-k+2-t-p_j)} \\
&=-\frac{1}{k+1}\sum_{j:B_j=0}\frac{p_j}{k-t-p_j}\ge-\frac{1}{k+1}\sum_{j:B_j=0}\frac{p_j}{k-t-x} \\
&\ge-\frac{1}{k+1}.
\end{aligned} Z = − j : B j = 0 ∑ p j ⋅ g ( k − 1 , t + p j ) = − j : B j = 0 ∑ ( k + 1 ) ( 2 ( k − 1 ) − k + 2 − t − p j ) p j = − k + 1 1 j : B j = 0 ∑ k − t − p j p j ≥ − k + 1 1 j : B j = 0 ∑ k − t − x p j ≥ − k + 1 1 .
where the last inequality follows from the fact that t + ∑ j : B j = 0 p j ≤ k − x t+\sum_{j:B_j=0}p_j\le k-x t + ∑ j : B j = 0 p j ≤ k − x . Finally, for s ≥ k − 1 s\ge k-1 s ≥ k − 1 , we have
Z = k ( s + 1 ) ( s + 2 ) ( ∑ j : B j = 1 p j ( 1 − ρ j ) ρ j 1 2 s − k + 2 − t − ∑ j : B j = 0 p j ( s + 1 ) ( s + 3 ) ( 2 s − k + 4 − t − p j ) ) ≥ k ( s + 1 ) ( s + 2 ) ( 1 2 s − k + 2 − t ∑ j : B j = 1 p j ( 1 − ρ j ) ρ j − ( k − x − t ) ( s + 1 ) ( s + 3 ) ( 2 s − k + 4 − t − x ) ) ≥ k ( s + 1 ) ( s + 2 ) ( s − ( 1 − β k ) t 2 s − k + 2 − t − ( k − x − t ) ( s + 1 ) ( s + 3 ) ( 2 s − k + 4 − t − x ) ) . \begin{aligned}
Z=\frac{k}{(s+1)(s+2)}\left(\sum_{j:B_j=1}\frac{p_j(1-\rho_j)}{\rho_j}\frac{1}{2s-k+2-t}-\sum_{j:B_j=0}\frac{p_j(s+1)}{(s+3)(2s-k+4-t-p_j)}\right) \\
&\ge\frac{k}{(s+1)(s+2)}\left(\frac{1}{2s-k+2-t}\sum_{j:B_j=1}\frac{p_j(1-\rho_j)}{\rho_j}-\frac{(k-x-t)(s+1)}{(s+3)(2s-k+4-t-x)}\right) \\
&\ge\frac{k}{(s+1)(s+2)}\left(\frac{s-(1-\beta_k)t}{2s-k+2-t}-\frac{(k-x-t)(s+1)}{(s+3)(2s-k+4-t-x)}\right).
\end{aligned} Z = ( s + 1 ) ( s + 2 ) k j : B j = 1 ∑ ρ j p j ( 1 − ρ j ) 2 s − k + 2 − t 1 − j : B j = 0 ∑ ( s + 3 ) ( 2 s − k + 4 − t − p j ) p j ( s + 1 ) ≥ ( s + 1 ) ( s + 2 ) k 2 s − k + 2 − t 1 j : B j = 1 ∑ ρ j p j ( 1 − ρ j ) − ( s + 3 ) ( 2 s − k + 4 − t − x ) ( k − x − t ) ( s + 1 ) ≥ ( s + 1 ) ( s + 2 ) k ( 2 s − k + 2 − t s − ( 1 − β k ) t − ( s + 3 ) ( 2 s − k + 4 − t − x ) ( k − x − t ) ( s + 1 ) ) .
where the first inequality follows from the facts that p j ≤ x p_j\le x p j ≤ x for all j j j and ∑ j : B j = 0 p j ≤ k − x − t \sum_{j:B_j=0}p_j\le k-x-t ∑ j : B j = 0 p j ≤ k − x − t , and the second inequality follows from the fact that
p j ( 1 − ρ j ) ρ j = 1 − p j ( 1 − β k p j ) 1 − β k p j = 1 1 − β k p j − p j ≥ 1 − ( 1 − β k ) p j , \frac{p_j(1-\rho_j)}{\rho_j}=\frac{1-p_j(1-\beta_kp_j)}{1-\beta_kp_j}=\frac{1}{1-\beta_kp_j}-p_j\ge1-(1-\beta_k)p_j, ρ j p j ( 1 − ρ j ) = 1 − β k p j 1 − p j ( 1 − β k p j ) = 1 − β k p j 1 − p j ≥ 1 − ( 1 − β k ) p j ,
as well as the definitions of s = ∑ j : B j = 1 1 s=\sum_{j:B_j=1}1 s = ∑ j : B j = 1 1 and t = ∑ j : B j = 1 p j t=\sum_{j:B_j=1}p_j t = ∑ j : B j = 1 p j . For Z Z Z to dominate Δ 2 AR k ( s ) + 2 β k Δ AR k ( s ) \Delta^2\operatorname{AR}_k(s)+2\beta_k\Delta\operatorname{AR}_k(s) Δ 2 AR k ( s ) + 2 β k Δ AR k ( s ) for s ≥ k − 1 s\ge k-1 s ≥ k − 1 , it suffices to show that
k ( s + 1 ) ( s + 2 ) ( s − ( 1 − β k ) t 2 s − k + 2 − t − ( k − x − t ) ( s + 1 ) ( s + 3 ) ( 2 s − k + 4 − t − x ) ) ≥ 2 k ( s + 1 ) ( s + 2 ) ( 1 s + 3 − β k ) , \frac{k}{(s+1)(s+2)}\left(\frac{s-(1-\beta_k)t}{2s-k+2-t}-\frac{(k-x-t)(s+1)}{(s+3)(2s-k+4-t-x)}\right)\ge\frac{2k}{(s+1)(s+2)}\left(\frac{1}{s+3}-\beta_k\right), ( s + 1 ) ( s + 2 ) k ( 2 s − k + 2 − t s − ( 1 − β k ) t − ( s + 3 ) ( 2 s − k + 4 − t − x ) ( k − x − t ) ( s + 1 ) ) ≥ ( s + 1 ) ( s + 2 ) 2 k ( s + 3 1 − β k ) ,
or, equivalently, that
s − ( 1 − β k ) t 2 s − k + 2 − t − ( k − x − t ) ( s + 1 ) ( s + 3 ) ( 2 s − k + 4 − t − x ) ≥ 2 s + 3 − 2 β k . (35) \frac{s-(1-\beta_k)t}{2s-k+2-t}-\frac{(k-x-t)(s+1)}{(s+3)(2s-k+4-t-x)}\ge\frac{2}{s+3}-2\beta_k. \tag*{(35)} 2 s − k + 2 − t s − ( 1 − β k ) t − ( s + 3 ) ( 2 s − k + 4 − t − x ) ( k − x − t ) ( s + 1 ) ≥ s + 3 2 − 2 β k . (35)
Let
r ( s , t , k , x ) : = ( s − k + 2 ) ( ( s − 1 ) ( 2 s − k + 2 − t ) − ( s + 3 ) ( 2 − x ) ) + β k ( s + 3 ) ( 4 s − 2 k + 4 − t ) ( 2 s − k + 4 − x − t ) . r(s,t,k,x):=(s-k+2)((s-1)(2s-k+2-t)-(s+3)(2-x))+\beta_k(s+3)(4s-2k+4-t)(2s-k+4-x-t). r ( s , t , k , x ) := ( s − k + 2 ) (( s − 1 ) ( 2 s − k + 2 − t ) − ( s + 3 ) ( 2 − x )) + β k ( s + 3 ) ( 4 s − 2 k + 4 − t ) ( 2 s − k + 4 − x − t ) .
Re-arranging (35) , it suffices to show that r ( s , t , k , x ) ≥ 0 r(s,t,k,x)\ge0 r ( s , t , k , x ) ≥ 0 . Observe that r r r is increasing in β k \beta_k β k and, keeping x + t x+t x + t fixed, in x x x .
Next, observe that t ≤ s x t\le sx t ≤ s x and that, if we show
β k ≥ 2 ( k + 1 ) ( k + 2 ) , (36) \beta_k\ge\frac{2}{(k+1)(k+2)}, \tag*{(36)} β k ≥ ( k + 1 ) ( k + 2 ) 2 , (36)
since we are in the case s ≥ k − 1 s\ge k-1 s ≥ k − 1 , this implies β k ≥ 2 / ( ( s + 2 ) ( s + 3 ) ) \beta_k\ge2/((s+2)(s+3)) β k ≥ 2/ (( s + 2 ) ( s + 3 )) . Furthermore, x + t ≤ k x+t\le k x + t ≤ k , which implies x + t ≤ s + 1 x+t\le s+1 x + t ≤ s + 1 . Thus, we can also replace ( x , t ) (x,t) ( x , t ) by
( x ′ , t ′ ) = ( x + t s + 1 , s ( x + t ) s + 1 ) . (x',t')=\left(\frac{x+t}{s+1},\frac{s(x+t)}{s+1}\right). ( x ′ , t ′ ) = ( s + 1 x + t , s + 1 s ( x + t ) ) .
which decreases x x x and increases t t t , keeping x + t x+t x + t unchanged and satisfying t ′ = s x ′ t'=sx' t ′ = s x ′ . Substituting these bounds in the definition of r r r yields
r ( s , t , k , x ) ≥ ( k − 2 ) ( k − x − t ) + s ( 2 s − k + 4 − x − t ) ( s + 1 ) ( s + 2 ) ( 2 ( k − x − t ) + ( s − k + 1 ) ( s 2 + s + 2 ) ) ≥ 0. r(s,t,k,x) \ge(k-2)(k-x-t)+\frac{s(2s-k+4-x-t)}{(s+1)(s+2)}\left(2(k-x-t)+(s-k+1)(s^2+s+2)\right)
\ge0. r ( s , t , k , x ) ≥ ( k − 2 ) ( k − x − t ) + ( s + 1 ) ( s + 2 ) s ( 2 s − k + 4 − x − t ) ( 2 ( k − x − t ) + ( s − k + 1 ) ( s 2 + s + 2 ) ) ≥ 0.
where the last expression is non-negative because k ≥ 2 k\ge2 k ≥ 2 , s ≥ k − 1 s\ge k-1 s ≥ k − 1 and x + t ≤ k x+t\le k x + t ≤ k . Therefore, to show r ( s , t , k , x ) ≥ 0 r(s,t,k,x)\ge0 r ( s , t , k , x ) ≥ 0 , it suffices to show (36) . Observe that
γ k = 1 − e − k k k k ! = e − k ( e k − k k k ! ) = e − k ( ∑ s = 0 k − 1 k s s ! + ∑ s = k ∞ k s + 1 ( s + 1 ) ! ) = E [ AR k ( Poi ( k ) ) ] , \gamma_k=1-e^{-k}\frac{k^k}{k!}=e^{-k}\left(e^k-\frac{k^k}{k!}\right)=e^{-k}\left(\sum_{s=0}^{k-1}\frac{k^s}{s!}+\sum_{s=k}^{\infty}\frac{k^{s+1}}{(s+1)!}\right)=\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k))], γ k = 1 − e − k k ! k k = e − k ( e k − k ! k k ) = e − k ( s = 0 ∑ k − 1 s ! k s + s = k ∑ ∞ ( s + 1 )! k s + 1 ) = E [ AR k ( Poi ( k ))] ,
and thus
β k = 1 − γ k δ k = 1 − E [ AR k ( Poi ( k ) ) ] E [ AR k ( Poi ( k − 1 ) ) ] . \beta_k=1-\frac{\gamma_k}{\delta_k}=1-\frac{\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k))]}{\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-1))]}. β k = 1 − δ k γ k = 1 − E [ AR k ( Poi ( k − 1 ))] E [ AR k ( Poi ( k ))] .
Thus, (36) is equivalent to
( k + 1 ) ( k + 2 ) ( E [ AR k ( Poi ( k − 1 ) ) ] − E [ AR k ( Poi ( k ) ) ] ) ≥ 2 E [ AR k ( Poi ( k − 1 ) ) ] ⟺ (k+1)(k+2)\left(\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-1))]-\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k))]\right)\ge2\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-1))]
\Longleftrightarrow ( k + 1 ) ( k + 2 ) ( E [ AR k ( Poi ( k − 1 ))] − E [ AR k ( Poi ( k ))] ) ≥ 2 E [ AR k ( Poi ( k − 1 ))] ⟺
k ( k + 3 ) E [ AR k ( Poi ( k − 1 ) ) ] ≥ ( k + 1 ) ( k + 2 ) E [ AR k ( Poi ( k ) ) ] ⟺ k(k+3)\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-1))]\ge(k+1)(k+2)\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k))]
\Longleftrightarrow k ( k + 3 ) E [ AR k ( Poi ( k − 1 ))] ≥ ( k + 1 ) ( k + 2 ) E [ AR k ( Poi ( k ))] ⟺
k ( k + 3 ) ( k + 1 ) ( k + 2 ) E [ AR k ( Poi ( k − 1 ) ) ] ≥ E [ AR k ( Poi ( k ) ) ] . \frac{k(k+3)}{(k+1)(k+2)}\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-1))]\ge\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k))]. ( k + 1 ) ( k + 2 ) k ( k + 3 ) E [ AR k ( Poi ( k − 1 ))] ≥ E [ AR k ( Poi ( k ))] .
Observe that
E [ AR k ( Poi ( k ) ) ] = e − k ∑ j ≥ 0 k j j ! min { 1 , k j + 1 } = e − k ∑ j = 0 k − 1 k j j ! + e − k ∑ j ≥ k + 1 k j j ! = 1 − e − k k k k ! , \begin{aligned}
\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k))]=e^{-k}\sum_{j\ge0}\frac{k^j}{j!}\min\left\{1,\frac{k}{j+1}\right\}=e^{-k}\sum_{j=0}^{k-1}\frac{k^j}{j!}+e^{-k}\sum_{j\ge k+1}\frac{k^j}{j!} \\
&=1-e^{-k}\frac{k^k}{k!},
\end{aligned} E [ AR k ( Poi ( k ))] = e − k j ≥ 0 ∑ j ! k j min { 1 , j + 1 k } = e − k j = 0 ∑ k − 1 j ! k j + e − k j ≥ k + 1 ∑ j ! k j = 1 − e − k k ! k k ,
and
E [ AR k ( Poi ( k − 1 ) ) ] = e − ( k − 1 ) ∑ j ≥ 0 ( k − 1 ) j j ! min { 1 , k j + 1 } = e − ( k − 1 ) ∑ j = 0 k − 1 ( k − 1 ) j j ! + e − ( k − 1 ) ∑ j ≥ k k ( k − 1 ) j ( j + 1 ) ! = e − ( k − 1 ) ∑ j = 0 k − 1 ( k − 1 ) j j ! + k k − 1 e − ( k − 1 ) ∑ j ≥ k + 1 ( k − 1 ) j j ! . \begin{aligned}
\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(k-1))]=e^{-(k-1)}\sum_{j\ge0}\frac{(k-1)^j}{j!}\min\left\{1,\frac{k}{j+1}\right\} \\
&=e^{-(k-1)}\sum_{j=0}^{k-1}\frac{(k-1)^j}{j!}+e^{-(k-1)}\sum_{j\ge k}\frac{k(k-1)^j}{(j+1)!} \\
&=e^{-(k-1)}\sum_{j=0}^{k-1}\frac{(k-1)^j}{j!}+\frac{k}{k-1}e^{-(k-1)}\sum_{j\ge k+1}\frac{(k-1)^j}{j!}.
\end{aligned} E [ AR k ( Poi ( k − 1 ))] = e − ( k − 1 ) j ≥ 0 ∑ j ! ( k − 1 ) j min { 1 , j + 1 k } = e − ( k − 1 ) j = 0 ∑ k − 1 j ! ( k − 1 ) j + e − ( k − 1 ) j ≥ k ∑ ( j + 1 )! k ( k − 1 ) j = e − ( k − 1 ) j = 0 ∑ k − 1 j ! ( k − 1 ) j + k − 1 k e − ( k − 1 ) j ≥ k + 1 ∑ j ! ( k − 1 ) j .
Next, let a k = e − ( k − 1 ) ( k − 1 ) k − 1 / ( k − 1 ) ! a_k=e^{-(k-1)}(k-1)^{k-1}/(k-1)! a k = e − ( k − 1 ) ( k − 1 ) k − 1 / ( k − 1 )! . We have that
e − ( k − 1 ) ∑ j = 0 k − 1 ( k − 1 ) j j ! a k = 1 + ∑ j = 0 k − 2 ∏ ℓ = j + 1 k − 1 ℓ k − 1 ≤ 1 + ∑ j = 0 k − 2 j + 1 k − 1 = k + 2 2 ⟺ \frac{e^{-(k-1)}\sum_{j=0}^{k-1}\frac{(k-1)^j}{j!}}{a_k}
=1+\sum_{j=0}^{k-2}\prod_{\ell=j+1}^{k-1}\frac{\ell}{k-1}
\le1+\sum_{j=0}^{k-2}\frac{j+1}{k-1}
=\frac{k+2}{2}
\Longleftrightarrow a k e − ( k − 1 ) ∑ j = 0 k − 1 j ! ( k − 1 ) j = 1 + j = 0 ∑ k − 2 ℓ = j + 1 ∏ k − 1 k − 1 ℓ ≤ 1 + j = 0 ∑ k − 2 k − 1 j + 1 = 2 k + 2 ⟺
2 e − ( k − 1 ) ∑ j = 0 k − 1 ( k − 1 ) j j ! ≤ ( k + 2 ) a k , 2e^{-(k-1)}\sum_{j=0}^{k-1}\frac{(k-1)^j}{j!}\le(k+2)a_k, 2 e − ( k − 1 ) j = 0 ∑ k − 1 j ! ( k − 1 ) j ≤ ( k + 2 ) a k ,
which implies that
k ( k + 3 ) ( k + 1 ) ( k + 2 ) e − ( k − 1 ) ∑ j = 0 k − 1 ( k − 1 ) j j ! = ( 1 − 2 ( k + 1 ) ( k + 2 ) ) e − ( k − 1 ) ∑ j = 0 k − 1 ( k − 1 ) j j ! ≥ e − ( k − 1 ) ∑ j = 0 k − 1 ( k − 1 ) j j ! − a k k + 1 . (37) \begin{aligned}
\frac{k(k+3)}{(k+1)(k+2)}e^{-(k-1)}\sum_{j=0}^{k-1}\frac{(k-1)^j}{j!}=\left(1-\frac{2}{(k+1)(k+2)}\right)e^{-(k-1)}\sum_{j=0}^{k-1}\frac{(k-1)^j}{j!} \\
&\ge e^{-(k-1)}\sum_{j=0}^{k-1}\frac{(k-1)^j}{j!}-\frac{a_k}{k+1}. \tag*{(37)}
\end{aligned} ( k + 1 ) ( k + 2 ) k ( k + 3 ) e − ( k − 1 ) j = 0 ∑ k − 1 j ! ( k − 1 ) j = ( 1 − ( k + 1 ) ( k + 2 ) 2 ) e − ( k − 1 ) j = 0 ∑ k − 1 j ! ( k − 1 ) j ≥ e − ( k − 1 ) j = 0 ∑ k − 1 j ! ( k − 1 ) j − k + 1 a k . (37)
Also, notice that
k k − 1 e − ( k − 1 ) ∑ j ≥ k + 1 ( k − 1 ) j j ! ≥ k k − 1 e − ( k − 1 ) ( k − 1 ) k + 1 ( k + 1 ) ! = k k ( k + 1 ) e − ( k − 1 ) ( k − 1 ) k ( k − 1 ) ! = k − 1 k + 1 a k , \frac{k}{k-1}e^{-(k-1)}\sum_{j\ge k+1}\frac{(k-1)^j}{j!}\ge\frac{k}{k-1}e^{-(k-1)}\frac{(k-1)^{k+1}}{(k+1)!}=\frac{k}{k(k+1)}e^{-(k-1)}\frac{(k-1)^k}{(k-1)!}=\frac{k-1}{k+1}a_k, k − 1 k e − ( k − 1 ) j ≥ k + 1 ∑ j ! ( k − 1 ) j ≥ k − 1 k e − ( k − 1 ) ( k + 1 )! ( k − 1 ) k + 1 = k ( k + 1 ) k e − ( k − 1 ) ( k − 1 )! ( k − 1 ) k = k + 1 k − 1 a k ,
which implies that
k 2 ( k + 3 ) ( k − 1 ) ( k + 1 ) ( k + 2 ) e − ( k − 1 ) ∑ j ≥ k + 1 ( k − 1 ) j j ! = ( 1 + k 2 + k + 2 ( k − 1 ) ( k + 1 ) ( k + 2 ) ) e − ( k − 1 ) ∑ j ≥ k + 1 ( k − 1 ) j j ! ≥ e − ( k − 1 ) ∑ j ≥ k + 1 ( k − 1 ) j j ! + ( k − 1 ) ( k 2 + k + 2 ) k ( k + 1 ) 2 ( k + 2 ) a k . (38) \begin{aligned}
\frac{k^2(k+3)}{(k-1)(k+1)(k+2)}e^{-(k-1)}\sum_{j\ge k+1}\frac{(k-1)^j}{j!}=\left(1+\frac{k^2+k+2}{(k-1)(k+1)(k+2)}\right)e^{-(k-1)}\sum_{j\ge k+1}\frac{(k-1)^j}{j!} \\
&\ge e^{-(k-1)}\sum_{j\ge k+1}\frac{(k-1)^j}{j!}+\frac{(k-1)(k^2+k+2)}{k(k+1)^2(k+2)}a_k. \tag*{(38)}
\end{aligned} ( k − 1 ) ( k + 1 ) ( k + 2 ) k 2 ( k + 3 ) e − ( k − 1 ) j ≥ k + 1 ∑ j ! ( k − 1 ) j = ( 1 + ( k − 1 ) ( k + 1 ) ( k + 2 ) k 2 + k + 2 ) e − ( k − 1 ) j ≥ k + 1 ∑ j ! ( k − 1 ) j ≥ e − ( k − 1 ) j ≥ k + 1 ∑ j ! ( k − 1 ) j + k ( k + 1 ) 2 ( k + 2 ) ( k − 1 ) ( k 2 + k + 2 ) a k . (38)
However, note that
e − ( k − 1 ) ∑ j = 0 k − 1 ( k − 1 ) j j ! + e − ( k − 1 ) ( k − 1 ) k k ! + e − ( k − 1 ) ∑ j ≥ k + 1 ( k − 1 ) j j ! = 1 ⟺ e^{-(k-1)}\sum_{j=0}^{k-1}\frac{(k-1)^j}{j!}+e^{-(k-1)}\frac{(k-1)^k}{k!}+e^{-(k-1)}\sum_{j\ge k+1}\frac{(k-1)^j}{j!}=1
\quad\Longleftrightarrow e − ( k − 1 ) j = 0 ∑ k − 1 j ! ( k − 1 ) j + e − ( k − 1 ) k ! ( k − 1 ) k + e − ( k − 1 ) j ≥ k + 1 ∑ j ! ( k − 1 ) j = 1 ⟺
e − ( k − 1 ) ∑ j = 0 k − 1 ( k − 1 ) j j ! + e − ( k − 1 ) ∑ j ≥ k + 1 ( k − 1 ) j j ! − 1 = − e − ( k − 1 ) ( k − 1 ) k k ! ⟺ e^{-(k-1)}\sum_{j=0}^{k-1}\frac{(k-1)^j}{j!}+e^{-(k-1)}\sum_{j\ge k+1}\frac{(k-1)^j}{j!}-1=-e^{-(k-1)}\frac{(k-1)^k}{k!}
\quad\Longleftrightarrow e − ( k − 1 ) j = 0 ∑ k − 1 j ! ( k − 1 ) j + e − ( k − 1 ) j ≥ k + 1 ∑ j ! ( k − 1 ) j − 1 = − e − ( k − 1 ) k ! ( k − 1 ) k ⟺
e − ( k − 1 ) ∑ j = 0 k − 1 ( k − 1 ) j j ! + e − ( k − 1 ) ∑ j ≥ k + 1 ( k − 1 ) j j ! − 1 = − k − 1 k a k . (39) e^{-(k-1)}\sum_{j=0}^{k-1}\frac{(k-1)^j}{j!}+e^{-(k-1)}\sum_{j\ge k+1}\frac{(k-1)^j}{j!}-1=-\frac{k-1}{k}a_k. \tag*{(39)} e − ( k − 1 ) j = 0 ∑ k − 1 j ! ( k − 1 ) j + e − ( k − 1 ) j ≥ k + 1 ∑ j ! ( k − 1 ) j − 1 = − k k − 1 a k . (39)
Together, (37) , (38) , and (39) imply
k ( k + 3 ) ( k + 1 ) ( k + 2 ) δ k − γ k ≥ ( k 2 + k + 4 ( k + 1 ) 2 ( k + 2 ) − 1 ) a k + e − k k k k ! . \frac{k(k+3)}{(k+1)(k+2)}\delta_k-\gamma_k\ge\left(\frac{k^2+k+4}{(k+1)^2(k+2)}-1\right)a_k+e^{-k}\frac{k^k}{k!}. ( k + 1 ) ( k + 2 ) k ( k + 3 ) δ k − γ k ≥ ( ( k + 1 ) 2 ( k + 2 ) k 2 + k + 4 − 1 ) a k + e − k k ! k k .
For k ≥ 3 k\ge3 k ≥ 3 , we use the fact that log ( 1 + x ) ≥ 2 x / ( 2 + x ) \log(1+x)\ge2x/(2+x) log ( 1 + x ) ≥ 2 x / ( 2 + x ) for x ≥ 0 x\ge0 x ≥ 0 to obtain
e − k k k / k ! a k = 1 e ( k k − 1 ) k − 1 ≥ e − 1 / ( 2 k − 1 ) ≥ 1 − 1 2 k − 1 . \frac{e^{-k}k^k/k!}{a_k}=\frac{1}{e}\left(\frac{k}{k-1}\right)^{k-1}\ge e^{-1/(2k-1)}\ge1-\frac{1}{2k-1}. a k e − k k k / k ! = e 1 ( k − 1 k ) k − 1 ≥ e − 1/ ( 2 k − 1 ) ≥ 1 − 2 k − 1 1 .
Thus,
k ( k + 3 ) ( k + 1 ) ( k + 2 ) δ k − γ k ≥ ( k − 3 ) ( k 2 + 2 ) ( 2 k − 1 ) ( k + 1 ) 2 ( k + 2 ) a k ≥ 0. \frac{k(k+3)}{(k+1)(k+2)}\delta_k-\gamma_k\ge\frac{(k-3)(k^2+2)}{(2k-1)(k+1)^2(k+2)}a_k\ge0. ( k + 1 ) ( k + 2 ) k ( k + 3 ) δ k − γ k ≥ ( 2 k − 1 ) ( k + 1 ) 2 ( k + 2 ) ( k − 3 ) ( k 2 + 2 ) a k ≥ 0.
For k = 2 k=2 k = 2 , we have δ 2 = 2 − 3 / e \delta_2=2-3/e δ 2 = 2 − 3/ e and γ 2 = 1 − 2 / e 2 \gamma_2=1-2/e^2 γ 2 = 1 − 2/ e 2 , and thus
5 δ 2 − 6 γ 2 = 4 − 15 / e + 12 / e 2 > 0. 5\delta_2-6\gamma_2=4-15/e+12/e^2>0. 5 δ 2 − 6 γ 2 = 4 − 15/ e + 12/ e 2 > 0.
Thus (36) holds for every k ≥ 2 k\ge2 k ≥ 2 , which completes the proof.
The Convexity Lemma
In this section we show the following lemma.
Lemma B.2. For k ≥ 2 k \ge2 k ≥ 2 , let
F k ( λ ) = 1 E [ AR k ( Poi ( λ ) ) ] . F_k(\lambda) = \frac{1}{\mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(\lambda))]}. F k ( λ ) = E [ AR k ( Poi ( λ ))] 1 . Then, F k ( λ ) F_k(\lambda) F k ( λ ) is convex in [ k − 1 , k ] [k-1,k] [ k − 1 , k ] or, in other words, F k ( k − u ) F_k(k-u) F k ( k − u ) is convex for u ∈ [ 0 , 1 ] u \in[0,1] u ∈ [ 0 , 1 ] .
Proof. Let N ∼ Poi ( λ ) N \sim\operatorname{Poi}(\lambda) N ∼ Poi ( λ ) , L = Pr [ N < k ] L = \Pr[N < k] L = Pr [ N < k ] , x = Pr [ N = k ] x = \Pr[N = k] x = Pr [ N = k ] and H = Pr [ N > k ] H = \Pr[N > k] H = Pr [ N > k ] . Let Φ k ( λ ) = E [ AR k ( Poi ( λ ) ) ] \Phi_k(\lambda) = \mathbb{E}[\operatorname{AR}_k(\operatorname{Poi}(\lambda))] Φ k ( λ ) = E [ AR k ( Poi ( λ ))] . We have that
Φ k ( λ ) = ∑ r = 0 k − 1 Pr [ N = r ] + ∑ r = k ∞ k r + 1 Pr [ N = r ] . \Phi_k(\lambda) = \sum_{r=0}^{k-1} \Pr[N=r] + \sum_{r=k}^{\infty} \frac{k}{r+1}\Pr[N=r]. Φ k ( λ ) = r = 0 ∑ k − 1 Pr [ N = r ] + r = k ∑ ∞ r + 1 k Pr [ N = r ] .
and
∑ r = k ∞ k r + 1 Pr [ N = r ] = ∑ r = k ∞ k r + 1 e − λ λ r r ! = k λ ∑ r = k ∞ e − λ λ r + 1 ( r + 1 ) ! = k λ Pr [ N > k ] . \sum_{r=k}^{\infty} \frac{k}{r+1}\Pr[N=r] = \sum_{r=k}^{\infty} \frac{k}{r+1}e^{-\lambda}\frac{\lambda^r}{r!} = \frac{k}{\lambda}\sum_{r=k}^{\infty}e^{-\lambda}\frac{\lambda^{r+1}}{(r+1)!} = \frac{k}{\lambda}\Pr[N>k]. r = k ∑ ∞ r + 1 k Pr [ N = r ] = r = k ∑ ∞ r + 1 k e − λ r ! λ r = λ k r = k ∑ ∞ e − λ ( r + 1 )! λ r + 1 = λ k Pr [ N > k ] .
Thus,
Φ k ( λ ) = L + k λ H . \Phi_k(\lambda) = L + \frac{k}{\lambda}H. Φ k ( λ ) = L + λ k H .
We next compute the derivative of Φ k \Phi_k Φ k with respect to λ \lambda λ . Note that
d L d λ = ∑ r = 0 k − 1 1 r ! d ( e − λ λ r ) d λ = ∑ r = 0 k − 2 e − λ λ r r ! − ∑ r = 0 k − 1 e − λ λ r r ! = − Pr [ N = k − 1 ] , \frac{dL}{d\lambda} = \sum_{r=0}^{k-1}\frac{1}{r!}\frac{d(e^{-\lambda}\lambda^r)}{d\lambda} = \sum_{r=0}^{k-2}e^{-\lambda}\frac{\lambda^r}{r!} - \sum_{r=0}^{k-1}e^{-\lambda}\frac{\lambda^r}{r!} = -\Pr[N=k-1], d λ d L = r = 0 ∑ k − 1 r ! 1 d λ d ( e − λ λ r ) = r = 0 ∑ k − 2 e − λ r ! λ r − r = 0 ∑ k − 1 e − λ r ! λ r = − Pr [ N = k − 1 ] ,
and
d H d λ = ∑ r = k + 1 ∞ 1 r ! d ( e − λ λ r ) d λ = ∑ r = k ∞ e − λ λ r r ! − ∑ r = k + 1 ∞ e − λ λ r r ! = Pr [ N = k ] = x . \frac{dH}{d\lambda} = \sum_{r=k+1}^{\infty}\frac{1}{r!}\frac{d(e^{-\lambda}\lambda^r)}{d\lambda} = \sum_{r=k}^{\infty}e^{-\lambda}\frac{\lambda^r}{r!} - \sum_{r=k+1}^{\infty}e^{-\lambda}\frac{\lambda^r}{r!} = \Pr[N=k] = x. d λ d H = r = k + 1 ∑ ∞ r ! 1 d λ d ( e − λ λ r ) = r = k ∑ ∞ e − λ r ! λ r − r = k + 1 ∑ ∞ e − λ r ! λ r = Pr [ N = k ] = x .
Also,
x = e − λ λ k k ! = λ k e − λ λ k − 1 ( k − 1 ) ! = λ k Pr [ N = k − 1 ] . x = e^{-\lambda}\frac{\lambda^k}{k!} = \frac{\lambda}{k}e^{-\lambda}\frac{\lambda^{k-1}}{(k-1)!} = \frac{\lambda}{k}\Pr[N=k-1]. x = e − λ k ! λ k = k λ e − λ ( k − 1 )! λ k − 1 = k λ Pr [ N = k − 1 ] .
Thus,
d Φ k d λ = d L d λ + k λ d H d λ − k H λ 2 = − Pr [ N = k − 1 ] + k λ x − k H λ 2 = − k H λ 2 . \frac{d\Phi_k}{d\lambda} = \frac{dL}{d\lambda} + \frac{k}{\lambda}\frac{dH}{d\lambda} - \frac{kH}{\lambda^2} = -\Pr[N=k-1] + \frac{k}{\lambda}x - \frac{kH}{\lambda^2} = -\frac{kH}{\lambda^2}. d λ d Φ k = d λ d L + λ k d λ d H − λ 2 k H = − Pr [ N = k − 1 ] + λ k x − λ 2 k H = − λ 2 k H .
Therefore, the second derivative of Φ k \Phi_k Φ k is
d 2 Φ k d λ 2 = 2 k H λ 3 − k λ 2 d H d λ = 2 k H λ 3 − k x λ 2 . \frac{d^2\Phi_k}{d\lambda^2} = \frac{2kH}{\lambda^3} - \frac{k}{\lambda^2}\frac{dH}{d\lambda} = \frac{2kH}{\lambda^3} - \frac{kx}{\lambda^2}. d λ 2 d 2 Φ k = λ 3 2 k H − λ 2 k d λ d H = λ 3 2 k H − λ 2 k x .
Since F k ( λ ) = 1 / Φ k ( λ ) F_k(\lambda)=1/\Phi_k(\lambda) F k ( λ ) = 1/ Φ k ( λ ) , we have that
d 2 F k d λ 2 = 2 ( d Φ k d λ ) 2 − Φ k d 2 Φ k d λ 2 Φ k 3 . \frac{d^2F_k}{d\lambda^2} = \frac{2\left(\frac{d\Phi_k}{d\lambda}\right)^2-\Phi_k\frac{d^2\Phi_k}{d\lambda^2}}{\Phi_k^3}. d λ 2 d 2 F k = Φ k 3 2 ( d λ d Φ k ) 2 − Φ k d λ 2 d 2 Φ k .
Since Φ k ( λ ) > 0 \Phi_k(\lambda)>0 Φ k ( λ ) > 0 , it suffices to prove that
2 ( d Φ k d λ ) 2 − Φ k d 2 Φ k d λ 2 ≥ 0. 2\left(\frac{d\Phi_k}{d\lambda}\right)^2-\Phi_k\frac{d^2\Phi_k}{d\lambda^2} \ge0. 2 ( d λ d Φ k ) 2 − Φ k d λ 2 d 2 Φ k ≥ 0.
Recall that
Φ k = L + k H λ , d Φ k d λ = − k H λ 2 , and d 2 Φ k d λ 2 = 2 k H λ 3 − k x λ 2 . \Phi_k = L + \frac{kH}{\lambda}, \qquad\frac{d\Phi_k}{d\lambda} = -\frac{kH}{\lambda^2}, \qquad\text{and} \qquad\frac{d^2\Phi_k}{d\lambda^2} = \frac{2kH}{\lambda^3} - \frac{kx}{\lambda^2}. Φ k = L + λ k H , d λ d Φ k = − λ 2 k H , and d λ 2 d 2 Φ k = λ 3 2 k H − λ 2 k x .
Thus,
2 ( d Φ k d λ ) 2 − Φ k d 2 Φ k d λ 2 = 2 k 2 H 2 λ 4 − ( L + k H λ ) ( 2 k H λ 3 − k x λ 2 ) = 2 k 2 H 2 λ 4 − 2 k L H λ 3 + k x L λ 2 − 2 k 2 H 2 λ 4 + k 2 x H λ 3 = k λ 3 ( λ x L + k x H − 2 L H ) . \begin{aligned}
2\left(\frac{d\Phi_k}{d\lambda}\right)^2-\Phi_k\frac{d^2\Phi_k}{d\lambda^2}
&= \frac{2k^2H^2}{\lambda^4}-\left(L+\frac{kH}{\lambda}\right)\left(\frac{2kH}{\lambda^3}-\frac{kx}{\lambda^2}\right)\\
&= \frac{2k^2H^2}{\lambda^4}-\frac{2kLH}{\lambda^3}+\frac{kxL}{\lambda^2}-\frac{2k^2H^2}{\lambda^4}+\frac{k^2xH}{\lambda^3}\\
&= \frac{k}{\lambda^3}(\lambda xL+kxH-2LH).
\end{aligned} 2 ( d λ d Φ k ) 2 − Φ k d λ 2 d 2 Φ k = λ 4 2 k 2 H 2 − ( L + λ k H ) ( λ 3 2 k H − λ 2 k x ) = λ 4 2 k 2 H 2 − λ 3 2 k L H + λ 2 k xL − λ 4 2 k 2 H 2 + λ 3 k 2 x H = λ 3 k ( λ xL + k x H − 2 L H ) .
Therefore, for F k F_k F k to be convex in [ k − 1 , k ] [k-1,k] [ k − 1 , k ] , it suffices to show that, for k − 1 ≤ λ ≤ k k-1 \le\lambda\le k k − 1 ≤ λ ≤ k , we have λ x L + k x H ≥ 2 L H \lambda xL+kxH \ge2LH λ xL + k x H ≥ 2 L H . If we divide by e − 2 λ e^{-2\lambda} e − 2 λ , this is equivalent to
λ k k ! ( λ ∑ r = 0 k − 1 λ r r ! + k ∑ r = k + 1 ∞ λ r r ! ) ≥ 2 ( ∑ r = 0 k − 1 λ r r ! ) ( ∑ r = k + 1 ∞ λ r r ! ) . \frac{\lambda^k}{k!}\left(\lambda\sum_{r=0}^{k-1}\frac{\lambda^r}{r!}+k\sum_{r=k+1}^{\infty}\frac{\lambda^r}{r!}\right)\ge2\left(\sum_{r=0}^{k-1}\frac{\lambda^r}{r!}\right)\left(\sum_{r=k+1}^{\infty}\frac{\lambda^r}{r!}\right). k ! λ k ( λ r = 0 ∑ k − 1 r ! λ r + k r = k + 1 ∑ ∞ r ! λ r ) ≥ 2 ( r = 0 ∑ k − 1 r ! λ r ) ( r = k + 1 ∑ ∞ r ! λ r ) .
Let
Ψ k ( λ ) = λ λ k k ! 1 ∑ r = k + 1 ∞ λ r r ! + k λ k k ! 1 ∑ r = 0 k − 1 λ r r ! . \Psi_k(\lambda)=\lambda\frac{\lambda^k}{k!}\frac{1}{\sum_{r=k+1}^{\infty}\frac{\lambda^r}{r!}}+k\frac{\lambda^k}{k!}\frac{1}{\sum_{r=0}^{k-1}\frac{\lambda^r}{r!}}. Ψ k ( λ ) = λ k ! λ k ∑ r = k + 1 ∞ r ! λ r 1 + k k ! λ k ∑ r = 0 k − 1 r ! λ r 1 .
It suffices to show that Ψ k ( λ ) ≥ 2 \Psi_k(\lambda)\ge2 Ψ k ( λ ) ≥ 2 . Notice that
∑ r = k + 1 ∞ λ r r ! = λ k k ! ( λ k + 1 + λ 2 ( k + 1 ) ( k + 2 ) + ⋯ ) , \sum_{r=k+1}^{\infty}\frac{\lambda^r}{r!}=\frac{\lambda^k}{k!}\left(\frac{\lambda}{k+1}+\frac{\lambda^2}{(k+1)(k+2)}+\cdots\right), r = k + 1 ∑ ∞ r ! λ r = k ! λ k ( k + 1 λ + ( k + 1 ) ( k + 2 ) λ 2 + ⋯ ) ,
thus
Ψ k ( λ ) = λ 1 ∑ r = k + 1 ∞ λ r − k ∏ j = k + 1 r j + k λ k k ! ∑ r = 0 k − 1 λ r r ! . \Psi_k(\lambda)=\lambda\frac{1}{\sum_{r=k+1}^{\infty}\frac{\lambda^{r-k}}{\prod_{j=k+1}^{r}j}}+k\frac{\lambda^k}{k!\sum_{r=0}^{k-1}\frac{\lambda^r}{r!}}. Ψ k ( λ ) = λ ∑ r = k + 1 ∞ ∏ j = k + 1 r j λ r − k 1 + k k ! ∑ r = 0 k − 1 r ! λ r λ k .
But
∑ r = k + 1 ∞ λ r − k ∏ j = k + 1 r j ≤ ∑ r = k + 1 ∞ ( λ k + 1 ) r − k = ∑ r = 1 ∞ ( λ k + 1 ) r = λ k + 1 − λ . \sum_{r=k+1}^{\infty}\frac{\lambda^{r-k}}{\prod_{j=k+1}^{r}j}\le\sum_{r=k+1}^{\infty}\left(\frac{\lambda}{k+1}\right)^{r-k}=\sum_{r=1}^{\infty}\left(\frac{\lambda}{k+1}\right)^r=\frac{\lambda}{k+1-\lambda}. r = k + 1 ∑ ∞ ∏ j = k + 1 r j λ r − k ≤ r = k + 1 ∑ ∞ ( k + 1 λ ) r − k = r = 1 ∑ ∞ ( k + 1 λ ) r = k + 1 − λ λ .
Also, we claim that
k λ k k ! ∑ r = 0 k − 1 λ r r ! ≥ λ − k + 1. k\frac{\lambda^k}{k!\sum_{r=0}^{k-1}\frac{\lambda^r}{r!}}\ge\lambda-k+1. k k ! ∑ r = 0 k − 1 r ! λ r λ k ≥ λ − k + 1.
Indeed,
λ k ( k − 1 ) ! − ( λ − k + 1 ) ∑ r = 0 k − 1 λ r r ! = λ k ( k − 1 ) ! − ( λ − k + 1 ) ( λ k − 1 ( k − 1 ) ! + ∑ r = 0 k − 2 λ r r ! ) = λ k ( k − 1 ) ! − λ k ( k − 1 ) ! + λ k ( k − 2 ) ! − ( λ − k + 1 ) ∑ r = 0 k − 2 λ r r ! = λ k − 1 ( k − 2 ) ! + ∑ r = 0 k − 2 ( k − 1 − λ ) λ r r ! . = ∑ r = 0 k − 2 ( k − 1 ) λ r r ! + λ k − 1 ( k − 2 ) ! ∑ r = 1 k − 1 λ r r ! = ∑ r = 0 k − 2 ( k − 1 ) λ r r ! − ∑ r = 1 k − 2 r λ r r ! = ∑ r = 0 k − 2 ( k − 1 − r ) λ r r ! ≥ 0. \begin{aligned}
\frac{\lambda^k}{(k-1)!}-(\lambda-k+1)\sum_{r=0}^{k-1}\frac{\lambda^r}{r!}
&=\frac{\lambda^k}{(k-1)!}-(\lambda-k+1)\left(\frac{\lambda^{k-1}}{(k-1)!}+\sum_{r=0}^{k-2}\frac{\lambda^r}{r!}\right)\\
&=\frac{\lambda^k}{(k-1)!}-\frac{\lambda^k}{(k-1)!}+\frac{\lambda^k}{(k-2)!}-(\lambda-k+1)\sum_{r=0}^{k-2}\frac{\lambda^r}{r!}\\
&=\frac{\lambda^{k-1}}{(k-2)!}+\sum_{r=0}^{k-2}(k-1-\lambda)\frac{\lambda^r}{r!}. \\
&= \sum_{r=0}^{k-2}(k-1)\frac{\lambda^r}{r!}+\frac{\lambda^{k-1}}{(k-2)!}\sum_{r=1}^{k-1}\frac{\lambda^r}{r!} \\
&= \sum_{r=0}^{k-2}(k-1)\frac{\lambda^r}{r!}-\sum_{r=1}^{k-2}r\frac{\lambda^r}{r!} \\
&= \sum_{r=0}^{k-2}(k-1-r)\frac{\lambda^r}{r!}\ge0.
\end{aligned} ( k − 1 )! λ k − ( λ − k + 1 ) r = 0 ∑ k − 1 r ! λ r = ( k − 1 )! λ k − ( λ − k + 1 ) ( ( k − 1 )! λ k − 1 + r = 0 ∑ k − 2 r ! λ r ) = ( k − 1 )! λ k − ( k − 1 )! λ k + ( k − 2 )! λ k − ( λ − k + 1 ) r = 0 ∑ k − 2 r ! λ r = ( k − 2 )! λ k − 1 + r = 0 ∑ k − 2 ( k − 1 − λ ) r ! λ r . = r = 0 ∑ k − 2 ( k − 1 ) r ! λ r + ( k − 2 )! λ k − 1 r = 1 ∑ k − 1 r ! λ r = r = 0 ∑ k − 2 ( k − 1 ) r ! λ r − r = 1 ∑ k − 2 r r ! λ r = r = 0 ∑ k − 2 ( k − 1 − r ) r ! λ r ≥ 0.
Putting everything together, we get that
Ψ k ( λ ) ≥ λ 1 λ k + 1 − λ + ( λ − k + 1 ) = ( k + 1 − λ ) + ( λ − k + 1 ) = 2 , \Psi_k(\lambda)\ge\lambda\frac{1}{\frac{\lambda}{k+1-\lambda}}+(\lambda-k+1)=(k+1-\lambda)+(\lambda-k+1)=2, Ψ k ( λ ) ≥ λ k + 1 − λ λ 1 + ( λ − k + 1 ) = ( k + 1 − λ ) + ( λ − k + 1 ) = 2 ,
and the claim follows.
Monotonicity
In this section, we prove that all our schemes are monotone. At the end of this appendix we show how the balance guarantees can be extended to the case ∑ i p i ≤ k \sum_i p_i\le k ∑ i p i ≤ k . First, we show that, for every fixed p ∈ P k p\in\mathcal{P}_k p ∈ P k and every i ∈ A 1 ⊆ A 2 ⊆ [ n ] i\in A_1\subseteq A_2\subseteq[n] i ∈ A 1 ⊆ A 2 ⊆ [ n ] ,
Pr [ i ∈ π p ( A 1 ) ] ≥ Pr [ i ∈ π p ( A 2 ) ] , (40) \Pr[i\in\pi_p(A_1)]\ge\Pr[i\in\pi_p(A_2)], \tag*{(40)} Pr [ i ∈ π p ( A 1 )] ≥ Pr [ i ∈ π p ( A 2 )] , (40)
where the probabilities are over the samples, the internal randomness of the scheme, and, for an ROCRS, the uniformly random arrival order. The same arguments establish monotonicity for the offline CRSs obtained by running our ROCRSs in an independently generated uniformly random order.
We show (40) for each scheme in its own subsection; the extension of the balance guarantees is given at the end of this appendix.
The Conservative Scaling ROCRS
We start with the ROCRS of § 3.1 .
Proposition C.1. Algorithm 1 is a monotone ROCRS.
Proof. For each element j j j , draw an independent coin ξ j ∼ Ber ( 1 − 1 / e ) \xi_j\sim\operatorname{Ber}(1-1/e) ξ j ∼ Ber ( 1 − 1/ e ) , independently of the samples, online activations, and arrival order, which plays the role of q j q_j q j in the algorithm. Let
H : = { j ∈ [ n ] ∣ Y j = 0 or ξ j = 1 } . H:=\{j\in[n]\mid Y_j=0\text{ or }\xi_j=1\}. H := { j ∈ [ n ] ∣ Y j = 0 or ξ j = 1 } .
On online-active set W W W , the algorithm accepts the first element of W ∩ H W\cap H W ∩ H , if this set is non-empty. Condition on the samples, the coins, and the arrival order, and consider i ∈ A 1 ⊆ A 2 i\in A_1\subseteq A_2 i ∈ A 1 ⊆ A 2 . If the algorithm accepts i i i on W = A 2 W=A_2 W = A 2 , then i ∈ H i\in H i ∈ H and no element of A 2 ∩ H A_2\cap H A 2 ∩ H precedes i i i . Since A 1 ∩ H ⊆ A 2 ∩ H A_1\cap H\subseteq A_2\cap H A 1 ∩ H ⊆ A 2 ∩ H , the same is true on W = A 1 W=A_1 W = A 1 . By unconditioning, we obtain (40) .
Next, consider the Conservative Scaling ROCRS for general k k k , found in Appendix § 8 , which directly generalizes the k = 1 k=1 k = 1 variant. Its parameter α k \alpha_k α k depends only on the capacity k k k and thus the same argument as above with ξ j ∼ Ber ( α k ) \xi_j\sim\operatorname{Ber}(\alpha_k) ξ j ∼ Ber ( α k ) yields the following.
Proposition C.2. Algorithm 6 is a monotone ROCRS.
We continue with the two schemes in § 3.3 , namely the single-sample offline CRS applied on the first samples in order to select T T T , as well as the two-sample OCRS that accepts the first online-active element strictly after T T T .
Proposition C.3. Algorithm 2 is a monotone CRS.
Proof. We interpret T = 0 T=0 T = 0 as returning the empty set and T = i T=i T = i as returning { i } \{i\} { i } . Consider i ∈ A 1 ⊆ A 2 i \in A_1 \subseteq A_2 i ∈ A 1 ⊆ A 2 and observe that if A 1 = A 2 A_1=A_2 A 1 = A 2 then (40) trivially holds with equality, so assume that A 1 ⊊ A 2 A_1 \subsetneq A_2 A 1 ⊊ A 2 . Since i ∈ A 1 i \in A_1 i ∈ A 1 , we have ∣ A 2 ∣ ≥ 2 \lvert A_2\rvert\geq2 ∣ A 2 ∣ ≥ 2 . Also, the algorithm distinguishes between S − i = ∅ S-i=\emptyset S − i = ∅ and S − i ≠ ∅ S-i\neq\emptyset S − i = ∅ , for it to accept i i i on S = A 2 S=A_2 S = A 2 , it must be that we are in the S − i ≠ ∅ S-i\neq\emptyset S − i = ∅ branch of the execution and, in addition, that Q = 0 Q=0 Q = 0 . In this case, there are two ways we can have T = i T=i T = i : either J = i J=i J = i and Y i ( 2 ) = 0 Y_i^{(2)}=0 Y i ( 2 ) = 0 or Y J ( 2 ) = 1 Y_J^{(2)}=1 Y J ( 2 ) = 1 and J ′ = i J'=i J ′ = i , and these are mutually exclusive events. Let
μ : = ∑ j = 1 n p j ≤ 1. \mu:= \sum_{j=1}^{n}p_j \leq1. μ := j = 1 ∑ n p j ≤ 1. By the algorithm’s description,
Pr [ T = i ∣ S = A 2 ] = 1 2 ( 1 − μ ∣ A 2 ∣ + 1 ∣ A 2 ∣ ∑ j ∉ A 2 p j + 1 ∣ A 2 ∣ − 1 ∑ j ∈ A 2 − i p j ) . \Pr[T=i \mid S=A_2]=\frac{1}{2}\left(\frac{1-\mu}{\lvert A_2\rvert}+\frac{1}{\lvert A_2\rvert}\sum_{j\notin A_2}p_j+\frac{1}{\lvert A_2\rvert-1}\sum_{j\in A_2-i}p_j\right). Pr [ T = i ∣ S = A 2 ] = 2 1 ∣ A 2 ∣ 1 − μ + ∣ A 2 ∣ 1 j ∈ / A 2 ∑ p j + ∣ A 2 ∣ − 1 1 j ∈ A 2 − i ∑ p j . where the probability is over the Y j ( 2 ) Y_j^{(2)} Y j ( 2 ) ’s and the internal random coins. We distinguish two cases:
Pr [ T = i ∣ S = A 1 , Q = 0 ] = 1 − μ ∣ A 1 ∣ + 1 ∣ A 1 ∣ ∑ j ∉ A 1 p j + 1 ∣ A 1 ∣ − 1 ∑ j ∈ A 1 − i = 1 − μ ∣ A 1 ∣ + 1 ∣ A 1 ∣ ∑ j ∉ A 2 p j + 1 ∣ A 1 ∣ ∑ j ∈ A 2 ∖ A 1 p j + 1 ∣ A 1 ∣ − 1 ∑ j ∈ A 1 − i ≥ 1 − μ ∣ A 2 ∣ + 1 ∣ A 2 ∣ ∑ j ∉ A 2 p j + 1 ∣ A 2 ∣ − 1 ∑ j ∈ A 2 ∖ A 1 p j + 1 ∣ A 2 ∣ − 1 ∑ j ∈ A 1 − i = 1 − μ ∣ A 2 ∣ + 1 ∣ A 2 ∣ ∑ j ∉ A 2 p j + 1 ∣ A 2 ∣ − 1 ∑ j ∈ A 2 − i = Pr [ T = i ∣ S = A 2 , Q = 0 ] , \begin{aligned}
\Pr[T=i \mid S=A_1,Q=0]
&=\frac{1-\mu}{\lvert A_1\rvert}+\frac{1}{\lvert A_1\rvert}\sum_{j\notin A_1}p_j+\frac{1}{\lvert A_1\rvert-1}\sum_{j\in A_1-i}\\
&=\frac{1-\mu}{\lvert A_1\rvert}+\frac{1}{\lvert A_1\rvert}\sum_{j\notin A_2}p_j+\frac{1}{\lvert A_1\rvert}\sum_{j\in A_2\setminus A_1}p_j+\frac{1}{\lvert A_1\rvert-1}\sum_{j\in A_1-i}\\
&\geq\frac{1-\mu}{\lvert A_2\rvert}+\frac{1}{\lvert A_2\rvert}\sum_{j\notin A_2}p_j+\frac{1}{\lvert A_2\rvert-1}\sum_{j\in A_2\setminus A_1}p_j+\frac{1}{\lvert A_2\rvert-1}\sum_{j\in A_1-i}\\
&=\frac{1-\mu}{\lvert A_2\rvert}+\frac{1}{\lvert A_2\rvert}\sum_{j\notin A_2}p_j+\frac{1}{\lvert A_2\rvert-1}\sum_{j\in A_2-i}\\
&=\Pr[T=i \mid S=A_2,Q=0],
\end{aligned} Pr [ T = i ∣ S = A 1 , Q = 0 ] = ∣ A 1 ∣ 1 − μ + ∣ A 1 ∣ 1 j ∈ / A 1 ∑ p j + ∣ A 1 ∣ − 1 1 j ∈ A 1 − i ∑ = ∣ A 1 ∣ 1 − μ + ∣ A 1 ∣ 1 j ∈ / A 2 ∑ p j + ∣ A 1 ∣ 1 j ∈ A 2 ∖ A 1 ∑ p j + ∣ A 1 ∣ − 1 1 j ∈ A 1 − i ∑ ≥ ∣ A 2 ∣ 1 − μ + ∣ A 2 ∣ 1 j ∈ / A 2 ∑ p j + ∣ A 2 ∣ − 1 1 j ∈ A 2 ∖ A 1 ∑ p j + ∣ A 2 ∣ − 1 1 j ∈ A 1 − i ∑ = ∣ A 2 ∣ 1 − μ + ∣ A 2 ∣ 1 j ∈ / A 2 ∑ p j + ∣ A 2 ∣ − 1 1 j ∈ A 2 − i ∑ = Pr [ T = i ∣ S = A 2 , Q = 0 ] , where the inequality follows from the facts ∣ A 1 ∣ ≤ ∣ A 2 ∣ − 1 \lvert A_1\rvert\leq\lvert A_2\rvert-1 ∣ A 1 ∣ ≤ ∣ A 2 ∣ − 1 and μ ≤ 1 \mu\leq1 μ ≤ 1 . Unconditioning on Q Q Q gives the desired inequality.
Pr [ T = i ∣ S = A 1 ] = 1 − p i 2 ≥ 1 2 ≥ Pr [ T = i ∣ S = A 2 ] , \Pr[T=i \mid S=A_1]=1-\frac{p_i}{2}\geq\frac{1}{2}\geq\Pr[T=i \mid S=A_2], Pr [ T = i ∣ S = A 1 ] = 1 − 2 p i ≥ 2 1 ≥ Pr [ T = i ∣ S = A 2 ] , where the first inequality follows from the fact that p i ≤ 1 p_i\leq1 p i ≤ 1 and the second one from the fact that, when S = A 2 S=A_2 S = A 2 , the event { T = i } \{T=i\} { T = i } requires { Q = 0 } \{Q=0\} { Q = 0 } which happens with probability 1 / 2 1/2 1/2 .
Therefore, for all i ∈ A 1 ⊆ A 2 i\in A_1\subseteq A_2 i ∈ A 1 ⊆ A 2 , (40) holds.
Proposition C.4. The two-sample OCRS that runs Algorithm 2 to select a random T T T and accepts the first online-active element arriving strictly after T T T is a monotone OCRS.
Proof. Condition on the samples and all random choices used to construct T T T , which is independent of the online activations. For an online-active set W W W containing i i i , the algorithm accepts i i i exactly when
T < i and W ∩ { T + 1 , … , i − 1 } = ∅ . T < i \qquad\text{and}\qquad W \cap\{T+1,\ldots,i-1\} = \varnothing. T < i and W ∩ { T + 1 , … , i − 1 } = ∅ .
If these conditions hold when W = A 2 W=A_2 W = A 2 , they also hold when W = A 1 W=A_1 W = A 1 for every A 1 ⊆ A 2 A_1 \subseteq A_2 A 1 ⊆ A 2 containing i i i . By unconditioning, we obtain (40) .
Since the 0.48 0.48 0.48 -balanced OCRS of § 3.4 also accepts an element i ∈ W i \in W i ∈ W exactly when T < i T<i T < i and W W W contains no element strictly between T T T and i i i , and T T T is chosen independently from all online activations, the same argument as above yields the following.
Proposition C.5. Algorithm 3 is a monotone OCRS.
The Almost-Greedy ROCRS for General k k k
Clearly, the simple ROCRS from § 5.1 that greedily accepts the first k k k online-active elements without using any samples is monotone. For the Almost-Greedy ROCRS, we compare acceptance probabilities by averaging over the samples, the coins, and the arrival order, using the rank calculation from § 4.1 .
Proposition C.6. Algorithm 4 is a monotone ROCRS.
Proof. Fix i ∈ A 1 ⊆ A 2 i \in A_1 \subseteq A_2 i ∈ A 1 ⊆ A 2 , and let μ = ∑ j = 1 n p j ≤ k \mu=\sum_{j=1}^{n}p_j\le k μ = ∑ j = 1 n p j ≤ k . If A 1 = A 2 A_1=A_2 A 1 = A 2 , then (40) trivially holds with equality, so assume that A 1 ⊊ A 2 A_1\subsetneq A_2 A 1 ⊊ A 2 . If ∣ A 1 ∣ ≤ k − 1 \lvert A_1\rvert\le k-1 ∣ A 1 ∣ ≤ k − 1 , the algorithm accepts i i i with probability one when W = A 1 W=A_1 W = A 1 , which proves (40) . Henceforth, assume that ∣ A 1 ∣ ≥ k \lvert A_1\rvert\ge k ∣ A 1 ∣ ≥ k , so ∣ A 2 ∣ ≥ k + 1 \lvert A_2\rvert\ge k+1 ∣ A 2 ∣ ≥ k + 1 .
For either W = A 1 W=A_1 W = A 1 or W = A 2 W=A_2 W = A 2 with ∣ W ∣ ≥ k + 1 \lvert W\rvert\ge k+1 ∣ W ∣ ≥ k + 1 , the relative arrival order of the elements of W W W is uniformly random. Thus, each possible rank of i i i has probability 1 / ∣ W ∣ 1/\lvert W\rvert 1/ ∣ W ∣ . The first k − 1 k-1 k − 1 ranks always lead to acceptance, contributing ( k − 1 ) / ∣ W ∣ (k-1)/\lvert W\rvert ( k − 1 ) / ∣ W ∣ to the acceptance probability. If i i i has rank k k k , it is rejected exactly when its sample is active and its acceptance coin fails. These events are independent of each other and of the arrival order, so their joint probability is p i ⋅ k / ( 2 k + 1 ) p_i\cdot k/(2k+1) p i ⋅ k / ( 2 k + 1 ) .
If i i i has rank k + 1 k+1 k + 1 , it is accepted exactly when the element of rank k k k is rejected. Conditional on i i i having rank k + 1 k+1 k + 1 , each j ∈ W − i j\in W-i j ∈ W − i is equally likely to have rank k k k , and that element is rejected with probability k p j / ( 2 k + 1 ) kp_j/(2k+1) k p j / ( 2 k + 1 ) . Hence, the conditional acceptance probability at rank k + 1 k+1 k + 1 is the average of these rejection probabilities over W − i W-i W − i . At any later rank, the algorithm has already accepted k k k elements and rejects i i i . Adding the contributions, we obtain
Pr [ i ∈ π p ( W ) ] = k − 1 ∣ W ∣ + 1 ∣ W ∣ ( 1 − k p i 2 k + 1 ) + 1 ∣ W ∣ ( ∣ W ∣ − 1 ) ∑ j ∈ W − i k p j 2 k + 1 = k ∣ W ∣ ( 1 − p i 2 k + 1 + ∑ j ∈ W − i p j ( 2 k + 1 ) ( ∣ W ∣ − 1 ) ) . (41) \begin{aligned}
\Pr[i\in\pi_p(W)] = \frac{k-1}{\lvert W\rvert}+\frac{1}{\lvert W\rvert}\left(1-\frac{kp_i}{2k+1}\right)+\frac{1}{\lvert W\rvert(\lvert W\rvert-1)}\sum_{j\in W-i}\frac{kp_j}{2k+1} \\
&= \frac{k}{\lvert W\rvert}\left(1-\frac{p_i}{2k+1}+\frac{\sum_{j\in W-i}p_j}{(2k+1)(\lvert W\rvert-1)}\right). \tag*{(41)}
\end{aligned} Pr [ i ∈ π p ( W )] = ∣ W ∣ k − 1 + ∣ W ∣ 1 ( 1 − 2 k + 1 k p i ) + ∣ W ∣ (∣ W ∣ − 1 ) 1 j ∈ W − i ∑ 2 k + 1 k p j = ∣ W ∣ k ( 1 − 2 k + 1 p i + ( 2 k + 1 ) (∣ W ∣ − 1 ) ∑ j ∈ W − i p j ) . (41)
If ∣ A 1 ∣ = k \lvert A_1\rvert=k ∣ A 1 ∣ = k , then i i i is rejected on W = A 1 W=A_1 W = A 1 only when it has rank k k k and its sample and coin cause rejection. The probability of this event is ( 1 / k ) ⋅ p i ⋅ k / ( 2 k + 1 ) = p i / ( 2 k + 1 ) (1/k)\cdot p_i\cdot k/(2k+1)=p_i/(2k+1) ( 1/ k ) ⋅ p i ⋅ k / ( 2 k + 1 ) = p i / ( 2 k + 1 ) , so its acceptance probability is 1 − p i / ( 2 k + 1 ) 1-p_i/(2k+1) 1 − p i / ( 2 k + 1 ) . To bound the acceptance probability on W = A 2 W=A_2 W = A 2 , we use p i ≥ 0 p_i\ge0 p i ≥ 0 and ∑ j ∈ A 2 − i p j ≤ ∣ A 2 ∣ − 1 \sum_{j\in A_2-i}p_j\le\lvert A_2\rvert-1 ∑ j ∈ A 2 − i p j ≤ ∣ A 2 ∣ − 1 in (41) . This yields
Pr [ i ∈ π p ( A 2 ) ] ≤ k ∣ A 2 ∣ ( 1 + 1 2 k + 1 ) ≤ k k + 1 ( 1 + 1 2 k + 1 ) = 1 − 1 2 k + 1 ≤ 1 − p i 2 k + 1 = Pr [ i ∈ π p ( A 1 ) ] . \begin{aligned}
\Pr[i\in\pi_p(A_2)]\le\frac{k}{\lvert A_2\rvert}\left(1+\frac{1}{2k+1}\right)\le\frac{k}{k+1}\left(1+\frac{1}{2k+1}\right)=1-\frac{1}{2k+1}\le1-\frac{p_i}{2k+1} \\
&=\Pr[i\in\pi_p(A_1)].
\end{aligned} Pr [ i ∈ π p ( A 2 )] ≤ ∣ A 2 ∣ k ( 1 + 2 k + 1 1 ) ≤ k + 1 k ( 1 + 2 k + 1 1 ) = 1 − 2 k + 1 1 ≤ 1 − 2 k + 1 p i = Pr [ i ∈ π p ( A 1 )] .
where the second inequality follows from ∣ A 2 ∣ ≥ k + 1 |A_2| \ge k+1 ∣ A 2 ∣ ≥ k + 1 and the third inequality follows from p i ≤ 1 p_i \le1 p i ≤ 1 . This proves (40) in this case.
Finally, suppose that ∣ A 1 ∣ ≥ k + 1 |A_1| \ge k+1 ∣ A 1 ∣ ≥ k + 1 . For both W = A 1 W=A_1 W = A 1 and W = A 2 W=A_2 W = A 2 , partitioning the ground set into { i } \{i\} { i } , W − i W-i W − i , and the elements outside W W W gives
μ = p i + ∑ j ∈ W − i p j + ∑ j ∉ W p j . \mu=p_i+\sum_{j\in W-i}p_j+\sum_{j\notin W}p_j. μ = p i + j ∈ W − i ∑ p j + j ∈ / W ∑ p j .
Factoring out k / ( 2 k + 1 ) k/(2k+1) k / ( 2 k + 1 ) from (41) , substituting the above identity for p i p_i p i and combining the two coefficients of ∑ j ∈ W − i p j \sum_{j\in W-i}p_j ∑ j ∈ W − i p j , using
1 ∣ W ∣ + 1 ∣ W ∣ ( ∣ W ∣ − 1 ) = 1 ∣ W ∣ − 1 , \frac{1}{|W|}+\frac{1}{|W|(|W|-1)}=\frac{1}{|W|-1}, ∣ W ∣ 1 + ∣ W ∣ ( ∣ W ∣ − 1 ) 1 = ∣ W ∣ − 1 1 ,
yields
Pr [ i ∈ π p ( W ) ] = k 2 k + 1 ( 2 k + 1 − p i ∣ W ∣ + ∑ j ∈ W − i p j ∣ W ∣ ( ∣ W ∣ − 1 ) ) = k 2 k + 1 ( 2 k + 1 − μ + ∑ j ∉ W p j ∣ W ∣ + ∑ j ∈ W − i p j ∣ W ∣ − 1 ) . \begin{aligned}
\Pr[i\in\pi_p(W)]&=\frac{k}{2k+1}\left(\frac{2k+1-p_i}{|W|}+\frac{\sum_{j\in W-i}p_j}{|W|(|W|-1)}\right)\\
&=\frac{k}{2k+1}\left(\frac{2k+1-\mu+\sum_{j\notin W}p_j}{|W|}+\frac{\sum_{j\in W-i}p_j}{|W|-1}\right).
\end{aligned} Pr [ i ∈ π p ( W )] = 2 k + 1 k ( ∣ W ∣ 2 k + 1 − p i + ∣ W ∣ ( ∣ W ∣ − 1 ) ∑ j ∈ W − i p j ) = 2 k + 1 k ( ∣ W ∣ 2 k + 1 − μ + ∑ j ∈ / W p j + ∣ W ∣ − 1 ∑ j ∈ W − i p j ) .
Therefore,
Pr [ i ∈ π p ( A 1 ) ] = k 2 k + 1 ( 2 k + 1 − μ + ∑ j ∉ A 2 p j ∣ A 1 ∣ + ∑ j ∈ A 2 ∖ A 1 p j ∣ A 1 ∣ + ∑ j ∈ A 1 − i p j ∣ A 1 ∣ − 1 ) ≥ k 2 k + 1 ( 2 k + 1 − μ + ∑ j ∉ A 2 p j ∣ A 2 ∣ + ∑ j ∈ A 2 ∖ A 1 p j ∣ A 2 ∣ − 1 + ∑ j ∈ A 1 − i p j ∣ A 2 ∣ − 1 ) = Pr [ i ∈ π p ( A 2 ) ] , \begin{aligned}
\Pr[i\in\pi_p(A_1)]&=\frac{k}{2k+1}\left(\frac{2k+1-\mu+\sum_{j\notin A_2}p_j}{|A_1|}+\frac{\sum_{j\in A_2\setminus A_1}p_j}{|A_1|}+\frac{\sum_{j\in A_1-i}p_j}{|A_1|-1}\right)\\
&\ge\frac{k}{2k+1}\left(\frac{2k+1-\mu+\sum_{j\notin A_2}p_j}{|A_2|}+\frac{\sum_{j\in A_2\setminus A_1}p_j}{|A_2|-1}+\frac{\sum_{j\in A_1-i}p_j}{|A_2|-1}\right)\\
&=\Pr[i\in\pi_p(A_2)],
\end{aligned} Pr [ i ∈ π p ( A 1 )] = 2 k + 1 k ( ∣ A 1 ∣ 2 k + 1 − μ + ∑ j ∈ / A 2 p j + ∣ A 1 ∣ ∑ j ∈ A 2 ∖ A 1 p j + ∣ A 1 ∣ − 1 ∑ j ∈ A 1 − i p j ) ≥ 2 k + 1 k ( ∣ A 2 ∣ 2 k + 1 − μ + ∑ j ∈ / A 2 p j + ∣ A 2 ∣ − 1 ∑ j ∈ A 2 ∖ A 1 p j + ∣ A 2 ∣ − 1 ∑ j ∈ A 1 − i p j ) = Pr [ i ∈ π p ( A 2 )] ,
where the inequality follows from the facts that ∣ A 1 ∣ ≤ ∣ A 2 ∣ − 1 |A_1|\le|A_2|-1 ∣ A 1 ∣ ≤ ∣ A 2 ∣ − 1 and 2 k + 1 − μ ≥ k + 1 2k+1-\mu\ge k+1 2 k + 1 − μ ≥ k + 1 . Thus, (40) holds in every case.
The Count Test OCRS for General k k k
Finally, consider the Count Test OCRS from § 4.2 . We use the equivalent description of the algorithm, found in the proof of Theorem 4.2 , in which the algorithm chooses candidate positions uniformly at random.
Proposition C.7. Algorithm 5 is a monotone OCRS for every fixed parameter r r r .
Proof. Fix R R R and all samples, and let N = R + ∑ j = 1 n Y j N=R+\sum_{j=1}^{n}Y_j N = R + ∑ j = 1 n Y j . For an online-active set W W W , let B t ( W ) B_t(W) B t ( W ) be the difference between R + ∑ j = 1 t Y j R+\sum_{j=1}^{t}Y_j R + ∑ j = 1 t Y j and the number of candidates among the first t t t elements. The same recursion as in the proof of Theorem 4.2 gives
B 0 ( W ) = R , B t ( W ) = ( B t − 1 ( W ) + Y t − 1 { t ∈ W } ) + . B_0(W)=R,\qquad B_t(W)=\left(B_{t-1}(W)+Y_t-\mathbf{1}_{\{t\in W\}}\right)^+. B 0 ( W ) = R , B t ( W ) = ( B t − 1 ( W ) + Y t − 1 { t ∈ W } ) + . For A 1 ⊆ A 2 A_1\subseteq A_2 A 1 ⊆ A 2 , by induction on t t t , we have that
B t ( A 1 ) ≥ B t ( A 2 ) for every t ∈ { 0 , … , n } . B_t(A_1)\ge B_t(A_2)\qquad\text{for every }t\in\{0,\ldots,n\}. B t ( A 1 ) ≥ B t ( A 2 ) for every t ∈ { 0 , … , n } .
For the base case, we have B 0 ( A 1 ) = B 0 ( A 2 ) = R B_0(A_1)=B_0(A_2)=R B 0 ( A 1 ) = B 0 ( A 2 ) = R . Assume the inequality holds for all t ′ < t t' < t t ′ < t . For t t t , we have
B t ( A 1 ) = ( B t − 1 ( A 1 ) + Y t − 1 { t ∈ A 1 } ) + ≥ ( B t − 1 ( A 2 ) + Y t − 1 { t ∈ A 2 } ) + = B t ( A 2 ) , B_t(A_1)=\left(B_{t-1}(A_1)+Y_t-1_{\{t\in A_1\}}\right)^+ \ge\left(B_{t-1}(A_2)+Y_t-1_{\{t\in A_2\}}\right)^+ =B_t(A_2), B t ( A 1 ) = ( B t − 1 ( A 1 ) + Y t − 1 { t ∈ A 1 } ) + ≥ ( B t − 1 ( A 2 ) + Y t − 1 { t ∈ A 2 } ) + = B t ( A 2 ) ,
where the inequality follows by the induction hypothesis and the fact that 1 { t ∈ A 1 } ≤ 1 { t ∈ A 2 } 1_{\{t\in A_1\}}\le1_{\{t\in A_2\}} 1 { t ∈ A 1 } ≤ 1 { t ∈ A 2 } . Therefore, if i ∈ A 1 i\in A_1 i ∈ A 1 passes the count test under A 2 A_2 A 2 , then
B i − 1 ( A 1 ) + Y i ≥ B i − 1 ( A 2 ) + Y i ≥ 1 , B_{i-1}(A_1)+Y_i\ge B_{i-1}(A_2)+Y_i\ge1, B i − 1 ( A 1 ) + Y i ≥ B i − 1 ( A 2 ) + Y i ≥ 1 ,
so it also passes under A 1 A_1 A 1 .
Conditional on R R R , the samples, and W W W , the list of candidates is fixed. The algorithm chooses min { k , N } \min\{k,N\} min { k , N } of the N N N possible candidate positions uniformly at random, so every candidate has acceptance probability min { k , N } / N \min\{k,N\}/N min { k , N } / N when N > 0 N>0 N > 0 . Let
a N : = { 1 , 0 ≤ N ≤ k , k / N , N > k . a_N:=\begin{cases}
1, & 0\le N\le k,\\
k/N, & N>k.
\end{cases} a N := { 1 , k / N , 0 ≤ N ≤ k , N > k .
Therefore, for every i ∈ W i\in W i ∈ W , we have
Pr [ i ∈ π p ( W ) ∣ R , Y 1 , … , Y n ] = a N 1 { B i − 1 ( W ) + Y i ≥ 1 } , \Pr[i\in\pi_p(W)\mid R,Y_1,\ldots,Y_n]=a_N1_{\{B_{i-1}(W)+Y_i\ge1\}}, Pr [ i ∈ π p ( W ) ∣ R , Y 1 , … , Y n ] = a N 1 { B i − 1 ( W ) + Y i ≥ 1 } ,
which implies
Pr [ i ∈ π p ( A 1 ) ∣ R , Y 1 , … , Y n ] = a N 1 { B i − 1 ( A 1 ) + Y i ≥ 1 } ≥ a N 1 { B i − 1 ( A 2 ) + Y i ≥ 1 } = Pr [ i ∈ π p ( A 2 ) ∣ R , Y 1 , … , Y n ] , \begin{aligned}
\Pr[i\in\pi_p(A_1)\mid R,Y_1,\ldots,Y_n]&=a_N1_{\{B_{i-1}(A_1)+Y_i\ge1\}}\\
&\ge a_N1_{\{B_{i-1}(A_2)+Y_i\ge1\}}=\Pr[i\in\pi_p(A_2)\mid R,Y_1,\ldots,Y_n],
\end{aligned} Pr [ i ∈ π p ( A 1 ) ∣ R , Y 1 , … , Y n ] = a N 1 { B i − 1 ( A 1 ) + Y i ≥ 1 } ≥ a N 1 { B i − 1 ( A 2 ) + Y i ≥ 1 } = Pr [ i ∈ π p ( A 2 ) ∣ R , Y 1 , … , Y n ] ,
where the inequality follows from the fact that the factor a N a_N a N is the same for A 1 A_1 A 1 and A 2 A_2 A 2 , since N N N does not depend on A 1 , A 2 A_1,A_2 A 1 , A 2 . By unconditioning, we obtain (40) . □
Extension
Random order. For each of the two Conservative Scaling schemes, Almost-Greedy, and the zero-sample greedy scheme, append independent dummy elements whose probabilities sum to k − ∑ i p i k-\sum_i p_i k − ∑ i p i , splitting this mass among several elements if necessary. Keep the probabilities and samples of the original elements unchanged. In the resulting instance, forcing all dummy elements to be online-inactive leaves the distribution of every original acceptance decision unchanged, since the samples of inactive elements are never used, and the relative order of the original elements is still uniform. For the fixed resulting probability vector, the monotonicity of the active-set shows that allowing the dummy elements to be online-active can only decrease an original element’s acceptance probability. The guarantee for total mass k k k therefore implies the same guarantee for the original instance.
The two-sample single-item OCRS. Let μ = ∑ i p i ≤ 1 \mu=\sum_i p_i\le1 μ = ∑ i p i ≤ 1 and recall that S = { j : Y j ( 1 ) = 1 } S=\{j:Y_j^{(1)}=1\} S = { j : Y j ( 1 ) = 1 } . Repeating the calculation in Appendix § 7 .§ 4 , with 1 − p i = ( 1 − μ ) + ∑ j ≠ i p j 1-p_i=(1-\mu)+\sum_{j\ne i}p_j 1 − p i = ( 1 − μ ) + ∑ j = i p j , gives
Pr [ T = i ] = p i 2 ( 1 + ( 1 − μ ) E [ 1 ∣ S − i ∣ + 1 ] ) . \Pr[T=i]=\frac{p_i}{2}\left(1+(1-\mu)\mathbb{E}\left[\frac{1}{|S-i|+1}\right]\right). Pr [ T = i ] = 2 p i ( 1 + ( 1 − μ ) E [ ∣ S − i ∣ + 1 1 ] ) .
Indeed, conditional on Y i ( 1 ) = 1 Y_i^{(1)}=1 Y i ( 1 ) = 1 , the singleton branch has probability 1 − p i / 2 1-p_i/2 1 − p i /2 of choosing i i i , and the other branch contributes, on each set S S S containing i i i ,
1 2 ( 1 − μ ∣ S ∣ + ∑ j ≠ i p j ∣ S − i − j ∣ + 1 ) . \frac{1}{2}\left(\frac{1-\mu}{|S|}+\sum_{j\ne i}\frac{p_j}{|S-i-j|+1}\right). 2 1 ∣ S ∣ 1 − μ + j = i ∑ ∣ S − i − j ∣ + 1 p j .
Averaging and using ∑ j ≠ i p j E [ 1 / ( ∣ S − i − j ∣ + 1 ) ] = Pr [ S − i ≠ ∅ ] \sum_{j\ne i}p_j\mathbb{E}[1/(|S-i-j|+1)]=\Pr[S-i\ne\varnothing] ∑ j = i p j E [ 1/ ( ∣ S − i − j ∣ + 1 )] = Pr [ S − i = ∅ ] proves the formula. Also,
∑ i p i E [ 1 ∣ S − i ∣ + 1 ] = Pr [ S ≠ ∅ ] , Pr [ T = 0 ] = 1 2 + 1 − μ 2 Pr [ S = ∅ ] . \sum_i p_i\mathbb{E}\left[\frac{1}{|S-i|+1}\right]=\Pr[S\ne\varnothing],\qquad\Pr[T=0]=\frac{1}{2}+\frac{1-\mu}{2}\Pr[S=\varnothing]. i ∑ p i E [ ∣ S − i ∣ + 1 1 ] = Pr [ S = ∅ ] , Pr [ T = 0 ] = 2 1 + 2 1 − μ Pr [ S = ∅ ] .
Consequently Pr [ T = 0 ] ≥ 1 / 2 \Pr[T=0]\ge1/2 Pr [ T = 0 ] ≥ 1/2 and Pr [ T = i ] ≥ p i / 2 \Pr[T=i]\ge p_i/2 Pr [ T = i ] ≥ p i /2 for every i i i . Substitution in the non-negative sum in the proof of Lemma 3.1 yields C i ≥ 1 / 2 C_i\ge1/2 C i ≥ 1/2 .
The one-sample single-item OCRS. Again write μ = ∑ i p i ≤ 1 \mu=\sum_i p_i\le1 μ = ∑ i p i ≤ 1 . The proof of Lemma 3.2 works with q i = ∑ j ≠ i p j ≤ 1 − p i q_i=\sum_{j\ne i}p_j\le1-p_i q i = ∑ j = i p j ≤ 1 − p i and gives
ε i ≤ p i q i ( 1 − e − q i ) 12 ≤ 1 − 1 / e 12 p i ( 1 − p i ) . \varepsilon_i\le\frac{p_iq_i(1-e^{-q_i})}{12}\le\frac{1-1/e}{12}p_i(1-p_i). ε i ≤ 12 p i q i ( 1 − e − q i ) ≤ 12 1 − 1/ e p i ( 1 − p i ) .
Use the ideal threshold with Pr [ T ∗ = 0 ] = 1 − μ / 2 \Pr[T^*=0]=1-\mu/2 Pr [ T ∗ = 0 ] = 1 − μ /2 and Pr [ T ∗ = i ] = p i / 2 \Pr[T^*=i]=p_i/2 Pr [ T ∗ = i ] = p i /2 . The same telescoping identity gives
E [ g ℓ ( T ∗ ) ] = 1 2 + 1 − μ 2 g ℓ ( 0 ) ≥ 1 2 . \mathbb{E}[g_\ell(T^*)]=\frac{1}{2}+\frac{1-\mu}{2}g_\ell(0)\ge\frac{1}{2}. E [ g ℓ ( T ∗ )] = 2 1 + 2 1 − μ g ℓ ( 0 ) ≥ 2 1 .
The actual threshold moves ε i \varepsilon_i ε i mass from each i i i to 0. The same loss calculation as in Theorem 3.4 , followed by Lemma 3.3, therefore gives
C ℓ ≥ 1 2 − ∑ i < ℓ ε i ( g ℓ ( i ) − g ℓ ( 0 ) ) ≥ 1 2 − 1 − 1 / e 32 > 0.48. C_\ell\ge\frac{1}{2}-\sum_{i<\ell}\varepsilon_i(g_\ell(i)-g_\ell(0))\ge\frac{1}{2}-\frac{1-1/e}{32}>0.48. C ℓ ≥ 2 1 − i < ℓ ∑ ε i ( g ℓ ( i ) − g ℓ ( 0 )) ≥ 2 1 − 32 1 − 1/ e > 0.48.
Finally, Theorem 4.2 already applies directly when ∑ i p i ≤ k \sum_i p_i\le k ∑ i p i ≤ k .