betaFeedback

WorksComputer Science

A Primal-Dual Approach to Randomized Online Bidding with Tail Constraints

Abstract

Controlling tail risk in randomized algorithms has received increasing attention. Randomized online algorithms can achieve a lower expected competitive ratio than the competitive ratio of the best deterministic online algorithm. However, individual executions may still incur poor outcomes. Tail constraints address this risk by limiting the probability that the incurred ratio exceeds a prescribed threshold. We investigate how such constraints affect the structure and performance of randomized online bidding algorithms. By revisiting the classical primal-dual lower-bound framework for online bidding, we find that restricting the growth between consecutive bids can yield a stronger lower bound on the expected competitive ratio. We then show that tail constraints with zero exceedance probability impose an asymptotic upper bound on the ratios between consecutive bids. Incorporating this structural property into the primal-dual framework allows us to derive a stronger lower bound. Moreover, the dual analysis suggests a randomized geometric bidding algorithm whose performance matches this bound. The insight from our primal-dual analysis also guides the design of algorithms for general tail constraints allowing positive exceedance probabilities. Motivated by the geometric growth suggested by the dual solution, we study randomized periodic bidding algorithms. We show that, for any fixed geometric base, the uniform offset distribution is optimal in terms of both the expected competitive ratio and tail-constraint feasibility. We then characterize the exceedance probability of these algorithms and use this characterization to choose a geometric growth factor that satisfies the prescribed tail constraints, establishing parameter-dependent upper bounds on the optimal expected competitive ratio.

2012 ACM Subject Classification Theory of computation → Online algorithms

Introduction

In the study of online problems, competitive analysis is the standard measure for evaluating deterministic online algorithms. It considers the worst-case ratio between the cost of the algorithm and the optimal offline cost over all possible instances.

Randomized online algorithms allow us to go beyond deterministic worst-case guarantees. Conceptually, a randomized online algorithm runs different deterministic online algorithms in different parallel universes according to some probability distribution. Its expected competitive ratio measures, for the worst possible instance, the average performance across all these parallel universes. @♀♀♀♀references

Controlling tail risk. Although a good randomized online algorithm performs well on average, consider the particular universe in which we happen to live. The deterministic algorithm running in this universe may still perform badly on a given instance. Average happiness is little comfort if the universe we inhabit is unhappy.

A tail constraint limits the probability of such an unhappy outcome. More precisely, a tail constraint (γ,δ)(\gamma, \delta) bounds the probability that the competitive ratio exceeds a prescribed threshold γ\gamma by δ\delta, while we still seek to minimize the randomized algorithm’s expected competitive ratio.

Necessity of “bad” deterministic algorithms. Consider all possible deterministic algorithms D={DETi}i≥1\mathcal{D} = \{\mathrm{DET}_i\}_{i\geq1}. A randomized algorithm A\mathcal{A} can be considered as a distribution on D\mathcal{D}. The expected competitive ratio of A\mathcal{A} is defined by sup⁡TEA[A(T)OPT(T)]\sup_T \mathbb{E}_{\mathcal{A}}\left[\frac{\mathcal{A}(T)}{\mathrm{OPT}(T)}\right], where TT is an instance of the online problem.

For the same instance, different deterministic algorithms may have very different ratios. By carefully assigning probabilities to these algorithms, a randomized algorithm A\mathcal{A} attempts to capture instances that would otherwise yield large expected ratios. Changing the probability assigned to one deterministic algorithm may improve the expected ratios on some instances while worsening those on others. The challenge is therefore to balance the contributions of all deterministic algorithms so that no instance escapes with an excessively large expected ratio. In this process, even a deterministic algorithm with a large competitive ratio may be essential to achieving the optimal balance.

How to distribute probability among deterministic algorithms to capture these instances is closely tied to the structure of the underlying online problem. In particular, it depends on how the adversary can exploit the uncertainty in the input to make different groups of deterministic algorithms perform poorly.

See Figure 1a as a conceptual example. The x-axis represents the probability distribution of the deterministic algorithms used by the randomized algorithm A\mathcal{A}, arranged in non-decreasing order of their competitive ratios. The length on the x-axis occupied by each deterministic algorithm represents its probability in A\mathcal{A}. The y-axis represents the ratio of each deterministic algorithm on a given instance TT. The gray area represents the possible ratios, and its upper boundary represents the competitive ratio of the corresponding deterministic algorithm.

Plots illustrating the effect of tail constraints on optimal randomized algorithms

Figure 1.

Let T∗T^* be a worst-case instance that maximizes the expected ratio of A\mathcal{A}. In Figure 1a, the thin solid curve depicts the ratios of all deterministic algorithms used by A\mathcal{A} on T∗T^*, while the thin dashed curve depicts their ratios on another instance TT. The thick solid and dashed horizontal lines represent the corresponding expected ratios of A\mathcal{A}, respectively. It can be seen that T∗T^* has a higher expected ratio than TT, although some deterministic algorithms with high competitive ratios perform much better on TT than on T∗T^*.

Tail constraint changes the optimal structure. Now consider introducing a tail constraint (γ,δ=0)(\gamma, \delta= 0). Since this constraint requires that the probability of exceeding γ\gamma is zero for every instance, deterministic algorithms with competitive ratios larger than γ\gamma cannot be assigned positive probability in the randomized algorithm. A natural first attempt to satisfy this constraint is to simply remove these deterministic algorithms from A\mathcal{A} and redistribute their probability mass among the remaining ones, say evenly, as illustrated in Figure 1b.

As shown in Figure 1b, this simple modification decreases the expected ratio on T∗T^* but increases that on TT, making TT the worse instance of the two. Thus, removing deterministic algorithms with poor worst-case guarantees may change which instance is worst for the randomized algorithm. More importantly, it may destroy the balance between the deterministic algorithms that made the original distribution effective. This illustrates why finding an optimal randomized algorithm under a tail constraint may require more than simply removing the deterministic algorithms that violate the constraint. The optimal randomized algorithm may have a substantially different structure.

Previous work. The model of online algorithms with tail constraints was recently introduced by Dinitz et al. [5]. They initiated this line of research for the ski rental problem and showed that imposing tail constraints can substantially change the structure of optimal randomized algorithms. Cui and Dinitz later extended this model to two-slope ski rental [4].

The concept of tail constraints is closely related to risk measures studied in economics and finance. In particular, Value-at-Risk (VaR) concerns the minimum threshold such that the probability of exceeding this threshold is bounded from above by a prescribed probability level. Conditional Value-at-Risk (CVaR), on the other hand, considers the average loss among the worst outcomes beyond a given quantile. Christianson et al. [2] considered a CVaR-based notion of competitive ratio, which captures the average competitive ratio in the upper tail of its distribution, as determined by a prescribed probability level.

Online bidding was formalized by Chrobak et al. [3] as a framework for studying doubling-based algorithms, with applications to incremental medians. The classical online bidding problem admits an optimal deterministic competitive ratio of 4 and an optimal randomized expected competitive ratio of ee. Chrobak et al. established the matching randomized lower bound using a linear-programming primal-dual approach, which we extend to the setting with tail constraints.

To the best of our knowledge, prior to our work and the independent concurrent work of Basiak et al. [1], tail constraints had only been studied for ski rental and its variants. These works represent the first extensions of the model beyond ski rental. In particular, Basiak et al. independently established the optimal expected competitive ratio for online bidding under pure tail constraints, using Yao’s min-max principle for their lower bound.

Our contributions. Our main contribution is a primal-dual approach to understanding randomized online bidding under tail constraints. By revisiting the classical primal-dual lower-bound framework of Chrobak et al. [3], we uncover a key structural insight: the lower-bound argument becomes strictly stronger when the ratio between consecutive bids is bounded from above by a constant strictly smaller than ee (Observation 4). This reveals a promising direction for extending the primal-dual framework to tail-constrained settings. The central challenge, however, is to establish a connection between the growth of consecutive bids and the tail constraints, which restrict the probability of large ratios. bridge this gap by showing that tail constraints with zero violation probability impose an asymptotic upper bound on consecutive-bid ratios (Lemma 9 and 10). Incorporating this structural property into the primal-dual framework allows us to derive stronger lower bounds under tail constraints (Lemma 11).

Beyond strengthening the lower-bound analysis, our primal-dual approach also provides insight into the design of optimal bidding strategies (Observation 12). In particular, the structure of the dual solution suggests a natural geometric growth factor for consecutive bids, motivating a randomized periodic bidding algorithm. By combining this algorithm with our refined primal-dual lower bound, we obtain a tight characterization of the optimal expected competitive ratio under zero-violation tail constraints (Theorem 1). We further extend the algorithmic approach to general tail constraints, establishing upper bounds on the expected competitive ratio (Theorem 2). We also show that, for any fixed geometric base, the uniform offset distribution is optimal among randomized periodic bidding algorithms in terms of both the expected competitive ratio and tail-constraint feasibility (Lemma 15). Thus, when considering periodic algorithms, we can restrict our attention to uniform offset distributions. Our main results are summarized in the following two theorems.

Theorem 1 (Optimal ratio for tail constraints with δi=0\delta_i=0). For a tail constraint (γi,0)(\gamma_i,0) with γi≥4\gamma_i\ge4, the expected competitive ratio of the online bidding problem is exactly qi∗ln⁡qi∗\frac{q_i^*}{\ln q_i^*}, where

qi∗={γi+γi(γi−4)2,if 4≤γi≤e2e−1,e,if γi>e2e−1.q_i^* = \begin{cases} \frac{\gamma_i+\sqrt{\gamma_i(\gamma_i-4)}}{2}, & \text{if } 4\le\gamma_i\le\frac{e^2}{e-1},\\ e, & \text{if } \gamma_i>\frac{e^2}{e-1}. \end{cases}

For tail constraints {(γi,0)}i=1m\{(\gamma_i,0)\}_{i=1}^m, the expected competitive ratio is exactly q∗ln⁡q∗\frac{q^*}{\ln q^*}, where q∗=min⁡i∈[m]qi∗q^*=\min_{i\in[m]}q_i^*.

Theorem 2 (Upper bound for general tail constraints). For q>1q>1 and γ>1\gamma>1, let Pq(γ):=min⁡{1,max⁡{0,1−log⁡q(γ(q−1)q)}}P_q(\gamma):=\min\left\{1,\max\left\{0,1-\log_q\left(\frac{\gamma(q-1)}{q}\right)\right\}\right\}. Consider a tail constraint (γi,δi)(\gamma_i,\delta_i) with γi≥2.8311\gamma_i\ge2.8311 and δi∈(0,1)\delta_i\in(0,1). Define

qi∗={the largest q>1 satisfying Pq(γi)=δi,if 0<δi≤Pe(γi),e,if δi>Pe(γi).q_i^* = \begin{cases} \text{the largest }q>1\text{ satisfying }P_q(\gamma_i)=\delta_i, & \text{if }0<\delta_i\le P_e(\gamma_i),\\ e, & \text{if }\delta_i>P_e(\gamma_i). \end{cases}

Then the expected competitive ratio of the online bidding problem is at most qi∗ln⁡qi∗\frac{q_i^*}{\ln q_i^*} if qi∗q_i^* exists. More generally, for a collection of tail constraints {(γi,δi)}i=1m\{(\gamma_i,\delta_i)\}_{i=1}^m, the expected competitive ratio is at most q∗ln⁡q∗\frac{q^*}{\ln q^*}, where q∗=min⁡i∈[m]qi∗q^*=\min_{i\in[m]}q_i^*, provided that qi∗q_i^* exists for all ii and this choice satisfies all the constraints.

Paper organization. In Section 2, we define the online bidding problem and introduce the tail constraints. We then revisit a primal-dual framework for the problem without tail constraints in Section 2.1. Section 3 studies the problem with δi=0\delta_i=0. We introduce a special bidding sequence in Section 3.1 and incorporate its properties into the primal-dual framework in Section 3.2. Finally, we discuss the problem with general tail constraints in Section 4. The omitted proofs are provided in the appendix.

Preliminaries

The online bidding problem. We consider the online bidding problem, in which an algorithm is faced with an unknown threshold T≥1T\ge1. An algorithm AA submits a strictly increasing sequence of bids

b1<b2<⋯b_1 < b_2 < \cdots

without knowing TT. Let kk denote the index of the first bid that reaches or exceeds the threshold, i.e.,

bk−1<T≤bk,b_{k-1} < T \le b_k,

where the condition involving bk−1b_{k-1} is omitted when k=1k = 1. The algorithm terminates upon submitting bkb_k, and incurs cost

cost⁡(A(T))≔∑i=1kbi.\operatorname{cost}(A(T)) \coloneqq\sum_{i=1}^{k} b_i.

Let OPT⁡(T)\operatorname{OPT}(T) denote an optimal offline algorithm for threshold TT. Since OPT knows TT in advance, it can submit TT as its first bid and terminate immediately. Hence,

cost⁡(OPT⁡(T))=T.\operatorname{cost}(\operatorname{OPT}(T)) = T.

For a deterministic algorithm AA, its ratio on an instance TT is cost⁡(A(T))cost⁡(OPT⁡(T))\frac{\operatorname{cost}(A(T))}{\operatorname{cost}(\operatorname{OPT}(T))}, and the algorithm’s competitive ratio is

sup⁡T≥1cost⁡(A(T))cost⁡(OPT⁡(T))=sup⁡T≥1cost⁡(A(T))T.\sup_{T \ge1} \frac{\operatorname{cost}(A(T))}{\operatorname{cost}(\operatorname{OPT}(T))} = \sup_{T \ge1} \frac{\operatorname{cost}(A(T))}{T}.

The competitive ratio of the online problem is the infimum of the competitive ratios of all deterministic algorithms.

For a randomized algorithm AA, where the expectation is taken over the internal randomness of AA, its expected ratio on threshold TT is E[cost⁡(A(T))cost⁡(OPT⁡(T))]\mathbb{E}\left[\frac{\operatorname{cost}(A(T))}{\operatorname{cost}(\operatorname{OPT}(T))}\right]. Accordingly, the randomized algorithm’s expected competitive ratio is

sup⁡T≥1E[cost⁡(A(T))cost⁡(OPT⁡(T))]=sup⁡T≥1E[cost⁡(A(T))T].\sup_{T \ge1} \mathbb{E}\left[\frac{\operatorname{cost}(A(T))}{\operatorname{cost}(\operatorname{OPT}(T))}\right] = \sup_{T \ge1} \mathbb{E}\left[\frac{\operatorname{cost}(A(T))}{T}\right].

The expected competitive ratio of the online problem is the infimum of the expected competitive ratios of all randomized algorithms.

The competitive ratio of the online bidding problem is 44, whereas the expected competitive ratio of the problem is ee [3].

Tail constraints. A tail constraint limits the probability that a randomized algorithm incurs a ratio exceeding a prescribed threshold. To formalize this, we first define the γ\gamma-exceedance probability as follows.

Definition 3 (γ\gamma-exceedance probability). Let AA be a randomized algorithm. For γ>2.8311\gamma> 2.8311, the γ\gamma-exceedance probability of AA is

sup⁡T≥1Pr⁡[cost⁡(A(T))T>γ].\sup_{T \ge1} \Pr\left[\frac{\operatorname{cost}(A(T))}{T} > \gamma\right].

where the probability is taken over the internal randomness of AA.

A tail constraint is specified by a pair of parameters (γ,δ)(\gamma, \delta), where γ>2.8311\gamma> 2.8311 and δ∈[0,1]\delta\in[0,1]. A randomized algorithm AA satisfies the tail constraint (γ,δ)(\gamma, \delta) if its γ\gamma-exceedance probability is at most δ\delta, i.e.,

sup⁡T≥1Pr⁡[cost⁡(A(T))T>γ]≤δ.\sup_{T \ge1} \Pr\left[\frac{\operatorname{cost}(A(T))}{T} > \gamma\right] \le\delta.

Equivalently, for every T≥1T \ge1, Pr⁡[cost⁡(A(T))T>γ]≤δ\Pr\left[\frac{\operatorname{cost}(A(T))}{T} > \gamma\right] \le\delta.

More generally, we consider a collection of tail constraints

{(γi,δi)}i=1m.\{(\gamma_i,\delta_i)\}_{i=1}^{m}.

A randomized algorithm A\mathcal{A} is feasible with respect to this collection if it satisfies all tail constraints simultaneously, i.e., for every i∈[m]i \in[m] and every T≥1T \ge1, Pr⁡[cost⁡(A(T))T>γi]≤δi\Pr\left[\frac{\operatorname{cost}(\mathcal{A}(T))}{T}>\gamma_i\right]\le\delta_i.

Imposing a tail constraint restricts the class of feasible randomized algorithms and may therefore increase the optimal expected competitive ratio.

Revisiting the primal-dual lower bound without tail constraints

Our lower-bound analysis under tail constraints builds on the primal-dual framework of Chrobak et al. [3] for randomized online bidding. We begin by revisiting their lower-bound argument in the unconstrained setting. A closer examination of their proof reveals that a strictly stronger lower bound can be obtained if the ratio between every pair of consecutive bids is strictly less than ee. This observation provides a starting point for extending their analysis to the setting with tail constraints.

Chrobak et al. [3] restrict attention to the finite universe

[n]:={1,2,…,n}.[n] := \{1,2,\ldots,n\}.

so that both the threshold and all bids are required to lie in [n][n]. They establish the lower bound for this restricted problem with arbitrarily large nn. Since the unrestricted problem includes every finite universe [n][n] as a special case, any asymptotic lower bound obtained in this setting also applies to the original problem over the real-valued domain.

The authors establish the lower bound using a primal-dual approach. Specifically, they formulate a factor-revealing linear program whose objective captures the expected competitive ratio. They then construct a feasible dual solution whose objective value provides a lower bound on the optimal primal objective value by weak duality. The linear program is formulated as follows.

The factor revealing linear program [3]. Consider a bidding sequence (bi)i≥0(b_i)_{i\ge0}, where b0=0b_0=0 for notational convenience. Let

X(t,b)={1,if t−1 and b are consecutive bids in (bi)i≥0,0,otherwise,X(t,b)= \begin{cases} 1, & \text{if }t-1\text{ and }b\text{ are consecutive bids in }(b_i)_{i\ge0},\\ 0, & \text{otherwise}, \end{cases}

for all t,b∈[n]t,b\in[n], and let x(t,b)=E[X(t,b)]x(t,b)=\mathbb{E}[X(t,b)], which can be seen as the probability that t−1t-1 and bb are consecutive bids in the algorithm’s bidding sequence. Choose a sufficiently large integer NN and set

n=⌈N2log⁡N⌉n=\left\lceil N^2\log N\right\rceil

The primal linear program is given in Figure 2.

Figure 2. Primal and dual linear programs for the classic online bidding problem [3]

The primal linear program minimizes β\beta, which represents an upper bound on the expected competitive ratio of the randomized algorithm. The first set of constraints ensures that, for every threshold TT, the expected total cost is at most βT\beta T. The second set of constraints ensures that the algorithm reaches or exceeds every threshold TT with probability 1. Every randomized bidding algorithm induces a feasible solution to this LP. Hence, the optimal LP value provides a lower bound on the optimal expected competitive ratio.

A feasible dual solution and a lower bound of the expected competitive ratio. After normalization, the corresponding dual program can be written as the form in Figure 2. The dual variables are constructed as follows.

π(T)={1T,if N≤T≤N2log⁡N,0,otherwise,μ(T)={αT,if N≤T≤N2,0,otherwise.\pi(T)= \begin{cases} \frac{1}{T}, & \text{if } N\le T\le N^2\log N,\\ 0, & \text{otherwise,} \end{cases} \qquad \mu(T)= \begin{cases} \frac{\alpha}{T}, & \text{if } N\le T\le N^2,\\ 0, & \text{otherwise.} \end{cases}

where α\alpha is a parameter to be chosen later.

Under this construction, the dual objective value approaches α\alpha as N→∞N\to\infty:

∑T=1nμ(T)∑T=1nπ(T)=αHN2−HN−1HN2log⁡N−HN−1≈N→∞α.\frac{\sum_{T=1}^{n}\mu(T)}{\sum_{T=1}^{n}\pi(T)} =\alpha\frac{H_{N^2}-H_{N-1}}{H_{N^2\log N}-H_{N-1}} \approx_{N\to\infty}\alpha.

Dividing the dual constraint by bb yields

∑T=tn1Tπ(T)≥∑T=tb1bμ(T).\sum_{T=t}^{n}\frac{1}{T}\pi(T)\ge\sum_{T=t}^{b}\frac{1}{b}\mu(T).

To establish dual feasibility for a suitable choice of α\alpha, they consider three cases according to the value of tt. For t>N2t>N^2, the right-hand side is zero, and hence the constraint is always satisfied. For t<Nt<N, both π(T)\pi(T) and μ(T)\mu(T) are zero for all T<NT<N. Thus, the constraint is identical to that for t=Nt=N, and it suffices to verify the constraint at t=Nt=N.

For N≤t≤N2N\le t\le N^2, they show that the left-hand side satisfies ∑T=tn1Tπ(T)≥N→∞1t\sum_{T=t}^{n}\frac{1}{T}\pi(T)\ge_{N\to\infty}\frac{1}{t}. The right-hand side can be upper-bounded as follows: ∑T=tb1bμ(T)≤αbln⁡bt−1\sum_{T=t}^{b}\frac{1}{b}\mu(T)\le\frac{\alpha}{b}\ln\frac{b}{t-1}. To determine the worst case, they maximize the function

1bln⁡bt−1.(1)\frac{1}{b}\ln\frac{b}{t-1}. \tag*{(1)}

Let zz be defined by b=z(t−1)b=z(t-1). The function is maximized at z=ez=e and the maximum value is 1e(t−1)\frac{1}{e(t-1)}. Moreover, 1t−1\frac{1}{t-1} approaches 1t\frac{1}{t} as t→∞t\to\infty, which is ensured by taking N→∞N\to\infty. To ensure that αbln⁡bt−1≤1t\frac{\alpha}{b}\ln\frac{b}{t-1}\le\frac{1}{t}, they choose α=e\alpha=e. Therefore, the constructed solution is feasible.

What we learn from the primal-dual about the optimal randomized algorithm’s behavior. The maximizer of (1) offers a revealing clue about the primal bidding behavior associated with a worst-case instance. Intuitively, the dual can be viewed as searching for a worst-case instance, with an optimal dual solution representing such an instance. By the definition of X(t,b)X(t,b), t−1t-1 and bb are consecutive bids. Since (1) is maximized when b=e(t−1)b=e(t-1), this suggests that consecutive bids in an optimal primal solution should differ by a factor of ee on a worst-case instance. Interestingly, this mirrors the behavior of the corresponding upper bound.

The role of ee does not end with this connection. (1) is increasing for z∈(1,e)z\in(1,e). Hence, restricting the ratio of every pair of consecutive bids to at most some q<eq<e yields a strictly stronger lower bound. This leads to the following observation.

Observation 4 (Strengthening the primal-dual lower bound). Suppose that there exists a constant q<eq < e such that

bi+1bi≤qfor all i,\frac{b_{i+1}}{b_i} \le q \qquad\text{for all } i,

where bib_i and bi+1b_{i+1} are consecutive bids. Then, for the class of bidding algorithms satisfying this condition, the primal-dual argument of Chrobak et al. [3] yields a strictly stronger lower bound on the expected competitive ratio than the classical lower bound for the unconstrained problem.

Tail constraints with δi=0\delta_i = 0

To study the online bidding problem with tail constraints, we begin with the special case where δi=0\delta_i = 0. Since δi=0\delta_i = 0 requires the γi\gamma_i-exceedance probability to be zero, we must have γi≥4\gamma_i \ge4, as the optimal deterministic competitive ratio is 4. We first consider a single tail constraint (γ,0)(\gamma, 0) and then extend our analysis to multiple tail constraints.

As discussed in the previous section, Observation 4 suggests that an upper bound on the ratios between consecutive bids could help us extend the lower bound analysis of the randomized online bidding problem to the setting with tail constraints. This motivates us to investigate whether the tail constraints imply such an upper bound. However, the value of this upper bound is not immediately clear. To derive this bound, we construct a special bidding sequence and use its consecutive-bid ratios to establish an asymptotic upper bound for any feasible bidding sequence.

Extremal bidding sequence

By imposing the tail constraint (γ,0)(\gamma, 0), we show that every realization of a randomized algorithm is γ\gamma-feasible, as defined below.

Definition 5 (γ\gamma-feasible bidding sequence). Let (b1,b2,…)(b_1, b_2, \ldots) be a bidding sequence, and set b0=0b_0 = 0 for notational convenience. We say that (bi)i≥0(b_i)_{i \ge0} is γ\gamma-feasible if

∑i=1jbibj−1+1≤γfor every j≥1.\frac{\sum_{i=1}^{j} b_i}{b_{j-1}+1} \le\gamma\qquad\text{for every } j \ge1.

Lemma 6 (Feasibility of deterministic realizations). Let AA be a randomized algorithm satisfying the tail constraint (γ,0)(\gamma, 0). Then every deterministic algorithm in the support of AA is γ\gamma-feasible.

Proof. Suppose, for contradiction, that there exists a deterministic algorithm AA in the support of AA whose bidding sequence (bi)i≥0(b_i)_{i \ge0} is not γ\gamma-feasible. That is, by Definition 5, there exists an index jj such that

∑i=1jbibj−1+1>γ.\frac{\sum_{i=1}^{j} b_i}{b_{j-1}+1} > \gamma.

We show that there exists an instance TT on which AA incurs a ratio larger than γ\gamma. Since AA is in the support of AA, it is selected with positive probability. Therefore, AA also has a positive probability of exceeding γ\gamma on the same instance, contradicting the tail constraint (γ,0)(\gamma, 0).

Consider the threshold T:=bj−1+1T := b_{j-1} + 1. Since the bids are integral and strictly increasing, we have bj−1<T≤bjb_{j-1} < T \le b_j. Hence, bjb_j is the first bid of AA that reaches or exceeds TT, and therefore cost⁡(A(T))=∑i=1jbi\operatorname{cost}(A(T)) = \sum_{i=1}^{j} b_i. Since cost⁡(OPT⁡(T))=T=bj−1+1\operatorname{cost}(\operatorname{OPT}(T)) = T = b_{j-1} + 1, it follows that

cost⁡(A(T))cost⁡(OPT⁡(T))=∑i=1jbibj−1+1>γ.\frac{\operatorname{cost}(A(T))}{\operatorname{cost}(\operatorname{OPT}(T))} = \frac{\sum_{i=1}^{j} b_i}{b_{j-1}+1} > \gamma.

Because AA lies in the support of A\mathcal{A}, it is selected with positive probability. Consequently,

Pr⁡[cost⁡(A(T))cost⁡(OPT⁡(T))>γ]>0,\Pr\left[\frac{\operatorname{cost}(\mathcal{A}(T))}{\operatorname{cost}(\operatorname{OPT}(T))}>\gamma\right]>0,

contradicting the assumption that A\mathcal{A} satisfies the tail constraint (γ,0)(\gamma,0). Therefore, every deterministic algorithm in the support of A\mathcal{A} is γ\gamma-feasible.

We consider a particular γ\gamma-feasible bidding sequence that is extremal in the sense that the defining inequality is tight at every step.

Definition 7 (Extremal bidding sequence). The extremal bidding sequence, denoted by (bi∗)i≥0(b_i^*)_{i\ge0}, is defined by setting b0∗=0b_0^*=0 and requiring

∑i=1jbi∗bj−1∗+1=γfor every j≥1.\frac{\sum_{i=1}^{j} b_i^*}{b_{j-1}^*+1}=\gamma\qquad\text{for every }j\ge1.

Lemma 8 (Closed form of the extremal bidding sequence). For γ≥4\gamma\ge4, the extremal bidding sequence (bi∗)i≥0(b_i^*)_{i\ge0} admits the following closed form. If γ>4\gamma>4, let s=γ(γ−4)s=\sqrt{\gamma(\gamma-4)}. Then, for every j≥1j\ge1,

bj∗=γs[(γ+s2)j−(γ−s2)j].b_j^*=\frac{\gamma}{s}\left[\left(\frac{\gamma+s}{2}\right)^j-\left(\frac{\gamma-s}{2}\right)^j\right].

If γ=4\gamma=4, then, for every j≥1j\ge1, bj∗=j2j+1b_j^*=j2^{j+1}.

Proof. By the definition of the extremal bidding sequence, the γ\gamma-feasibility condition holds with equality for every j≥1j\ge1. This allows us to derive a linear recurrence relation for the bids, which we then solve using its characteristic polynomial.

For j≥1j\ge1, let Sj:=∑i=1jbi∗S_j:=\sum_{i=1}^{j}b_i^*. By the definition of the extremal bidding sequence, Sj=γ(bj−1∗+1)S_j=\gamma(b_{j-1}^*+1) for every j≥1j\ge1. For j≥2j\ge2, using Sj=Sj−1+bj∗S_j=S_{j-1}+b_j^*, we obtain γ(bj−1∗+1)=γ(bj−2∗+1)+bj∗\gamma(b_{j-1}^*+1)=\gamma(b_{j-2}^*+1)+b_j^*. Rearranging gives the recurrence bj∗=γ(bj−1∗−bj−2∗)b_j^*=\gamma(b_{j-1}^*-b_{j-2}^*) for j≥2j\ge2, with initial conditions b0∗=0b_0^*=0 and b1∗=γb_1^*=\gamma.

We first consider the case γ>4\gamma>4. The characteristic polynomial of the recurrence is x2−γx+γ=0x^2-\gamma x+\gamma=0, whose two distinct roots are

γ±γ(γ−4)2.\frac{\gamma\pm\sqrt{\gamma(\gamma-4)}}{2}.

Let s:=γ(γ−4)s:=\sqrt{\gamma(\gamma-4)}. The general solution is therefore

bj∗=A(γ+s2)j+B(γ−s2)j.b_j^*=A\left(\frac{\gamma+s}{2}\right)^j+B\left(\frac{\gamma-s}{2}\right)^j.

The condition b0∗=0b_0^*=0 gives A+B=0A+B=0, and hence B=−AB=-A. Using b1∗=γb_1^*=\gamma, we obtain A(γ+s2−γ−s2)=As=γA\left(\frac{\gamma+s}{2}-\frac{\gamma-s}{2}\right)=As=\gamma, so A=γsA=\frac{\gamma}{s} and B=−γsB=-\frac{\gamma}{s}. Thus, for every j≥1j\ge1, bj∗=γs[(γ+s2)j−(γ−s2)j]b_j^*=\frac{\gamma}{s}\left[\left(\frac{\gamma+s}{2}\right)^j-\left(\frac{\gamma-s}{2}\right)^j\right].

It remains to consider the case γ=4\gamma=4. The recurrence becomes bj∗−4bj−1∗+4bj−2∗=0b_j^*-4b_{j-1}^*+4b_{j-2}^*=0, whose characteristic polynomial x2−4x+4=(x−2)2x^2-4x+4=(x-2)^2 has a repeated root at 22. Hence bj∗=(A+Bj)2jb_j^*=(A+Bj)2^j. The condition b0∗=0b_0^*=0 gives A=0A=0, while b1∗=4b_1^*=4 gives 2B=42B=4, and hence B=2B=2. Therefore bj∗=j2j+1b_j^*=j2^{j+1} for every j≥1j\ge1, as claimed. ◀

The following two lemmas establish an asymptotic upper bound on the ratio between consecutive bids of any γ\gamma-feasible bidding sequence. The first lemma shows that the asymptotic growth rate of any such sequence is bounded above by that of the extremal bidding sequence, while the second lemma establishes that the growth rate of the extremal sequence converges to Gγ:=γ+γ(γ−4)2G_\gamma:= \frac{\gamma+\sqrt{\gamma(\gamma-4)}}{2}, which depends only on γ\gamma. Together, these results imply that

lim sup⁡i→∞bi+1bi≤Gγ.\limsup_{i\to\infty}\frac{b_{i+1}}{b_i}\le G_\gamma.

Lemma 9 (Asymptotic growth comparison). For any γ\gamma-feasible bidding sequence (bi)i≥0(b_i)_{i\ge0},

lim sup⁡i→∞bi+1bi≤lim sup⁡i→∞bi+1∗bi∗.\limsup_{i\to\infty}\frac{b_{i+1}}{b_i}\le\limsup_{i\to\infty}\frac{b^*_{i+1}}{b^*_i}.

Proof. Since shifting the indices by a fixed constant ⌈γ⌉\lceil\gamma\rceil does not affect the limit superior, it suffices to prove that

bj+1+⌈γ⌉bj+⌈γ⌉≤bj+1∗bj∗\frac{b_{j+1+\lceil\gamma\rceil}}{b_{j+\lceil\gamma\rceil}}\le\frac{b^*_{j+1}}{b^*_j}

for all j≥1j\ge1.

Then, by taking the limit superior on both sides, we conclude the lemma.

Since (bi)i≥0(b_i)_{i\ge0} is γ\gamma-feasible, for every j≥1j\ge1, ∑i=1j+1bi≤γ(bj+1)\sum_{i=1}^{j+1}b_i\le\gamma(b_j+1). Rearranging and dividing by bj>0b_j>0 gives bj+1bj≤γ−∑i=1jbi−γbj\frac{b_{j+1}}{b_j}\le\gamma-\frac{\sum_{i=1}^{j}b_i-\gamma}{b_j}. Similarly, the definition of the extremal bidding sequence gives bj+1∗bj∗=γ−∑i=1jbi∗−γbj∗\frac{b^*_{j+1}}{b^*_j}=\gamma-\frac{\sum_{i=1}^{j}b^*_i-\gamma}{b^*_j}. Define

Rj:=∑i=1jbi−γbjandRj∗:=∑i=1jbi∗−γbj∗.R_j:=\frac{\sum_{i=1}^{j}b_i-\gamma}{b_j} \qquad\text{and}\qquad R^*_j:=\frac{\sum_{i=1}^{j}b^*_i-\gamma}{b^*_j}.

Then

bj+1bj≤γ−Rjandbj+1∗bj∗=γ−Rj∗.(2)\frac{b_{j+1}}{b_j}\le\gamma-R_j \qquad\text{and}\qquad \frac{b^*_{j+1}}{b^*_j}=\gamma-R^*_j. \tag*{(2)}

Thus, it suffices to establish

Rj+⌈γ⌉≥Rj∗R_{j+\lceil\gamma\rceil}\ge R^*_j

for all j≥1j\ge1.

Once this claim is established, (2) implies that, for every j≥1j\ge1,

bj+1+⌈γ⌉bj+⌈γ⌉≤γ−Rj+⌈γ⌉≤γ−Rj∗=bj+1∗bj∗.\frac{b_{j+1+\lceil\gamma\rceil}}{b_{j+\lceil\gamma\rceil}}\le\gamma-R_{j+\lceil\gamma\rceil}\le\gamma-R^*_j=\frac{b^*_{j+1}}{b^*_j}.

We now prove this claim by induction on jj.

For j=1j=1, since b1∗=γb^*_1=\gamma, we have R1∗=b1∗−γb1∗=0R^*_1=\frac{b^*_1-\gamma}{b^*_1}=0. On the other hand, since bi≥1b_i\ge1,

R1+⌈γ⌉=∑i=11+⌈γ⌉bi−γb1+⌈γ⌉≥1+⌈γ⌉−γb1+⌈γ⌉≥0=R1∗.R_{1+\lceil\gamma\rceil} =\frac{\sum_{i=1}^{1+\lceil\gamma\rceil}b_i-\gamma}{b_{1+\lceil\gamma\rceil}} \ge\frac{1+\lceil\gamma\rceil-\gamma}{b_{1+\lceil\gamma\rceil}} \ge0=R^*_1.

Hence the claim holds for j=1j=1.

For j≥2j\ge2, assume that Rj−1+⌈γ⌉≥Rj−1∗R_{j-1+\lceil\gamma\rceil}\ge R^*_{j-1}. We show that Rj+⌈γ⌉≥Rj∗R_{j+\lceil\gamma\rceil}\ge R^*_j. First, the condition bi≥1b_i\ge1 implies ∑i=1j+⌈γ⌉bi≥j+⌈γ⌉≥γ\sum_{i=1}^{j+\lceil\gamma\rceil}b_i\ge j+\lceil\gamma\rceil\ge\gamma, and hence Rj+⌈γ⌉=∑i=1j+⌈γ⌉bi−γbj+⌈γ⌉≥0R_{j+\lceil\gamma\rceil}=\frac{\sum_{i=1}^{j+\lceil\gamma\rceil}b_i-\gamma}{b_{j+\lceil\gamma\rceil}}\ge0.

We next derive recursive relations for Rj+⌈γ⌉R_{j+\lceil\gamma\rceil} and Rj∗R^*_j. From the definition of Rj+⌈γ⌉R_{j+\lceil\gamma\rceil},

Rj+⌈γ⌉=∑i=1j+⌈γ⌉bi−γbj+⌈γ⌉=1+∑i=1j−1+⌈γ⌉bi−γbj+⌈γ⌉=1+Rj−1+⌈γ⌉bj+⌈γ⌉/bj−1+⌈γ⌉≥1+Rj−1+⌈γ⌉γ−Rj−1+⌈γ⌉,R_{j+\lceil\gamma\rceil} =\frac{\sum_{i=1}^{j+\lceil\gamma\rceil}b_i-\gamma}{b_{j+\lceil\gamma\rceil}} =1+\frac{\sum_{i=1}^{j-1+\lceil\gamma\rceil}b_i-\gamma}{b_{j+\lceil\gamma\rceil}} =1+\frac{R_{j-1+\lceil\gamma\rceil}}{b_{j+\lceil\gamma\rceil}/b_{j-1+\lceil\gamma\rceil}} \ge1+\frac{R_{j-1+\lceil\gamma\rceil}}{\gamma-R_{j-1+\lceil\gamma\rceil}},

where the last inequality follows from Rj−1+⌈γ⌉≥0R_{j-1+\lceil\gamma\rceil} \ge0 and (2), which is 0<bk+1bk≤γ−Rk0 < \frac{b_{k+1}}{b_k} \le\gamma- R_k. Similarly, from the definition of Rj∗R^*_{j},

Rj∗=∑i=1jbi∗−γbj∗=1+∑i=1j−1bi∗−γbj∗=1+Rj−1∗bj∗/bj−1∗=1+Rj−1∗γ−Rj−1∗.R^*_{j}=\frac{\sum_{i=1}^{j}b^*_{i}-\gamma}{b^*_{j}}=1+\frac{\sum_{i=1}^{j-1}b^*_{i}-\gamma}{b^*_{j}}=1+\frac{R^*_{j-1}}{b^*_{j}/b^*_{j-1}}=1+\frac{R^*_{j-1}}{\gamma-R^*_{j-1}}.

Now consider the function f(x)=1+xγ−xf(x)=1+\frac{x}{\gamma-x}, for x<γx<\gamma. The function ff is strictly increasing on (−∞,γ)(-\infty,\gamma). By the induction hypothesis and the monotonicity of ff, we have f(Rj−1+⌈γ⌉)≥f(Rj−1∗)f(R_{j-1+\lceil\gamma\rceil})\ge f(R^*_{j-1}). Therefore,

Rj+⌈γ⌉≥1+Rj−1+⌈γ⌉γ−Rj−1+⌈γ⌉≥1+Rj−1∗γ−Rj−1∗=Rj∗.R_{j+\lceil\gamma\rceil}\ge1+\frac{R_{j-1+\lceil\gamma\rceil}}{\gamma-R_{j-1+\lceil\gamma\rceil}}\ge1+\frac{R^*_{j-1}}{\gamma-R^*_{j-1}}=R^*_{j}.

This completes the induction.

Lemma 10 (Growth rate of the extremal bidding sequence). For γ≥4\gamma\ge4,

lim⁡i→∞bi+1∗bi∗=Gγ,where Gγ:=γ+γ(γ−4)2.\lim_{i\to\infty}\frac{b^*_{i+1}}{b^*_{i}}=G_\gamma,\qquad\text{where }G_\gamma:=\frac{\gamma+\sqrt{\gamma(\gamma-4)}}{2}.

Proof. We consider the two cases γ=4\gamma=4 and γ>4\gamma>4 separately. First suppose that γ=4\gamma=4. By Lemma 8, bj∗=j2j+1b^*_{j}=j2^{j+1}. Hence

bj+1∗bj∗=(j+1)2j+2j2j+1=2j+1j.\frac{b^*_{j+1}}{b^*_{j}}=\frac{(j+1)2^{j+2}}{j2^{j+1}}=2\frac{j+1}{j}.

Therefore, lim⁡j→∞bj+1∗bj∗=2\lim_{j\to\infty}\frac{b^*_{j+1}}{b^*_{j}}=2. Since Gγ=γ+γ(γ−4)2G_\gamma=\frac{\gamma+\sqrt{\gamma(\gamma-4)}}{2}, we have G4=2G_4=2, and thus the claim follows in this case.

Now suppose that γ>4\gamma>4, and let s:=γ(γ−4)s:=\sqrt{\gamma(\gamma-4)}. By Lemma 8, bj∗=γs[(γ+s2)j−(γ−s2)j]b^*_{j}=\frac{\gamma}{s}\left[\left(\frac{\gamma+s}{2}\right)^j-\left(\frac{\gamma-s}{2}\right)^j\right]. Factoring out the dominant term gives

bj∗=γs(γ+s2)j[1−(γ−sγ+s)j].b^*_{j}=\frac{\gamma}{s}\left(\frac{\gamma+s}{2}\right)^j\left[1-\left(\frac{\gamma-s}{\gamma+s}\right)^j\right].

Since γ>4\gamma>4, we have s>0s>0 and s<γs<\gamma, and therefore 0<γ−sγ+s<10<\frac{\gamma-s}{\gamma+s}<1. It follows that

(γ−sγ+s)j→0,as j→∞.\left(\frac{\gamma-s}{\gamma+s}\right)^j\to0,\qquad\text{as }j\to\infty.

Consequently,

bj+1∗bj∗=γs(γ+s2)j+1[1−(γ−sγ+s)j+1]γs(γ+s2)j[1−(γ−sγ+s)j]=γ+s2⋅1−(γ−sγ+s)j+11−(γ−sγ+s)j.\frac{b^*_{j+1}}{b^*_{j}}=\frac{\frac{\gamma}{s}\left(\frac{\gamma+s}{2}\right)^{j+1}\left[1-\left(\frac{\gamma-s}{\gamma+s}\right)^{j+1}\right]}{\frac{\gamma}{s}\left(\frac{\gamma+s}{2}\right)^j\left[1-\left(\frac{\gamma-s}{\gamma+s}\right)^j\right]}=\frac{\gamma+s}{2}\cdot\frac{1-\left(\frac{\gamma-s}{\gamma+s}\right)^{j+1}}{1-\left(\frac{\gamma-s}{\gamma+s}\right)^j}.

Taking j→∞j\to\infty, the second factor converges to 11, and hence lim⁡j→∞bj+1∗bj∗=γ+s2=γ+γ(γ−4)2=Gγ\lim_{j\to\infty}\frac{b^*_{j+1}}{b^*_{j}}=\frac{\gamma+s}{2}=\frac{\gamma+\sqrt{\gamma(\gamma-4)}}{2}=G_\gamma. This completes the proof.

Adapting the primal-dual approach to tail constraints

In this section, we incorporate properties of the extremal bidding sequence into the primal-dual approach proposed by Chrobak et al. [3].

In the previous section, we show that, for any γ\gamma-feasible bidding sequence, the ratio of two consecutive bids is at most Gγ=γ+γ(γ−4)2G_\gamma=\frac{\gamma+\sqrt{\gamma(\gamma-4)}}{2}, provided that the bids are sufficiently large. We incorporate this property into the linear program mentioned in § 2.1. More precisely, we relax the second constraint by considering only bids whose values are at least some sufficiently large value NN, and impose an upper bound of GγG_\gamma on the ratio of consecutive bids. We enforce this bound by reducing the upper limit of the summation index bb. This yields the primal and dual program in Figure 3.

Figure 3. Primal and dual programs for the online bidding problem with tail constraint (γ,0)(\gamma,0)

The construction of the variables is identical to that of Chrobak et al. [3]. Thus, the objective value remains unchanged. The analysis of constraint satisfaction is also unchanged, except for the case N<t≤N2N<t\le N^2. In this case, the analysis of the left-hand side remains unchanged, ∑T=tn1Tπ(T)≥N→∞1t\sum_{T=t}^{n}\frac{1}{T}\pi(T)\mathrel{\ge}_{N\to\infty}\frac{1}{t}. The relevant term on the right-hand side can also be upper-bounded in the same way, ∑T=tbbTμ(T)≤αbln⁡bt−1\sum_{T=t}^{b}\frac{b}{T}\mu(T)\le\frac{\alpha}{b}\ln\frac{b}{t-1}. However, the maximum value of the function 1bln⁡bt−1\frac{1}{b}\ln\frac{b}{t-1} is different. Let zz be defined by b=z(t−1)b=z(t-1). As mentioned in § 2.1, the function is maximized at z=ez=e and is increasing on z∈(1,e)z\in(1,e). However, b≤⌊Gγ(t−1)⌋≤Gγ(t−1)b\le\lfloor G_\gamma(t-1)\rfloor\le G_\gamma(t-1), which implies that z≤Gγz\le G_\gamma. Therefore, if Gγ>eG_\gamma>e, the maximum is attained at z=ez=e; otherwise, it is attained at z=Gγz=G_\gamma. Consequently, the maximum value of the function is 1e(t−1)\frac{1}{e(t-1)} if Gγ>eG_\gamma>e, and ln⁡GγGγ(t−1)\frac{\ln G_\gamma}{G_\gamma(t-1)} otherwise. Moreover, 1t−1\frac{1}{t-1} is asymptotically equivalent to 1t\frac{1}{t} as t→∞t\to\infty, which is ensured by taking N→∞N\to\infty.

To ensure that αbln⁡bt−1≤1t\frac{\alpha}{b}\ln\frac{b}{t-1}\le\frac{1}{t}, we choose α=e\alpha=e if Gγ>eG_\gamma>e, and α=Gγln⁡Gγ\alpha=\frac{G_\gamma}{\ln G_\gamma} otherwise. Therefore, the constraint is satisfied, and the constructed solution is feasible.

Lemma 11 (Lower bound for tail constraints with δi=0\delta_i=0). For a tail constraint (γi,0)(\gamma_i,0), the

expected competitive ratio of the online bidding problem is at least qi∗ln⁡qi∗\frac{q_i^*}{\ln q_i^*}, where

qi∗={γi+γi(γi−4)2,if 4≤γi≤e2e−1,e,if γi>e2e−1.q_i^* = \begin{cases} \frac{\gamma_i+\sqrt{\gamma_i(\gamma_i-4)}}{2}, & \text{if } 4 \le\gamma_i \le\frac{e^2}{e-1},\\ e, & \text{if } \gamma_i > \frac{e^2}{e-1}. \end{cases}

For a collection of tail constraints {(γi,0)}i=1m\{(\gamma_i,0)\}_{i=1}^m, the expected competitive ratio is at least q∗ln⁡q∗\frac{q^*}{\ln q^*}, where q∗=min⁡i∈[m]qi∗q^*=\min_{i\in[m]}q_i^*.

Proof. For γi≥4\gamma_i \ge4, by the construction above, there exists a feasible solution with a expected competitive ratio of ee if Gγi>eG_{\gamma_i}>e, where Gγi=γi+γi(γi−4)2G_{\gamma_i}=\frac{\gamma_i+\sqrt{\gamma_i(\gamma_i-4)}}{2}. Since Gγi>eG_{\gamma_i}>e, this is equivalent to γi>e2e−1\gamma_i>\frac{e^2}{e-1}. On the other hand, if Gγi≤eG_{\gamma_i}\le e, there exists a feasible solution with a expected competitive ratio of Gγiln⁡Gγi\frac{G_{\gamma_i}}{\ln G_{\gamma_i}}.

For multiple tail constraints, we choose the smallest qi∗q_i^* because doing so ensures that all tail constraints are satisfied.

We show a matching upper bound in the next section. The primal-dual analysis also leads to the following observation.

Observation 12. For the online bidding problem with a tail constraint (γ,0)(\gamma,0), the primal-dual argument in this section suggests that consecutive bids in an optimal primal solution for a worst-case instance should differ by a factor of min⁡{Gγ,e}\min\{G_\gamma,e\}.

Tail constraints with general δi\delta_i

In this section, we derive an upper bound on the expected competitive ratio for the online bidding problem under tail constraints. We first consider a single tail constraint (γ,δ)(\gamma,\delta) and then extend our analysis to multiple tail constraints.

Observation 12 from the previous section suggests that consecutive bids in a randomized online algorithm should increase by a factor of q≤eq\le e, even when a tail constraint is imposed. This motivates the following periodic algorithm.

Periodic algorithm AqA_q. For a parameter q>1q>1, we consider the following randomized algorithm AqA_q. Initially, AqA_q samples a random offset x∼Uniform⁡[0,1)x\sim\operatorname{Uniform}[0,1), and then submits the sequence of bids

qx,q1+x,q2+x,q3+x,…q^x, q^{1+x}, q^{2+x}, q^{3+x},\ldots

until one of the bids reaches or exceeds the threshold. We will explain how to choose qq later.

This family of algorithms generalizes the optimal randomized algorithm for online bidding: setting q=eq=e recovers the optimal algorithm, i.e., AeA_e. We now derive an upper bound on the competitive ratio of any realization of AqA_q, as well as an upper bound on the expected competitive ratio of AqA_q.

Lemma 13 (Competitive ratio of deterministic realizations). Every deterministic algorithm induced by AqA_q has competitive ratio at most q2q−1\frac{q^2}{q-1}. Moreover, q2q−1\frac{q^2}{q-1} is decreasing on q∈(1,2)q\in(1,2) and increasing on q∈(2,e)q\in(2,e).

Proof. Fix an arbitrary realization x∈[0,1)x\in[0,1) of the random offset. The resulting deterministic algorithm submits the bids

bi=qi−1+x,i≥1.b_i=q^{i-1+x},\qquad i\ge1.

Fix a threshold T≥1T\ge1, and let kk be the index of the first bid that reaches or exceeds TT.

Suppose that k=1k=1. Then the ratio of the deterministic algorithm is qxT≤qx<q<q2q−1\frac{q^x}{T}\le q^x<q<\frac{q^2}{q-1}, where we use T≥1T\ge1, x<1x<1, and q>1q>1.

Now suppose that k≥2k\ge2. Since kk is the first index for which bk≥Tb_k\ge T, we have T>bk−1=qk−2+xT>b_{k-1}=q^{k-2+x}. The cost incurred by the algorithm is

∑i=1kqi−1+x=qx∑i=0k−1qi=qxqk−1q−1.\sum_{i=1}^{k}q^{i-1+x}=q^x\sum_{i=0}^{k-1}q^i=q^x\frac{q^k-1}{q-1}.

Hence, the ratio of the algorithm is

qx(qk−1)(q−1)T<qx(qk−1)(q−1)qk−2+x=q2−q2−kq−1<q2q−1.\frac{q^x(q^k-1)}{(q-1)T}<\frac{q^x(q^k-1)}{(q-1)q^{k-2+x}}=\frac{q^2-q^{2-k}}{q-1}<\frac{q^2}{q-1}.

The fact that q2q−1\frac{q^2}{q-1} is decreasing on q∈(1,2)q\in(1,2) and increasing on q∈(2,e)q\in(2,e) can be seen by differentiating the function with respect to qq.

Lemma 14 (Expected competitive ratio of AqA_q). The expected competitive ratio of AqA_q is at most qln⁡q\frac{q}{\ln q}. Moreover, qln⁡q\frac{q}{\ln q} is decreasing on q∈(1,e)q\in(1,e). Proof. For a fixed threshold T≥1T\ge1, let kk be the smallest positive integer such that the kk-th bid reaches or exceeds TT. The expected ratio of AqA_q on TT is

E[∑i=1kqi−1+xT]=E[qk−1q−1qxT]≤E[qk+x+1q−11T].\mathbb{E}\left[\frac{\sum_{i=1}^{k}q^{i-1+x}}{T}\right]=\mathbb{E}\left[\frac{q^k-1}{q-1}\frac{q^x}{T}\right]\le\mathbb{E}\left[\frac{q^{k+x+1}}{q-1}\frac{1}{T}\right].

Let t=log⁡qTt=\log_q T, so that T=qtT=q^t. Since kk is the integer such that qk−1+x≥T>qk−2+xq^{k-1+x}\ge T>q^{k-2+x}, we have k−1=⌈t−x⌉k-1=\lceil t-x\rceil. Define ε=k−1+x−t\varepsilon=k-1+x-t, which measures the excess of qk−1+xq^{k-1+x} over TT on a base-qq logarithmic scale. Then 0≤ε<10\le\varepsilon<1, and T=qt=qk−1+x−εT=q^t=q^{k-1+x-\varepsilon}. Therefore, the expected ratio is at most

E[qk+xq−11qk−1+x−ε]=qq−1E[qε].\mathbb{E}\left[\frac{q^{k+x}}{q-1}\frac{1}{q^{k-1+x-\varepsilon}}\right]=\frac{q}{q-1}\mathbb{E}[q^\varepsilon].

It remains to determine the distribution of ε\varepsilon. Since k−1=⌈t−x⌉k-1=\lceil t-x\rceil, we obtain ε=⌈t−x⌉−(t−x)\varepsilon=\lceil t-x\rceil-(t-x). Equivalently, ε={x−t}\varepsilon=\{x-t\}, where {⋅}\{\cdot\} denotes the fractional part. Since xx is uniform on [0,1)[0,1), translation modulo 11 preserves the uniform distribution, and therefore ε∼Uniform⁡[0,1)\varepsilon\sim\operatorname{Uniform}[0,1). Hence, the expected ratio is at most

qq−1E[qε]=qq−1∫01qz dz=qq−1q−1ln⁡q=qln⁡q.\frac{q}{q-1}\mathbb{E}[q^\varepsilon]=\frac{q}{q-1}\int_0^1q^z\,dz=\frac{q}{q-1}\frac{q-1}{\ln q}=\frac{q}{\ln q}.

The fact that qln⁡q\frac{q}{\ln q} is decreasing on q∈(1,e)q\in(1,e) can be seen by differentiating the function with respect to qq.

Given a base q>1q>1 and an arbitrary offset distribution density function fuf_u on [0,1)[0,1), we denote Aq,fuA_{q,f_u} as a randomized periodic algorithm for online bidding where the ithi^{\text{th}}-bid is qi−1+uq^{i-1+u} and the offset u∼fuu\sim f_u. We show that the uniform offset distribution is optimal in terms of the expected competitive ratio among all such algorithms.

Lemma 15 (Optimality of the uniform offset). Given any tail constraint (γ,δ)(\gamma,\delta), if there exists a feasible periodic algorithm Aq,fuA_{q,f_u} that satisfies the tail constraints, the periodic algorithm with uniform offset AqA_q is also feasible. Moreover,

sup⁡T≥1cost⁡(Aq(T))T≤sup⁡T≥1cost⁡(Aq,fu(T))T.\sup_{T\ge1}\frac{\operatorname{cost}(A_q(T))}{T}\le\sup_{T\ge1}\frac{\operatorname{cost}(A_{q,f_u}(T))}{T}.

Proof. Fix an offset u∈[0,1)u \in[0,1) and consider the corresponding deterministic realization AuA_u of the randomized algorithm Aq,fuA_{q,f_u}. For any threshold TT, the last bid of AuA_u is qk+uq^{k+u} where qk−1+u<T≤qk+uq^{k-1+u}<T\le q^{k+u}.

Expected ratio of AuA_u on threshold TT. Since the last bid of AuA_u on threshold TT is qk+uq^{k+u}, the total cost of Au(T)=qu⋅qk+1−1q−1A_u(T)=q^u\cdot\frac{q^{k+1}-1}{q-1}. Let T=qk−1+yT=q^{k-1+y}, where y∈(u,u+1]y\in(u,u+1]. The ratio

cost⁡(Au(T))T=qu⋅qk+1−1q−1qk−1+y≈qq−1⋅qu+1−y.\frac{\operatorname{cost}(A_u(T))}{T}=\frac{q^u\cdot\frac{q^{k+1}-1}{q-1}}{q^{k-1+y}}\approx\frac{q}{q-1}\cdot q^{u+1-y}.

Expected competitive ratio of Aq,fA_{q,f}. Now we derive the expected competitive ratio of Aq,fA_{q,f}, where ff is an arbitrary offset density. First, given a fixed threshold TT, the expected ratio of Aq,fuA_{q,f_u} on TT,

Eu∼fu[cost⁡(Au(T))T]=qq−1⋅∫01qu+1−yfu(u) du.\mathbb{E}_{u\sim f_u}\left[\frac{\operatorname{cost}(A_u(T))}{T}\right]=\frac{q}{q-1}\cdot\int_0^1 q^{u+1-y}f_u(u)\,du.

Consider any legal TT with y∈(u,u+1]y\in(u,u+1]. By the average bound, the competitive ratio of Aq,fuA_{q,f_u},

sup⁡TEu∼fu[cost⁡(Au(T))T]≥qq−1∫01fu(u)(∫uu+1qu+1−y dy)du=qln⁡q.\sup_T\mathbb{E}_{u\sim f_u}\left[\frac{\operatorname{cost}(A_u(T))}{T}\right]\ge\frac{q}{q-1}\int_0^1 f_u(u)\left(\int_u^{u+1}q^{u+1-y}\,dy\right)du=\frac{q}{\ln q}.

By Lemma 14, the expected competitive ratio of Aq,fuA_{q,f_u} is at least the expected competitive ratio of the algorithm AqA_q, where the offset density function is uniform.

Feasibility of AqA_q. Now, assume that Aq,fuA_{q,f_u} is feasible for the tail constraint (γ,δ)(\gamma,\delta). We are going to show that AqA_q is also feasible for the same tail constraint. It suffices to show that, in the worst case, the probability that Aq,fuA_{q,f_u} exceeds γ\gamma is at least Pq(γ)P_q(\gamma), the probability that AqA_q exceeds γ\gamma.

Consider an arbitrarily large threshold TT. The probability that Aq,fuA_{q,f_u} exceeds γ\gamma,

Pr⁡[cost⁡(Aq,fu(T))T>γ]≈Pr⁡u∼fu[qq−1⋅qu+1−y>γ]=Pr⁡u∼fu[y<u+1−log⁡qγ(q−1)q],\Pr\left[\frac{\operatorname{cost}(A_{q,f_u}(T))}{T}>\gamma\right]\approx\Pr_{u\sim f_u}\left[\frac{q}{q-1}\cdot q^{u+1-y}>\gamma\right]=\Pr_{u\sim f_u}\left[y<u+1-\log_q\frac{\gamma(q-1)}{q}\right],

where qk−1+u<T=qk−1+y≤qk+uq^{k-1+u}<T=q^{k-1+y}\le q^{k+u}.

Since y∈(u,u+1]y\in(u,u+1], Pr⁡u∼fu[y<u+1−log⁡qγ(q−1)q]=0\Pr_{u\sim f_u}\left[y<u+1-\log_q\frac{\gamma(q-1)}{q}\right]=0 if log⁡qγ(q−1)q≥1\log_q\frac{\gamma(q-1)}{q}\ge1, and Pr⁡u∼fu[y<u+1−log⁡qγ(q−1)q]=1\Pr_{u\sim f_u}\left[y<u+1-\log_q\frac{\gamma(q-1)}{q}\right]=1 if log⁡qγ(q−1)q<0\log_q\frac{\gamma(q-1)}{q}<0. Otherwise, when log⁡qγ(q−1)q∈[0,1)\log_q\frac{\gamma(q-1)}{q}\in[0,1), the probability that the expected ratio of Aq,fuA_{q,f_u} exceeds TT is (u+1−log⁡qγ(q−1)q)−u=1−log⁡qγ(q−1)q\left(u+1-\log_q\frac{\gamma(q-1)}{q}\right)-u=1-\log_q\frac{\gamma(q-1)}{q}. By the three cases, for any arbitrarily large TT, Pr⁡[cost⁡(Aq,fu(T))T>γ]\Pr\left[\frac{\operatorname{cost}(A_{q,f_u}(T))}{T}>\gamma\right] is independent on the realized uu and is at least Pq(γ)P_q(\gamma). ◀

Since the uniform offset distribution minimizes the expected competitive ratio among all Aq,fA_{q,f}, we focus on AqA_q. We now derive the γ\gamma-exceedance probability of AqA_q.

Lemma 16 (γ\gamma-exceedance probability of AqA_q). For every T≥1T\ge1,

Pr⁡[cost⁡(Aq(T))T>γ]≤Pq(γ),\Pr\left[\frac{\operatorname{cost}(A_q(T))}{T}>\gamma\right]\le P_q(\gamma),

where

Pq(γ)={1,if γ≤qq−1,1−log⁡q(γ(q−1)q),if qq−1<γ<q2q−1,0,if γ≥q2q−1.P_q(\gamma)= \begin{cases} 1, & \text{if }\gamma\le\frac{q}{q-1},\\ 1-\log_q\left(\frac{\gamma(q-1)}{q}\right), & \text{if }\frac{q}{q-1}<\gamma<\frac{q^2}{q-1},\\ 0, & \text{if }\gamma\ge\frac{q^2}{q-1}. \end{cases}

Moreover,

lim⁡T→∞Pr⁡[cost⁡(Aq(T))T>γ]=Pq(γ).\lim_{T\to\infty}\Pr\left[\frac{\operatorname{cost}(\mathcal{A}_q(T))}{T}>\gamma\right]=P_q(\gamma).

Consequently, the γ\gamma-exceedance probability of Aq\mathcal{A}_q is Pq(γ)P_q(\gamma).

Proof. For completeness, we include part of the proof of Lemma 14. Fix a threshold T≥1T \ge1, and write t:=log⁡qTt := \log_q T. For a realization x∈[0,1)x \in[0,1), let kk be the index of the first bid that reaches or exceeds TT. Since the bids are qx,q1+x,q2+x,…q^x,q^{1+x},q^{2+x},\ldots, the terminal bid is qk−1+xq^{k-1+x}, where k−1=⌈t−x⌉k-1=\lceil t-x\rceil. Indeed, t−x>−1t-x>-1, so k−1k-1 is always a nonnegative integer.

Define the overshoot ε:=k−1+x−t=⌈t−x⌉−(t−x)\varepsilon:= k-1+x-t=\lceil t-x\rceil-(t-x). Equivalently, ε={x−t}\varepsilon=\{x-t\}, where {⋅}\{\cdot\} denotes the fractional part. Since xx is uniform on [0,1)[0,1), translation modulo 11 preserves the uniform distribution, and hence ε∼Uniform⁡[0,1)\varepsilon\sim\operatorname{Uniform}[0,1).

For this realization, the competitive ratio is

cost⁡(Aq(T))cost⁡(OPT⁡(T))=∑i=0k−1qi+xT=qx(qk−1)(q−1)qt=qε(q−q−(k−1))q−1=qq−1qε−qx(q−1)T.\begin{aligned} \frac{\operatorname{cost}(\mathcal{A}_q(T))}{\operatorname{cost}(\operatorname{OPT}(T))} =\frac{\sum_{i=0}^{k-1}q^{i+x}}{T} =\frac{q^x(q^k-1)}{(q-1)q^t} \\ &=\frac{q^\varepsilon(q-q^{-(k-1)})}{q-1} =\frac{q}{q-1}q^\varepsilon-\frac{q^x}{(q-1)T}. \end{aligned}

Since 1≤qx<q1\le q^x<q, we have

qq−1qε−q(q−1)T≤cost⁡(Aq(T))cost⁡(OPT⁡(T))≤qq−1qε−1(q−1)T≤qq−1qε.\frac{q}{q-1}q^\varepsilon-\frac{q}{(q-1)T} \le \frac{\operatorname{cost}(\mathcal{A}_q(T))}{\operatorname{cost}(\operatorname{OPT}(T))} \le \frac{q}{q-1}q^\varepsilon-\frac{1}{(q-1)T} \le \frac{q}{q-1}q^\varepsilon.

In addition,

Pr⁡[qq−1qε−q(q−1)T>γ]=Pr⁡[qq−1qε>γ+q(q−1)T].\Pr\left[\frac{q}{q-1}q^\varepsilon-\frac{q}{(q-1)T}>\gamma\right] = \Pr\left[\frac{q}{q-1}q^\varepsilon>\gamma+\frac{q}{(q-1)T}\right].

Consequently,

Pr⁡[qq−1qε>γ+q(q−1)T]≤Pr⁡[cost⁡(Aq(T))cost⁡(OPT⁡(T))>γ]≤Pr⁡[qq−1qε>γ].\Pr\left[\frac{q}{q-1}q^\varepsilon>\gamma+\frac{q}{(q-1)T}\right] \le \Pr\left[\frac{\operatorname{cost}(\mathcal{A}_q(T))}{\operatorname{cost}(\operatorname{OPT}(T))}>\gamma\right] \le \Pr\left[\frac{q}{q-1}q^\varepsilon>\gamma\right].

Since ε∼Uniform⁡[0,1)\varepsilon\sim\operatorname{Uniform}[0,1), we have

qq−1≤qq−1qε<q2q−1.\frac{q}{q-1}\le\frac{q}{q-1}q^\varepsilon<\frac{q^2}{q-1}.

Thus, for any γ′\gamma', the exceedance probability is 11 if γ′≤q/(q−1)\gamma'\le q/(q-1), and 00 if γ′≥q2/(q−1)\gamma'\ge q^2/(q-1). For the remaining case, q/(q−1)<γ′<q2/(q−1)q/(q-1)<\gamma'<q^2/(q-1), we have

Pr⁡[qq−1qε>γ′]=Pr⁡[ε>log⁡q(γ′(q−1)q)]=1−log⁡q(γ′(q−1)q).\begin{aligned} \Pr\left[\frac{q}{q-1}q^\varepsilon>\gamma'\right] = \Pr\left[\varepsilon>\log_q\left(\frac{\gamma'(q-1)}{q}\right)\right] \\ &=1-\log_q\left(\frac{\gamma'(q-1)}{q}\right). \end{aligned}

Therefore, by the definition of PqP_q,

Pr⁡[qq−1qε>γ′]=Pq(γ′)\Pr\left[\frac{q}{q-1}q^\varepsilon>\gamma'\right]=P_q(\gamma')

for every γ′∈R\gamma'\in\mathbb{R}. Applying this identity with γ′=γ+q(q−1)T\gamma'=\gamma+\frac{q}{(q-1)T} and γ′=γ\gamma'=\gamma to the probability bounds above yields

Pq(γ+q(q−1)T)≤Pr⁡[cost⁡(Aq(T))cost⁡(OPT⁡(T))>γ]≤Pq(γ).P_q\left(\gamma+\frac{q}{(q-1)T}\right) \le \Pr\left[\frac{\operatorname{cost}(\mathcal{A}_q(T))}{\operatorname{cost}(\operatorname{OPT}(T))}>\gamma\right] \le P_q(\gamma).

As PqP_q is continuous, letting T→∞T\to\infty and applying the squeeze theorem gives

lim⁡T→∞Pr⁡[cost⁡(Aq(T))cost⁡(OPT⁡(T))>γ]=Pq(γ).\lim_{T\to\infty}\Pr\left[\frac{\operatorname{cost}(\mathcal{A}_q(T))}{\operatorname{cost}(\operatorname{OPT}(T))}>\gamma\right] =P_q(\gamma).

Together with the upper bound above, this implies

sup⁡T≥1Pr⁡[cost⁡(Aq(T))cost⁡(OPT⁡(T))>γ]=Pq(γ).\sup_{T\ge1}\Pr\left[\frac{\operatorname{cost}(\mathcal{A}_q(T))}{\operatorname{cost}(\operatorname{OPT}(T))}>\gamma\right]=P_q(\gamma).

Hence the γ\gamma-exceedance probability of Aq\mathcal{A}_q is Pq(γ)P_q(\gamma).

Proof of Theorem 2. Consider a tail constraint (γ,δ)(\gamma,\delta), where γ≥2.8311\gamma\ge2.8311 and δ∈(0,1)\delta\in(0,1). By Lemma 16, the γ\gamma-exceedance probability is given by Pq(γ)P_q(\gamma).

For 0<δ≤Pe(γ)0 < \delta\le P_e(\gamma), since γ≥2.8311\gamma\ge2.8311, the relevant solutions to Pq(γ)=δP_q(\gamma)=\delta lie in the range (1,e](1,e]. By Lemma 14, the expected competitive ratio decreases as qq increases over (1,e)(1,e). Therefore, we select q∗q^* as the largest solution to Pq(γ)=δP_q(\gamma)=\delta in (1,e](1,e], if such a solution exists.

For Pe(γ)<δ<1P_e(\gamma)<\delta<1, under the same assumption γ≥2.8311\gamma\ge2.8311, the equation Pq(γ)=δP_q(\gamma)=\delta may admit two solutions, q1q_1 and q2q_2, satisfying Pq1(γ)=Pq2(γ)>Pe(γ)P_{q_1}(\gamma)=P_{q_2}(\gamma)>P_e(\gamma). However, since Pe(γ)<δP_e(\gamma)<\delta, choosing q=eq=e satisfies the tail constraint. By Lemma 14, q=eq=e minimizes the expected competitive ratio. Thus, we set q∗=eq^*=e.

In either case, the expected competitive ratio is

q∗ln⁡q∗.\frac{q^*}{\ln q^*}.

For multiple tail constraints, we choose q∗=min⁡iqi∗q^*=\min_i q_i^*, provided that this choice satisfies all the constraints.

Corollary 17 (Upper bound for tail constraints with δi=0\delta_i=0). For a tail constraint (γi,0)(\gamma_i,0) with γi≥4\gamma_i \ge4, the expected competitive ratio of the online bidding problem is at most qi∗ln⁡qi∗\frac{q_i^*}{\ln q_i^*}, where

qi∗={γi+γi(γi−4)2,if 4≤γi≤e2e−1,e,if γi>e2e−1.q_i^* = \begin{cases} \frac{\gamma_i+\sqrt{\gamma_i(\gamma_i-4)}}{2}, & \text{if } 4 \le\gamma_i \le\frac{e^2}{e-1}, \\ e, & \text{if } \gamma_i > \frac{e^2}{e-1}. \end{cases}

For tail constraints {(γi,0)}i=1m\{(\gamma_i,0)\}_{i=1}^m, the expected competitive ratio is at most q∗ln⁡q∗\frac{q^*}{\ln q^*}, where q∗=min⁡i∈[m]qi∗q^*=\min_{i\in[m]}q_i^*.

Proof. By Lemma 16, the γ\gamma-exceedance probability is given by Pq(γ)P_q(\gamma). Since δ=0\delta=0, we require Pq(γ)=0P_q(\gamma)=0, which is equivalent to q2−γq+γ≤0q^2-\gamma q+\gamma\le0. For 4≤γ≤e2e−14\le\gamma\le\frac{e^2}{e-1}, the largest feasible value of qq is the larger root of the corresponding quadratic equation, given by

q∗=γ+γ(γ−4)2.q^*=\frac{\gamma+\sqrt{\gamma(\gamma-4)}}{2}.

On the other hand, by Lemma 13, the competitive ratio of AeA_e is at most e2e−1\frac{e^2}{e-1}. Hence, if γ>e2e−1\gamma>\frac{e^2}{e-1}, AeA_e satisfies the tail constraint. Furthermore, by Lemma 14, AeA_e minimizes the expected competitive ratio. Thus, we choose q∗=eq^*=e in this case.

For multiple tail constraints, we choose q∗=min⁡iqi∗q^*=\min_i q_i^* to ensure that all tail constraints are satisfied.

Corollary 17 and Lemma 11 together prove Theorem 1.

AI Tools Usage Disclosure. ChatGPT was used to assist with English language polishing, including grammar correction, sentence clarity, and readability, as well as with determining the range of γi\gamma_i in Theorem 2.

References

  1. [1]Mateusz Basiak, Marcin Bieńkowski, Yongho Shin, and Agnieszka Tatarczuk. Pure tail constraints for online problems. CoRR, abs/2609.35337, 2026. URL: https://arxiv.org/abs/2609.35337, arXiv:2609.35337.
  2. [2]Nicolas Christianson, Bo Sun, Steven H. Low, and Adam Wierman. Risk-sensitive online algorithms (extended abstract). In Conference on Learning Theory (COLT), pages 1140–1141, 2024.
  3. [3]Marek Chrobak, Claire Kenyon, John Noga, and Neal E. Young. Incremental medians via online bidding. Algorithmica, 50(4):455–478, 2008.DOI
  4. [4]Qiming Cui and Michael Dinitz. Controlling tail risk in two-slope ski rental. In Workshop on Approximation and Online Algorithms (WAOA), pages 81–96, 2025.arxiv.org/abs/2508.06809
  5. [5]Michael Dinitz, Sungjin Im, Thomas Lavastida, Benjamin Moseley, and Sergei Vassilvitskii. Controlling tail risk in online ski-rental. In Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4247–4263. SIAM, 2024. doi:10.1137/1.9781611977912.147.DOI

Paper details

vlnc:W_ja4x7zus
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents