Introduction
Market making is a foundational part of modern financial markets [GM85, AS08]. At a basic level, market makers sustain trading by continuously offering to buy and sell, thereby providing the immediacy and liquidity that make markets usable in the first place. In the absence of such intermediation, even modest imbalances between buyers and sellers could translate into large delays, wide spreads, and severe price dislocations. This role is not minor and in today’s electronic markets, liquidity provision is carried out at a massive scale by highly sophisticated firms, whose business is precisely to keep markets tradable under a broad range of conditions. Market making is therefore not merely a financial activity, but a central problem in market design , algorithms , and online decision-making [51 , 19 ] : a market maker must repeatedly quote prices in an uncertain environment, balancing the short-term opportunity to earn spread revenue with the longer-term need to remain resilient as order flow evolves. What makes this problem especially subtle is that liquidity provision is inseparable from risk-taking [36 ] . A market maker does not simply post prices; it absorbs temporary supply–demand imbalances by taking them on directly. For this reason, inventory is not a secondary accounting quantity, but one of the key forces governing the entire process: without controlling inventory, apparent revenue gains may reflect unsustainable exposure rather than economic performance.
More broadly, market making is closely connected to other well-studied problems in revenue maximization , such as dynamic pricing [42 ] and bilateral trade [29 ] . As in dynamic pricing, the seller repeatedly sets prices in the presence of uncertain and evolving demand, with the goal of learning how prices affect trade and revenue over time. At the same time, market making also has a two-sided nature that brings it closer to bilateral trade settings, since the intermediary interacts with both buyers and sellers and must jointly manage the terms at which it is willing to trade on each side of the market. There is, however, an important difference. In standard bilateral trade models, trade is often viewed as a more localized interaction between the two sides. In market making, by contrast, trades may occur in only one direction for extended periods, as long as the intermediary is able to absorb the resulting imbalance. This makes inventory central to the problem: the market maker can keep trading on one side only as long as its inventory remains within acceptable bounds. For this reason, market making is not simply a two-sided pricing problem, but a sequential revenue maximization problem in which pricing, trade, and inventory are tightly linked across time. Thus, market making shares important features with classical revenue maximization problems, but differs in that current pricing decisions directly shape future feasible actions through their effect on inventory.
These connections also point naturally to the framework of regret minimization and online learning [20 , 58 , 64 ] . In market making, as in other sequential revenue maximization problems, the distributions governing buyers and sellers are typically unknown to the maker. The market maker must therefore learn how prices affect trade while continuing to make sequential decisions, without knowing in advance which pricing policy maximizes revenue. Regret minimization captures this objective by comparing the cumulative revenue of the algorithm to that of the best benchmark policy computed knowing the valuation distributions of both buyers and sellers (we refer to this difference as the cumulative regret ). This viewpoint is standard in related problems such as dynamic pricing and bilateral trade , where the central challenge is to balance exploration and revenue over time (or in welfare-maximization settings, to balance exploration and social welfare) [16 , 11 CBCC24, GDF$25] . It is thus a natural framework for studying market making in uncertain environments.
The Model
We model market making as a discrete-time online learning problem between an agent (the “market maker”, or simply the “maker”) and a sequence of “takers”. Specifically, at each round t ∈ [ T ] t \in[T] t ∈ [ T ] ,2 a new buyer–seller pair arrives, each interested in trading one unit of the underlying asset. Their private valuations are denoted by V t b u y , V t s e l l ∈ [ 0 , 1 ] V_t^{\mathrm{buy}}, V_t^{\mathrm{sell}} \in[0,1] V t buy , V t sell ∈ [ 0 , 1 ] , where V t s e l l V_t^{\mathrm{sell}} V t sell is the minimum amount the seller is willing to accept to sell one unit, and V t b u y V_t^{\mathrm{buy}} V t buy is the maximum amount the buyer is willing to pay to buy one unit. We assume that the valuations are sampled i.i.d. across rounds from an unknown distribution; however, within any given round, the buyer’s and seller’s valuations may be arbitrarily correlated . Consequently, the maker selects a bid–ask pair ( B t , A t ) (B_t,A_t) ( B t , A t ) such that B t < A t B_t < A_t B t < A t without any knowledge of V t b u y , V t s e l l V_t^{\mathrm{buy}}, V_t^{\mathrm{sell}} V t buy , V t sell . On the buy side, if V t s e l l ≤ B t V_t^{\mathrm{sell}} \le B_t V t sell ≤ B t , the seller accepts the bid and the maker buys at price B t B_t B t , obtaining a reward − B t -B_t − B t ; otherwise, no trade occurs, and the reward is 0. Symmetrically, on the sell side, if V t b u y ≥ A t V_t^{\mathrm{buy}} \ge A_t V t buy ≥ A t , the buyer accepts the ask and the maker sells at price A t A_t A t , obtaining reward A t A_t A t ; otherwise, no trade occurs, and the reward is 0. Hence, the maker’s per-round reward is:
A t ⋅ I ( V t b u y ≥ A t ) − B t ⋅ I ( V t s e l l ≤ B t ) . A_t \cdot\mathbb{I}(V_t^{\mathrm{buy}} \ge A_t) - B_t \cdot\mathbb{I}(V_t^{\mathrm{sell}} \le B_t). A t ⋅ I ( V t buy ≥ A t ) − B t ⋅ I ( V t sell ≤ B t ) .
A specific feature of market making is that the maker can sell an asset before buying it, thereby taking a short position . Nevertheless, market makers typically aim to keep their inventory small , so as to avoid a large imbalance between the number of units bought and sold over time. Indeed, a large positive inventory exposes the maker to downward price movements, while a large negative inventory exposes it to upward ones. In both cases, profits become increasingly dependent on the market value of the asset, rather than solely on the bid–ask spread. To capture this aspect, we impose two inventory constraints. First, we require global inventory balance over the entire horizon, namely, ∑ t = 1 T I ( V t b u y ≥ A t ) = ∑ t = 1 T I ( V t s e l l ≤ B t ) \sum_{t=1}^{T} \mathbb{I}(V_t^{\mathrm{buy}} \ge A_t) = \sum_{t=1}^{T} \mathbb{I}(V_t^{\mathrm{sell}} \le B_t) ∑ t = 1 T I ( V t buy ≥ A t ) = ∑ t = 1 T I ( V t sell ≤ B t ) . This ensures that the maker ends with zero inventory, while still allowing temporary short or long positions during learning. Second, we require the inventory level to remain uniformly bounded at every round by a parameter α ∈ N > 0 \alpha\in\mathbb{N}_{>0} α ∈ N > 0 , that is, ∣ I t ∣ ≤ α |I_t| \le\alpha ∣ I t ∣ ≤ α , for all t ∈ [ T ] t \in[T] t ∈ [ T ] , where I t : = ∑ τ = 1 t I ( V τ s e l l ≤ B τ ) − ∑ τ = 1 t I ( V τ b u y ≥ A τ ) I_t := \sum_{\tau=1}^{t} \mathbb{I}(V_\tau^{\mathrm{sell}} \le B_\tau) - \sum_{\tau=1}^{t} \mathbb{I}(V_\tau^{\mathrm{buy}} \ge A_\tau) I t := ∑ τ = 1 t I ( V τ sell ≤ B τ ) − ∑ τ = 1 t I ( V τ buy ≥ A τ ) . This second constraint limits the maker’s exposure to the market throughout the learning process. To summarize, the goal of the agent is not only to maximize the rewards attained during learning, but also to simultaneously satisfy the aforementioned constraints. This makes the problem particularly challenging, since the actions taken in the early rounds directly affect both the feasibility and the profitability of the decisions taken later on.
We consider two feedback models, depending on the information revealed to the market maker at the end of each round.
Under two-bit feedback , the maker only observes whether a trade occurred on the buy side and on the sell side, namely I ( V t b u y ≥ A t ) \mathbb{I}(V_t^{\mathrm{buy}} \ge A_t) I ( V t buy ≥ A t ) and I ( V t s e l l ≤ B t ) \mathbb{I}(V_t^{\mathrm{sell}} \le B_t) I ( V t sell ≤ B t ) .
Differently, when access to the limit order book (LOB) is available, the maker receives additional information whenever no trade occurs. More precisely, if B t < V t s e l l B_t < V_t^{\mathrm{sell}} B t < V t sell , then the maker observes V t s e l l V_t^{\mathrm{sell}} V t sell , and if A t > V t b u y A_t > V_t^{\mathrm{buy}} A t > V t buy , then it observes V t b u y V_t^{\mathrm{buy}} V t buy . Thus, information is revealed exactly on those sides where no reward (loss) is obtained. This captures a natural feature of market making: when a trade occurs, takers have no incentive to reveal their true valuation, whereas when no trade occurs, they may expose it by posting an order in the book. In this sense, LOB feedback can be viewed as a realistic and intermediate regime between the two-bit model and full-feedback, where the entire valuations are observed at the end of each round.
As is standard in online learning, we compare the performance of the learner against an offline benchmark. In our setting, this benchmark is the best fixed bid–ask pair ( b , a ) (b, a) ( b , a ) that knows the underlying valuation distribution in advance and satisfies the global inventory-balance constraint in expectation. We denote by OPT the expected revenue achieved by such a benchmark over the whole horizon. Given this benchmark, we define the regret of a learning algorithm as:
R T : = O P T − ∑ t = 1 T [ A t ⋅ I ( V t b u y ≥ A t ) − B t ⋅ I ( V t s e l l ≤ B t ) ] . R_T := \mathrm{OPT} - \sum_{t=1}^{T} \left[A_t \cdot I\left(V_t^{\mathrm{buy}} \ge A_t\right) - B_t \cdot I\left(V_t^{\mathrm{sell}} \le B_t\right)\right]. R T := OPT − t = 1 ∑ T [ A t ⋅ I ( V t buy ≥ A t ) − B t ⋅ I ( V t sell ≤ B t ) ] .
Informally, the goal of the paper is the following.
Research Question: Is it possible to design efficient learning algorithms for the sequential market-making problem that achieve optimal regret bounds while satisfying the inventory constraints throughout the learning process?
We answer this question affirmatively, showing that the problem faced by market makers is learnable.
Related Work
In this section, we discuss the work most closely related to ours.
Market making Market making has also been studied from a mechanism-design perspective (e.g., see [51 ] ), where the mechanism must provide an optimal allocation and an incentive-compatible payment rule, assuming access to both buyers’ and sellers’ valuation distributions. Our work is mainly related to sequential market making [3 XDX25] , which studies the performance of a regret-minimization algorithm against a finite class of constant-spread dynamic strategies. Our results are not directly comparable to theirs, since we operate in a continuous bid–ask decision space and do not assume full feedback. The work most closely related to ours is [19 ] . In this work, the authors study an online market-making setting with a single per-round taker in which the reward attained by the market maker (the agent) is given by the difference between the bid (or ask) and the unknown market value of the item. They provide optimal regret bounds under various assumptions on the nature of the environment, assuming that the market maker observes the market value and a one-bit feedback signal on the trade at the end of each round. While [19 ] provides a foundational and technically very strong regret-minimization treatment of market making, our setting captures two features that are central in practice and that substantially change the nature of the problem. First, unlike [19 ] , which assumes the existence of a market value relating the rewards associated with sold items to those associated with purchased items, we explicitly model inventory constraints. As a result, in our setting, actions taken in early rounds affect the feasibility and profitability of the decisions in later rounds, posing additional and unique technical challenges. Second, we study different feedback models. We consider two-bit feedback—which is the natural minimal model in our setting, since buyers and sellers are treated separately, as in real-world market making—and we also study a more realistic partial-information model motivated by the limit order book . In this sense, we believe that our framework is arguably closer to the informational and operational constraints faced by actual market makers. The limit order book feedback was originally introduced in [54 ] and then further studied by [65 ] , who consider the market-value-based setting of [19 ] while allowing full feedback when no trade occurs. Despite the shared motivation for the feedback model, the underlying setting differs substantially from ours since our explicit inventory constraints make the feasibility and profitability of future decisions depend on past trades.
Online learning in economic settings and bilateral trade Regret minimization and online learning methods have become a standard toolkit for studying digital markets and economic design under uncertainty, replacing strong prior assumptions with robust online guarantees. These techniques have been applied to one-sided and dynamic pricing [42 , 11 , 34 ] , repeated auctions [28 CCC+24, 53 , 66 LST16, 32 , 57 , 12 ] , contract design [38 , 30 , 70 ] , brokerage [9 ] , and Bayesian persuasion [26 , 27 , 71 ] . A particularly relevant related line of work is repeated bilateral trade, where a learner acts as a broker and posts prices to agents with unknown private valuations, with the objective of maximizing the social welfare. Foundational results established optimal regret guarantees under i.i.d. assumptions, smoothness conditions, and budget-balance constraints [21 , 18 ] . Subsequent work extended these guarantees to adversarial environments, that is, beyond i.i.d. assumptions, weaker budget-balance notions, and more general dependence structures between buyer and seller valuations [2 , 22 , 10 ] . Recently, [35 ] studied the problem of revenue maximization in bilateral trade. Our work naturally fits within the online learning in the economic category; nonetheless, we remark the following key distinctive features between our setting and the aforementioned ones. On the one hand, our setting involves a two-sided interaction with both a buyer and a seller, which distinguishes it from standard dynamic pricing or auction settings. On the other hand, in market making, trades may occur in only one direction for extended periods, until some inventory constraints are satisfied, while in bilateral trade, a trade may happen in both directions only.
Online learning with general and budget constraints A strongly related research direction is online learning under unknown constraints, where the objective is to design online learning algorithms that attain sublinear regret together with sublinear cumulative violation of some unknown constraints [55 , 56 , 40 , 68 ] . A particularly influential framework in this area is that of bandits with knapsacks (BwK), introduced by [14 ] . In BwK, the learner observes bandit feedback and faces stochastic rewards and resource consumptions, with the goal of maximizing cumulative utility while keeping the total consumption of each of the m m m resources within a budget B B B . For the stochastic setting, improved and optimal algorithms were later developed by [1 ] . The adversarial BwK version, that is, allowing the rewards and consumption to change arbitrarily during the learning dynamic, was first investigated by [39 ] , who adopt as benchmark the best fixed distribution over arms in hindsight. Under this benchmark, standard no-regret guarantees are in general unattainable, and one must instead resort to weaker notions such as α \alpha α -regret. If ρ \rho ρ denotes the learner’s per-round budget, the best currently known competitive-ratio guarantees are 1 / ρ 1/\rho 1/ ρ when B = Ω ( T ) B = \Omega(T) B = Ω ( T ) [24 ] , and O ( log m log T ) O(\log m \log T) O ( log m log T ) in the general case [43 ] . More recently, [41 , 8 ] generalized the BwK model to allow non-monotone resource dynamics, so that resources may also be replenished over time. Related in spirit, but closer to reinforcement learning [60 ] formulations, is the literature on online learning in constrained Markov decision processes (CMDPs). In CMDPs [4 ] , the learner must optimize cumulative reward while enforcing trajectory-level constraints in an environment with unknown state dynamics. A foundational contribution in this direction is due to [33 ] , who studied the exploration–exploitation trade-off in unknown CMDPs and provided sublinear guarantees for both regret and constraint violation. More recent works extended the model to settings with adversarial losses [59 ] and adversarial constraints [63 ] , while others investigated stronger safety notions that do not allow past constraint satisfaction to compensate for future violations [49 , 62 ] . Our setting shares similarities with the online learning with general constraints (or even online CMDPs) framework and the replenishable budget ones. Nonetheless, the aforementioned techniques cannot be transferred directly to our problem, due to the presence of a continuous and structurally richer action space, as well as a much weaker feedback model than the one usually assumed in bandit settings. Additionally, we remark that our setting does not present any Slater-like condition for the offline optimum.
Technical Challenges
In this section, we discuss the main technical challenges of our setting. In particular, online market making under inventory constraints presents several unique difficulties that make the learning problem substantially challenging.
On the action space and the reward function The action space of bid-ask pairs available to the agent during learning is continuous and two-dimensional, namely { ( b , a ) ∈ [ 0 , 1 ] 2 : b < a } \{(b, a) \in[0, 1]^2: b < a\} {( b , a ) ∈ [ 0 , 1 ] 2 : b < a } . This already rules out standard multi-armed bandit techniques [46 ] , which are inherently tailored to discrete action spaces. At the same time, existing methods for continuum-armed bandits, such as the Zooming algorithm [44 , 45 ] , do not apply directly to our setting for several reasons. First, in two-dimensional problems, these methods typically yield regret bounds of order T 3 / 4 T^{3/4} T 3/4 , which we show to be suboptimal in our setting. Second, our reward function is neither Lipschitz nor smooth, since we impose no regularity assumptions on the c.d.f.’s of buyers and sellers. As a result, standard discretization arguments or smoothing-based reductions cannot be applied in any straightforward way to obtain sublinear regret. We acknowledge that related, but substantially different, challenges also arise in no-regret algorithms for bilateral trade [17 ] . In such settings, however, these challenges are typically overcome either by assuming regularity of the buyers’ and sellers’ c.d.f.’s [17 , 22 ] , or by leveraging the special structure of the bilateral trade objective [10 ] . Intuitively, that structure makes discretization considerably less challenging since trades can occur only when both sides simultaneously accept the proposed prices.
On the inventory constraints The inventory constraints play a crucial role in our setting. Indeed, they clearly relate the bid and ask sides of the problem, preventing us from optimizing them independently. More precisely, the bid-ask pair selected in earlier rounds directly affects the inventory level carried into later ones, and therefore affects both the feasibility and the profitability of future bid-ask pairs. More generally, while the literature on online learning under unknown budget and general long-term constraints is huge [14 CCM^{+}22] , our inventory constraints have a structure that does not allow for any direct application of existing techniques. First of all, the overall structure of the problem (e.g., action and rewards space) is already substantially more involved than in standard constrained online learning models, thus preventing simple adaptation of existing techniques from the literature. Second, our constraints do not fit the canonical templates studied in the literature. On the one hand, the overall inventory requirement is closely related to replenishable-budget models [KX22, BCC+24a], but with some additional challenges: indeed, i) both the initial budget and the final one must be 0 0 0 and ii) more importantly, no Slater’s condition is available —that is, there is not a bid-ask pair which strictly satisfies the offline expected constraint, since it is an equality constraint, leaving no slack around the optimum. On the other hand, the per-round inventory constraints can be seen as any-time general constraint [CCM^{+}22], where α \alpha α is the violation rate and Slater’s condition is not available . Overall, these features make our setting significantly different from the ones considered in the existing literature, and show that handling the inventory constraints in our problem requires substantially different ideas.
On the benchmark It is standard in the literature on online learning under unknown constraints to compare the performance of the algorithm against the expected reward attained by the optimal action, or strategy of actions, satisfying the constraints in expectation—which we denote by OPT. This is the benchmark typically considered in the existing literature, and the one for which most of the available techniques are designed [33 , 48 , 24 , 8 , 25 , 61 ] . In our setting, in addition to the regret against this standard benchmark, we also study the regret R T J R_{T}^{J} R T J with respect to a stronger one, namely the benchmark maximizing the objective:
J ∗ : = sup b , a ∈ [ 0 , 1 ] 2 J ( b , a ) : = sup b , a ∈ [ 0 , 1 ] 2 ( a − b ) min { E [ I ( V t s e l l ≤ b ) ] , E [ I ( V t b u y ≥ a ) ] } . J^{*} := \sup_{b,a\in[0,1]^{2}} J(b,a) := \sup_{b,a\in[0,1]^{2}} (a-b)\min\left\{\mathbb{E}\left[\mathbb{I}\left(V_{t}^{\mathrm{sell}}\le b\right)\right],\mathbb{E}\left[\mathbb{I}\left(V_{t}^{\mathrm{buy}}\ge a\right)\right]\right\}. J ∗ := b , a ∈ [ 0 , 1 ] 2 sup J ( b , a ) := b , a ∈ [ 0 , 1 ] 2 sup ( a − b ) min { E [ I ( V t sell ≤ b ) ] , E [ I ( V t buy ≥ a ) ] } .
Proving an upper bound for the following notion of surrogate regret , namely, R T J : = T ⋅ J ∗ − ∑ t = 1 T [ A t ⋅ I ( V t b u y > A t ) − B t ⋅ I ( V t s e l l < B t ) ] R_{T}^{J}:=T\cdot J^{*}-\sum_{t=1}^{T}\left[A_{t}\cdot\mathbb{I}\left(V_{t}^{\mathrm{buy}}>A_{t}\right)-B_{t}\cdot\mathbb{I}\left(V_{t}^{\mathrm{sell}}<B_{t}\right)\right] R T J := T ⋅ J ∗ − ∑ t = 1 T [ A t ⋅ I ( V t buy > A t ) − B t ⋅ I ( V t sell < B t ) ] , leads to a substantially stronger guarantee for two reasons. First, it is easy to show that T ⋅ J ∗ ≥ O P T T\cdot J^{*}\ge\mathrm{OPT} T ⋅ J ∗ ≥ OPT , and thus our benchmark is indeed stronger than the standard one. Second, J ∗ J^{*} J ∗ may be greater than 0 even when the program defining OPT does not admit solutions with strictly positive utility, that is, when the optimal safe solution3 is simply to never buy or sell. Accordingly, the guarantees of our algorithm remain non-trivial even when no safe solution with strictly positive utility exists. To the best of our knowledge, this is a novel feature in the constrained online learning literature and, more importantly, it requires substantially different ideas, since one cannot simply aim to approach OPT directly, thus guaranteeing both safety and optimality. Instead, it is necessary to satisfy the constraints while learning through a surrogate objective based on J J J , which may induce optimal bid-ask pairs that are not safe.
On the feedback The feedback structure is another major source of difficulty in our problem. Under two-bit feedback, after posting a bid-ask pair, the learner only observes whether the seller accepts the bid and whether the buyer accepts the ask, while the agents’ valuations remain unobserved. Equivalently, on each side of the market, the learner only learns whether the corresponding valuation lies above or below a posted threshold, rather than observing its actual value. This provides extremely coarse information relative to the complexity of the decision space. The LOB model is also non-trivial: whenever trade occurs on one side of the market, the learner only receives a one-bit signal for that specific direction of trade. Thus, although this hybrid observation model is more informative than purely two-bit feedback, it still reveals only partial information. Notably, despite this limitation, we show that in the LOB setting, one can still attain the same optimal bounds as in the full-feedback case. We also note that even the full-feedback setting, which is not the focus of this work, is far from trivial and has been studied in several related settings [17 , 18 ] . We believe that this makes our results for the LOB setting particularly interesting, as it shows that the same optimal bounds can be achieved under weaker feedback.
Overview of the Results
In this section, we highlight the main contributions of our work. Specifically, we discuss the key results presented in each section of the paper.
Main Results of Section 4
In Section 4, we provide some preliminary results on the relationship between OPT and J ∗ J^{*} J ∗ . Specifically, the optimization problem underlying the definition of OPT cannot be directly exploited to derive meaningful discretizations, since we do not impose any assumption on the shape of the buyers’ and sellers’ valuation distributions. We therefore shift our focus to the surrogate objective function J ( b , a ) J(b,a) J ( b , a ) , establishing its two fundamental properties: i ) i) i ) it is well defined for every bid–ask pair and satisfies T J ∗ ≥ O P T T J^{*} \ge\mathrm{OPT} T J ∗ ≥ OPT ; i i ) ii) ii ) it allows for meaningful discretizations of the decision space, as shown by the following result.
Proposition (Proposition 4.3). Let N ∈ N > 0 N \in\mathbb{N}_{>0} N ∈ N > 0 and G N G_N G N be the uniform 1 / N 1/N 1/ N -grid on [ 0 , 1 ] [0,1] [ 0 , 1 ] , namely:
G N : = { n / N : n = 0 , … , N } . G_N := \{n/N : n = 0,\ldots,N\}. G N := { n / N : n = 0 , … , N } . Then, it holds:
max b , a ∈ G N 2 J ( b , a ) ≥ sup b , a ∈ [ 0 , 1 ] 2 J ( b , a ) − 2 / N , \max_{b,a\in G_N^2} J(b,a) \ge\sup_{b,a\in[0,1]^2} J(b,a) - 2/N, b , a ∈ G N 2 max J ( b , a ) ≥ b , a ∈ [ 0 , 1 ] 2 sup J ( b , a ) − 2/ N , where G N 2 : = G N × G N G_N^2 := G_N \times G_N G N 2 := G N × G N .
The result provides a precise approximation guarantee for the discretization of the bid–ask space. Indeed, optimizing J J J over the uniform grid G N 2 G_N^2 G N 2 yields a value that differs from the continuous optimum by at most 2 / N 2/N 2/ N , showing that the discretized problem is not too far from the original one.
From this section onward, we will focus on bounding R T J R_T^J R T J , since this directly yields a bound on R T R_T R T .
Main Results of Section 5
In Section 5, we focus on the 2-bit feedback scenario. In such a setting, we establish worst-case bounds on both the regret and the per-round inventory.
Theorem (Informal version of Theorem 5.13). Let δ ∈ ( 0 , 1 / T ) \delta\in(0,1/T) δ ∈ ( 0 , 1/ T ) . There exists a polynomial time algorithm such that, when two-bit feedback is available, it attains, with probability at least 1 − δ 1-\delta 1 − δ simultaneously for all the t t t time-steps:
∣ I t ∣ ≲ T 2 / 3 log ( T / δ ) , R T J ≲ T 2 / 3 log ( T / δ ) . |I_t| \lesssim T^{2/3}\sqrt{\log(T/\delta)}, \qquad R_T^J \lesssim T^{2/3}\sqrt{\log(T/\delta)}. ∣ I t ∣ ≲ T 2/3 log ( T / δ ) , R T J ≲ T 2/3 log ( T / δ ) .
We remark that the upper bound on the regret provided by the previous result cannot be improved even in the easier unconstrained setting. This follows immediately from the Ω ( T 2 / 3 ) \Omega(T^{2/3}) Ω ( T 2/3 ) lower bound proved in [42 ] for arbitrary stochastic demand curves. Indeed, our setting can be viewed as a generalization of dynamic pricing when the sellers’ valuation distribution puts all its mass on 0 and is known to the agent. In such a case, the optimum of the surrogate function J J J collapses to the one of dynamic pricing, while our agent is still forced to satisfy additional constraints on the inventory, which makes our learning problem at least as hard as the dynamic pricing one.
Main Results of Section 6
In Section 6, we switch to the arguably more interesting and realistic setting in which the agent has access to the limit order book . Under this feedback model, we establish three main results.
We begin by establishing worst-case bounds on both the regret and the per-round inventory. These guarantees are informally stated in the following theorem.
Theorem (Informal version of Theorem 6.18). Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . There exists a polynomial time algorithm such that, when LOB feedback is available, it attains, with probability at least $1-\delta
:::`
simultaneously for all the t t t time-steps:
∣ I t ∣ ≲ T log ( T / δ ) , R T J ≲ T log ( T / δ ) . |I_t| \lesssim\sqrt{T\log(T/\delta)}, \qquad R_T^J \lesssim\sqrt{T\log(T/\delta)}. ∣ I t ∣ ≲ T log ( T / δ ) , R T J ≲ T log ( T / δ ) .
We complement the worst-case analysis by establishing an instance-dependent guarantee, showing that the performance of the algorithm can be significantly better on favorable instances. In particular, both the regret and the per-round inventory imbalance scale as the maximum between the c.d.f. F F F and the survival function S S S at the discretized optimal bid–ask pair ( b ∘ , a ∘ ) (b^\circ, a^\circ) ( b ∘ , a ∘ ) , rather than only on T T T .
Theorem (Informal version of Theorem 6.19 ). Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . There exists a polynomial time algorithm such that, when L O B LOB L O B feedback is available, it attains, with probability at least 1 − δ 1-\delta 1 − δ simultaneously for all the t t t time-steps:
∣ I t ∣ ≲ max { F ( b ∘ ) , S ( a ∘ ) } T log ( T / δ ) + log ( T ) log ( T / δ ) , |I_t| \lesssim\sqrt{\max\{F(b^\circ),S(a^\circ)\}T\log(T/\delta)+\log(T)\log(T/\delta)}, ∣ I t ∣ ≲ max { F ( b ∘ ) , S ( a ∘ )} T log ( T / δ ) + log ( T ) log ( T / δ ) , and
R T J ≲ max { F ( b ∘ ) , S ( a ∘ ) } T log ( T / δ ) + log ( T ) log ( T / δ ) . R_T^J \lesssim\sqrt{\max\{F(b^\circ),S(a^\circ)\}T\log(T/\delta)+\log(T)\log(T/\delta)}. R T J ≲ max { F ( b ∘ ) , S ( a ∘ )} T log ( T / δ ) + log ( T ) log ( T / δ ) .
In Figure 1 , we provide a graphical representation of a favorable regime in which max { F ( b ∘ ) , S ( a ∘ ) } \max\{F(b^\circ),S(a^\circ)\} max { F ( b ∘ ) , S ( a ∘ )} is small. This happens when buyer and seller valuations have little overlap: few sellers have valuations below b ∘ b^\circ b ∘ , and few buyers have valuations above a ∘ a^\circ a ∘ . Equivalently, few sellers are willing to sell at a low price, and few buyers are willing to buy at a high price. This is a natural regime in financial applications, where the two sides of the market are often well separated.
Figure 1. A favorable and arguably realistic regime. Left: the valuation distributions have little overlap, yielding a narrow optimal spread. Right: the corresponding quantities F ( b ∘ ) F(b^\circ) F ( b ∘ ) and S ( a ∘ ) S(a^\circ) S ( a ∘ ) are both small, namely of order η ≪ 1 \eta\ll1 η ≪ 1 .
The careful reader will notice that the instance-dependent bound immediately implies the worst-case bound, since max { F ( b ∘ ) , S ( a ∘ ) } ≤ 1 \max\{F(b^\circ),S(a^\circ)\}\leq1 max { F ( b ∘ ) , S ( a ∘ )} ≤ 1 . Nevertheless, we state both results separately for the following reason. The instance-dependent guarantee requires a finer grid construction, which leads to a worse—though still polynomial—computational complexity than the one needed to obtain the worst-case bound, as we will discuss in the related section.
We conclude the section by establishing a lower bound showing that the O ~ ( T ) \widetilde{O}(\sqrt{T}) O ( T ) 4 regret and per-round imbalance guarantees are tight up to logarithmic factors. More precisely, we prove that the trade-off achieved by our upper bounds cannot be substantially improved: any algorithm enforcing a per-round inventory constraint of order T β T^\beta T β for β < 1 / 2 \beta<1/2 β < 1/2 must necessarily incur a regret of order at least T 1 − β T^{1-\beta} T 1 − β .
Theorem (Informal version of Theorem 6.20 ). Let 0 ≤ β < 1 / 2 0 \le\beta< 1/2 0 ≤ β < 1/2 . Then, every algorithm that satisfies the per-round inventory constraint for α ≤ T β \alpha\le T^\beta α ≤ T β suffers expected regret of order E [ R T ] = Ω ( T 1 − β ) \mathbb{E}[R_T] = \Omega(T^{1-\beta}) E [ R T ] = Ω ( T 1 − β ) .
We remark that this lower bound holds even in a significantly more informative setting than the one considered in our LOB model. In particular, it applies when the agent has complete prior knowledge of the valuation distributions of both buyers and sellers. As a consequence, the impossibility result is not an artifact of the limited feedback available in the LOB setting; rather, it reflects an intrinsic difficulty of the problem under per-round inventory constraints.
Main Results of Section 7
In § 10 , we provide a metaprocedure which, given as input any algorithm with similar guarantees to the ones of § 8 –§ 9 , obtains a global inventory constraint satisfaction, that is, at the end of the process, the number of sold items is equal to the number of purchased ones.
Theorem (Informal version of Theorem 7.1 ). Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and let A \mathcal{A} A be an algorithm for the online market making problem whose surrogate regret and per-round imbalance are upper bounded by R A J R_{\mathcal{A}}^{J} R A J and I A I_{\mathcal{A}} I A , respectively, with probability at least 1 − δ 1-\delta 1 − δ . Then, A \mathcal{A} A can be modified so as to achieve, with probability at least 1 − δ 1-\delta 1 − δ ,
R T J ≤ R A J + 2 I A , ∣ I T ∣ = 0 , ∣ I t ∣ ≤ I A ∀ t ∈ [ T ] . R_T^{J} \le R_{\mathcal{A}}^{J} + 2I_{\mathcal{A}}, \qquad|I_T| = 0, \qquad|I_t| \le I_{\mathcal{A}} \quad\forall t \in[T]. R T J ≤ R A J + 2 I A , ∣ I T ∣ = 0 , ∣ I t ∣ ≤ I A ∀ t ∈ [ T ] .
Instantiating the above result with the guarantees attained by our algorithms immediately yields the main results of this work.
Techniques and Proofs at a Glance
In this section, we describe the main ideas employed by our algorithms to address the several technical challenges posed by our setting. The common difficulty is to learn profitable bid–ask pairs while keeping purchases and sales balanced. Indeed, exploration itself generates trades, and a pair with a large spread may lead to many more purchases than sales, or vice versa.
Our approach relies on the surrogate objective introduced above, which separates the value of a pair from the imbalance it may generate. Writing F ( b ) : = P ( V t s e l l ≤ b ) F(b) := \mathbb{P}(V_t^{\mathrm{sell}} \le b) F ( b ) := P ( V t sell ≤ b ) and S ( a ) : = P ( V t b u y ≥ a ) S(a) := \mathbb{P}(V_t^{\mathrm{buy}} \ge a) S ( a ) := P ( V t buy ≥ a ) for the two trade probabilities, recall that:
J ( b , a ) = ( a − b ) min { F ( b ) , S ( a ) } , T J ∗ ≥ O P T . J(b,a) = (a-b)\min\{F(b),S(a)\}, \qquad T J^* \ge\mathrm{OPT}. J ( b , a ) = ( a − b ) min { F ( b ) , S ( a )} , T J ∗ ≥ OPT .
The minimum captures the trading rate that both sides can sustain after reducing activity on the more frequent side. Thus, our algorithms aim to learn a nearly optimal pair for J J J and to control inventory without losing the revenue associated with this common trading rate.
A first obstacle is the continuous action space. Since we impose no regularity assumptions on the valuation distributions, rounding prices can substantially change the trade probabilities. Nevertheless, the structure of J J J allows us to control the loss through a one-sided discretization. Specifically, round a bid b b b upward to b ′ b' b ′ and an ask a a a downward to a ′ a' a ′ on a uniform grid of mesh 1 / N 1/N 1/ N . Whenever a − b > 2 / N a-b > 2/N a − b > 2/ N , the rounded pair is feasible and monotonicity gives:
F ( b ′ ) ≥ F ( b ) , S ( a ′ ) ≥ S ( a ) , J ( b ′ , a ′ ) ≥ J ( b , a ) − 2 N . F(b') \ge F(b), \qquad S(a') \ge S(a), \qquad J(b',a') \ge J(b,a) - \frac{2}{N}. F ( b ′ ) ≥ F ( b ) , S ( a ′ ) ≥ S ( a ) , J ( b ′ , a ′ ) ≥ J ( b , a ) − N 2 .
Both trade probabilities can only improve, while the spread loses at most 2 / N 2/N 2/ N . Therefore, letting ( b ∘ , a ∘ ) (b^\circ, a^\circ) ( b ∘ , a ∘ ) maximize J J J over feasible grid pairs, and denoting by R T ∘ R_T^\circ R T ∘ the virtual regret obtained by replacing J ∗ J^* J ∗ with J ( b ∘ , a ∘ ) J(b^\circ, a^\circ) J ( b ∘ , a ∘ ) in the surrogate regret, we have:
R T J = R T ∘ + T ( J ∗ − J ( b ∘ , a ∘ ) ) ≤ R T ∘ + 2 T N . R_T^J = R_T^\circ+ T\left(J^* - J(b^\circ, a^\circ)\right) \le R_T^\circ+ \frac{2T}{N}. R T J = R T ∘ + T ( J ∗ − J ( b ∘ , a ∘ ) ) ≤ R T ∘ + N 2 T .
This reduces the continuous problem to learning over a finite grid. The remaining challenge is to use the available feedback to identify good pairs while controlling the inventory generated.
Two-Bit Feedback
Under two-bit feedback, each posted pair only reveals whether a purchase and a sale occurred. Estimating F F F and S S S therefore requires repeatedly posting prices, which may itself create a large imbalance. Our algorithm (Algorithm 1) addresses this through a phased elimination procedure over bid and ask grids of size Θ ( T 1 / 3 ) \Theta(T^{1/3}) Θ ( T 1/3 ) . At phase ℓ \ell ℓ , it maintains upper and lower confidence bounds for F F F and S S S . These induce corresponding bounds for J J J ; for instance, the optimistic value is:
J ℓ u p ( b , a ) = ( a − b ) min { F ℓ u p ( b ) , S ℓ u p ( a ) } . J_\ell^{\mathrm{up}}(b,a) = (a-b)\min\{F_\ell^{\mathrm{up}}(b), S_\ell^{\mathrm{up}}(a)\}. J ℓ up ( b , a ) = ( a − b ) min { F ℓ up ( b ) , S ℓ up ( a )} .
The pessimistic value J ℓ l o w J_\ell^{\mathrm{low}} J ℓ low is defined using the lower bounds. A feasible pair is called compatible if its optimistic value reaches the largest pessimistic value among the active pairs. Prices with no compatible partner are eliminated.
The key difficulty is to refine these bounds without continuing to trade on a side that is already too active. To estimate a bid b b b , the algorithm pairs it with the compatible ask a ′ a' a ′ having the largest upper bound on S S S . It then runs the pair in a block, using a common target for the number of purchases and sales, where the target is the optimistic estimate of the number of trades sustainable on both sides, plus a confidence term. Once one side reaches this target, it is deactivated by bidding 0 or asking 1.
At first sight, halting seems to prevent accurate estimation. However, in a completed block, reaching the common target guarantees that the halted side is not the one determining the minimum in J J J . In particular, if the bid is halted, its true trade probability exceeds even the upper bound at a ′ a' a ′ . Since a ′ a' a ′ has the largest such bound among compatible asks, on the concentration event we obtain, for every ask a a a still compatible with b b b :
F ( b ) > S ( a ) , J ( b , a ) = ( a − b ) S ( a ) . F(b) > S(a), \qquad J(b,a) = (a-b)S(a). F ( b ) > S ( a ) , J ( b , a ) = ( a − b ) S ( a ) .
Further accuracy on F ( b ) F(b) F ( b ) is therefore unnecessary for evaluating any relevant pair. If the bid is not halted, it is sampled throughout the block and its estimate is refined in the usual way. The ask side is symmetric. This is what allows the confidence bounds on J J J to tighten even when one of the two trade probabilities is not estimated accurately.
The same halting rule controls inventory and revenue. In a completed block of n n n rounds, both trade counts are close to n min { F ( b ) , S ( a ′ ) } n\min\{F(b),S(a')\} n min { F ( b ) , S ( a ′ )} , up to O ~ ( n ) \widetilde{O}(\sqrt{n}) O ( n ) . Their difference controls the inventory change, while the revenue is close to n J ( b , a ′ ) nJ(b,a') n J ( b , a ′ ) . Since compatible pairs are nearly optimal at the current confidence, each completed block contributes at most O ~ ( n ) \widetilde{O}(\sqrt{n}) O ( n ) to both virtual regret and imbalance.
It remains to control inventory within a block, since purchases and sales may occur at different times even if their final counts are close. For this reason, block lengths double across phases only up to order T 2 / 3 T^{2/3} T 2/3 ; estimation and elimination then continue with blocks of that length. The growing blocks cost at most O ~ ( T 1 / 3 ) \widetilde{O}(T^{1/3}) O ( T 1/3 ) per grid price, while the later blocks cost O ~ ( T − 1 / 3 ) \widetilde{O}(T^{-1/3}) O ( T − 1/3 ) per round. Summing these two contributions gives order O ~ ( T 2 / 3 ) \widetilde{O}(T^{2/3}) O ( T 2/3 ) . The unfinished-block excursion and the discretization error have the same order. Hence, with high probability, the algorithm guarantees:
R T J ≤ O ~ ( T 2 / 3 ) , max t ∈ [ T ] ∣ I t ∣ ≤ O ~ ( T 2 / 3 ) . R_{T}^{J} \le\widetilde{O}(T^{2/3}), \qquad\max_{t \in[T]} |I_t| \le\widetilde{O}(T^{2/3}). R T J ≤ O ( T 2/3 ) , t ∈ [ T ] max ∣ I t ∣ ≤ O ( T 2/3 ) .
LOB Access
With access to the limit order book , the learner receives richer feedback, but only in truncated form. Specifically, a failed trade reveals the valuation, whereas a successful trade only reveals that the posted threshold was crossed. The first challenge is therefore to identify which prices can reuse these observations. If b ≥ B τ b \ge B_{\tau} b ≥ B τ , a purchase at B τ B_{\tau} B τ already certifies that V τ s e l l ≤ b V_{\tau}^{\mathrm{sell}} \le b V τ sell ≤ b ; if no purchase occurs, the revealed valuation determines whether this inequality holds. Formally, we have:
I ( V τ s e l l ≤ b ) = I ( max { V τ s e l l , B τ } ≤ b ) for every b ≥ B τ . \mathbb{I}(V_{\tau}^{\mathrm{sell}} \le b) = \mathbb{I}(\max\{V_{\tau}^{\mathrm{sell}}, B_{\tau}\} \le b) \qquad\text{for every } b \ge B_{\tau}. I ( V τ sell ≤ b ) = I ( max { V τ sell , B τ } ≤ b ) for every b ≥ B τ .
The right-hand side is observable, and the symmetric identity holds for asks a ≤ A τ a \le A_{\tau} a ≤ A τ . Thus, if all past bids are below an active bid and all past asks are above an active ask, averaging these indicators recovers exactly the empirical estimates F ^ t \widehat{F}_t F t and S ^ t \widehat{S}_t S t available under full feedback. Our algorithm (Algorithm 4) preserves this property by maintaining nested active sets, with an increasing lower boundary for bids and a decreasing upper boundary for asks. Elimination is therefore also what makes it possible to reuse all past observations.
The difficulty is to move these boundaries without discarding the optimum. The Double Double Pointer subroutine (Algorithm 5) does this using two scans of the active grid. Starting from the smallest bid and largest ask, each scan advances the pointer on the side with the smaller trade-probability bound. Indeed, moving the other pointer would only reduce the spread without increasing the minimum. The first scan computes the largest pessimistic value of J J J ; the second returns the first pair ( B t , 0 , A t , 0 ) (B_{t,0}, A_{t,0}) ( B t , 0 , A t , 0 ) whose optimistic value reaches that benchmark. Whenever the confidence bounds hold, the second scan must stop before passing an optimal price since at the first such crossing, the current pair would already have an optimistic value at least as large as the optimal value. Consequently, the optimum remains active, and the returned candidate is nearly optimal up to the confidence error.
The returned bid-ask pair may still generate unequal purchase and sale rates. To see how to correct this, suppose these rates were known and F ( b ) > S ( a ) F(b) > S(a) F ( b ) > S ( a ) . Keeping the bid with probability S ( a ) / F ( b ) S(a)/F(b) S ( a ) / F ( b ) and otherwise bidding 0 would make both trade rates equal to S ( a ) S(a) S ( a ) , while preserving expected revenue ( a − b ) S ( a ) = J ( b , a ) (a-b)S(a) = J(b,a) ( a − b ) S ( a ) = J ( b , a ) . Our algorithm implements this idea with confidence bounds. When F t − 1 l o w ( B t , 0 ) > S t − 1 u p ( A t , 0 ) F_{t-1}^{\mathrm{low}}(B_{t,0}) > S_{t-1}^{\mathrm{up}}(A_{t,0}) F t − 1 low ( B t , 0 ) > S t − 1 up ( A t , 0 ) , it keeps the candidate bid with probability:
S t − 1 u p ( A t , 0 ) F t − 1 l o w ( B t , 0 ) , \frac{S_{t-1}^{\mathrm{up}}(A_{t,0})}{F_{t-1}^{\mathrm{low}}(B_{t,0})}, F t − 1 low ( B t , 0 ) S t − 1 up ( A t , 0 ) ,
and otherwise resets it to 0. The ask correction is again symmetric. If the intervals overlap, no correction is needed, since their widths already bound the mismatch. Thus, conditional on the past, both the inventory drift and the expected revenue loss relative to J ( B t , 0 , A t , 0 ) J(B_{t,0}, A_{t,0}) J ( B t , 0 , A t , 0 ) are controlled by the confidence radii at the selected prices. Moreover, these corrections only move the posted prices outward, so they preserve the observation identities on the active sets.
Summing these confidence errors controls the cumulative inventory drift and conditional reward gaps; a martingale concentration then controls the fluctuations of realized trades around their conditional expectations. With DKW confidence radii, the cumulative error and these fluctuations are both of order O ~ ( T ) \widetilde{O}(\sqrt{T}) O ( T ) . A grid of mesh 1 / ⌈ T ⌉ 1/\lceil\sqrt{T}\rceil 1/ ⌈ T ⌉ gives the same discretization cost, yielding, with high probability:
R T J ≤ O ~ ( T ) , max t ∈ [ T ] ∣ I t ∣ ≤ O ~ ( T ) . R_T^J \le\widetilde{O}(\sqrt{T}), \qquad\max_{t\in[T]} |I_t| \le\widetilde{O}(\sqrt{T}). R T J ≤ O ( T ) , t ∈ [ T ] max ∣ I t ∣ ≤ O ( T ) .
Finally, the optimum’s survival also explains the instance-dependent improvement. Since B t , 0 ≤ b ∘ B_{t,0} \le b^{\circ} B t , 0 ≤ b ∘ and A t , 0 ≥ a ∘ A_{t,0} \ge a^{\circ} A t , 0 ≥ a ∘ , the selected trade probabilities are at most F ( b ∘ ) F(b^{\circ}) F ( b ∘ ) and S ( a ∘ ) S(a^{\circ}) S ( a ∘ ) . These quantities control both the empirical-Bernstein confidence radii and the conditional variances of trades and revenues. When trades at the optimum are rare, both sources of error are therefore smaller. Using these radii and a finer grid of mesh 1 / T 1/T 1/ T gives, with high probability:
R T J ≤ O ~ ( T max { F ( b ∘ ) , S ( a ∘ ) } ) , max t ∈ [ T ] ∣ I t ∣ ≤ O ~ ( T max { F ( b ∘ ) , S ( a ∘ ) } ) . R_T^J \le\widetilde{O}\left(\sqrt{T\max\{F(b^{\circ}),S(a^{\circ})\}}\right), \qquad\max_{t\in[T]} |I_t| \le\widetilde{O}\left(\sqrt{T\max\{F(b^{\circ}),S(a^{\circ})\}}\right). R T J ≤ O ( T max { F ( b ∘ ) , S ( a ∘ )} ) , t ∈ [ T ] max ∣ I t ∣ ≤ O ( T max { F ( b ∘ ) , S ( a ∘ )} ) .
Preliminaries
In the following, we better describe the maker-takers interaction. At each round t ∈ [ T ] t \in[T] t ∈ [ T ] , a new pair of takers enters the market: a buyer and a seller, each interested in trading a single unit of the underlying asset. These takers are drawn from an underlying population, and are characterized by private valuations V t b u y , V t s e l l V_t^{\mathrm{buy}}, V_t^{\mathrm{sell}} V t buy , V t sell . Here, V t s e l l V_t^{\mathrm{sell}} V t sell denotes the minimum amount the seller is willing to accept to sell one unit, while V t b u y V_t^{\mathrm{buy}} V t buy denotes the maximum amount the buyer is willing to pay to buy one unit. More formally, the valuation pair observed at each round is drawn i.i.d. from an unknown distribution. Specifically, there exists a probability distribution V \mathcal{V} V supported on [ 0 , 1 ] 2 [0,1]^2 [ 0 , 1 ] 2 such that:
( V t s e l l , V t b u y ) ∼ i . i . d . V supp ( V ) ⊆ [ 0 , 1 ] 2 . \left(V_t^{\mathrm{sell}}, V_t^{\mathrm{buy}}\right) \overset{\mathrm{i.i.d.}}{\sim} \mathcal{V}
\qquad\operatorname{supp}(\mathcal{V}) \subseteq[0,1]^2. ( V t sell , V t buy ) ∼ i.i.d. V supp ( V ) ⊆ [ 0 , 1 ] 2 .
Therefore, each round involves a freshly sampled buyer–seller pair from the same population. Denoting by V b u y \mathcal{V}^{\mathrm{buy}} V buy and V s e l l \mathcal{V}^{\mathrm{sell}} V sell the two marginals of V \mathcal{V} V , we have V t b u y ∼ V b u y V_t^{\mathrm{buy}} \sim\mathcal{V}^{\mathrm{buy}} V t buy ∼ V buy and V t s e l l ∼ V s e l l V_t^{\mathrm{sell}} \sim\mathcal{V}^{\mathrm{sell}} V t sell ∼ V sell ; however, within any given round, the two valuations may be arbitrarily correlated . At each round, the market maker selects a pair of bid and ask prices ( B t , A t ) (B_t,A_t) ( B t , A t ) such that 0 ≤ B t < A t ≤ 1 0 \le B_t < A_t \le1 0 ≤ B t < A t ≤ 1 , without observing either V t s e l l V_t^{\mathrm{sell}} V t sell or V t b u y V_t^{\mathrm{buy}} V t buy in advance. The following interactions then take place simultaneously. On the buy side, two scenarios may occur:
Maker buys. If V t s e l l ≤ B t V_t^{\mathrm{sell}} \le B_t V t sell ≤ B t , the seller accepts the bid and sells the asset to the maker at price B t B_t B t , resulting in a reward of − B t -B_t − B t for the agent.
No trade. If V t s e l l > B t V_t^{\mathrm{sell}} > B_t V t sell > B t , no purchase occurs, and the agent receives reward 0 0 0 .
Symmetrically, on the sell side:
Maker sells. If V t b u y ≥ A t V_t^{\mathrm{buy}} \ge A_t V t buy ≥ A t , the buyer accepts the ask and buys the asset from the maker at price A t A_t A t , resulting in a reward of A t A_t A t for the agent.
No trade. If V t b u y < A t V_t^{\mathrm{buy}} < A_t V t buy < A t , no sale occurs, and the agent receives reward 0 0 0 .
Throughout the paper, we assume that V t b u y < 1 V_t^{\mathrm{buy}} < 1 V t buy < 1 and V t s e l l > 0 V_t^{\mathrm{sell}} > 0 V t sell > 0 , for all t ∈ [ T ] t \in[T] t ∈ [ T ] . Equivalently, V \mathcal{V} V is such that P ( V t b u y = 1 ) = P ( V t s e l l = 0 ) = 0 \mathbb{P}(V_t^{\mathrm{buy}} = 1) = \mathbb{P}(V_t^{\mathrm{sell}} = 0) = 0 P ( V t buy = 1 ) = P ( V t sell = 0 ) = 0 . This assumption is natural, since the boundary prices correspond to the case in which no buyer is willing to buy and no seller is willing to sell. Therefore, bidding 0 0 0 and asking 1 1 1 correspond, from the agent’s perspective, to doing nothing. In this sense, the assumption is always satisfied in practice.
Feedback Type
Throughout the paper, we will focus on different feedback types denoting the information the market maker receives at the end of each round. Specifically, we can have one of the following feedback:
Two-bit feedback (2-Bit). When only two-bit feedback is available, the agent observes solely whether a trade has occurred. Specifically, at the end of round t ∈ [ T ] t \in[T] t ∈ [ T ] , the agent observes I ( V t b u y ≥ A t ) \mathbb{I}(V_t^{\mathrm{buy}} \ge A_t) I ( V t buy ≥ A t ) and I ( V t s e l l ≤ B t ) \mathbb{I}(V_t^{\mathrm{sell}} \le B_t) I ( V t sell ≤ B t ) . This two-bit feedback model (and, similarly, its one-bit counterpart) is predominant in revenue maximization settings [42 , 29 ] and is generally regarded as the hardest form of feedback, in contrast to the easier full-feedback setting, where the valuations are fully observed at the end of each round.
Limit order book access (LOB). When access to the limit order book is available, at the end of each round the agent observes additional information whenever no trade occurs. Specifically, if B t < V t s e l l B_t < V_t^{\mathrm{sell}} B t < V t sell , the agent observes V t s e l l V_t^{\mathrm{sell}} V t sell . Similarly, if A t > V t b u y A_t > V_t^{\mathrm{buy}} A t > V t buy , it observes V t b u y V_t^{\mathrm{buy}} V t buy . In other words, information arrives exactly when reward does not. This assumption captures a key feature of the market-making problem. Indeed, whenever a transaction occurs (either on the buy side or on the sell side), the agent never observes the actual valuation, since takers have no incentive to reveal it. By contrast, when no transaction takes place, takers are incentivized to post their valuation in the order book, hoping that their order will be executed in the near future. Notice that LOB feedback can be viewed as a meaningful hybrid feedback model, interpolating between the two-bit and the full-feedback settings.
In Protocol 1, we provide the online interaction between the agent and sequence of takers.
Table 1. Maker-Takers Interaction
The Inventory Constraints
Market making differs from standard buy–sell interactions between agents. In particular, market makers can sell an asset even if they have not bought it yet (this is the so-called short selling ). However, market makers usually try to keep their inventory small, meaning they try to avoid building a large imbalance between how many units they have sold and how many they have bought. The reason is simple:
if the maker ends up holding too much of the asset (positive inventory), they are exposed to the risk that the market price goes down;
if the maker ends up too short (negative inventory), they are exposed to the risk that the market price goes up.
In both cases, the market maker becomes more sensitive to price movements, because part of their profit (or loss) starts depending on the market valuation of the asset, not only on the trading activity itself. This is typically against the idea of market making, which (in the simplest view) aims to earn mainly from the bid–ask spread , while keeping directional price risk as low as possible.
We encode this aspect by imposing the following two constraints on the learning dynamics. On the one hand, we require a global inventory balance over the whole horizon, namely:
∑ t = 1 T I ( V t b u y ≥ A t ) = ∑ t = 1 T I ( V t s e l l ≤ B t ) . (1) \sum_{t=1}^{T} \mathbb{I}(V_t^{\mathrm{buy}} \ge A_t) = \sum_{t=1}^{T} \mathbb{I}(V_t^{\mathrm{sell}} \le B_t). \tag*{(1)} t = 1 ∑ T I ( V t buy ≥ A t ) = t = 1 ∑ T I ( V t sell ≤ B t ) . (1)
Equation (1) simply states that, at the end of the learning dynamics, the inventory must be zero, while still allowing the agent to take short positions (i.e., to sell before buying) during learning.
On the other hand, we enforce that the inventory level at each round stays below a prescribed threshold α ∈ N > 0 \alpha\in\mathbb{N}_{>0} α ∈ N > 0 :
∣ ∑ τ = 1 t I ( V τ b u y ≥ A τ ) − ∑ τ = 1 t I ( V τ s e l l ≤ B τ ) ∣ ≤ α ∀ t ∈ [ T ] . (2) \left| \sum_{\tau=1}^{t} \mathbb{I}(V_{\tau}^{\mathrm{buy}} \ge A_{\tau}) - \sum_{\tau=1}^{t} \mathbb{I}(V_{\tau}^{\mathrm{sell}} \le B_{\tau}) \right| \le\alpha\quad\forall t \in[T]. \tag*{(2)} τ = 1 ∑ t I ( V τ buy ≥ A τ ) − τ = 1 ∑ t I ( V τ sell ≤ B τ ) ≤ α ∀ t ∈ [ T ] . (2)
For the sake of simplicity we will introduce the following definition.
Definition 3.1 (Imbalance). We define the current imbalance at time t ∈ [ T ] t \in[T] t ∈ [ T ] as:
I t : = ∑ τ = 1 t I ( V τ s e l l ≤ B τ ) − ∑ τ = 1 t I ( V τ b u y ≥ A τ ) . I_t := \sum_{\tau=1}^{t} \mathbb{I}(V_{\tau}^{\mathrm{sell}} \le B_{\tau}) - \sum_{\tau=1}^{t} \mathbb{I}(V_{\tau}^{\mathrm{buy}} \ge A_{\tau}). I t := τ = 1 ∑ t I ( V τ sell ≤ B τ ) − τ = 1 ∑ t I ( V τ buy ≥ A τ ) . Thus, Equation (2) reduces to ∣ I t ∣ ≤ α |I_t| \le\alpha ∣ I t ∣ ≤ α , for all t ∈ [ T ] t \in[T] t ∈ [ T ] .
The Offline Baseline and The Performance Metrics
As is standard in online learning, we compare the performance of our learning algorithms against an offline benchmark that has full knowledge of the underlying valuation distributions and commits to a fixed bid-ask pair throughout the entire horizon. This benchmark serves as the baseline for our notion of regret. Specifically, we define the optimal offline value as:
OPT : = { max b , a ∈ [ 0 , 1 ] 2 ∑ t = 1 T [ a E [ I ( V t b u y ≥ a ) ] − b E [ I ( V t s e l l ≤ b ) ] ] s . t . ∑ t = 1 T E [ I ( V t b u y ≥ a ) ] = ∑ t = 1 T E [ I ( V t s e l l ≤ b ) ] b < a , (3) \operatorname{OPT} :=
\left\{
\begin{aligned}
\max_{b,a \in[0,1]^2} \quad& \sum_{t=1}^{T} \left[a\,\mathbb{E}\left[\mathbb{I}(V_t^{\mathrm{buy}} \ge a)\right] - b\,\mathbb{E}\left[\mathbb{I}(V_t^{\mathrm{sell}} \le b)\right]\right] \\
\mathrm{s.t.}\quad& \sum_{t=1}^{T} \mathbb{E}\left[\mathbb{I}(V_t^{\mathrm{buy}} \ge a)\right] = \sum_{t=1}^{T} \mathbb{E}\left[\mathbb{I}(V_t^{\mathrm{sell}} \le b)\right] \\
& b < a,
\end{aligned}
\right. \tag*{(3)} OPT := ⎩ ⎨ ⎧ b , a ∈ [ 0 , 1 ] 2 max s.t. t = 1 ∑ T [ a E [ I ( V t buy ≥ a ) ] − b E [ I ( V t sell ≤ b ) ] ] t = 1 ∑ T E [ I ( V t buy ≥ a ) ] = t = 1 ∑ T E [ I ( V t sell ≤ b ) ] b < a , (3)
where all expectations are taken with respect to the unknown valuation distribution. Observe that the benchmark corresponds to the best fixed bid-ask ( b , a ) (b,a) ( b , a ) computed knowing the valuations distribution, subject to the overall inventory constraint.
For ease of notation, we let F b u y : [ 0 , 1 ] → [ 0 , 1 ] F_{\mathrm{buy}} : [0,1] \to[0,1] F buy : [ 0 , 1 ] → [ 0 , 1 ] and F s e l l : [ 0 , 1 ] → [ 0 , 1 ] F_{\mathrm{sell}} : [0,1] \to[0,1] F sell : [ 0 , 1 ] → [ 0 , 1 ] denote the cumulative density functions of V b u y V^{\mathrm{buy}} V buy and V s e l l V^{\mathrm{sell}} V sell , respectively. Then, Program (3) can be equivalently rewritten by replacing:
E [ I ( V t b u y ≥ a ) ] = 1 − F b u y ( a ) = : S ( a ) and E [ I ( V t s e l l ≤ b ) ] = F s e l l ( b ) = : F ( b ) . \mathbb{E}\left[\mathbb{I}(V_t^{\mathrm{buy}} \ge a)\right] = 1 - F_{\mathrm{buy}}(a) =: S(a)
\qquad\text{and}\qquad
\mathbb{E}\left[\mathbb{I}(V_t^{\mathrm{sell}} \le b)\right] = F_{\mathrm{sell}}(b) =: F(b). E [ I ( V t buy ≥ a ) ] = 1 − F buy ( a ) =: S ( a ) and E [ I ( V t sell ≤ b ) ] = F sell ( b ) =: F ( b ) .
Given this benchmark, we define the cumulative regret of a learning algorithm as:
R T : = OPT − ∑ t = 1 T [ A t ⋅ I ( V t b u y ≥ A t ) − B t ⋅ I ( V t s e l l ≤ B t ) ] . R_T := \operatorname{OPT} - \sum_{t=1}^{T} \left[A_t \cdot\mathbb{I}(V_t^{\mathrm{buy}} \ge A_t) - B_t \cdot\mathbb{I}(V_t^{\mathrm{sell}} \le B_t)\right]. R T := OPT − t = 1 ∑ T [ A t ⋅ I ( V t buy ≥ A t ) − B t ⋅ I ( V t sell ≤ B t ) ] .
In the rest of the work, we will refer to A t I ( V t b u y ≥ A t ) − B t I ( V t s e l l ≤ B t ) A_t\mathbb{I}(V_t^{\mathrm{buy}} \ge A_t) - B_t\mathbb{I}(V_t^{\mathrm{sell}} \le B_t) A t I ( V t buy ≥ A t ) − B t I ( V t sell ≤ B t ) as r t r_t r t .
Additionally, we introduce the following notion of surrogate objective function. As we show next, it is closely related to Program (3) and will serve as a key tool in our analysis.
Definition 3.2 (Surrogate objective function). The surrogate objective is defined as:
J ( b , a ) : = ( a − b ) min { F ( b ) , S ( a ) } . (4) J(b,a) := (a-b)\min\{F(b),S(a)\}. \tag*{(4)} J ( b , a ) := ( a − b ) min { F ( b ) , S ( a )} . (4) Furthermore, its optimal value is defined as:
J ∗ : = sup b , a ∈ [ 0 , 1 ] 2 ( a − b ) min { F ( b ) , S ( a ) } . J^* := \sup_{b,a\in[0,1]^2} (a-b)\min\{F(b),S(a)\}. J ∗ := b , a ∈ [ 0 , 1 ] 2 sup ( a − b ) min { F ( b ) , S ( a )} .
As we will show in § 7 , it holds that T ⋅ J ∗ ≥ OPT T \cdot J^* \ge\operatorname{OPT} T ⋅ J ∗ ≥ OPT . Accordingly, we can define the following notion of surrogate cumulative regret :
R T J : = J ∗ ⋅ T − ∑ t = 1 T [ A t ⋅ I ( V t b u y ≥ A t ) − B t ⋅ I ( V t s e l l ≤ B t ) ] . (5) R_T^J := J^* \cdot T - \sum_{t=1}^{T} \left[A_t \cdot\mathbb{I}(V_t^{\mathrm{buy}} \ge A_t) - B_t \cdot\mathbb{I}(V_t^{\mathrm{sell}} \le B_t)\right]. \tag*{(5)} R T J := J ∗ ⋅ T − t = 1 ∑ T [ A t ⋅ I ( V t buy ≥ A t ) − B t ⋅ I ( V t sell ≤ B t ) ] . (5)
The goal of the maker is to ensure that R T = o ( T ) R_T=o(T) R T = o ( T ) , while at the same time guaranteeing that Equation (1) and Equation (2) , for suitable values of α \alpha α , are satisfied by the sequence of bid-ask pairs selected during learning. In this work, we go even further: we show that the same results can be attained against the stronger benchmark J ∗ J^* J ∗ , namely, ensuring that R T J = o ( T ) R_T^J=o(T) R T J = o ( T ) , while at the same time guaranteeing that the constraints are satisfied.
Preliminary Results: Program (3) and The Surrogate Objective
In this section, we provide some preliminary results that will be employed for both the setting characterized by the different feedback. Specifically, we focus on the fundamental relation between Program (3) and the surrogate objective function introduced in Definition 3.2.
We start by the following simple characterization of Program (3) .
Proposition 4.1. Let R R R be the feasible region associated to Program (3) . Then, the following holds:
R R R is non-empty.
The solution to Program (3) corresponds to the one of the following problem:
OPT = { max b , a ∈ [ 0 , 1 ] 2 T [ a S ( a ) − b F ( b ) ] s.t. F ( b ) = S ( a ) . (6) \operatorname{OPT} =
\begin{cases}
\max_{b,a\in[0,1]^2} T\left[aS(a)-bF(b)\right] & \\
\text{s.t.} & F(b)=S(a).
\end{cases} \tag*{(6)} OPT = { max b , a ∈ [ 0 , 1 ] 2 T [ a S ( a ) − b F ( b ) ] s.t. F ( b ) = S ( a ) . (6)
Proof. For any t ∈ [ T ] t \in[T] t ∈ [ T ] , by definition of F F F , S S S it follows that:
a E [ I ( V t b u y ≥ a ) ] = a S ( a ) and b E [ I ( V t s e l l ≤ b ) ] = b F ( b ) . a\mathbb{E}\left[\mathbb{I}(V_t^{\mathrm{buy}} \ge a)\right] = aS(a) \quad\text{and} \quad b\mathbb{E}\left[\mathbb{I}(V_t^{\mathrm{sell}} \le b)\right] = bF(b). a E [ I ( V t buy ≥ a ) ] = a S ( a ) and b E [ I ( V t sell ≤ b ) ] = b F ( b ) .
Therefore, Program (3) writes as follows:
OPT = { max b , a ∈ [ 0 , 1 ] 2 T [ a S ( a ) − b F ( b ) ] s.t. F ( b ) = S ( a ) b < a . \operatorname{OPT} =
\left\{
\begin{aligned}
\max_{b,a\in[0,1]^2}\quad&T\left[aS(a)-bF(b)\right]\\
\text{s.t.}\quad&F(b)=S(a)\\
&b<a.
\end{aligned}
\right. OPT = ⎩ ⎨ ⎧ b , a ∈ [ 0 , 1 ] 2 max s.t. T [ a S ( a ) − b F ( b ) ] F ( b ) = S ( a ) b < a .
Under the assumption that V t b u y < 1 V_t^{\mathrm{buy}}<1 V t buy < 1 and V t s e l l > 0 V_t^{\mathrm{sell}}>0 V t sell > 0 for all t ∈ [ T ] t\in[T] t ∈ [ T ] , the point b = 0 , a = 1 b=0,a=1 b = 0 , a = 1 is always feasible and attains an objective value equal to 0. Therefore, ( 0 , 1 ) ∈ R (0,1)\in\mathcal{R} ( 0 , 1 ) ∈ R and, for any ( a , b ) (a,b) ( a , b ) such that a ≤ b a\leq b a ≤ b the objective function is equivalent to:
T [ a S ( a ) − b F ( b ) ] ≤ 0 = T [ 1 ⋅ S ( 1 ) − 0 ⋅ F ( 0 ) ] . T\left[aS(a)-bF(b)\right]\leq0=T\left[1\cdot S(1)-0\cdot F(0)\right]. T [ a S ( a ) − b F ( b ) ] ≤ 0 = T [ 1 ⋅ S ( 1 ) − 0 ⋅ F ( 0 ) ] .
This allows to remove the constraint b < a b<a b < a , since any point that falls outside of this set is automatically dominated by ( 0 , 1 ) (0,1) ( 0 , 1 ) , concluding the proof. □
The constrained maximization of the former objective function is strictly linked to the one of the nonlinear and unconstrained objective provided in Definition 3.2 . The relation between this objective and the one of Problem (3) is provided in the following proposition.
Proposition 4.2. Let R \mathcal{R} R be the feasible region of Program (3). Given ( b , a ) ∈ R (b,a)\in\mathcal{R} ( b , a ) ∈ R , it holds:
J ( b , a ) = a S ( a ) − b F ( b ) . J(b,a)=aS(a)-bF(b). J ( b , a ) = a S ( a ) − b F ( b ) .
Proof. Given ( b , a ) ∈ R (b,a)\in\mathcal{R} ( b , a ) ∈ R , one has, by Proposition 4.1 , F ( b ) = S ( a ) F(b)=S(a) F ( b ) = S ( a ) . Therefore, it holds:
J ( b , a ) = ( a − b ) min { F ( b ) , S ( a ) } = a min { F ( b ) , S ( a ) } − b min { F ( b ) , S ( a ) } = a S ( a ) − b F ( b ) . \begin{aligned}
J(b,a)&=(a-b)\min\{F(b),S(a)\}\\
&=a\min\{F(b),S(a)\}-b\min\{F(b),S(a)\}\\
&=aS(a)-bF(b).
\end{aligned} J ( b , a ) = ( a − b ) min { F ( b ) , S ( a )} = a min { F ( b ) , S ( a )} − b min { F ( b ) , S ( a )} = a S ( a ) − b F ( b ) .
This concludes the proof. □
We remark that the opposite is not true, in general. Indeed, not only is J ( b , a ) J(b,a) J ( b , a ) defined on points that are infeasible in Program (3), but the optimum of J J J (specifically, J ∗ ⋅ T J^*\cdot T J ∗ ⋅ T ) may be strictly larger than OPT. Specifically, consider the following instance, defined for some small ε > 0 \varepsilon>0 ε > 0 :
F ( b ) : = { 0 b < ε 1 / 3 ε ≤ b < 1 − ε 1 1 − ε ≤ b S ( a ) : = { 1 a ≤ ε 2 / 3 ε < a ≤ 1 − ε 0 1 − ε < a F(b):=
\begin{cases}
0 & b<\varepsilon\\
1/3 & \varepsilon\leq b<1-\varepsilon\\
1 & 1-\varepsilon\leq b
\end{cases}
\qquad
S(a):=
\begin{cases}
1 & a\leq\varepsilon\\
2/3 & \varepsilon<a\leq1-\varepsilon\\
0 & 1-\varepsilon<a
\end{cases} F ( b ) := ⎩ ⎨ ⎧ 0 1/3 1 b < ε ε ≤ b < 1 − ε 1 − ε ≤ b S ( a ) := ⎩ ⎨ ⎧ 1 2/3 0 a ≤ ε ε < a ≤ 1 − ε 1 − ε < a
In such a case, every feasible solution to Program (3) attains an objective value of zero. On the contrary, it holds:
J ∗ : = sup b , a ∈ [ 0 , 1 ] 2 J ( b , a ) ≥ J ( 2 ε , 1 − ε ) = 1 − 3 ε 3 ≈ 1 / 3. J^*:=\sup_{b,a\in[0,1]^2}J(b,a)\geq J(2\varepsilon,1-\varepsilon)=\frac{1-3\varepsilon}{3}\approx1/3. J ∗ := b , a ∈ [ 0 , 1 ] 2 sup J ( b , a ) ≥ J ( 2 ε , 1 − ε ) = 3 1 − 3 ε ≈ 1/3.
This shows that the optimal value J ∗ J^* J ∗ can outperform the one of Program (3) (divided by T T T ) of a positive constant. Therefore, if an algorithm enjoys low regret compared to J ∗ J^* J ∗ , the same regret guarantees hold a fortiori with respect to OPT.
The surrogate objective J J J offers several advantages. First, it is well defined for every pair ( b , a ) (b,a) ( b , a ) . More importantly, it satisfies a useful smoothness-like property close to the maximum, independently of any smoothness of F F F and S S S . This is shown in the following proposition.
Proposition 4.3. Let N ∈ N > 0 N \in\mathbb{N}_{>0} N ∈ N > 0 and G N G_N G N be the uniform 1 / N 1/N 1/ N -grid on [ 0 , 1 ] [0,1] [ 0 , 1 ] , namely:
G N : = { n / N : n = 0 , … , N } . G_N := \{n/N : n = 0,\ldots,N\}. G N := { n / N : n = 0 , … , N } . Then, it holds:
max b , a ∈ G N 2 J ( b , a ) ≥ sup b , a ∈ [ 0 , 1 ] 2 J ( b , a ) − 2 / N . \max_{b,a\in G_N^2} J(b,a) \ge\sup_{b,a\in[0,1]^2} J(b,a) - 2/N. b , a ∈ G N 2 max J ( b , a ) ≥ b , a ∈ [ 0 , 1 ] 2 sup J ( b , a ) − 2/ N . where G N 2 : = G N × G N G_N^2 := G_N \times G_N G N 2 := G N × G N .
Proof. Fix ε > 0 \varepsilon> 0 ε > 0 . By definition of supremum, there is ( b 0 , a 0 ) ∈ [ 0 , 1 ] 2 (b_0,a_0) \in[0,1]^2 ( b 0 , a 0 ) ∈ [ 0 , 1 ] 2 such that:
J ( b 0 , a 0 ) ≥ sup b , a ∈ [ 0 , 1 ] 2 J ( b , a ) − ε . J(b_0,a_0) \ge\sup_{b,a\in[0,1]^2} J(b,a) - \varepsilon. J ( b 0 , a 0 ) ≥ b , a ∈ [ 0 , 1 ] 2 sup J ( b , a ) − ε . By definition of the grid, there is ( b 0 ′ , a 0 ′ ) ∈ G N 2 (b'_0,a'_0) \in G_N^2 ( b 0 ′ , a 0 ′ ) ∈ G N 2 such that a 0 − N − 1 ≤ a 0 ′ ≤ a 0 a_0-N^{-1} \le a'_0 \le a_0 a 0 − N − 1 ≤ a 0 ′ ≤ a 0 and b 0 ≤ b 0 ′ ≤ b 0 + N − 1 b_0 \le b'_0 \le b_0+N^{-1} b 0 ≤ b 0 ′ ≤ b 0 + N − 1 . Therefore, it holds:
J ( b 0 ′ , a 0 ′ ) = ( a 0 ′ − b 0 ′ ) min { F ( b 0 ′ ) , S ( a 0 ′ ) } ≥ ( a 0 − b 0 − 2 N − 1 ) min { F ( b 0 ′ ) , S ( a 0 ′ ) } ≥ ( a 0 − b 0 − 2 N − 1 ) min { F ( b 0 ) , S ( a 0 ) } ≥ ( a 0 − b 0 ) min { F ( b 0 ) , S ( a 0 ) } − 2 N − 1 . \begin{aligned}
J(b'_0,a'_0) &= (a'_0-b'_0)\min\{F(b'_0),S(a'_0)\} \\
&\ge(a_0-b_0-2N^{-1})\min\{F(b'_0),S(a'_0)\} \\
&\ge(a_0-b_0-2N^{-1})\min\{F(b_0),S(a_0)\} \\
&\ge(a_0-b_0)\min\{F(b_0),S(a_0)\}-2N^{-1}.
\end{aligned} J ( b 0 ′ , a 0 ′ ) = ( a 0 ′ − b 0 ′ ) min { F ( b 0 ′ ) , S ( a 0 ′ )} ≥ ( a 0 − b 0 − 2 N − 1 ) min { F ( b 0 ′ ) , S ( a 0 ′ )} ≥ ( a 0 − b 0 − 2 N − 1 ) min { F ( b 0 ) , S ( a 0 )} ≥ ( a 0 − b 0 ) min { F ( b 0 ) , S ( a 0 )} − 2 N − 1 . The second inequality is the crucial step of the former derivation. This follows from the fact that F F F is non-decreasing, while S S S is non-increasing. By definition of b 0 b_0 b 0 , a 0 a_0 a 0 , we have shown that:
max b , a ∈ G N 2 J ( b , a ) ≥ sup b , a ∈ [ 0 , 1 ] 2 J ( b , a ) − ε − 2 / N . \max_{b,a\in G_N^2} J(b,a) \ge\sup_{b,a\in[0,1]^2} J(b,a)-\varepsilon-2/N. b , a ∈ G N 2 max J ( b , a ) ≥ b , a ∈ [ 0 , 1 ] 2 sup J ( b , a ) − ε − 2/ N . The proof is concluded letting ε → 0 \varepsilon\to0 ε → 0 .
In Figure 2 , we provide a graphical representation of the proposition.
Figure 2. Illustration of the discretization argument in Proposition 4.3. The point ( b 0 , a 0 ) (b_0,a_0) ( b 0 , a 0 ) is an optimizer (or an ϵ \epsilon ϵ -optimizer) of J J J over [ 0 , 1 ] 2 [0,1]^2 [ 0 , 1 ] 2 , while ( b 0 ′ , a 0 ′ ) ∈ G N 2 (b'_0,a'_0) \in\mathcal{G}^2_N ( b 0 ′ , a 0 ′ ) ∈ G N 2 is the grid point selected in the proof, with b 0 ≤ b 0 ′ ≤ 1 / N + b 0 b_0 \le b'_0 \le1/N+b_0 b 0 ≤ b 0 ′ ≤ 1/ N + b 0 and a 0 − 1 / N ≤ a 0 ′ ≤ a 0 a_0-1/N \le a'_0 \le a_0 a 0 − 1/ N ≤ a 0 ′ ≤ a 0 .
For notational convenience, we define the (virtual) surrogate optimal solution over an arbitrary grid as follows. Notice that, at this stage, we keep the definition as general as possible. The actual grid employed by our algorithms will instead depend on the particular setting under consideration and will be specified once needed.
Definition 4.4 (Virtual optimal bid-ask pair). Let B ∘ ⊂ [ 0 , 1 ] \mathcal{B}^{\circ} \subset[0,1] B ∘ ⊂ [ 0 , 1 ] , A ∘ ⊂ [ 0 , 1 ] \mathcal{A}^{\circ} \subset[0,1] A ∘ ⊂ [ 0 , 1 ] be finite subsets of the bid space and the ask space, respectively. We define the virtual optimal solution on the grid as:
( b ∘ , a ∘ ) ∈ argmax b ∈ B ∘ , a ∈ A ∘ J ( b , a ) . (7) (b^{\circ},a^{\circ}) \in\underset{b\in\mathcal{B}^{\circ},\,a\in\mathcal{A}^{\circ}}{\operatorname{argmax}} J(b,a). \tag*{(7)} ( b ∘ , a ∘ ) ∈ b ∈ B ∘ , a ∈ A ∘ argmax J ( b , a ) . (7)
If J J J admits multiple optimal solutions, the pair ( b ∘ , a ∘ ) (b^{\circ},a^{\circ}) ( b ∘ , a ∘ ) need not be unique. All of our results will hold regardless of how ties are broken. Similarly, we define the following notion of virtual regret.
Definition 4.5 (Virtual regret). The virtual regret is defined as:
R T ∘ : = T ⋅ J ( b ∘ , a ∘ ) − ∑ t = 1 T [ A t ⋅ I ( V t b u y ≥ A t ) − B t ⋅ I ( V t s e l l ≤ B t ) ] . R_T^{\circ} := T \cdot J(b^{\circ},a^{\circ})-\sum_{t=1}^{T}\left[A_t\cdot\mathbb{I}(V_t^{\mathrm{buy}}\ge A_t)-B_t\cdot\mathbb{I}(V_t^{\mathrm{sell}}\le B_t)\right]. R T ∘ := T ⋅ J ( b ∘ , a ∘ ) − t = 1 ∑ T [ A t ⋅ I ( V t buy ≥ A t ) − B t ⋅ I ( V t sell ≤ B t ) ] .
The virtual regret is defined analogously to the surrogate regret in Equation (5) , with only one difference: it is evaluated with respect to b ∘ b^{\circ} b ∘ and a ∘ a^{\circ} a ∘ , which belong to B ∘ \mathcal{B}^{\circ} B ∘ and A ∘ \mathcal{A}^{\circ} A ∘ , rather than with respect to J ∗ J^* J ∗ .
To conclude, we summarize the main insights obtained so far. As already discussed, the structure of Program (3) cannot be directly exploited to derive meaningful discretizations, since we do not impose any assumption on the shape of the valuation distributions of buyers and sellers. For this reason, we shift our focus to the surrogate objective function introduced in Definition 3.2 . In this section, we have established two fundamental properties of this surrogate objective: i i i ) it is well-defined for every bid-ask pair and satisfies T J ∗ ≥ OPT T J^* \ge\operatorname{OPT} T J ∗ ≥ OPT ; i i ii ii it allows for meaningful discretizations of the decision space, as shown in Proposition 4.3. Both properties will play a crucial role in the analysis developed in the following sections.
From this section onward, we will focus on bounding R T J R_T^J R T J , since this directly yields a bound on R T R_T R T . Specifically, our strategy will be to first bound the virtual regret R T ∘ R_T^{\circ} R T ∘ of our algorithms, and then convert this into a bound on the surrogate regret R T J R_T^J R T J using the results of this section.
Two-Bit Feedback
In this section, we focus on the case the market maker receives two-bit feedback. The results of this section are provided in the following order:
In § 8.1 , we describe our algorithm for the 2-bit feedback case and we provide some related preliminary results. Then, we study the associated computational complexity.
In § 8.3 , we provide the theoretical guarantees attained by our algorithm in terms of
Algorithm 1 Two-Bit Market Maker
Require: $T \in \mathbb{N}_{>0}$, $\delta \in (0,1)$
1: $\ell \leftarrow 0$
2: Set $\mathcal{B}_0 \leftarrow \mathcal{B}^{\circ}$
3: Set $\mathcal{A}_0 \leftarrow \mathcal{A}^{\circ}$
4: $F^{\mathrm{up}}_0(b) \leftarrow 1$, $F^{\mathrm{low}}_0(b) \leftarrow 0$, for all $b \in \mathcal{B}_0$ and $S^{\mathrm{up}}_0(a) \leftarrow 1$, and $S^{\mathrm{low}}_0(a) \leftarrow 0$ for all $a \in \mathcal{A}_0$
5: Compute $C_0$ as in {xref}`Equation (9)`
6: while Total number of steps $\leq T$ do
7: for $b \in \mathcal{B}_{\ell}$ do
8: $F^{\mathrm{up}}_{\ell+1}(b), F^{\mathrm{low}}_{\ell+1}(b) \leftarrow$ {xref}`Algorithm 2` $(b,\ell,F^{\mathrm{up}}_{\ell},F^{\mathrm{low}}_{\ell},S^{\mathrm{up}}_{\ell},S^{\mathrm{low}}_{\ell})$
9: end for
10: $\mathcal{A}_{\ell+1} \leftarrow \mathcal{A}_{\ell}$
11: for $a \in \mathcal{A}_{\ell}$ do
12: $S^{\mathrm{up}}_{\ell+1}(a), S^{\mathrm{low}}_{\ell+1}(a) \leftarrow$ {xref}`Algorithm 3` $(a,\ell,F^{\mathrm{up}}_{\ell},F^{\mathrm{low}}_{\ell},S^{\mathrm{up}}_{\ell},S^{\mathrm{low}}_{\ell})$
13: end for
14: Compute all $C_{\ell+1}$ as in {xref}`Equation (9)`, using the new bounds on $\mathcal{B}_{\ell} \times \mathcal{A}_{\ell}$
15: $\mathcal{B}_{\ell+1} \leftarrow \{b \in \mathcal{B}_{\ell}: C_{\ell+1}(b) \neq \emptyset\}$
16: $\mathcal{A}_{\ell+1} \leftarrow \{a \in \mathcal{A}_{\ell}: C_{\ell+1}(a) \neq \emptyset\}$
17: $\ell \leftarrow \ell + 1$
18: end while
surrogate regret and per-round inventory constraints. We first define the good event associated to the performance of our algorithm and the associated results. Then, we provide the final regret and per-round inventory bounds.
Our Algorithm
In this section, we describe our algorithm for the two-bit feedback case. Specifically, the pseudocode of our algorithm is provided in Algorithm 1.
Algorithm 1 works on discretized subsets of the bid and ask spaces, denoted by B ∘ ⊂ [ 0 , 1 ] \mathcal{B}^{\circ} \subset[0,1] B ∘ ⊂ [ 0 , 1 ] and A ∘ ⊂ [ 0 , 1 ] \mathcal{A}^{\circ} \subset[0,1] A ∘ ⊂ [ 0 , 1 ] , respectively, which are defined as:
B ∘ : = { n ⌊ T 1 / 3 ⌋ : n = 0 , 1 , … , ⌊ T 1 / 3 ⌋ − 1 } , A ∘ : = { n ⌊ T 1 / 3 ⌋ : n = 1 , 2 , … , ⌊ T 1 / 3 ⌋ } . \mathcal{B}^{\circ} := \left\{ \frac{n}{\lfloor T^{1/3} \rfloor} : n = 0,1,\ldots,\left\lfloor T^{1/3} \right\rfloor- 1 \right\}, \qquad
\mathcal{A}^{\circ} := \left\{ \frac{n}{\lfloor T^{1/3} \rfloor} : n = 1,2,\ldots,\left\lfloor T^{1/3} \right\rfloor\right\}. B ∘ := { ⌊ T 1/3 ⌋ n : n = 0 , 1 , … , ⌊ T 1/3 ⌋ − 1 } , A ∘ := { ⌊ T 1/3 ⌋ n : n = 1 , 2 , … , ⌊ T 1/3 ⌋ } .
Both sets have cardinality exactly ⌊ T 1 / 3 ⌋ \lfloor T^{1/3} \rfloor ⌊ T 1/3 ⌋ . Thus, Algorithm 1 follows a phased elimination strategy: it maintains a set of active bid-ask pairs and, at the end of each phase, eliminates some of them to improve the performance. In phase ℓ \ell ℓ , each active price is assigned a block of 2 min { ℓ , ⌊ log 2 ( T 2 / 3 ) ⌋ } 2^{\min\{\ell,\lfloor\log_2(T^{2/3}) \rfloor\}} 2 m i n { ℓ , ⌊ l o g 2 ( T 2/3 )⌋} rounds, and the confidence radius is:
ψ ℓ : = log ( 4 T / δ ) 2 min { ℓ , ⌊ log 2 ( T 2 / 3 ) ⌋ } . \psi_{\ell} := \sqrt{\frac{\log(4T/\delta)}{2^{\min\{\ell,\lfloor\log_2(T^{2/3}) \rfloor\}}}}. ψ ℓ := 2 m i n { ℓ , ⌊ l o g 2 ( T 2/3 )⌋} log ( 4 T / δ ) .
The block length doubles across phases until it reaches 2 ⌊ log 2 ( T 2 / 3 ) ⌋ 2^{\lfloor\log_2(T^{2/3}) \rfloor} 2 ⌊ l o g 2 ( T 2/3 )⌋ , and then remains fixed. The phase index keeps increasing, and estimation and elimination continue in every phase. Limiting the block length controls the inventory changes within a block, as explained below.
For each phase ℓ \ell ℓ , let:
B ℓ ⊆ B ∘ , A ℓ ⊆ A ∘ B_{\ell} \subseteq B^{\circ}, \qquad A_{\ell} \subseteq A^{\circ} B ℓ ⊆ B ∘ , A ℓ ⊆ A ∘
denote the sets of active bids and active asks after phase ℓ \ell ℓ , kept fixed throughout phase ℓ + 1 \ell+1 ℓ + 1 .
Algorithm 1 employs Algorithms 2–3 as subroutines to compute, for each phase ℓ \ell ℓ and each b ∈ B ℓ − 1 b \in B_{\ell-1} b ∈ B ℓ − 1 , a ∈ A ℓ − 1 a \in A_{\ell-1} a ∈ A ℓ − 1 , estimators of the cumulative distribution function F F F and the survival function S S S , denoted by F ^ ℓ \widehat{F}_{\ell} F ℓ and S ^ ℓ \widehat{S}_{\ell} S ℓ , respectively. In addition, the subroutines compute confidence bounds for these quantities, namely F ℓ u p ( b ) F_{\ell}^{\mathrm{up}}(b) F ℓ up ( b ) , F ℓ l o w ( b ) F_{\ell}^{\mathrm{low}}(b) F ℓ low ( b ) , S ℓ s u p ( a ) S_{\ell}^{\mathrm{sup}}(a) S ℓ sup ( a ) , and S ℓ l o w ( a ) S_{\ell}^{\mathrm{low}}(a) S ℓ low ( a ) . Given that, for every pair b ∈ B ℓ b \in B_{\ell} b ∈ B ℓ and a ∈ A ℓ a \in A_{\ell} a ∈ A ℓ , it is possible to define pessimistic and optimistic surrogate function estimates as:
J ℓ l o w ( b , a ) = ( a − b ) min { F ℓ l o w ( b ) , S ℓ l o w ( a ) } , J ℓ u p ( b , a ) = ( a − b ) min { F ℓ u p ( b ) , S ℓ s u p ( a ) } . (8) J_{\ell}^{\mathrm{low}}(b,a)=(a-b)\min\{F_{\ell}^{\mathrm{low}}(b),S_{\ell}^{\mathrm{low}}(a)\}, \qquad J_{\ell}^{\mathrm{up}}(b,a)=(a-b)\min\{F_{\ell}^{\mathrm{up}}(b),S_{\ell}^{\mathrm{sup}}(a)\}. \tag*{(8)} J ℓ low ( b , a ) = ( a − b ) min { F ℓ low ( b ) , S ℓ low ( a )} , J ℓ up ( b , a ) = ( a − b ) min { F ℓ up ( b ) , S ℓ sup ( a )} . (8)
Finally, letting J ℓ l o w ∗ : = max b ∈ B ℓ , a ∈ A ℓ J ℓ l o w ( b , a ) J_{\ell}^{\mathrm{low}*}:=\max_{b\in B_{\ell},\ a\in A_{\ell}}J_{\ell}^{\mathrm{low}}(b,a) J ℓ low ∗ := max b ∈ B ℓ , a ∈ A ℓ J ℓ low ( b , a ) , we define the compatibility sets :
C ℓ ( a ) = { b ∈ B ℓ : J ℓ u p ( b , a ) ≥ J ℓ l o w ∗ , a > b } , C ℓ ( b ) = { a ∈ A ℓ : J ℓ u p ( b , a ) ≥ J ℓ l o w ∗ , a > b } . (9) C_{\ell}(a)=\left\{b\in B_{\ell}:J_{\ell}^{\mathrm{up}}(b,a)\geq J_{\ell}^{\mathrm{low}*},\ a>b\right\}, \qquad C_{\ell}(b)=\left\{a\in A_{\ell}:J_{\ell}^{\mathrm{up}}(b,a)\geq J_{\ell}^{\mathrm{low}*},\ a>b\right\}. \tag*{(9)} C ℓ ( a ) = { b ∈ B ℓ : J ℓ up ( b , a ) ≥ J ℓ low ∗ , a > b } , C ℓ ( b ) = { a ∈ A ℓ : J ℓ up ( b , a ) ≥ J ℓ low ∗ , a > b } . (9)
The sets provided in Equation (9) are the ones that drive the elimination procedure. Specifically, whenever a bid (resp., an ask) corresponds to an empty C ℓ ( b ) C_{\ell}(b) C ℓ ( b ) (resp., C ℓ ( a ) C_{\ell}(a) C ℓ ( a ) ), it is eliminated from the set of active bid-ask pairs. At phase ℓ + 1 \ell+1 ℓ + 1 , all bid and ask estimates are first computed using the bounds and compatibility sets from phase ℓ \ell ℓ . The new bounds are then used to compute C ℓ + 1 C_{\ell+1} C ℓ + 1 and eliminate prices with no compatible partner. Every compatible pair keeps both its prices, so no further update of the compatibility sets is needed.5
Subroutines Description
In this section, we describe the subroutines employed by Algorithm 1, whose pseudocode is provided in Algorithms 2–3. They are used to estimate upper and lower bounds on the c.d.f. F F F and on the survival function S S S . For simplicity, we focus on Algorithm 2, namely the subroutine that estimates the c.d.f. F F F . The functioning of Algorithm 3 is entirely analogous.
Specifically, Algorithm 2 is employed at every phase ℓ + 1 \ell+1 ℓ + 1 to refine the confidence interval on the value of the c.d.f. at a fixed bid b b b , starting from the estimates available at phase ℓ \ell ℓ . First, the algorithm defines the confidence radius
ψ ℓ + 1 = log ( 4 T / δ ) 2 min { ℓ + 1 , ⌊ log 2 ( T 2 / 3 ) ⌋ } , \psi_{\ell+1}=\sqrt{\frac{\log(4T/\delta)}{2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}}}}, ψ ℓ + 1 = 2 m i n { ℓ + 1 , ⌊ l o g 2 ( T 2/3 )⌋} log ( 4 T / δ ) ,
which is the accuracy at which the algorithm aims to estimate F ( b ) F(b) F ( b ) during the current phase.
The algorithm then chooses an associated ask defined as:
a ′ ← argmax { S ℓ s u p ( a ) : a ∈ C ℓ ( b ) } . a' \leftarrow\operatorname*{argmax}\{S_{\ell}^{\mathrm{sup}}(a):a\in C_{\ell}(b)\}. a ′ ← argmax { S ℓ sup ( a ) : a ∈ C ℓ ( b )} .
The reason for this choice is that the ask is not the quantity to be estimated, but it determines how informative the pulled pair is. Among the asks compatible with b b b , the algorithm selects the one with largest upper confidence bound on the survival function, since this is the one that can still provide the largest amount of information. Once a ′ a' a ′ is fixed, the algorithm sets:
u ← min { F ℓ u p ( b ) , S ℓ s u p ( a ′ ) } + ψ ℓ + 1 , u\leftarrow\min\{F_{\ell}^{\mathrm{up}}(b),S_{\ell}^{\mathrm{sup}}(a')\}+\psi_{\ell+1}, u ← min { F ℓ up ( b ) , S ℓ sup ( a ′ )} + ψ ℓ + 1 ,
which should be interpreted as the target scale of the estimation problem in the current phase: it is an upper estimate, up to the confidence radius, of the rate at which informative observations can
Algorithm 2 Single-action estimator - Bid
Require: Bid $b$ to estimate, current phase $\ell+1$, all the estimators computed at phase $\ell$
1: Set $\psi_{\ell+1} \leftarrow \sqrt{\frac{\log(4T/\delta)}{2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}}}}$
2: Set $a' \leftarrow \arg\max\{S^{\mathrm{up}}_\ell(a),a\in C_\ell(b)\}$
3: Set $u \leftarrow \min\{F^{\mathrm{up}}_\ell(b),S^{\mathrm{up}}_\ell(a')\}+\psi_{\ell+1}$
4: $X_0\leftarrow 0$
5: $Y_0\leftarrow 0$
6: $B\leftarrow b$
7: $A\leftarrow a'$
8: for $t=1,\ldots,2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}}}$ do
9: Select $(B,A)$
10: Update $X_t=X_{t-1}+\mathbb{I}(V_t^{\mathrm{sell}}\le B)$
11: Update $Y_t=Y_{t-1}+\mathbb{I}(V_t^{\mathrm{buy}}\ge A)$
12: if $X_t\ge 2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}}u$ then ▷ Halting condition I
13: $B\leftarrow 0$
14: $F^{\mathrm{up}}(b)\leftarrow 1$
15: $F^{\mathrm{low}}(b)\leftarrow\min\{F^{\mathrm{up}}_\ell(b),S^{\mathrm{up}}_\ell(a')\}$
16: else
17: $\widehat{F}_{\ell+1}(b)\leftarrow\frac{X_t}{t}$
18: $F^{\mathrm{up}}(b)\leftarrow\widehat{F}_{\ell+1}(b)+\psi_{\ell+1}$
19: $F^{\mathrm{low}}(b)\leftarrow\widehat{F}_{\ell+1}(b)-\psi_{\ell+1}$
20: end if
21: if $Y_t\ge 2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}}u$ then ▷ Halting condition II
22: $A\leftarrow 1$
23: end if
24: end for
25: Return $\min\{F^{\mathrm{up}}(b),F^{\mathrm{up}}_\ell(b)\},\max\{F^{\mathrm{low}}(b),F^{\mathrm{low}}_\ell(b)\}$
collected from the pair ( b , a ′ ) (b,a') ( b , a ′ ) .
The algorithm is initialized with ( B , A ) = ( b , a ′ ) (B,A)=(b,a') ( B , A ) = ( b , a ′ ) and with counters X 0 = Y 0 = 0 X_0=Y_0=0 X 0 = Y 0 = 0 . It then selects ( B , A ) (B,A) ( B , A ) for 2 min { ℓ + 1 , ⌊ log 2 ( T 2 / 3 ) ⌋ } 2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}} 2 m i n { ℓ + 1 , ⌊ l o g 2 ( T 2/3 )⌋} rounds. At round t t t , the counter X t X_t X t records how many times the event { V t s e l l ≤ B } \{V_t^{\mathrm{sell}}\le B\} { V t sell ≤ B } has been observed, while Y t Y_t Y t records how many times the event { V t b u y ≥ A } \{V_t^{\mathrm{buy}}\ge A\} { V t buy ≥ A } has been observed. As long as the bid has not been halted, the empirical frequency F ^ ℓ + 1 ( b ) = X t / t \widehat{F}_{\ell+1}(b)=X_t/t F ℓ + 1 ( b ) = X t / t is used as estimate of F ( b ) F(b) F ( b ) , and the confidence bounds are updated as:
F u p ( b ) = F ^ ℓ + 1 ( b ) + ψ ℓ + 1 , F l o w ( b ) = F ^ ℓ + 1 ( b ) − ψ ℓ + 1 . F^{\mathrm{up}}(b)=\widehat{F}_{\ell+1}(b)+\psi_{\ell+1}, \qquad F^{\mathrm{low}}(b)=\widehat{F}_{\ell+1}(b)-\psi_{\ell+1}. F up ( b ) = F ℓ + 1 ( b ) + ψ ℓ + 1 , F low ( b ) = F ℓ + 1 ( b ) − ψ ℓ + 1 .
Thus, while the pair remains informative, the algorithm simply uses the empirical frequency together with the phase-dependent confidence radius. The role of the two halting conditions is to detect when one of the two actions has already produced as much information as can be usefully exploited at the current scale u u u . If X t ≥ 2 min { ℓ + 1 , ⌊ log 2 ( T 2 / 3 ) ⌋ } u X_t\ge2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}}u X t ≥ 2 m i n { ℓ + 1 , ⌊ l o g 2 ( T 2/3 )⌋} u , then the bid is deactivated by setting B = 0 B=0 B = 0 . This prevents further purchases once the counter has reached its target. In this case, the algorithm stops updating the estimate through the empirical mean, sets the upper bound to the trivial value 1 1 1 , and keeps as lower bound the quantity min { F ℓ u p ( b ) , S ℓ u p ( a ′ ) } \min\{F^{\mathrm{up}}_\ell(b),S^{\mathrm{up}}_\ell(a')\} min { F ℓ up ( b ) , S ℓ up ( a ′ )} , which is the natural conservative value available from the previous phase. Similarly, if Y t ≥ 2 min { ℓ + 1 , ⌊ log 2 ( T 2 / 3 ) ⌋ } u Y_t\ge2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}}u Y t ≥ 2 m i n { ℓ + 1 , ⌊ l o g 2 ( T 2/3 )⌋} u , the ask is deactivated by
Algorithm 3 Single-action estimator - Ask
Require: Ask a a a to estimate, current phase ℓ + 1 \ell+1 ℓ + 1 , all the estimators computed at phase ℓ \ell ℓ
Set ψ ℓ + 1 ← log ( 4 T / δ ) 2 min { ℓ + 1 , ⌊ log 2 ( T 2 / 3 ) ⌋ } \psi_{\ell+1} \leftarrow\sqrt{\frac{\log(4T/\delta)}{2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}}}} ψ ℓ + 1 ← 2 m i n { ℓ + 1 , ⌊ l o g 2 ( T 2/3 )⌋} l o g ( 4 T / δ )
Set b ′ ← arg max { F ℓ u p ( b ) , b ∈ C ℓ ( a ) } b' \leftarrow\arg\max\{F_{\ell}^{\mathrm{up}}(b), b \in C_{\ell}(a)\} b ′ ← arg max { F ℓ up ( b ) , b ∈ C ℓ ( a )}
Set u ← min { F ℓ u p ( b ′ ) , S ℓ u p ( a ) } + ψ ℓ + 1 u \leftarrow\min\{F_{\ell}^{\mathrm{up}}(b'), S_{\ell}^{\mathrm{up}}(a)\}+\psi_{\ell+1} u ← min { F ℓ up ( b ′ ) , S ℓ up ( a )} + ψ ℓ + 1
X 0 ← 0 X_0 \leftarrow0 X 0 ← 0
Y 0 ← 0 Y_0 \leftarrow0 Y 0 ← 0
B ← b ′ B \leftarrow b' B ← b ′
A ← a A \leftarrow a A ← a
for t = 1 , … , 2 min { ℓ + 1 , ⌊ log 2 ( T 2 / 3 ) ⌋ } t=1,\ldots,2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}} t = 1 , … , 2 m i n { ℓ + 1 , ⌊ l o g 2 ( T 2/3 )⌋} do
Select ( B , A ) (B,A) ( B , A )
Update X t = X t − 1 + I ( V t s e l l ≤ B ) X_t=X_{t-1}+\mathbb{I}(V_t^{\mathrm{sell}}\le B) X t = X t − 1 + I ( V t sell ≤ B )
Update Y t = Y t − 1 + I ( V t b u y ≥ A ) Y_t=Y_{t-1}+\mathbb{I}(V_t^{\mathrm{buy}}\ge A) Y t = Y t − 1 + I ( V t buy ≥ A )
if Y t ≥ 2 min { ℓ + 1 , ⌊ log 2 ( T 2 / 3 ) ⌋ } u Y_t\ge2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}}u Y t ≥ 2 m i n { ℓ + 1 , ⌊ l o g 2 ( T 2/3 )⌋} u then ▷ Halting condition I
A ← 1 A\leftarrow1 A ← 1
S u p ( a ) ← 1 S^{\mathrm{up}}(a)\leftarrow1 S up ( a ) ← 1
S l o w ( a ) ← min { F ℓ u p ( b ′ ) , S ℓ u p ( a ) } S^{\mathrm{low}}(a)\leftarrow\min\{F_{\ell}^{\mathrm{up}}(b'),S_{\ell}^{\mathrm{up}}(a)\} S low ( a ) ← min { F ℓ up ( b ′ ) , S ℓ up ( a )}
else
S ^ ℓ + 1 ( a ) ← Y t t \widehat{S}_{\ell+1}(a)\leftarrow\frac{Y_t}{t} S ℓ + 1 ( a ) ← t Y t
S u p ( a ) ← S ^ ℓ + 1 ( a ) + ψ ℓ + 1 S^{\mathrm{up}}(a)\leftarrow\widehat{S}_{\ell+1}(a)+\psi_{\ell+1} S up ( a ) ← S ℓ + 1 ( a ) + ψ ℓ + 1
S l o w ( a ) ← S ^ ℓ + 1 ( a ) − ψ ℓ + 1 S^{\mathrm{low}}(a)\leftarrow\widehat{S}_{\ell+1}(a)-\psi_{\ell+1} S low ( a ) ← S ℓ + 1 ( a ) − ψ ℓ + 1
end if
if X t ≥ 2 min { ℓ + 1 , ⌊ log 2 ( T 2 / 3 ) ⌋ } u X_t\ge2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}}u X t ≥ 2 m i n { ℓ + 1 , ⌊ l o g 2 ( T 2/3 )⌋} u then ▷ Halting condition II
B ← 0 B\leftarrow0 B ← 0
end if
end for
Return min { S u p ( a ) , S ℓ u p ( a ) } , max { S l o w ( a ) , S ℓ l o w ( a ) } \min\{S^{\mathrm{up}}(a),S_{\ell}^{\mathrm{up}}(a)\},\max\{S^{\mathrm{low}}(a),S_{\ell}^{\mathrm{low}}(a)\} min { S up ( a ) , S ℓ up ( a )} , max { S low ( a ) , S ℓ low ( a )}
setting A = 1 A=1 A = 1 . This prevents further sales once the buyer-side counter has reached the same target. Finally, the subroutine returns:
min { F u p ( b ) , F ℓ u p ( b ) } , max { F l o w ( b ) , F ℓ l o w ( b ) } . \min\{F^{\mathrm{up}}(b),F_{\ell}^{\mathrm{up}}(b)\},\qquad\max\{F^{\mathrm{low}}(b),F_{\ell}^{\mathrm{low}}(b)\}. min { F up ( b ) , F ℓ up ( b )} , max { F low ( b ) , F ℓ low ( b )} .
That is, the newly computed bounds are intersected with those inherited from phase ℓ \ell ℓ . This guarantees that the confidence interval can only improve from one phase to the next, and never becomes looser.
The block length is limited to control inventory also between block endpoints. The halting rules bound the net inventory change at the end of a block, but purchases and sales may accumulate at different rates within it. Since each round changes inventory by at most one, limiting the block length to 2 ⌊ log 2 ( T 2 / 3 ) ⌋ ≤ T 2 / 3 2^{\lfloor\log_2(T^{2/3})\rfloor}\le T^{2/3} 2 ⌊ l o g 2 ( T 2/3 )⌋ ≤ T 2/3 bounds any such excursion by T 2 / 3 T^{2/3} T 2/3 . The same subroutines continue to update the estimates in subsequent phases.
To conclude the section, we notice that, by Equation (9) and the design of Algorithm 1, the following theorem follows immediately.
Theorem 5.1. At any t ∈ [ T ] t\in[T] t ∈ [ T ] , Algorithm 1 selects ( B t , A t ) (B_t,A_t) ( B t , A t ) such that B t < A t B_t<A_t B t < A t .
Proof. At any time-step one has either B t = 0 B_t = 0 B t = 0 , A t = 1 A_t = 1 A t = 1 (in these cases the thesis follows automatically) or:
B t ∈ C ℓ ( A t ) ⊆ [ 0 , A t ) , B_t \in\mathcal{C}_\ell(A_t) \subseteq[0, A_t), B t ∈ C ℓ ( A t ) ⊆ [ 0 , A t ) ,
which implies B t < A t B_t < A_t B t < A t . This concludes the proof.
Computational Complexity
In this section, we provide the computational complexity of Algorithm 1.
In the following, we refer as γ t \gamma_t γ t to the per-round complexity of choosing B t , A t B_t, A_t B t , A t at each time-step t t t . Thus, our goal reduces to bound:
Γ : = max t = 1 , … , T γ t . \Gamma:= \max_{t=1,\ldots,T} \gamma_t. Γ := t = 1 , … , T max γ t .
While another common objective is the average total running time T − 1 ∑ t = 1 T γ t T^{-1}\sum_{t=1}^{T}\gamma_t T − 1 ∑ t = 1 T γ t , we prefer to quantify the performance with respect to Γ \Gamma Γ for the following reasons:
In real-life market making, the agent must react quickly to market changes at every time step, not only on average. In an environment where every microsecond matters, even a single spike in computation time may cause the agent to miss the best opportunities.
From a more technical point of view, the average time complexity can be artificially reduced by using the well-known doubling trick [13 ] . This method consists in repeating the same actions over batches of length 2 n 2^n 2 n . Γ \Gamma Γ is indeed a stronger metric since it does not allow to employ this rather artificial trick.
This is done by means of the following theorem.
Theorem 5.2. The (per-round) maximum computational complexity of Algorithm 1, including the calls to Algorithms 2–3, is bounded as:
Γ ≤ O ( ∣ B ∘ ∣ ∣ A ∘ ∣ ) . \Gamma\le O\left(\lvert\mathcal{B}^{\circ}\rvert\lvert\mathcal{A}^{\circ}\rvert\right). Γ ≤ O ( ∣ B ∘ ∣ ∣ A ∘ ∣ ) . In particular, under the discretization ∣ B ∘ ∣ = ∣ A ∘ ∣ = ⌊ T 1 / 3 ⌋ \lvert\mathcal{B}^{\circ}\rvert= \lvert\mathcal{A}^{\circ}\rvert= \lfloor T^{1/3}\rfloor ∣ B ∘ ∣ = ∣ A ∘ ∣ = ⌊ T 1/3 ⌋ , it holds Γ ≤ O ( T 2 / 3 ) \Gamma\le O(T^{2/3}) Γ ≤ O ( T 2/3 ) .
Proof. We inspect the pseudocode of Algorithms 1–3.
First, we observe that the initialization of Algorithm 1 requires setting B 0 = B ∘ , A 0 = A ∘ \mathcal{B}_0 = \mathcal{B}^{\circ}, \mathcal{A}_0 = \mathcal{A}^{\circ} B 0 = B ∘ , A 0 = A ∘ , and initializing the confidence bounds F 0 u p ( b ) , F 0 l o w ( b ) , S 0 u p ( a ) , S 0 l o w ( a ) F_0^{\mathrm{up}}(b), F_0^{\mathrm{low}}(b), S_0^{\mathrm{up}}(a), S_0^{\mathrm{low}}(a) F 0 up ( b ) , F 0 low ( b ) , S 0 up ( a ) , S 0 low ( a ) for all b ∈ B ∘ b \in\mathcal{B}^{\circ} b ∈ B ∘ and a ∈ A ∘ a \in\mathcal{A}^{\circ} a ∈ A ∘ . This requires at most linear time in the size of the discretization, namely O ( ∣ B ∘ ∣ + ∣ A ∘ ∣ ) O(\lvert\mathcal{B}^{\circ}\rvert+ \lvert\mathcal{A}^{\circ}\rvert) O (∣ B ∘ ∣ + ∣ A ∘ ∣) . Computing the initial compatibility sets costs O ( ∣ B ∘ ∣ ∣ A ∘ ∣ ) O(\lvert\mathcal{B}^{\circ}\rvert\lvert\mathcal{A}^{\circ}\rvert) O (∣ B ∘ ∣ ∣ A ∘ ∣) . Hence, the first round satisfies γ 1 ≤ O ( ∣ B ∘ ∣ ∣ A ∘ ∣ ) \gamma_1 \le O(\lvert\mathcal{B}^{\circ}\rvert\lvert\mathcal{A}^{\circ}\rvert) γ 1 ≤ O (∣ B ∘ ∣ ∣ A ∘ ∣) .
We now consider an arbitrary round t ≥ 2 t \ge2 t ≥ 2 . There are two possible cases.
Round t t t is an internal round of Algorithm 2 or Algorithm 3. In this case, the pair ( B , A ) (B,A) ( B , A ) has already been selected, and all quantities needed by the subroutine have already been computed. Therefore, during round t t t , the algorithm only:
selects the current pair ( B , A ) (B,A) ( B , A ) ,
updates the two counters X t X_t X t and Y t Y_t Y t ,
checks the two halting conditions,
possibly updates a constant number of variables.
All these operations take constant time. Hence, in this case, γ t ≤ O ( 1 ) \gamma_t \le O(1) γ t ≤ O ( 1 ) .
Round t t t is a boundary round, i.e., a round in which the Algorithm 1 starts or finalizes a call to one of the subroutines. Suppose first that Algorithm 1 is calling Algorithm 2 on some bid b ∈ B ℓ b \in\mathcal{B}_{\ell} b ∈ B ℓ . Before entering the loop of Algorithm 2, the algorithm has to compute:
a ′ ∈ argmax { S ℓ s u p ( a ) : a ∈ C ℓ ( b ) } . a' \in\operatorname*{argmax}\{S_{\ell}^{\mathrm{sup}}(a) : a \in\mathcal{C}_{\ell}(b)\}. a ′ ∈ argmax { S ℓ sup ( a ) : a ∈ C ℓ ( b )} .
In the worst case, and assuming that C ℓ ( b ) \mathcal{C}_{\ell}(b) C ℓ ( b ) has already been computed, this requires scanning all the asks in the active set A ℓ \mathcal{A}_{\ell} A ℓ , and therefore costs at most O ( ∣ A ℓ ∣ ) O(|\mathcal{A}_{\ell}|) O ( ∣ A ℓ ∣ ) . The computation of u = min { F ℓ u p ( b ) , S ℓ s u p ( a ′ ) } + ψ ℓ + 1 u = \min\{F_{\ell}^{\mathrm{up}}(b), S_{\ell}^{\mathrm{sup}}(a')\} + \psi_{\ell+1} u = min { F ℓ up ( b ) , S ℓ sup ( a ′ )} + ψ ℓ + 1 is then constant-time. After all calls in the phase are completed, the metaprocedure computes the new compatibility sets and eliminates prices with no compatible partner. This requires a constant number of scans of the active bid-ask pairs, and therefore costs at most O ( ∣ B ℓ ∣ ∣ A ℓ ∣ ) O(|\mathcal{B}_{\ell}||\mathcal{A}_{\ell}|) O ( ∣ B ℓ ∣∣ A ℓ ∣ ) . Thus, any round associated with the start or the completion of a bid subroutine call has complexity at most O ( ∣ B ℓ ∣ ∣ A ℓ ∣ ) O(|\mathcal{B}_{\ell}||\mathcal{A}_{\ell}|) O ( ∣ B ℓ ∣∣ A ℓ ∣ ) . The same argument applies symmetrically to Algorithm 3. Indeed, starting or finalizing a call to Algorithm 3 requires computing b ′ ∈ argmax { F ℓ u p ( b ) : b ∈ C ℓ ( a ) } b' \in\operatorname*{argmax}\{F_{\ell}^{\mathrm{up}}(b) : b \in\mathcal{C}_{\ell}(a)\} b ′ ∈ argmax { F ℓ up ( b ) : b ∈ C ℓ ( a )} or completing the phase, which in the worst case costs O ( ∣ B ℓ ∣ ∣ A ℓ ∣ ) O(|\mathcal{B}_{\ell}||\mathcal{A}_{\ell}|) O ( ∣ B ℓ ∣∣ A ℓ ∣ ) . Therefore, in every boundary round, γ t ≤ O ( ∣ B ℓ ∣ ∣ A ℓ ∣ ) \gamma_t \le O(|\mathcal{B}_{\ell}||\mathcal{A}_{\ell}|) γ t ≤ O ( ∣ B ℓ ∣∣ A ℓ ∣ ) . Finally, since the active sets only decrease across phases, for every ℓ \ell ℓ , ∣ B ℓ ∣ ≤ ∣ B ∘ ∣ |\mathcal{B}_{\ell}| \le|\mathcal{B}^{\circ}| ∣ B ℓ ∣ ≤ ∣ B ∘ ∣ , ∣ A ℓ ∣ ≤ ∣ A ∘ ∣ |\mathcal{A}_{\ell}| \le|\mathcal{A}^{\circ}| ∣ A ℓ ∣ ≤ ∣ A ∘ ∣ .
Combining the two cases above yields, for every t ∈ [ T ] t \in[T] t ∈ [ T ] , γ t ≤ O ( ∣ B ∘ ∣ ∣ A ∘ ∣ ) \gamma_t \le O(|\mathcal{B}^{\circ}||\mathcal{A}^{\circ}|) γ t ≤ O ( ∣ B ∘ ∣∣ A ∘ ∣ ) , which in turn implies Γ ≤ O ( ∣ B ∘ ∣ ∣ A ∘ ∣ ) \Gamma\le O(|\mathcal{B}^{\circ}||\mathcal{A}^{\circ}|) Γ ≤ O ( ∣ B ∘ ∣∣ A ∘ ∣ ) . Under the discretization used in this section, both sets have cardinality ⌊ T 1 / 3 ⌋ \lfloor T^{1/3}\rfloor ⌊ T 1/3 ⌋ . Hence, Γ ≤ O ( T 2 / 3 ) \Gamma\le O(T^{2/3}) Γ ≤ O ( T 2/3 ) , as claimed.
Theoretical Guarantees of Algorithm 1
In this section, we provide the theoretical guarantees attained by Algorithm 1 in terms of cumulative surrogate regret and per-round inventory.
The Good Event
In this section, we introduce the good event that will be used throughout the following theorems.
Definition 5.3 (Good event ). For ℓ = 0 , … , ⌊ log 2 ( T 2 / 3 ) ⌋ \ell= 0, \ldots, \lfloor\log_{2}(T^{2/3}) \rfloor ℓ = 0 , … , ⌊ log 2 ( T 2/3 )⌋ and t = 1 , … , T − 2 ℓ + 1 t = 1, \ldots, T - 2^{\ell} + 1 t = 1 , … , T − 2 ℓ + 1 , let ψ ℓ = log ( 4 T / δ ) / 2 ℓ \psi_{\ell} = \sqrt{\log(4T/\delta)/2^{\ell}} ψ ℓ = log ( 4 T / δ ) / 2 ℓ and let:
Δ F ( b , t , ℓ ) = ∣ F ( b ) − 2 − ℓ ∑ τ = t t + 2 ℓ − 1 I ( V τ s e l l ≤ b ) ∣ Δ S ( a , t , ℓ ) = ∣ S ( a ) − 2 − ℓ ∑ τ = t t + 2 ℓ − 1 I ( V τ b u y ≥ a ) ∣ . \Delta_{F}(b,t,\ell) = \left|F(b) - 2^{-\ell}\sum_{\tau=t}^{t+2^{\ell}-1}\mathbb{I}(V_{\tau}^{\mathrm{sell}} \le b)\right|
\qquad
\Delta_{S}(a,t,\ell) = \left|S(a) - 2^{-\ell}\sum_{\tau=t}^{t+2^{\ell}-1}\mathbb{I}(V_{\tau}^{\mathrm{buy}} \ge a)\right|. Δ F ( b , t , ℓ ) = F ( b ) − 2 − ℓ τ = t ∑ t + 2 ℓ − 1 I ( V τ sell ≤ b ) Δ S ( a , t , ℓ ) = S ( a ) − 2 − ℓ τ = t ∑ t + 2 ℓ − 1 I ( V τ buy ≥ a ) . The good event is defined as:
E g o o d : = ⋂ ℓ = 0 ⌊ log 2 ( T 2 / 3 ) ⌋ ⋂ t = 1 T − 2 ℓ + 1 [ ⋂ b ∈ B ∘ { Δ F ( b , t , ℓ ) < ψ ℓ } ∩ ⋂ a ∈ A ∘ { Δ S ( a , t , ℓ ) < ψ ℓ } ] . (10) \mathcal{E}_{\mathrm{good}} := \bigcap_{\ell=0}^{\lfloor\log_{2}(T^{2/3}) \rfloor}\bigcap_{t=1}^{T-2^{\ell}+1}
\left[\bigcap_{b\in\mathcal{B}^{\circ}}\{\Delta_{F}(b,t,\ell)<\psi_{\ell}\}\cap\bigcap_{a\in\mathcal{A}^{\circ}}\{\Delta_{S}(a,t,\ell)<\psi_{\ell}\}\right]. \tag*{(10)} E good := ℓ = 0 ⋂ ⌊ l o g 2 ( T 2/3 )⌋ t = 1 ⋂ T − 2 ℓ + 1 [ b ∈ B ∘ ⋂ { Δ F ( b , t , ℓ ) < ψ ℓ } ∩ a ∈ A ∘ ⋂ { Δ S ( a , t , ℓ ) < ψ ℓ } ] . (10)
Intuitively, the good event states that, for every bid–ask pair ( b , a ) (b,a) ( b , a ) , any contiguous block of length 2 ℓ 2^{\ell} 2 ℓ contained in the horizon yields an empirical mean of I ( V τ s e l l ≤ b ) \mathbb{I}(V_{\tau}^{\mathrm{sell}} \le b) I ( V τ sell ≤ b ) and I ( V τ b u y ≥ a ) \mathbb{I}(V_{\tau}^{\mathrm{buy}} \ge a) I ( V τ buy ≥ a ) whose discrepancy from the corresponding true quantities F ( b ) F(b) F ( b ) and S ( a ) S(a) S ( a ) is strictly less than ψ ℓ \psi_{\ell} ψ ℓ . Since all possible starting times are included, the event also covers every subsequent block of the capped length. The following proposition shows that this good event holds with high probability.
Proposition 5.4. Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and E g o o d \mathcal{E}_{\mathrm{good}} E good be the good event defined in (10) , it holds
P ( E g o o d ) ≥ 1 − δ . \mathbb{P}(\mathcal{E}_{\mathrm{good}}) \ge1-\delta. P ( E good ) ≥ 1 − δ .
Proposition 5.4 is a key ingredient of the analysis, since from this point on we will work under the assumption that the good event holds. Its proof is deferred to the appendix. We next show that, on this event, the upper and lower bounds returned by Algorithms 2–3 are always valid.
Proposition 5.5. On E g o o d \mathcal{E}_{\mathrm{good}} E good , at every completed phase ℓ \ell ℓ , the active prices satisfy:
F ℓ l o w ( b ) ≤ F ( b ) ≤ F ℓ u p ( b ) , S ℓ l o w ( a ) ≤ S ( a ) ≤ S ℓ u p ( a ) . F_{\ell}^{\mathrm{low}}(b) \le F(b) \le F_{\ell}^{\mathrm{up}}(b), \qquad S_{\ell}^{\mathrm{low}}(a) \le S(a) \le S_{\ell}^{\mathrm{up}}(a). F ℓ low ( b ) ≤ F ( b ) ≤ F ℓ up ( b ) , S ℓ low ( a ) ≤ S ( a ) ≤ S ℓ up ( a ) .
Proof. We focus on the bid case, as the ask case is entirely analogous. The proof proceeds by induction on ℓ \ell ℓ ; the initial intervals [ 0 , 1 ] [0,1] [ 0 , 1 ] are valid. Assuming that the claim holds at a completed phase ℓ \ell ℓ , we show that it also holds at phase ℓ + 1 \ell+1 ℓ + 1 . Write n = 2 min { ℓ + 1 , ⌊ log 2 ( T 2 / 3 ) ⌋ } n=2^{\min\{\ell+1,\lfloor\log_2(T^{2/3})\rfloor\}} n = 2 m i n { ℓ + 1 , ⌊ l o g 2 ( T 2/3 )⌋} for the block length.
In case that the halting condition at phase ℓ + 1 \ell+1 ℓ + 1 is not triggered at Line 12, the bid is pulled n n n times. Thus,
F l o w ( b ) = F ^ ℓ + 1 ( b ) − ψ ℓ + 1 ≤ F ( b ) ≤ F ^ ℓ + 1 ( b ) + ψ ℓ + 1 = F u p ( b ) F^{\mathrm{low}}(b)=\widehat{F}_{\ell+1}(b)-\psi_{\ell+1}\le F(b)\le\widehat{F}_{\ell+1}(b)+\psi_{\ell+1}=F^{\mathrm{up}}(b) F low ( b ) = F ℓ + 1 ( b ) − ψ ℓ + 1 ≤ F ( b ) ≤ F ℓ + 1 ( b ) + ψ ℓ + 1 = F up ( b )
holds by definition of E g o o d \mathcal{E}_{\mathrm{good}} E good . Since, by Line 25, it holds:
F ℓ + 1 u p ( b ) ← min { F u p ( b ) , F ℓ u p ( b ) } , F_{\ell+1}^{\mathrm{up}}(b)\leftarrow\min\{F^{\mathrm{up}}(b),F_{\ell}^{\mathrm{up}}(b)\}, F ℓ + 1 up ( b ) ← min { F up ( b ) , F ℓ up ( b )} ,
F ℓ + 1 l o w ( b ) ← max { F l o w ( b ) , F ℓ l o w ( b ) } , F_{\ell+1}^{\mathrm{low}}(b)\leftarrow\max\{F^{\mathrm{low}}(b),F_{\ell}^{\mathrm{low}}(b)\}, F ℓ + 1 low ( b ) ← max { F low ( b ) , F ℓ low ( b )} ,
the induction ensures that the lower and upper bounds are still valid at ℓ + 1 \ell+1 ℓ + 1 .
Consider the opposite case, that is, the halting condition is met. In this case, trivially,
F ( b ) ≤ 1 = F u p ( b ) . F(b)\le1=F^{\mathrm{up}}(b). F ( b ) ≤ 1 = F up ( b ) .
On the opposite side, numbering the completed block’s rounds from 1 1 1 to n n n and counting acceptances of the fixed bid b b b also after deactivation, the halting condition and the good event give:
F l o w ( b ) = min { F ℓ u p ( b ) , S ℓ u p ( a ′ ) } = u − ψ ℓ + 1 ≤ 1 n ∑ t = 1 n I ( V t s e l l ≤ b ) − ψ ℓ + 1 < F ( b ) . \begin{aligned}
F^{\mathrm{low}}(b)
&=\min\{F_{\ell}^{\mathrm{up}}(b),S_{\ell}^{\mathrm{up}}(a^\prime)\}\\
&=u-\psi_{\ell+1}\\
&\le\frac{1}{n}\sum_{t=1}^{n}\mathbb{I}(V_t^{\mathrm{sell}}\le b)-\psi_{\ell+1}\\
&<F(b).
\end{aligned} F low ( b ) = min { F ℓ up ( b ) , S ℓ up ( a ′ )} = u − ψ ℓ + 1 ≤ n 1 t = 1 ∑ n I ( V t sell ≤ b ) − ψ ℓ + 1 < F ( b ) .
Similarly to the previous case, noticing that:
F ℓ + 1 u p ( b ) ← min { F u p ( b ) , F ℓ u p ( b ) } F_{\ell+1}^{\mathrm{up}}(b)\leftarrow\min\{F^{\mathrm{up}}(b),F_{\ell}^{\mathrm{up}}(b)\} F ℓ + 1 up ( b ) ← min { F up ( b ) , F ℓ up ( b )}
F ℓ + 1 l o w ( b ) ← max { F l o w ( b ) , F ℓ l o w ( b ) } , F_{\ell+1}^{\mathrm{low}}(b)\leftarrow\max\{F^{\mathrm{low}}(b),F_{\ell}^{\mathrm{low}}(b)\}, F ℓ + 1 low ( b ) ← max { F low ( b ) , F ℓ low ( b )} ,
concludes the inductive step and the proof. □
We notice that the previous result easily implies that a grid-optimal pair ( b ∘ , a ∘ ) (b^\circ,a^\circ) ( b ∘ , a ∘ ) with b ∘ < a ∘ b^\circ<a^\circ b ∘ < a ∘ survives every completed phase. In particular, the compatibility sets employed by the algorithm are nonempty. We now provide two fundamental results concerning the monotonicity of the (optimistic and pessimistic) estimates of the surrogate objective function.
Proposition 5.6. Let b ∈ B ℓ b \in\mathcal{B}_{\ell} b ∈ B ℓ and a ∈ A ℓ a \in\mathcal{A}_{\ell} a ∈ A ℓ . Then, under the good event (10) , for every completed phase r < ℓ r < \ell r < ℓ , it holds:
J r l o w ( b , a ) ≤ J ℓ l o w ( b , a ) , J r u p ( b , a ) ≥ J ℓ u p ( b , a ) . J^{\mathrm{low}}_{r}(b,a) \leq J^{\mathrm{low}}_{\ell}(b,a), \qquad J^{\mathrm{up}}_{r}(b,a) \geq J^{\mathrm{up}}_{\ell}(b,a). J r low ( b , a ) ≤ J ℓ low ( b , a ) , J r up ( b , a ) ≥ J ℓ up ( b , a ) . Thus, J r l o w ∗ ≤ J ℓ l o w ∗ J^{\mathrm{low}*}_{r} \leq J^{\mathrm{low}*}_{\ell} J r low ∗ ≤ J ℓ low ∗ .
Proof. By Line 25 of Algorithm 2, it holds:
J r l o w ( b , a ) = ( a − b ) min { F r l o w ( b ) , S r l o w ( a ) } ≤ ( a − b ) min { F ℓ l o w ( b ) , S ℓ l o w ( a ) } = J ℓ l o w ( b , a ) . \begin{aligned}
J^{\mathrm{low}}_{r}(b,a) &= (a-b)\min\{F^{\mathrm{low}}_{r}(b),S^{\mathrm{low}}_{r}(a)\}\\
&\leq(a-b)\min\{F^{\mathrm{low}}_{\ell}(b),S^{\mathrm{low}}_{\ell}(a)\}\\
&= J^{\mathrm{low}}_{\ell}(b,a).
\end{aligned} J r low ( b , a ) = ( a − b ) min { F r low ( b ) , S r low ( a )} ≤ ( a − b ) min { F ℓ low ( b ) , S ℓ low ( a )} = J ℓ low ( b , a ) .
The second point on J r u p ( b , a ) J^{\mathrm{up}}_{r}(b,a) J r up ( b , a ) follows analogously.
Proposition 5.6 shows that the confidence interval associated with the surrogate objective becomes tighter across phases: lower bounds can only increase, while upper bounds can only decrease.
Proposition 5.7. Let b ∈ B ℓ b \in\mathcal{B}_{\ell} b ∈ B ℓ . Under the good event (10) , the following statements hold:
For every r ≤ ℓ r \leq\ell r ≤ ℓ , C ℓ ( b ) ⊆ C r ( b ) C_{\ell}(b) \subseteq C_{r}(b) C ℓ ( b ) ⊆ C r ( b ) ,
For every a ∈ C ℓ ( b ) a \in C_{\ell}(b) a ∈ C ℓ ( b ) , b ∈ C ℓ ( a ) b \in C_{\ell}(a) b ∈ C ℓ ( a ) .
Proof. By Proposition 5.6 , it holds:
C ℓ ( b ) = { a ∈ A ℓ : J ℓ u p ( b , a ) ≥ J ℓ l o w ∗ } ⊆ { a ∈ A ℓ : J ℓ u p ( b , a ) ≥ J r l o w ∗ } ⊆ { a ∈ A ℓ : J r u p ( b , a ) ≥ J r l o w ∗ } ⊆ C r ( b ) . \begin{aligned}
C_{\ell}(b) &= \left\{a \in\mathcal{A}_{\ell}: J^{\mathrm{up}}_{\ell}(b,a) \geq J^{\mathrm{low}*}_{\ell}\right\}\\
&\subseteq\left\{a \in\mathcal{A}_{\ell}: J^{\mathrm{up}}_{\ell}(b,a) \geq J^{\mathrm{low}*}_{r}\right\}\\
&\subseteq\left\{a \in\mathcal{A}_{\ell}: J^{\mathrm{up}}_{r}(b,a) \geq J^{\mathrm{low}*}_{r}\right\}\\
&\subseteq C_{r}(b).
\end{aligned} C ℓ ( b ) = { a ∈ A ℓ : J ℓ up ( b , a ) ≥ J ℓ low ∗ } ⊆ { a ∈ A ℓ : J ℓ up ( b , a ) ≥ J r low ∗ } ⊆ { a ∈ A ℓ : J r up ( b , a ) ≥ J r low ∗ } ⊆ C r ( b ) .
The second point follows from the symmetry between b , a b,a b , a in the definition of C ℓ ( b ) C_{\ell}(b) C ℓ ( b ) .
Proposition 5.7 shows that compatibility sets shrink monotonically across phases, and that compatibility is symmetric among active bid-asks. The previous results are crucial for proving the next theorem, which establishes the main structural property of the algorithm.
Proposition 5.8. Under the good event (10) , if b b b triggers the halting condition (Line 12) in phase ℓ + 1 \ell+1 ℓ + 1 , then:
∀ a ∈ C ℓ ( b ) , S ( a ) < F ( b ) . \forall a \in C_{\ell}(b), \qquad S(a) < F(b). ∀ a ∈ C ℓ ( b ) , S ( a ) < F ( b ) . Symmetrically, if the target ask a a a is halted in a completed call, then F ( b ) < S ( a ) F(b) < S(a) F ( b ) < S ( a ) for every b ∈ C ℓ ( a ) b \in C_{\ell}(a) b ∈ C ℓ ( a ) .
Proof. Let a ∈ C ℓ ( b ) a \in C_{\ell}(b) a ∈ C ℓ ( b ) and let n n n be the length of the bid call. The following inequalities hold:
F ( b ) > X n n − ψ ℓ + 1 ≥ u − ψ ℓ + 1 = S ℓ u p ( a ) ≥ S ℓ u p ( a ) ≥ S ( a ) . \begin{aligned}
F(b) &> \frac{X_n}{n} - \psi_{\ell+1}\\
&\geq u-\psi_{\ell+1}\\
&= S^{\mathrm{up}}_{\ell}(a) \\
&\ge S^{\mathrm{up}}_{\ell}(a)
\ge S(a).
\end{aligned} F ( b ) > n X n − ψ ℓ + 1 ≥ u − ψ ℓ + 1 = S ℓ up ( a ) ≥ S ℓ up ( a ) ≥ S ( a ) .
The first inequality follows from the good event applied to b b b , since X n X_n X n is at most the number of acceptances of the fixed bid over the full block. The second inequality follows from the halting condition at Line 12. For the equality, recall the definition of u u u at Line 3. Since F ℓ u p ( b ) ≥ F ( b ) > u − ψ ℓ + 1 F^{\mathrm{up}}_{\ell}(b) \ge F(b) > u-\psi_{\ell+1} F ℓ up ( b ) ≥ F ( b ) > u − ψ ℓ + 1 , the minimum in the definition of u u u must be attained at S ℓ u p ( a ′ ) S^{\mathrm{up}}_{\ell}(a') S ℓ up ( a ′ ) . The fourth inequality follows from the definition of a ′ a' a ′ at Line 2. The last inequality follows once again from the good event. The ask case follows by reversing the roles of the two sides. This concludes the proof.
Proposition 5.8 is particularly important, since it guarantees that, in a completed call, the halting condition can only be triggered for bids b b b such that F ( b ) F(b) F ( b ) is larger than the S ( a ) S(a) S ( a ) of any ask with which they can be paired. Therefore, even if F ( b ) F(b) F ( b ) is not estimated accurately after halting, this is not problematic for the agent, since:
J ( b , a ) = ( a − b ) min { F ( b ) , S ( a ) } = ( a − b ) S ( a ) . J(b,a)=(a-b)\min\{F(b),S(a)\}=(a-b)S(a). J ( b , a ) = ( a − b ) min { F ( b ) , S ( a )} = ( a − b ) S ( a ) .
In other words, once the halting condition is triggered, the surrogate reward is already determined by the ask side. In the next section, we combine these results to prove the regret and the per-round imbalance.
Final Regret and Per-Round Inventory Bounds
In this section, we establish the regret and per-round inventory bounds of Algorithm Algorithm 1.
We start by the following preliminary result.
Proposition 5.9. Fix a phase ℓ \ell ℓ and let b ∈ B ℓ b \in\mathcal{B}_{\ell} b ∈ B ℓ . Under the good event, it holds:
∀ a ∈ C ℓ ( b ) J ℓ u p ( b , a ) − 2 ψ ℓ ≤ J ( b , a ) ≤ J ℓ l o w ( b , a ) + 2 ψ ℓ . \forall a \in\mathcal{C}_{\ell}(b)\quad J^{\mathrm{up}}_{\ell}(b,a)-2\psi_{\ell}\le J(b,a)\le J^{\mathrm{low}}_{\ell}(b,a)+2\psi_{\ell}. ∀ a ∈ C ℓ ( b ) J ℓ up ( b , a ) − 2 ψ ℓ ≤ J ( b , a ) ≤ J ℓ low ( b , a ) + 2 ψ ℓ .
Proof. Let a ∈ C ℓ ( b ) a \in\mathcal{C}_{\ell}(b) a ∈ C ℓ ( b ) . We split the proof in three parts, noticing that, by Proposition 5.8 , at most one between b , a b,a b , a has triggered the halting condition at the previous step.
If neither b b b nor a a a triggered the halting condition, by the good event, it holds:
J ℓ u p ( b , a ) − 2 ψ ℓ = ( a − b ) min { F ℓ u p ( b ) , S ℓ u p ( a ) } − 2 ψ ℓ ≤ ( a − b ) min { F ( b ) + 2 ψ ℓ , S ( a ) + 2 ψ ℓ } − 2 ψ ℓ ≤ J ( b , a ) ≤ ( a − b ) min { F ( b ) − 2 ψ ℓ , S ( a ) − 2 ψ ℓ } + 2 ψ ℓ ≤ J ℓ l o w ( b , a ) + 2 ψ ℓ . \begin{aligned}
J^{\mathrm{up}}_{\ell}(b,a)-2\psi_{\ell}
&=(a-b)\min\{F^{\mathrm{up}}_{\ell}(b),S^{\mathrm{up}}_{\ell}(a)\}-2\psi_{\ell}\\
&\le(a-b)\min\{F(b)+2\psi_{\ell},S(a)+2\psi_{\ell}\}-2\psi_{\ell}\\
&\le J(b,a)\\
&\le(a-b)\min\{F(b)-2\psi_{\ell},S(a)-2\psi_{\ell}\}+2\psi_{\ell}\\
&\le J^{\mathrm{low}}_{\ell}(b,a)+2\psi_{\ell}.
\end{aligned} J ℓ up ( b , a ) − 2 ψ ℓ = ( a − b ) min { F ℓ up ( b ) , S ℓ up ( a )} − 2 ψ ℓ ≤ ( a − b ) min { F ( b ) + 2 ψ ℓ , S ( a ) + 2 ψ ℓ } − 2 ψ ℓ ≤ J ( b , a ) ≤ ( a − b ) min { F ( b ) − 2 ψ ℓ , S ( a ) − 2 ψ ℓ } + 2 ψ ℓ ≤ J ℓ low ( b , a ) + 2 ψ ℓ .
If b b b triggered the halting condition, by Proposition 5.8 , S ( a ) < F ( b ) S(a)<F(b) S ( a ) < F ( b ) . Thus, a a a has not triggered the halting condition. Therefore, under the good event, it holds:
J ℓ u p ( b , a ) − 2 ψ ℓ = ( a − b ) min { F ℓ u p ( b ) , S ℓ u p ( a ) } − 2 ψ ℓ ≤ ( a − b ) S ℓ u p ( a ) − 2 ψ ℓ ≤ J ( b , a ) ≤ ( a − b ) min { F ( b ) − 2 ψ ℓ , S ( a ) − 2 ψ ℓ } + 2 ψ ℓ = ( a − b ) ( S ( a ) − 2 ψ ℓ ) + 2 ψ ℓ ≤ ( a − b ) S ℓ l o w ( a ) + 2 ψ ℓ ≤ J ℓ l o w ( b , a ) + 2 ψ ℓ . \begin{aligned}
J^{\mathrm{up}}_{\ell}(b,a)-2\psi_{\ell}
&=(a-b)\min\{F^{\mathrm{up}}_{\ell}(b),S^{\mathrm{up}}_{\ell}(a)\}-2\psi_{\ell}\\
&\le(a-b)S^{\mathrm{up}}_{\ell}(a)-2\psi_{\ell}\\
&\le J(b,a)\\
&\le(a-b)\min\{F(b)-2\psi_{\ell},S(a)-2\psi_{\ell}\}+2\psi_{\ell} \\
&= (a-b)(S(a)-2\psi_{\ell})+2\psi_{\ell}\\
\le(a-b)S_{\ell}^{\mathrm{low}}(a)+2\psi_{\ell}\\
\le J_{\ell}^{\mathrm{low}}(b,a)+2\psi_{\ell}.
\end{aligned} J ℓ up ( b , a ) − 2 ψ ℓ ≤ ( a − b ) S ℓ low ( a ) + 2 ψ ℓ ≤ J ℓ low ( b , a ) + 2 ψ ℓ . = ( a − b ) min { F ℓ up ( b ) , S ℓ up ( a )} − 2 ψ ℓ ≤ ( a − b ) S ℓ up ( a ) − 2 ψ ℓ ≤ J ( b , a ) ≤ ( a − b ) min { F ( b ) − 2 ψ ℓ , S ( a ) − 2 ψ ℓ } + 2 ψ ℓ = ( a − b ) ( S ( a ) − 2 ψ ℓ ) + 2 ψ ℓ
Here, the first inequality follows from the good event, and the final inequality follows from the fact that, by Line 15, it holds S ℓ l o w ( a ) ≤ F ℓ u p ( b ) S_{\ell}^{\mathrm{low}}(a) \le F_{\ell}^{\mathrm{up}}(b) S ℓ low ( a ) ≤ F ℓ up ( b ) , under the good event.
If a a a triggered the halting condition, the same argument as in the previous point applies, with the roles of bids and asks reversed.
The same cases also give min { F ℓ u p ( b ) , S ℓ u p ( a ) } ≤ min { F ( b ) , S ( a ) } + 2 ψ ℓ \min\{F_{\ell}^{\mathrm{up}}(b),S_{\ell}^{\mathrm{up}}(a)\} \le\min\{F(b),S(a)\}+2\psi_{\ell} min { F ℓ up ( b ) , S ℓ up ( a )} ≤ min { F ( b ) , S ( a )} + 2 ψ ℓ , since a side attaining the latter minimum has not been halted. This also holds at ℓ = 0 \ell=0 ℓ = 0 . This concludes the proof.
Proposition 5.9 shows that, at any time step, the agent has accurate upper and lower bounds for every active bid-ask pair. Crucially, this result relies on Proposition 5.8. Indeed, by that result, whichever of F ( b ) F(b) F ( b ) and S ( a ) S(a) S ( a ) attains the minimum cannot have triggered the halting condition in that phase.
We are now ready to prove an upper bound for the imbalance generated at phase ℓ \ell ℓ . In the following, n = 2 min { ℓ , ⌊ log 2 ( T 2 / 3 ) ⌋ } n=2^{\min\{\ell,\lfloor\log_2(T^{2/3})\rfloor\}} n = 2 m i n { ℓ , ⌊ l o g 2 ( T 2/3 )⌋} denotes the number of rounds assigned to each active price in phase ℓ ≥ 1 \ell\ge1 ℓ ≥ 1 .
Proposition 5.10. Let N ℓ = ∣ B ℓ − 1 ∣ + ∣ A ℓ − 1 ∣ N_{\ell}=|\mathcal{B}_{\ell-1}|+|\mathcal{A}_{\ell-1}| N ℓ = ∣ B ℓ − 1 ∣ + ∣ A ℓ − 1 ∣ be the total number of bids and asks active at the start of phase ℓ \ell ℓ . Under E g o o d \mathcal{E}_{\mathrm{good}} E good , each completed call generates an absolute inventory change of at most 5 n ψ ℓ − 1 5n\psi_{\ell-1} 5 n ψ ℓ − 1 . In particular, the absolute change over a completed phase does not exceed 5 N ℓ n ψ ℓ − 1 5N_{\ell}n\psi_{\ell-1} 5 N ℓ n ψ ℓ − 1 .
Proof. In order to bound the total imbalance, we bound the imbalance generated by any given bid/ask, and then we multiply it by N ℓ N_{\ell} N ℓ . Let b ∈ B ℓ − 1 b \in\mathcal{B}_{\ell-1} b ∈ B ℓ − 1 and let a ∈ C ℓ − 1 ( b ) a \in\mathcal{C}_{\ell-1}(b) a ∈ C ℓ − 1 ( b ) be the ask such that bid b b b is paired with in Line 2 of Algorithm 2. By validity of the confidence bounds and the argument in the proof of Proposition 5.9, it holds:
min { F ( b ) , S ( a ) } ≤ u ≤ min { F ( b ) , S ( a ) } + 2 ψ ℓ − 1 + ψ ℓ . \min\{F(b),S(a)\}\le u\le\min\{F(b),S(a)\}+2\psi_{\ell-1}+\psi_{\ell}. min { F ( b ) , S ( a )} ≤ u ≤ min { F ( b ) , S ( a )} + 2 ψ ℓ − 1 + ψ ℓ .
Each side either reaches ⌈ n u ⌉ \lceil nu\rceil ⌈ n u ⌉ trades and is halted, or its final counter equals its empirical count over all n n n rounds. Thus, by the halting conditions and the good event, it holds:
n ( min { F ( b ) , S ( a ) } − ψ ℓ ) ≤ X n , Y n ≤ n ( min { F ( b ) , S ( a ) } + 3 ψ ℓ − 1 ) + 1. n\bigl(\min\{F(b),S(a)\}-\psi_{\ell}\bigr)\le X_n,Y_n\le n\bigl(\min\{F(b),S(a)\}+3\psi_{\ell-1}\bigr)+1. n ( min { F ( b ) , S ( a )} − ψ ℓ ) ≤ X n , Y n ≤ n ( min { F ( b ) , S ( a )} + 3 ψ ℓ − 1 ) + 1.
Consequently, since ψ ℓ ≤ ψ ℓ − 1 \psi_{\ell}\le\psi_{\ell-1} ψ ℓ ≤ ψ ℓ − 1 and n ψ ℓ − 1 ≥ 1 n\psi_{\ell-1}\ge1 n ψ ℓ − 1 ≥ 1 ,
∣ Y n − X n ∣ ≤ n ( 3 ψ ℓ − 1 + ψ ℓ ) + 1 ≤ 4 n ψ ℓ − 1 + 1 ≤ 5 n ψ ℓ − 1 . |Y_n-X_n|\le n(3\psi_{\ell-1}+\psi_{\ell})+1\\
\le4n\psi_{\ell-1}+1\\
\le5n\psi_{\ell-1}. ∣ Y n − X n ∣ ≤ n ( 3 ψ ℓ − 1 + ψ ℓ ) + 1 ≤ 4 n ψ ℓ − 1 + 1 ≤ 5 n ψ ℓ − 1 .
The ask calls are analogous. Summing over the N ℓ N_{\ell} N ℓ calls concludes the proof.
We provide the upper bound to the virtual regret associated to phase ℓ \ell ℓ , which is defined as follows.
Definition 5.11 (Virtual regret at phase ℓ \ell ℓ ). Let r t r_t r t be the reward associated to round t ∈ [ N ℓ n ] t\in[N_{\ell}n] t ∈ [ N ℓ n ] of
a completed phase ℓ \ell ℓ . The virtual regret at phase ℓ \ell ℓ is defined as:
R ∘ , ℓ : = N ℓ n ⋅ J ( b ∘ , a ∘ ) − ∑ t = 1 N ℓ n r t . R^{\circ,\ell} := N_{\ell}n \cdot J(b^{\circ},a^{\circ}) - \sum_{t=1}^{N_{\ell}n} r_t. R ∘ , ℓ := N ℓ n ⋅ J ( b ∘ , a ∘ ) − t = 1 ∑ N ℓ n r t .
For an individual completed call, the same definition uses its n n n rounds.
This is done in the following proposition.
Proposition 5.12. Under E g o o d \mathcal{E}_{\mathrm{good}} E good , the total virtual regret paid in a completed phase ℓ \ell ℓ is bounded as:
R ∘ , ℓ ≤ 9 N ℓ n ψ ℓ − 1 . R^{\circ,\ell} \le9N_{\ell}n\psi_{\ell-1}. R ∘ , ℓ ≤ 9 N ℓ n ψ ℓ − 1 . Each completed call has virtual regret at most 9 n ψ ℓ − 1 9n\psi_{\ell-1} 9 n ψ ℓ − 1 .
Proof. In order to bound the total virtual regret at phase ℓ \ell ℓ , we bound the virtual regret at phase ℓ \ell ℓ generated by any given bid/ask, and then we multiply it by N ℓ N_{\ell} N ℓ . Let b ∈ B ℓ − 1 b \in\mathcal{B}_{\ell-1} b ∈ B ℓ − 1 and let a ∈ C ℓ − 1 ( b ) a \in\mathcal{C}_{\ell-1}(b) a ∈ C ℓ − 1 ( b ) be the ask such that b b b is paired with in Line 2 of Algorithm Algorithm 2. By definition of C ℓ − 1 \mathcal{C}_{\ell-1} C ℓ − 1 (see Equation (9) ) it holds:
J ℓ − 1 u p ( b , a ) ≥ J ℓ − 1 l o w ∗ . J^{\mathrm{up}}_{\ell-1}(b,a) \ge J^{\mathrm{low}*}_{\ell-1}. J ℓ − 1 up ( b , a ) ≥ J ℓ − 1 low ∗ .
Moreover, by Proposition 5.9, it holds:
J ( b , a ) ≥ J ℓ − 1 u p ( b , a ) − 2 ψ ℓ − 1 ≥ J ℓ − 1 l o w ∗ − 2 ψ ℓ − 1 ≥ J ℓ − 1 l o w ( b ∘ , a ∘ ) − 2 ψ ℓ − 1 ≥ J ( b ∘ , a ∘ ) − 4 ψ ℓ − 1 . (11) \begin{aligned}
J(b,a) &\ge J^{\mathrm{up}}_{\ell-1}(b,a) - 2\psi_{\ell-1}\\
&\ge J^{\mathrm{low}*}_{\ell-1} - 2\psi_{\ell-1}\\
&\ge J^{\mathrm{low}}_{\ell-1}(b^{\circ},a^{\circ}) - 2\psi_{\ell-1}\\
&\ge J(b^{\circ},a^{\circ}) - 4\psi_{\ell-1}. \tag*{(11)}
\end{aligned} J ( b , a ) ≥ J ℓ − 1 up ( b , a ) − 2 ψ ℓ − 1 ≥ J ℓ − 1 low ∗ − 2 ψ ℓ − 1 ≥ J ℓ − 1 low ( b ∘ , a ∘ ) − 2 ψ ℓ − 1 ≥ J ( b ∘ , a ∘ ) − 4 ψ ℓ − 1 . (11)
Now, we need to show that the total realized reward of Algorithm Algorithm 2 applied to b , a b,a b , a is close to n J ( b , a ) nJ(b,a) n J ( b , a ) . By definition, this reward corresponds to a Y n − b X n aY_n-bX_n a Y n − b X n , for the counters defined in Lines 10 and 11. Using the count bounds from the proof of Proposition 5.10, it holds:
a Y n − b X n ≥ a n ( min { F ( b ) , S ( a ) } − ψ ℓ ) − b ( n ( min { F ( b ) , S ( a ) } + 3 ψ ℓ − 1 ) + 1 ) = n J ( b , a ) − n a ψ ℓ − 3 n b ψ ℓ − 1 − b ≥ n J ( b , a ) − 4 n ψ ℓ − 1 − 1. \begin{aligned}
aY_n-bX_n &\ge an\left(\min\{F(b),S(a)\}-\psi_{\ell}\right)\\
&\quad-b\left(n\left(\min\{F(b),S(a)\}+3\psi_{\ell-1}\right)+1\right)\\
&= nJ(b,a)-na\psi_{\ell}-3nb\psi_{\ell-1}-b\\
&\ge nJ(b,a)-4n\psi_{\ell-1}-1.
\end{aligned} a Y n − b X n ≥ an ( min { F ( b ) , S ( a )} − ψ ℓ ) − b ( n ( min { F ( b ) , S ( a )} + 3 ψ ℓ − 1 ) + 1 ) = n J ( b , a ) − na ψ ℓ − 3 nb ψ ℓ − 1 − b ≥ n J ( b , a ) − 4 n ψ ℓ − 1 − 1.
Together with Equation (11) , this shows that the corresponding regret does not exceed 8 n ψ ℓ − 1 + 1 ≤ 9 n ψ ℓ − 1 8n\psi_{\ell-1}+1 \le9n\psi_{\ell-1} 8 n ψ ℓ − 1 + 1 ≤ 9 n ψ ℓ − 1 . The ask calls are analogous. Summing over the N ℓ N_{\ell} N ℓ calls concludes the proof. □ \square □
We are now ready to provide the final theoretical guarantees of Algorithm Algorithm 1.
Theorem 5.13. Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Then, Algorithm Algorithm 1 enjoys, with probability at least 1 − δ 1-\delta 1 − δ , simultaneously over all the t t t time-steps, the following guarantees:
∣ I t ∣ ≤ 59 T 2 / 3 log ( 4 T / δ ) , R t J ≤ 109 T 2 / 3 log ( 4 T / δ ) . |I_t| \le59T^{2/3}\sqrt{\log(4T/\delta)}, \qquad R^J_t \le109T^{2/3}\sqrt{\log(4T/\delta)}. ∣ I t ∣ ≤ 59 T 2/3 log ( 4 T / δ ) , R t J ≤ 109 T 2/3 log ( 4 T / δ ) .
Proof. Work on E g o o d \mathcal{E}_{\mathrm{good}} E good and fix t ≤ T t \le T t ≤ T . By Equation (7) and Proposition 4.3, the regret satisfies:
R t J ≤ R t ∘ + 2 T ⌊ T 1 / 3 ⌋ . R_{t}^{J} \le R_{t}^{\circ} + \frac{2T}{\lfloor T^{1/3} \rfloor}. R t J ≤ R t ∘ + ⌊ T 1/3 ⌋ 2 T .
Indeed, removing bid 1 and ask 0 from the full grid does not change its maximum, since such pairs have nonpositive value and ( 0 , 1 ) (0,1) ( 0 , 1 ) remains available.
By Proposition 5.12 , the virtual regret accumulated in each completed call of phase ℓ \ell ℓ does not exceed 9 n ψ ℓ − 1 9n\psi_{\ell-1} 9 n ψ ℓ − 1 . Moreover, it holds:
N ℓ N_{\ell} N ℓ does not exceed ∣ B ∘ ∣ + ∣ A ∘ ∣ = 2 ⌊ T 1 / 3 ⌋ |\mathcal{B}^{\circ}| + |\mathcal{A}^{\circ}| = 2\lfloor T^{1/3} \rfloor ∣ B ∘ ∣ + ∣ A ∘ ∣ = 2 ⌊ T 1/3 ⌋ ;
the total length of the calls completed by time t t t does not exceed T T T .
Before the block length reaches 2 ⌊ log 2 ( T 2 / 3 ) ⌋ 2^{\lfloor\log_{2}(T^{2/3}) \rfloor} 2 ⌊ l o g 2 ( T 2/3 )⌋ , we have n ψ ℓ − 1 = 2 ℓ + 1 log ( 4 T / δ ) n\psi_{\ell-1} = \sqrt{2^{\ell+1}\log(4T/\delta)} n ψ ℓ − 1 = 2 ℓ + 1 log ( 4 T / δ ) . From the first phase reaching this length onwards, ψ ℓ − 1 ≤ 2 log ( 4 T / δ ) / 2 ⌊ log 2 ( T 2 / 3 ) ⌋ \psi_{\ell-1} \le\sqrt{2\log(4T/\delta)/2^{\lfloor\log_{2}(T^{2/3}) \rfloor}} ψ ℓ − 1 ≤ 2 log ( 4 T / δ ) / 2 ⌊ l o g 2 ( T 2/3 )⌋ . Thus, summing n ψ ℓ − 1 n\psi_{\ell-1} n ψ ℓ − 1 over all completed calls, including those in an unfinished phase, gives at most:
2 ⌊ T 1 / 3 ⌋ ∑ ℓ = 1 ⌊ log 2 ( T 2 / 3 ) ⌋ − 1 2 ℓ + 1 log ( 4 T / δ ) + T 2 log ( 4 T / δ ) 2 ⌊ log 2 ( T 2 / 3 ) ⌋ ≤ ( 6 + 2 2 ) T 2 / 3 log ( 4 T / δ ) . 2\lfloor T^{1/3} \rfloor\sum_{\ell=1}^{\lfloor\log_{2}(T^{2/3}) \rfloor-1} \sqrt{2^{\ell+1}\log(4T/\delta)}
+ T\sqrt{\frac{2\log(4T/\delta)}{2^{\lfloor\log_{2}(T^{2/3}) \rfloor}}}
\le(6+2\sqrt{2})T^{2/3}\sqrt{\log(4T/\delta)}. 2 ⌊ T 1/3 ⌋ ℓ = 1 ∑ ⌊ l o g 2 ( T 2/3 )⌋ − 1 2 ℓ + 1 log ( 4 T / δ ) + T 2 ⌊ l o g 2 ( T 2/3 )⌋ 2 log ( 4 T / δ ) ≤ ( 6 + 2 2 ) T 2/3 log ( 4 T / δ ) .
Here the sum is empty for T ≤ 7 T \le7 T ≤ 7 ; the inequality follows from the geometric sum and T 2 / 3 / 2 < 2 ⌊ log 2 ( T 2 / 3 ) ⌋ ≤ T 2 / 3 T^{2/3}/2 < 2^{\lfloor\log_{2}(T^{2/3}) \rfloor} \le T^{2/3} T 2/3 /2 < 2 ⌊ l o g 2 ( T 2/3 )⌋ ≤ T 2/3 .
The possible unfinished call has length at most T 2 / 3 T^{2/3} T 2/3 and contributes at most 2 T 2 / 3 2T^{2/3} 2 T 2/3 to the virtual regret, since J ( b ∘ , a ∘ ) ≤ 1 J(b^{\circ},a^{\circ}) \le1 J ( b ∘ , a ∘ ) ≤ 1 and r t ≥ − 1 r_t \ge-1 r t ≥ − 1 . Combining everything, it holds:
R t J ≤ 9 ( 6 + 2 2 ) T 2 / 3 log ( 4 T / δ ) + 2 T 2 / 3 + 2 T ⌊ T 1 / 3 ⌋ R_{t}^{J} \le9(6+2\sqrt{2})T^{2/3}\sqrt{\log(4T/\delta)} + 2T^{2/3} + \frac{2T}{\lfloor T^{1/3} \rfloor} R t J ≤ 9 ( 6 + 2 2 ) T 2/3 log ( 4 T / δ ) + 2 T 2/3 + ⌊ T 1/3 ⌋ 2 T
≤ 109 T 2 / 3 log ( 4 T / δ ) , \le109T^{2/3}\sqrt{\log(4T/\delta)}, ≤ 109 T 2/3 log ( 4 T / δ ) ,
where we used ⌊ T 1 / 3 ⌋ ≥ T 1 / 3 / 2 \lfloor T^{1/3} \rfloor\ge T^{1/3}/2 ⌊ T 1/3 ⌋ ≥ T 1/3 /2 and log ( 4 T / δ ) > 1 \sqrt{\log(4T/\delta)} > 1 log ( 4 T / δ ) > 1 .
For what concerns the imbalance, Proposition 5.10 gives the same form of bound, except for the constant 5 in place of 9. Each round changes inventory by at most one, so the unfinished call contributes at most T 2 / 3 T^{2/3} T 2/3 . Therefore, applying the previous reasoning, it holds:
∣ I t ∣ ≤ 5 ( 6 + 2 2 ) T 2 / 3 log ( 4 T / δ ) + T 2 / 3 |I_t| \le5(6+2\sqrt{2})T^{2/3}\sqrt{\log(4T/\delta)} + T^{2/3} ∣ I t ∣ ≤ 5 ( 6 + 2 2 ) T 2/3 log ( 4 T / δ ) + T 2/3
≤ 59 T 2 / 3 log ( 4 T / δ ) . \le59T^{2/3}\sqrt{\log(4T/\delta)}. ≤ 59 T 2/3 log ( 4 T / δ ) .
The argument holds for every t ≤ T t \le T t ≤ T on the same good event, whose probability is at least 1 − δ 1-\delta 1 − δ . This concludes the proof.
LOB Access
In this section, we focus on the case the market maker has access to the limit order book . The results provided in this section are provided in the following order:
In Section 6.1, we study how to proper estimate the cumulative density function of buyers’ and sellers’ valuations. Specifically, we first focus on the case full-feedback is available, defining two different kind of concentrations which will lead to different theoretical guarantees attained by our algorithm. Then, we define the good event associated to the aforementioned concentrations and we show how to extend those results to the LOB feedback case.
In Section 6.2, we describe our algorithm for the LOB case and then we study the associated computational complexity.
In Section 6.3, we provide the theoretical guarantees attained by our algorithm in terms of surrogate regret and per-round inventory constraints. We then provide an instance dependent bound which improves the aforementioned result in favorable instances.
In Section 6.4, we provide the lower bound associated to our setting.
Estimating the CDFs and The Good Event
We first provide results and intuition on how to estimate the CDFs of buyers’ and sellers’ valuations.
Estimating the CDFs under Full Feedback
For the purposes of this section, we define the estimators F ^ t \widehat{F}_t F t and S ^ t \widehat{S}_t S t that would be used in case the full-feedback was available. The estimators are given by:
F ^ t ( b ) = 1 t ∑ τ = 1 t 1 ( V τ s e l l ≤ b ) , S ^ t ( a ) = 1 t ∑ τ = 1 t 1 ( V τ b u y ≥ a ) . (12) \widehat{F}_t(b)=\frac{1}{t}\sum_{\tau=1}^{t}\mathbb{1}\left(V^{\mathrm{sell}}_{\tau}\le b\right),\qquad\widehat{S}_t(a)=\frac{1}{t}\sum_{\tau=1}^{t}\mathbb{1}\left(V^{\mathrm{buy}}_{\tau}\ge a\right). \tag*{(12)} F t ( b ) = t 1 τ = 1 ∑ t 1 ( V τ sell ≤ b ) , S t ( a ) = t 1 τ = 1 ∑ t 1 ( V τ buy ≥ a ) . (12)
These estimators enjoy strong concentration properties around the true c.d.f. of the bids F F F and the survival function of the asks S S S , which are provided in the following foundational result.
Theorem 6.1 (DKW inequality [31 ] , [50 ] for the tighter version). The following inequality holds:
P ( sup b ∈ [ 0 , 1 ] ∣ F ^ t ( b ) − F ( b ) ∣ > ε ) ≤ 2 e − 2 t ε 2 . \mathbb{P}\left(\sup_{b\in[0,1]}\left|\widehat{F}_t(b)-F(b)\right|>\varepsilon\right)\le2e^{-2t\varepsilon^2}. P ( b ∈ [ 0 , 1 ] sup F t ( b ) − F ( b ) > ε ) ≤ 2 e − 2 t ε 2 .
The former result implies, employing a union bound over all the time-steps of the problem, that with probability at least 1 − δ 1-\delta 1 − δ , it holds, for all b ∈ [ 0 , 1 ] b\in[0,1] b ∈ [ 0 , 1 ] , t ∈ [ T ] t\in[T] t ∈ [ T ] :
F ^ t ( b ) − ψ t ( δ ) ≤ F ( b ) ≤ F ^ t ( b ) + ψ t ( δ ) for ψ t ( δ ) : = min { 1 , log ( 4 T / δ ) 2 t } . (13) \widehat{F}_t(b)-\psi_t(\delta)\le F(b)\le\widehat{F}_t(b)+\psi_t(\delta)\qquad\text{for}\qquad\psi_t(\delta):=\min\left\{1,\sqrt{\frac{\log(4T/\delta)}{2t}}\right\}. \tag*{(13)} F t ( b ) − ψ t ( δ ) ≤ F ( b ) ≤ F t ( b ) + ψ t ( δ ) for ψ t ( δ ) := min { 1 , 2 t log ( 4 T / δ ) } . (13)
This bound holds uniformly over the space of bids—an analogous result also holds for S ^ t \widehat{S}_t S t over the space of asks.6 Although this bound is extremely tight—in the sense that it cannot be improved even at the level of constants—the resulting ψ \psi ψ term in Equation (13) does not depend on b b b and therefore cannot be used to obtain instance-dependent bounds. A confidence bound that depends on b b b can instead be derived using Bernstein’s inequality.
Theorem 6.2 (Bernstein’s inequality [15 ] ). *Let ( X t ) t = 1 n (X_t)_{t=1}^{n} ( X t ) t = 1 n be a sequence of independent zero-mean
random variables bounded in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] . Let σ 2 : = ∑ t = 1 n Var ( X t ) \sigma^2 := \sum_{t=1}^{n} \operatorname{Var}(X_t) σ 2 := ∑ t = 1 n Var ( X t ) . Then, with probability at least 1 − δ 1-\delta 1 − δ :
∣ ∑ t = 1 n X t ∣ ≤ 2 σ 2 log ( 2 / δ ) + 2 3 log ( 2 / δ ) . \left|\sum_{t=1}^{n} X_t\right| \le\sqrt{2\sigma^2\log(2/\delta)}+\frac{2}{3}\log(2/\delta). t = 1 ∑ n X t ≤ 2 σ 2 log ( 2/ δ ) + 3 2 log ( 2/ δ ) .
In our setting, I ( V t s e l l ≤ b ) \mathbb{I}(V^{\mathrm{sell}}_t \le b) I ( V t sell ≤ b ) is a Bernoulli random variable with mean F ( b ) F(b) F ( b ) . Therefore, I ( V t s e l l ≤ b ) − F ( b ) \mathbb{I}(V^{\mathrm{sell}}_t \le b)-F(b) I ( V t sell ≤ b ) − F ( b ) is zero-mean and bounded in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] . Due to the independence of the samples, the total variance writes as σ 2 = ∑ t = 1 n Var ( X t ) = n F ( b ) ( 1 − F ( b ) ) \sigma^2=\sum_{t=1}^{n}\operatorname{Var}(X_t)=nF(b)(1-F(b)) σ 2 = ∑ t = 1 n Var ( X t ) = n F ( b ) ( 1 − F ( b )) . Thus, an application of Theorem 6.2 guarantees, for a specific b ∈ [ 0 , 1 ] b\in[0,1] b ∈ [ 0 , 1 ] and time-step t ∈ [ T ] t\in[T] t ∈ [ T ] , with probability at least 1 − δ 1-\delta 1 − δ :
F ^ t ( b ) − ψ t ( b , δ ) ≤ F ( b ) ≤ F ^ t ( b ) + ψ t ( b , δ ) , ψ t ( b , δ ) : = 2 F ( b ) ( 1 − F ( b ) ) log ( 2 / δ ) t + 2 log ( 2 / δ ) 3 t . (14) \widehat{F}_t(b)-\psi_t(b,\delta)\le F(b)\le\widehat{F}_t(b)+\psi_t(b,\delta),\qquad\psi_t(b,\delta):=\sqrt{\frac{2F(b)(1-F(b))\log(2/\delta)}{t}+\frac{2\log(2/\delta)}{3t}}. \tag*{(14)} F t ( b ) − ψ t ( b , δ ) ≤ F ( b ) ≤ F t ( b ) + ψ t ( b , δ ) , ψ t ( b , δ ) := t 2 F ( b ) ( 1 − F ( b )) log ( 2/ δ ) + 3 t 2 log ( 2/ δ ) . (14)
The former result holds only for a fixed pair of bid b b b and time-step t t t . Therefore, to obtain a bound that holds uniformly over all time steps, one must pay an additional log ( T ) \log(T) log ( T ) factor due to a union bound, as well as introduce a covering of the bid space. The main limitation of this bound is that the resulting confidence interval depends on a quantity that is unknown to the learner. This issue is overcome by the following empirical version (see [5 , 52 ] ).
Theorem 6.3 (Empirical Bernstein’s inequality for Bernoulli r.v.s [5 Theorem 1] ). Let ( X t ) t = 1 n (X_t)_{t=1}^{n} ( X t ) t = 1 n be a sequence of independent Bernoulli random variables of parameter p ∈ [ 0 , 1 ] p\in[0,1] p ∈ [ 0 , 1 ] . Let p ^ n : = n − 1 ∑ t = 1 n X t \widehat{p}_n:=n^{-1}\sum_{t=1}^{n}X_t p n := n − 1 ∑ t = 1 n X t . Then, with probability at least 1 − δ 1-\delta 1 − δ , it holds:
∣ p ^ n − p ∣ ≤ 2 p ^ n ( 1 − p ^ n ) log ( 3 / δ ) n + 3 log ( 3 / δ ) n . |\widehat{p}_n-p|\le\sqrt{\frac{2\widehat{p}_n(1-\widehat{p}_n)\log(3/\delta)}{n}}+\frac{3\log(3/\delta)}{n}. ∣ p n − p ∣ ≤ n 2 p n ( 1 − p n ) log ( 3/ δ ) + n 3 log ( 3/ δ ) .
Applying Theorem 6.3 , we get a confidence bound similar to the one of Equation (14) , where ψ \psi ψ is:
ψ t ( b , δ ) : = 2 F ^ t ( b ) ( 1 − F ^ t ( b ) ) log ( 3 / δ ) t + 3 log ( 3 / δ ) t . (15) \psi_t(b,\delta):=\sqrt{\frac{2\widehat{F}_t(b)(1-\widehat{F}_t(b))\log(3/\delta)}{t}+\frac{3\log(3/\delta)}{t}}. \tag*{(15)} ψ t ( b , δ ) := t 2 F t ( b ) ( 1 − F t ( b )) log ( 3/ δ ) + t 3 log ( 3/ δ ) . (15)
As before, in contrast with the bound in Equation (13) , this result holds only for a fixed pair ( b , t ) (b,t) ( b , t ) .
The Good Event
We introduce the good event that will be used throughout the following theorems. It is defined as the event in which the confidence bounds on both F F F and S S S hold simultaneously for all time steps.
Definition 6.4 (Good event ). Let B ∘ ⊂ [ 0 , 1 ] B^\circ\subset[0,1] B ∘ ⊂ [ 0 , 1 ] , A ∘ ⊂ [ 0 , 1 ] A^\circ\subset[0,1] A ∘ ⊂ [ 0 , 1 ] be finite subsets of the bid space and the ask space, respectively. Let { ψ t ( b , δ ) } t = 1 T \{\psi_t(b,\delta)\}_{t=1}^{T} { ψ t ( b , δ ) } t = 1 T , { ψ t ( a , δ ) } t = 1 T \{\psi_t(a,\delta)\}_{t=1}^{T} { ψ t ( a , δ ) } t = 1 T be sequences of functions that depend only on quantities generated by the end of round t t t . We define the good event E g o o d \mathcal{E}_{\mathrm{good}} E good as the following set:
E g o o d : = ⋂ t = 1 T [ ⋂ b ∈ B ∘ { ∣ F ( b ) − F ^ t ( b ) ∣ ≤ ψ t ( b , δ ) } ∩ ⋂ a ∈ A ∘ { ∣ S ( a ) − S ^ t ( a ) ∣ ≤ ψ t ( a , δ ) } ] . (16) \mathcal{E}_{\mathrm{good}}:=\bigcap_{t=1}^{T}\left[\bigcap_{b\in B^\circ}\{|F(b)-\widehat{F}_t(b)|\le\psi_t(b,\delta)\}\cap\bigcap_{a\in A^\circ}\{|S(a)-\widehat{S}_t(a)|\le\psi_t(a,\delta)\}\right]. \tag*{(16)} E good := t = 1 ⋂ T [ b ∈ B ∘ ⋂ { ∣ F ( b ) − F t ( b ) ∣ ≤ ψ t ( b , δ )} ∩ a ∈ A ∘ ⋂ { ∣ S ( a ) − S t ( a ) ∣ ≤ ψ t ( a , δ )} ] . (16)
As already proved in the previous section for Equation (13) , when ψ t ( b , δ ) = ψ t ( δ ) : = min { 1 , log ( 4 T / δ ) / 2 t } \psi_t(b,\delta)=\psi_t(\delta):=\min\left\{1,\sqrt{\log(4T/\delta)/2t}\right\} ψ t ( b , δ ) = ψ t ( δ ) := min { 1 , log ( 4 T / δ ) /2 t } , the good event has a probability of at least $1-\delta.
Similarly, we can prove the following result.
Proposition 6.5. Let B ∘ B^\circ B ∘ and A ∘ A^\circ A ∘ be finite subsets of [ 0 , 1 ] [0,1] [ 0 , 1 ] . Let:
∀ b ∈ B ∘ , ψ t ( b , δ ) : = 2 F ^ t ( b ) ( 1 − F ^ t ( b ) ) log ( 3 ∣ B ∘ ∣ T / δ ) t + 3 log ( 3 ∣ B ∘ ∣ T / δ ) t . \forall b \in B^\circ,\qquad\psi_t(b,\delta) := \sqrt{\frac{2\widehat{F}_t(b)\left(1-\widehat{F}_t(b)\right)\log(3|B^\circ|T/\delta)}{t}}+\frac{3\log(3|B^\circ|T/\delta)}{t}. ∀ b ∈ B ∘ , ψ t ( b , δ ) := t 2 F t ( b ) ( 1 − F t ( b ) ) log ( 3∣ B ∘ ∣ T / δ ) + t 3 log ( 3∣ B ∘ ∣ T / δ ) . and:
∀ a ∈ A ∘ , ψ t ( a , δ ) : = 2 S ^ t ( a ) ( 1 − S ^ t ( a ) ) log ( 3 ∣ A ∘ ∣ T / δ ) t + 3 log ( 3 ∣ A ∘ ∣ T / δ ) t . \forall a \in A^\circ,\qquad\psi_t(a,\delta) := \sqrt{\frac{2\widehat{S}_t(a)\left(1-\widehat{S}_t(a)\right)\log(3|A^\circ|T/\delta)}{t}}+\frac{3\log(3|A^\circ|T/\delta)}{t}. ∀ a ∈ A ∘ , ψ t ( a , δ ) := t 2 S t ( a ) ( 1 − S t ( a ) ) log ( 3∣ A ∘ ∣ T / δ ) + t 3 log ( 3∣ A ∘ ∣ T / δ ) . Then, P ( E g o o d ) ≥ 1 − 2 δ \mathbb{P}(\mathcal{E}_{good}) \ge1-2\delta P ( E g oo d ) ≥ 1 − 2 δ .
This shows that both the DKW-type and the empirical-Bernstein-type confidence intervals are valid. The latter, being defined in terms of an empirical quantity, is harder to quantify. Fortunately, the next result shows that, under the good event, the empirical-Bernstein confidence interval is not significantly larger than the one obtained from Bernstein’s inequality in Theorem 6.2 .
Theorem 6.6. Let ψ t ( b , δ ) \psi_t(b,\delta) ψ t ( b , δ ) be the radius in Proposition 6.5 . Under the good event, for every t ∈ [ T ] t \in[T] t ∈ [ T ] and b ∈ B ∘ b \in B^\circ b ∈ B ∘ ,
ψ t ( b , δ ) ≤ 2 2 log ( 3 ∣ B ∘ ∣ T / δ ) F ( b ) ( 1 − F ( b ) ) t + 8 log ( 3 ∣ B ∘ ∣ T / δ ) t . \psi_t(b,\delta) \le2\sqrt{\frac{2\log(3|B^\circ|T/\delta)F(b)\left(1-F(b)\right)}{t}}+\frac{8\log(3|B^\circ|T/\delta)}{t}. ψ t ( b , δ ) ≤ 2 t 2 log ( 3∣ B ∘ ∣ T / δ ) F ( b ) ( 1 − F ( b ) ) + t 8 log ( 3∣ B ∘ ∣ T / δ ) .
Proof. Let C 1 = 2 log ( 3 ∣ B ∘ ∣ T / δ ) C_1=\sqrt{2\log(3|B^\circ|T/\delta)} C 1 = 2 log ( 3∣ B ∘ ∣ T / δ ) and C 2 = 3 log ( 3 ∣ B ∘ ∣ T / δ ) C_2=3\log(3|B^\circ|T/\delta) C 2 = 3 log ( 3∣ B ∘ ∣ T / δ ) , so that the ψ \psi ψ function writes as:
ψ t ( b , δ ) = C 1 F ^ t ( b ) ( 1 − F ^ t ( b ) ) t + C 2 t . \psi_t(b,\delta)=C_1\sqrt{\frac{\widehat{F}_t(b)\left(1-\widehat{F}_t(b)\right)}{t}}+\frac{C_2}{t}. ψ t ( b , δ ) = C 1 t F t ( b ) ( 1 − F t ( b ) ) + t C 2 .
Let us call Δ F : = F ^ t ( b ) − F ( b ) \Delta F:=\widehat{F}_t(b)-F(b) Δ F := F t ( b ) − F ( b ) . The former bound writes as follows,
ψ t ( b , δ ) = C 1 F ^ t ( b ) ( 1 − F ^ t ( b ) ) t + C 2 t = C 1 ( F ( b ) + Δ F ) ( 1 − Δ F − F ( b ) ) t + C 2 t = C 1 F ( b ) ( 1 − F ( b ) ) + Δ F ( 1 − 2 F ( b ) ) − Δ F 2 t + C 2 t ≤ C 1 F ( b ) ( 1 − F ( b ) ) t + C 1 ∣ Δ F ∣ t + C 2 t . \begin{aligned}
\psi_t(b,\delta)&=C_1\sqrt{\frac{\widehat{F}_t(b)\left(1-\widehat{F}_t(b)\right)}{t}}+\frac{C_2}{t}\\
&=C_1\sqrt{\frac{\left(F(b)+\Delta F\right)\left(1-\Delta F-F(b)\right)}{t}}+\frac{C_2}{t}\\
&=C_1\sqrt{\frac{F(b)\left(1-F(b)\right)+\Delta F\left(1-2F(b)\right)-\Delta F^2}{t}}+\frac{C_2}{t}\\
&\le C_1\sqrt{\frac{F(b)\left(1-F(b)\right)}{t}}+C_1\sqrt{\frac{|\Delta F|}{t}}+\frac{C_2}{t}.
\end{aligned} ψ t ( b , δ ) = C 1 t F t ( b ) ( 1 − F t ( b ) ) + t C 2 = C 1 t ( F ( b ) + Δ F ) ( 1 − Δ F − F ( b ) ) + t C 2 = C 1 t F ( b ) ( 1 − F ( b ) ) + Δ F ( 1 − 2 F ( b ) ) − Δ F 2 + t C 2 ≤ C 1 t F ( b ) ( 1 − F ( b ) ) + C 1 t ∣Δ F ∣ + t C 2 .
Under the good event, we have ∣ Δ F ∣ ≤ ψ t ( b , δ ) |\Delta F|\le\psi_t(b,\delta) ∣Δ F ∣ ≤ ψ t ( b , δ ) , which implies:
ψ t ( b , δ ) ≤ C 1 F ( b ) ( 1 − F ( b ) ) t + C 1 ψ t ( b , δ ) t + C 2 t . \psi_t(b,\delta)\le C_1\sqrt{\frac{F(b)\left(1-F(b)\right)}{t}}+C_1\sqrt{\frac{\psi_t(b,\delta)}{t}}+\frac{C_2}{t}. ψ t ( b , δ ) ≤ C 1 t F ( b ) ( 1 − F ( b ) ) + C 1 t ψ t ( b , δ ) + t C 2 .
Applying C 1 ψ t ( b , δ ) / t ≤ ψ t ( b , δ ) / 2 + C 1 2 / ( 2 t ) C_1\sqrt{\psi_t(b,\delta)/t}\leq\psi_t(b,\delta)/2+C_1^2/(2t) C 1 ψ t ( b , δ ) / t ≤ ψ t ( b , δ ) /2 + C 1 2 / ( 2 t ) gives:
ψ t ( b , δ ) ≤ 2 C 1 F ( b ) ( 1 − F ( b ) ) t + C 1 2 + 2 C 2 t . \psi_t(b,\delta)\leq2C_1\sqrt{\frac{F(b)(1-F(b))}{t}}+\frac{C_1^2+2C_2}{t}. ψ t ( b , δ ) ≤ 2 C 1 t F ( b ) ( 1 − F ( b )) + t C 1 2 + 2 C 2 .
which completes the proof for every t ≥ 1 t\geq1 t ≥ 1 .
An analogous bound holds on the ask side by simply switching b ← a b\leftarrow a b ← a , F ← S F\leftarrow S F ← S in the former proof.
Estimating the CDFs under Truncated Feedback
In the previous section, we showed that, when full feedback on the per-round valuations is available, the estimated cumulative distribution functions converge rapidly to the true ones, and the estimation error can be upper-bounded by both DKW-type and Bernstein-type confidence intervals.
Unfortunately, under the LOB feedback model, F ^ t \widehat{F}_t F t cannot always be built, since at round t ∈ [ T ] t\in[T] t ∈ [ T ] the agent only observes clip ( V t s e l l ; B t ) \operatorname{clip}(V_t^{\mathrm{sell}};B_t) clip ( V t sell ; B t ) —notice that an analogous limitation holds on the ask side. Thus, if the spread A t − B t A_t-B_t A t − B t is too narrow, the agent collects no information that can be used to improve the estimates of F ^ t \widehat{F}_t F t and S ^ t \widehat{S}_t S t . Conversely, whenever information is revealed—namely, when B t < V t s e l l B_t<V_t^{\mathrm{sell}} B t < V t sell or V t b u y < A t V_t^{\mathrm{buy}}<A_t V t buy < A t —no trade takes place on the corresponding side, and hence the agent receives no reward. This highlights the fundamental trade-off induced by the LOB feedback structure.
The proposed solution to this challenge is to employ an elimination -based approach, where the pair B t , A t B_t,A_t B t , A t gets narrowed down monotonically over time. This is equivalent to defining two sets B t = ⋂ τ = 1 t [ B τ , 1 ] \mathcal{B}_t=\bigcap_{\tau=1}^{t}[B_\tau,1] B t = ⋂ τ = 1 t [ B τ , 1 ] , A t = ⋂ τ = 1 t [ 0 , A τ ] \mathcal{A}_t=\bigcap_{\tau=1}^{t}[0,A_\tau] A t = ⋂ τ = 1 t [ 0 , A τ ] of active bids and asks, which shrink during the learning process. In this way, for any b ∈ B t b\in\mathcal{B}_t b ∈ B t , we get:
F ^ t ( b ) : = ∑ τ = 1 t I ( V τ s e l l ≤ b ) t = ∑ τ = 1 t I ( V τ s e l l ≤ b , B τ ≤ b ) t = ∑ τ = 1 t I ( max { V τ s e l l , B τ } ≤ b ) t = : 1 t ∑ τ = 1 t χ τ s e l l ( b ) , \begin{aligned}
\widehat{F}_t(b):=\frac{\sum_{\tau=1}^{t}\mathbb{I}(V_\tau^{\mathrm{sell}}\leq b)}{t} \\
&=\frac{\sum_{\tau=1}^{t}\mathbb{I}(V_\tau^{\mathrm{sell}}\leq b,B_\tau\leq b)}{t} \\
&=\frac{\sum_{\tau=1}^{t}\mathbb{I}(\max\{V_\tau^{\mathrm{sell}},B_\tau\}\leq b)}{t}
=:\frac{1}{t}\sum_{\tau=1}^{t}\chi_\tau^{\mathrm{sell}}(b),
\end{aligned} F t ( b ) := t ∑ τ = 1 t I ( V τ sell ≤ b ) = t ∑ τ = 1 t I ( V τ sell ≤ b , B τ ≤ b ) = t ∑ τ = 1 t I ( max { V τ sell , B τ } ≤ b ) =: t 1 τ = 1 ∑ t χ τ sell ( b ) ,
where the second equality incorporates the additional event B τ ≤ b B_\tau\leq b B τ ≤ b , which holds almost surely due to the fact that b ∈ B t b\in\mathcal{B}_t b ∈ B t . Importantly, the final quantity, χ τ s e l l ( b ) \chi_\tau^{\mathrm{sell}}(b) χ τ sell ( b ) , is observable by the agent, and can therefore be used to estimate the CDF over all active arms. A completely analogous argument applies to the ask side. We formalize this observation in the following proposition.
Proposition 6.7. Define, for b , a ∈ [ 0 , 1 ] b,a\in[0,1] b , a ∈ [ 0 , 1 ] and t ∈ [ T ] t\in[T] t ∈ [ T ] ,
χ τ s e l l ( b ) : = I ( max { V τ s e l l , B τ } ≤ b ) χ τ b u y ( a ) : = I ( min { V τ b u y , A τ } ≥ a ) . (17) \chi_\tau^{\mathrm{sell}}(b):=\mathbb{I}(\max\{V_\tau^{\mathrm{sell}},B_\tau\}\leq b)
\qquad
\chi_\tau^{\mathrm{buy}}(a):=\mathbb{I}(\min\{V_\tau^{\mathrm{buy}},A_\tau\}\geq a). \tag*{(17)} χ τ sell ( b ) := I ( max { V τ sell , B τ } ≤ b ) χ τ buy ( a ) := I ( min { V τ buy , A τ } ≥ a ) . (17) Then, if b ∈ B t b\in\mathcal{B}_t b ∈ B t , it holds:
1 t ∑ τ = 1 t χ τ s e l l ( b ) = F ^ t ( b ) . (18) \frac{1}{t}\sum_{\tau=1}^{t}\chi_\tau^{\mathrm{sell}}(b)=\widehat{F}_t(b). \tag*{(18)} t 1 τ = 1 ∑ t χ τ sell ( b ) = F t ( b ) . (18) and, if a ∈ A t a\in\mathcal{A}_t a ∈ A t , it holds:
1 t ∑ τ = 1 t χ τ b u y ( a ) = S ^ t ( a ) . (19) \frac{1}{t}\sum_{\tau=1}^{t}\chi_\tau^{\mathrm{buy}}(a)=\widehat{S}_t(a). \tag*{(19)} t 1 τ = 1 ∑ t χ τ buy ( a ) = S t ( a ) . (19)
Algorithm 4 Optimistic Double Pointer Market Maker
Require: Time horizon T ∈ N > 0 T \in\mathbb{N}_{>0} T ∈ N > 0 , discretized sets B ∘ \mathcal{B}^{\circ} B ∘ , A ∘ \mathcal{A}^{\circ} A ∘ , functions ψ t ( b ) \psi_t(b) ψ t ( b ) , ψ t ( a ) \psi_t(a) ψ t ( a )
1: Set B 0 ∘ ← B ∘ \mathcal{B}^{\circ}_0 \leftarrow\mathcal{B}^{\circ} B 0 ∘ ← B ∘ , A 0 ∘ ← A ∘ \mathcal{A}^{\circ}_0 \leftarrow\mathcal{A}^{\circ} A 0 ∘ ← A ∘ 2: Set F ^ 0 ← 0 \widehat{F}_0 \leftarrow0 F 0 ← 0 , S ^ 0 ← 0 \widehat{S}_0 \leftarrow0 S 0 ← 0 , ψ 0 ← 1 \psi_0 \leftarrow1 ψ 0 ← 1 3: for t = 1 , … , T t = 1,\ldots,T t = 1 , … , T do 4: B t , 0 , A t , 0 ← B_{t,0}, A_{t,0} \leftarrow B t , 0 , A t , 0 ← Algorithm 5 ( B t − 1 ∘ , A t − 1 ∘ , S t − 1 u p , F t − 1 u p , S t − 1 l o w , F t − 1 l o w ) (\mathcal{B}^{\circ}_{t-1}, \mathcal{A}^{\circ}_{t-1}, S^{\mathrm{up}}_{t-1}, F^{\mathrm{up}}_{t-1}, S^{\mathrm{low}}_{t-1}, F^{\mathrm{low}}_{t-1}) ( B t − 1 ∘ , A t − 1 ∘ , S t − 1 up , F t − 1 up , S t − 1 low , F t − 1 low ) 5: B t ∘ ← B ∘ ∩ [ B t , 0 , 1 ] \mathcal{B}^{\circ}_t \leftarrow\mathcal{B}^{\circ} \cap[B_{t,0},1] B t ∘ ← B ∘ ∩ [ B t , 0 , 1 ] 6: A t ∘ ← A ∘ ∩ [ 0 , A t , 0 ] \mathcal{A}^{\circ}_t \leftarrow\mathcal{A}^{\circ} \cap[0,A_{t,0}] A t ∘ ← A ∘ ∩ [ 0 , A t , 0 ] 7: B t ← B t , 0 B_t \leftarrow B_{t,0} B t ← B t , 0 8: A t ← A t , 0 A_t \leftarrow A_{t,0} A t ← A t , 0 9: X ← 1 X \leftarrow1 X ← 1 , Y ← 1 Y \leftarrow1 Y ← 1 10: if S t − 1 u p ( A t ) < F t − 1 l o w ( B t ) S^{\mathrm{up}}_{t-1}(A_t) < F^{\mathrm{low}}_{t-1}(B_t) S t − 1 up ( A t ) < F t − 1 low ( B t ) then 11: Sample X ∼ Bern ( S t − 1 u p ( A t ) / F t − 1 l o w ( B t ) ) X \sim\operatorname{Bern}(S^{\mathrm{up}}_{t-1}(A_t)/F^{\mathrm{low}}_{t-1}(B_t)) X ∼ Bern ( S t − 1 up ( A t ) / F t − 1 low ( B t )) 12: if X = 0 X = 0 X = 0 then 13: B t ← 0 B_t \leftarrow0 B t ← 0 14: end if 15: else if F t − 1 u p ( B t ) < S t − 1 l o w ( A t ) F^{\mathrm{up}}_{t-1}(B_t) < S^{\mathrm{low}}_{t-1}(A_t) F t − 1 up ( B t ) < S t − 1 low ( A t ) then 16: Sample Y ∼ Bern ( F t − 1 u p ( B t ) / S t − 1 l o w ( A t ) ) Y \sim\operatorname{Bern}(F^{\mathrm{up}}_{t-1}(B_t)/S^{\mathrm{low}}_{t-1}(A_t)) Y ∼ Bern ( F t − 1 up ( B t ) / S t − 1 low ( A t )) 17: if Y = 0 Y = 0 Y = 0 then 18: A t ← 1 A_t \leftarrow1 A t ← 1 19: end if 20: end if 21: Pull ( B t , A t ) (B_t,A_t) ( B t , A t ) 22: Observe LOB feedback as prescribed in Protocol 1 23: Update all parameters on B t ∘ , A t ∘ \mathcal{B}^{\circ}_t,\mathcal{A}^{\circ}_t B t ∘ , A t ∘ 24: end for
The meaning of the former proposition is what follows. At any t ∈ [ T ] t \in[T] t ∈ [ T ] , the agent can choose between:
Selecting B t , A t B_t,A_t B t , A t inside B t , A t \mathcal{B}_t,\mathcal{A}_t B t , A t . In this case, the agent gets less information but can build good estimates of F ( B t ) , S ( A t ) F(B_t),S(A_t) F ( B t ) , S ( A t ) .
Selecting B t , A t B_t,A_t B t , A t outside B t , A t \mathcal{B}_t,\mathcal{A}_t B t , A t . In this case, the agent can potentially get more information but the resulting estimates of F ( B t ) F(B_t) F ( B t ) and S ( A t ) S(A_t) S ( A t ) are not as accurate as F ^ t \widehat{F}_t F t and S ^ t \widehat{S}_t S t .
In the next sections, we show how to leverage the previous results to build a no-regret algorithm for the LOB feedback setting.
Our Algorithm
We are now ready to describe our algorithm for LOB setting. The pseudocode is provided in Algorithm 4. Throughout this section, we work with arbitrary discretizations B ∘ , A ∘ \mathcal{B}^{\circ},\mathcal{A}^{\circ} B ∘ , A ∘ of the set [ 0 , 1 ] [0,1] [ 0 , 1 ] containing the sets of plausible bids and asks, respectively. The correct way to discretize the decision space will be specified later.
Notation 6.8. From this point on, for any subset of bids or asks, we use the superscript ∘ \circ ∘ to denote its intersection with B ∘ \mathcal{B}^{\circ} B ∘ or A ∘ \mathcal{A}^{\circ} A ∘ , respectively. In particular, we will use:
B t ∘ : = B t ∩ B ∘ A t ∘ : = A t ∩ A ∘ . B_t^{\circ} := B_t \cap\mathcal{B}^{\circ} \qquad A_t^{\circ} := A_t \cap\mathcal{A}^{\circ}. B t ∘ := B t ∩ B ∘ A t ∘ := A t ∩ A ∘ .
Algorithm 5 Double Double Pointer
Require: Discrete sets of the form [ B , 1 ] ∘ [B,1]^{\circ} [ B , 1 ] ∘ , [ 0 , A ] ∘ [0,A]^{\circ} [ 0 , A ] ∘ , upper bound for cumulative and survival functions S u p , F u p S^{\mathrm{up}}, F^{\mathrm{up}} S up , F up , lower bound for cumulative and survival functions S l o w , F l o w S^{\mathrm{low}}, F^{\mathrm{low}} S low , F low .
J l o w ← 0 J^{\mathrm{low}} \gets0 J low ← 0
Let { b 0 , … , b N − 1 } : = [ B , 1 ] ∘ \{b_0,\ldots,b_{N-1}\}:=[B,1]^{\circ} { b 0 , … , b N − 1 } := [ B , 1 ] ∘
Let { a 0 , … , a M − 1 } : = [ 0 , A ] ∘ \{a_0,\ldots,a_{M-1}\}:=[0,A]^{\circ} { a 0 , … , a M − 1 } := [ 0 , A ] ∘
m ← M − 1 m \gets M-1 m ← M − 1
for n = 0 , … , N − 1 n=0,\ldots,N-1 n = 0 , … , N − 1 do
while m ≥ 0 m\geq0 m ≥ 0 and b n < a m b_n<a_m b n < a m do
J l o w = max { J l o w , ( a m − b n ) min ( F l o w ( b n ) , S l o w ( a m ) ) } J^{\mathrm{low}}=\max\{J^{\mathrm{low}},(a_m-b_n)\min(F^{\mathrm{low}}(b_n),S^{\mathrm{low}}(a_m))\} J low = max { J low , ( a m − b n ) min ( F low ( b n ) , S low ( a m ))}
if F l o w ( b n ) < S l o w ( a m ) F^{\mathrm{low}}(b_n)<S^{\mathrm{low}}(a_m) F low ( b n ) < S low ( a m ) then
break
end if
m ← m − 1 m\gets m-1 m ← m − 1
end while
end for
n ← 0 n\gets0 n ← 0
m ← M − 1 m\gets M-1 m ← M − 1
while n < N n<N n < N , m ≥ 0 m\geq0 m ≥ 0 , and b n < a m b_n<a_m b n < a m do
J u p ← ( a m − b n ) min { F u p ( b n ) , S u p ( a m ) } J^{\mathrm{up}}\gets(a_m-b_n)\min\{F^{\mathrm{up}}(b_n),S^{\mathrm{up}}(a_m)\} J up ← ( a m − b n ) min { F up ( b n ) , S up ( a m )}
if J u p ≥ J l o w J^{\mathrm{up}}\geq J^{\mathrm{low}} J up ≥ J low then
Return b n , a m b_n,a_m b n , a m
end if
if F u p ( b n ) < S u p ( a m ) F^{\mathrm{up}}(b_n)<S^{\mathrm{up}}(a_m) F up ( b n ) < S up ( a m ) then
n ← n + 1 n\gets n+1 n ← n + 1
else
m ← m − 1 m\gets m-1 m ← m − 1
end if
end while
The algorithm makes use of confidence-bound parameters, defined such as Equation (16) holds with high probability, which we do not specify here in order to maintain full generality.
Notation 6.9. For the rest of this section, we fix sequences of functions { ψ t ( b , δ ) } t = 1 T \{\psi_t(b,\delta)\}_{t=1}^{T} { ψ t ( b , δ ) } t = 1 T and { ψ t ( a , δ ) } t = 1 T \{\psi_t(a,\delta)\}_{t=1}^{T} { ψ t ( a , δ ) } t = 1 T such that Equation (16) holds with probability at least 1 − δ 1-\delta 1 − δ . We also omit the dependence on δ \delta δ , and simply write ψ t ( b ) \psi_t(b) ψ t ( b ) and ψ t ( a ) \psi_t(a) ψ t ( a ) .
Given these confidence intervals, we define upper and lower confidence bounds for F F F and S S S as:
F t u p ( b ) = min { 1 , F ^ t ( b ) + ψ t ( b ) } , F t l o w ( b ) = max { 0 , F ^ t ( b ) − ψ t ( b ) } . (20) F_t^{\mathrm{up}}(b)=\min\{1,\widehat{F}_t(b)+\psi_t(b)\},\qquad F_t^{\mathrm{low}}(b)=\max\{0,\widehat{F}_t(b)-\psi_t(b)\}. \tag*{(20)} F t up ( b ) = min { 1 , F t ( b ) + ψ t ( b )} , F t low ( b ) = max { 0 , F t ( b ) − ψ t ( b )} . (20)
S t u p ( a ) = min { 1 , S ^ t ( a ) + ψ t ( a ) } , S t l o w ( a ) = max { 0 , S ^ t ( a ) − ψ t ( a ) } . (21) S_t^{\mathrm{up}}(a)=\min\{1,\widehat{S}_t(a)+\psi_t(a)\},\qquad S_t^{\mathrm{low}}(a)=\max\{0,\widehat{S}_t(a)-\psi_t(a)\}. \tag*{(21)} S t up ( a ) = min { 1 , S t ( a ) + ψ t ( a )} , S t low ( a ) = max { 0 , S t ( a ) − ψ t ( a )} . (21)
As proved in the previous section, under the good event (16) , the true functions F F F and S S S belong to the confidence sets [ F t l o w , F t u p ] [F_t^{\mathrm{low}},F_t^{\mathrm{up}}] [ F t low , F t up ] and [ S t l o w , S t u p ] [S_t^{\mathrm{low}},S_t^{\mathrm{up}}] [ S t low , S t up ] at every t ∈ [ T ] t\in[T] t ∈ [ T ] and for every b ∈ B ∘ b\in B^{\circ} b ∈ B ∘ and a ∈ A ∘ a\in A^{\circ} a ∈ A ∘ .
Algorithm Description
Algorithm 4 maintains a pair of posted prices ( B t , A t ) (B_t, A_t) ( B t , A t ) over time. At the beginning of round t t t , the algorithm calls the subroutine Double Double Pointer (Algorithm 5) at Line 4, passing as input the current discretized active sets B t − 1 ∘ , A t − 1 ∘ \mathcal{B}^{\circ}_{t-1}, \mathcal{A}^{\circ}_{t-1} B t − 1 ∘ , A t − 1 ∘ together with the upper and lower confidence bounds based on the first t − 1 t-1 t − 1 observations. The subroutine returns a candidate pair ( B t , 0 , A t , 0 ) (B_{t,0}, A_{t,0}) ( B t , 0 , A t , 0 ) , which determines the new active sets and is used to update current prices by setting B t ← B t , 0 B_t \leftarrow B_{t,0} B t ← B t , 0 and A t ← A t , 0 A_t \leftarrow A_{t,0} A t ← A t , 0 .
The algorithm then possibly modifies this candidate pair through two symmetric randomized corrections, applying at most one of them. If the optimistic upper bound on the survival function at the current ask is smaller than the pessimistic lower bound on the cumulative function at the current bid, i.e., if:
S t − 1 u p ( A t ) < F t − 1 l o w ( B t ) , S^{\mathrm{up}}_{t-1}(A_t) < F^{\mathrm{low}}_{t-1}(B_t), S t − 1 up ( A t ) < F t − 1 low ( B t ) ,
then the algorithm samples a Bernoulli random variable with parameter S t − 1 u p ( A t ) / F t − 1 l o w ( B t ) S^{\mathrm{up}}_{t-1}(A_t)/F^{\mathrm{low}}_{t-1}(B_t) S t − 1 up ( A t ) / F t − 1 low ( B t ) . If this sample is equal to zero, then the bid is reset to 0 at Line 12. Otherwise, symmetrically, if:
F t − 1 u p ( B t ) < S t − 1 l o w ( A t ) , F^{\mathrm{up}}_{t-1}(B_t) < S^{\mathrm{low}}_{t-1}(A_t), F t − 1 up ( B t ) < S t − 1 low ( A t ) ,
then the algorithm samples a Bernoulli random variable with parameter F t − 1 u p ( B t ) / S t − 1 l o w ( A t ) F^{\mathrm{up}}_{t-1}(B_t)/S^{\mathrm{low}}_{t-1}(A_t) F t − 1 up ( B t ) / S t − 1 low ( A t ) , and if the sample is zero, then the ask is reset to 1 at Line 17. After these possible corrections, the algorithm pulls ( B t , A t ) (B_t, A_t) ( B t , A t ) , observes the LOB feedback, and updates all estimates and confidence bounds before moving to the next round. For the uniform grids in Equation (22) , the initial call returns ( 0 , 1 ) (0,1) ( 0 , 1 ) , so the first round reveals both valuations.
The role of Algorithm 5 is to compute the candidate pair returned back to Algorithm 4. Given active discretized sets of the form B t − 1 ∘ \mathcal{B}^{\circ}_{t-1} B t − 1 ∘ and A t − 1 ∘ \mathcal{A}^{\circ}_{t-1} A t − 1 ∘ , together with upper and lower confidence bounds for F F F and S S S , it performs two consecutive double-pointer scans. First, it computes a pessimistic benchmark value J l o w J^{\mathrm{low}} J low . It initializes J l o w = 0 J^{\mathrm{low}} = 0 J low = 0 , enumerates the active bids and asks as { b 0 , … , b N − 1 } \{b_0,\ldots,b_{N-1}\} { b 0 , … , b N − 1 } and { a 0 , … , a M − 1 } \{a_0,\ldots,a_{M-1}\} { a 0 , … , a M − 1 } , and starts with the ask pointer at the largest ask. Then, in the loop of Lines 5–13, it scans the bid grid from left to right. For each bid b n b_n b n , it visits the feasible asks from the current ask pointer downward. At every visited pair, Line 7 updates J l o w J^{\mathrm{low}} J low with the value:
( a m − b n ) min ( F l o w ( b n ) , S l o w ( a m ) ) , (a_m-b_n)\min(F^{\mathrm{low}}(b_n),S^{\mathrm{low}}(a_m)), ( a m − b n ) min ( F low ( b n ) , S low ( a m )) ,
that is, with the pessimistic value associated with the current pair ( b n , a m ) (b_n,a_m) ( b n , a m ) .
The pair is evaluated before either pointer moves. If F l o w ( b n ) < S l o w ( a m ) F^{\mathrm{low}}(b_n) < S^{\mathrm{low}}(a_m) F low ( b n ) < S low ( a m ) , the inner loop ends and the bid pointer advances; otherwise, the ask pointer decreases.
Once this lower benchmark has been computed, the subroutine resets the two pointers and starts a second scan, now using the optimistic confidence bounds. In the loop of Lines 16–26, it evaluates at the current pair ( b n , a m ) (b_n,a_m) ( b n , a m ) the optimistic quantity:
J u p = ( a m − b n ) min ( F u p ( b n ) , S u p ( a m ) ) , J^{\mathrm{up}} = (a_m-b_n)\min(F^{\mathrm{up}}(b_n),S^{\mathrm{up}}(a_m)), J up = ( a m − b n ) min ( F up ( b n ) , S up ( a m )) ,
as in Line 17. The scan returns the current pair immediately if J u p ≥ J l o w J^{\mathrm{up}} \geq J^{\mathrm{low}} J up ≥ J low . If F u p ( b n ) < S u p ( a m ) F^{\mathrm{up}}(b_n) < S^{\mathrm{up}}(a_m) F up ( b n ) < S up ( a m ) , the bid pointer is increased; otherwise, the ask pointer is decreased. In Figure 3 , we provide a graphical description of Algorithm 5.
Figure 3. Illustration of Double Double Pointer. Both scans start from ( b 0 , a M − 1 ) (b_0, a_{M-1}) ( b 0 , a M − 1 ) and move right or down, evaluating each visited feasible pair before moving. Left: the scan computes the benchmark value J l o w J^{\mathrm{low}} J low using the lower confidence bounds; the green box marks a maximizing pair. It continues until a pointer exits its grid or no feasible pair remains. Right: the algorithm restarts and scans using the upper confidence bounds, stopping at the first pair whose optimistic value reaches the lower benchmark.
In this way, Algorithm 4 employs Algorithm 5 to identify, at each round, a candidate bid-ask pair whose optimistic value is large enough compared with the best pessimistic value currently computed given the confidence bounds. The two possible randomized corrections performed afterwards address the cases in which the selected pair ( B t , 0 , A t , 0 ) (B_{t,0}, A_{t,0}) ( B t , 0 , A t , 0 ) returned by Double Double Pointer is not balanced with respect to the confidence bounds. If S t − 1 u p ( A t ) < F t − 1 l o w ( B t ) S^{\mathrm{up}}_{t-1}(A_t) < F^{\mathrm{low}}_{t-1}(B_t) S t − 1 up ( A t ) < F t − 1 low ( B t ) , then the bid side is too large relative to the ask side, and the algorithm resets B t B_t B t to 0 with a suitable probability. Symmetrically, if F t − 1 u p ( B t ) < S t − 1 l o w ( A t ) F^{\mathrm{up}}_{t-1}(B_t) < S^{\mathrm{low}}_{t-1}(A_t) F t − 1 up ( B t ) < S t − 1 low ( A t ) , then the ask side is too large relative to the bid side, and the algorithm resets A t A_t A t to 1 with a suitable probability.
Computational Complexity
In this section, we study the computational complexity of Algorithm 4.
Similarly to § 8 , we refer as γ t \gamma_t γ t to the per-round complexity of choosing B t B_t B t , A t A_t A t at each time-step t t t . Thus, our goal reduces to bound:
Γ : = max t = 1 , … , T γ t . \Gamma:= \max_{t=1,\ldots,T} \gamma_t. Γ := t = 1 , … , T max γ t .
Theorem 6.10. The (per-round) run time computational complexity of Algorithm 4 is bounded as:
Γ ≤ O ( ∣ B ∘ ∣ + ∣ A ∘ ∣ ) . \Gamma\le O\left(\lvert B^\circ\rvert+ \lvert A^\circ\rvert\right). Γ ≤ O ( ∣ B ∘ ∣ + ∣ A ∘ ∣ ) .
Proof. The computational complexity γ t \gamma_t γ t of a single step of Algorithm 4 boils down to the one of Lines 23 and 4, and to the one of Algorithm 5, since all the other lines require constant time. Specifically, Line 23 requires to update all parameter as in Equations (17) , (20) and (21) . Computing, for each surviving bid and each surviving ask, the sample mean F ^ t ( b ) \widehat{F}_t(b) F t ( b ) or S ^ t ( a ) \widehat{S}_t(a) S t ( a ) requires constant time, employing an incremental update. Computing the bonuses—even in the most complex case of Bernstein bonuses (15) —also requires constant time. Therefore, it holds:
γ t u p d a t e ≤ O ( ∣ B ∘ ∣ + ∣ A ∘ ∣ ) . \gamma_t^{\mathrm{update}} \le O\left(\lvert B^\circ\rvert+ \lvert A^\circ\rvert\right). γ t update ≤ O ( ∣ B ∘ ∣ + ∣ A ∘ ∣ ) .
The complexity of the call to Algorithm 5 can be bounded as follows. Consider Lines 5–13. At every step of the inner cycle, either n n n increases (when the while loop ends) or m m m decreases. Each comparison and update requires constant time. Therefore, the total number of elementary steps does not exceed:
γ t f i r s t l o o p ≤ O ( N + M ) ≤ O ( ∣ B ∘ ∣ + ∣ A ∘ ∣ ) . \gamma_t^{\mathrm{first\ loop}} \le O(N+M) \le O\left(|\mathcal{B}^{\circ}|+|\mathcal{A}^{\circ}|\right). γ t first loop ≤ O ( N + M ) ≤ O ( ∣ B ∘ ∣ + ∣ A ∘ ∣ ) .
A similar reasoning holds for the second loop at Lines 16–26. In an analogous way, it holds:
γ t s e c o n d l o o p ≤ O ( N + M ) ≤ O ( ∣ B ∘ ∣ + ∣ A ∘ ∣ ) . \gamma_t^{\mathrm{second\ loop}} \le O(N+M) \le O\left(|\mathcal{B}^{\circ}|+|\mathcal{A}^{\circ}|\right). γ t second loop ≤ O ( N + M ) ≤ O ( ∣ B ∘ ∣ + ∣ A ∘ ∣ ) .
Summing the three terms γ t u p d a t e , γ t f i r s t l o o p , γ t s e c o n d l o o p \gamma_t^{\mathrm{update}}, \gamma_t^{\mathrm{first\ loop}}, \gamma_t^{\mathrm{second\ loop}} γ t update , γ t first loop , γ t second loop completes the proof.
Theorem 6.10 shows that, although the optimization problem is bivariate, its computational complexity scales as O ( ∣ B ∘ ∣ + ∣ A ∘ ∣ ) O(|\mathcal{B}^{\circ}|+|\mathcal{A}^{\circ}|) O ( ∣ B ∘ ∣ + ∣ A ∘ ∣ ) rather than O ( ∣ B ∘ ∣ ∣ A ∘ ∣ ) O(|\mathcal{B}^{\circ}||\mathcal{A}^{\circ}|) O ( ∣ B ∘ ∣∣ A ∘ ∣ ) . This efficiency is due to our two-pointer algorithmic structure.
This result can be further specialized based on the choice of discretization which will be specified in the following section. Specifically, when DKW confidence bounds are employed, following Theorem 6.18 and setting N = ⌈ T ⌉ N=\lceil\sqrt{T}\rceil N = ⌈ T ⌉ , so that ∣ B ∘ ∣ = ∣ A ∘ ∣ = N + 1 |\mathcal{B}^{\circ}|=|\mathcal{A}^{\circ}|=N+1 ∣ B ∘ ∣ = ∣ A ∘ ∣ = N + 1 yields a complexity of order Γ ≤ O ( T ) \Gamma\le O(\sqrt{T}) Γ ≤ O ( T ) . Under the Bernstein-type bounds of Theorem 6.19 , a finer grid N = T N=T N = T is required, leading to Γ ≤ O ( T ) \Gamma\le O(T) Γ ≤ O ( T ) . This difference highlights an important trade-off. To obtain an instance-dependent bound, one needs a finer discretization grid. By contrast, if a worst-case regret guarantee is enough, a discretization step of size T − 1 / 2 T^{-1/2} T − 1/2 is sufficient, leading to a lower computational complexity.
Theoretical Guarantees of Algorithm 4
In the following section, we provide the theoretical guarantees attained by Algorithm 4.
Preliminaries Results
We start proving one necessary condition, that is, the algorithm selects only feasible actions.
Proposition 6.11. Algorithm 4 always selects a bid-ask pair such that B t < A t B_t < A_t B t < A t .
Proof. By design of the algorithm, two cases may occur:
If one of the conditions at Lines 12,17 is triggered, then either B t = 0 B_t=0 B t = 0 or A t = 1 A_t=1 A t = 1 . These corrections preserve the feasibility of the pair returned by Algorithm 5, which we verify in the next point.
In the opposite case, the pair of arms to pull is determined by Algorithm 5. In either scan, whenever the bid pointer advances, every remaining feasible pair using that bid is dominated by the current pair: its spread is no larger, and its minimum bound is at most the bid’s bound. The analogous statement holds when the ask pointer decreases. When b n ≥ a m b_n\ge a_m b n ≥ a m , no feasible pair remains. Thus, the routine in Lines 5–13 finds the maximum lower value:
J l o w = ( a m ′ − b n ′ ) min { F l o w ( b n ′ ) , S l o w ( a m ′ ) } , J^{\mathrm{low}}=(a'_m-b'_n)\min\{F^{\mathrm{low}}(b'_n),S^{\mathrm{low}}(a'_m)\}, J low = ( a m ′ − b n ′ ) min { F low ( b n ′ ) , S low ( a m ′ )} ,
for some feasible pair ( b n ′ , a m ′ ) (b'_n,a'_m) ( b n ′ , a m ′ ) . At this point, either J l o w = 0 J^{\mathrm{low}}=0 J low = 0 , in which case the second routine immediately returns the feasible outer pair, or J l o w > 0 J^{\mathrm{low}}>0 J low > 0 . In the latter case, the second routine stops when it finds a pair such that:
( a m − b n ) min { F u p ( b n ) , S u p ( a m ) } ≥ J l o w . (a_m-b_n)\min\{F^{\mathrm{up}}(b_n),S^{\mathrm{up}}(a_m)\}\ge J^{\mathrm{low}}. ( a m − b n ) min { F up ( b n ) , S up ( a m )} ≥ J low .
Since F u p ( b n ′ ) ≥ F l o w ( b n ′ ) F^{\mathrm{up}}(b_n')\ge F^{\mathrm{low}}(b_n') F up ( b n ′ ) ≥ F low ( b n ′ ) and S u p ( a m ′ ) ≥ S l o w ( a m ′ ) S^{\mathrm{up}}(a_m')\ge S^{\mathrm{low}}(a_m') S up ( a m ′ ) ≥ S low ( a m ′ ) , the pair ( b n ′ , a m ′ ) (b_n',a_m') ( b n ′ , a m ′ ) has upper value at least J l o w J^{\mathrm{low}} J low . By the same dominance argument, it cannot be discarded before the routine returns a pair meeting this threshold. The loop condition ensures that the returned pair satisfies b n < a m b_n<a_m b n < a m .
This concludes the proof.
In the next result, we prove a relation between the random imbalance at time t t t and the sum of its conditional expected increments.
Proposition 6.12. Let ρ τ : = E [ I ( V τ s e l l ≤ B τ ) − I ( V τ b u y ≥ A τ ) ∣ F τ − 1 ] \rho_\tau:=\mathbb{E}[\mathbb{I}(V_\tau^{\mathrm{sell}}\le B_\tau)-\mathbb{I}(V_\tau^{\mathrm{buy}}\ge A_\tau)\mid\mathcal{F}_{\tau-1}] ρ τ := E [ I ( V τ sell ≤ B τ ) − I ( V τ buy ≥ A τ ) ∣ F τ − 1 ] . The following relations hold:
With probability at least 1 − δ 1-\delta 1 − δ , simultaneously for every t = 1 , … , T t=1,\ldots,T t = 1 , … , T ,
∣ I t − ∑ τ = 1 t ρ τ ∣ ≤ 2 T log ( 2 / δ ) . \left|I_t-\sum_{\tau=1}^{t}\rho_\tau\right|\le\sqrt{2T\log(2/\delta)}. I t − τ = 1 ∑ t ρ τ ≤ 2 T log ( 2/ δ ) . σ t 2 : = Var [ I ( V t s e l l ≤ B t ) − I ( V t b u y ≥ A t ) ∣ F t − 1 ] , \sigma_t^2:=\operatorname{Var}[\mathbb{I}(V_t^{\mathrm{sell}}\le B_t)-\mathbb{I}(V_t^{\mathrm{buy}}\ge A_t)\mid\mathcal{F}_{t-1}], σ t 2 := Var [ I ( V t sell ≤ B t ) − I ( V t buy ≥ A t ) ∣ F t − 1 ] , for every deterministic v ≥ 0 v\ge0 v ≥ 0 , with probability at least 1 − δ 1-\delta 1 − δ , simultaneously for every t ≤ T t\le T t ≤ T such that ∑ τ = 1 t σ τ 2 ≤ v \sum_{\tau=1}^{t}\sigma_\tau^2\le v ∑ τ = 1 t σ τ 2 ≤ v , it holds:
∣ I t − ∑ τ = 1 t ρ τ ∣ ≤ 2 v log ( 2 / δ ) + 4 3 log ( 2 / δ ) . \left|I_t-\sum_{\tau=1}^{t}\rho_\tau\right|\le\sqrt{2v\log(2/\delta)}+\frac{4}{3}\log(2/\delta). I t − τ = 1 ∑ t ρ τ ≤ 2 v log ( 2/ δ ) + 3 4 log ( 2/ δ ) . The same conclusions hold for the cumulative reward, with ρ t \rho_t ρ t and σ t 2 \sigma_t^2 σ t 2 replaced by the conditional mean and variance of r t r_t r t .
Proof. Let F t \mathcal{F}_t F t contain all valuations and algorithmic random draws through round t t t . By definition,
I t − ∑ τ = 1 t ρ τ = ∑ τ = 1 t ( I ( V τ s e l l ≤ B τ ) − I ( V τ b u y ≥ A τ ) − ρ τ ) . I_t-\sum_{\tau=1}^{t}\rho_\tau=\sum_{\tau=1}^{t}\left(\mathbb{I}(V_\tau^{\mathrm{sell}}\le B_\tau)-\mathbb{I}(V_\tau^{\mathrm{buy}}\ge A_\tau)-\rho_\tau\right). I t − τ = 1 ∑ t ρ τ = τ = 1 ∑ t ( I ( V τ sell ≤ B τ ) − I ( V τ buy ≥ A τ ) − ρ τ ) .
Each summand has conditional mean zero and conditional range of length at most 2. The maximal Hoeffding–Azuma inequality [46 ] , applied to both signs, proves the first part.
For the second part, we apply Freedman’s inequality [15 ] . Since the centered increments have absolute value at most 2, for every ε > 0 \varepsilon>0 ε > 0 and v ≥ 0 v\ge0 v ≥ 0 , it holds:
P ( ∃ t ≤ T : I t − ∑ τ = 1 t ρ τ ≥ ε , ∑ τ = 1 t σ τ 2 ≤ v ) ≤ exp ( − ε 2 2 ( v + 2 ε / 3 ) ) . \mathbb{P}\left(\exists t\le T:I_t-\sum_{\tau=1}^{t}\rho_\tau\ge\varepsilon,\ \sum_{\tau=1}^{t}\sigma_\tau^2\le v\right)\le\exp\left(-\frac{\varepsilon^2}{2(v+2\varepsilon/3)}\right). P ( ∃ t ≤ T : I t − τ = 1 ∑ t ρ τ ≥ ε , τ = 1 ∑ t σ τ 2 ≤ v ) ≤ exp ( − 2 ( v + 2 ε /3 ) ε 2 ) .
Applying this bound to both signs with ε = 2 v log ( 2 / δ ) + 4 3 log ( 2 / δ ) \varepsilon=\sqrt{2v\log(2/\delta)}+\frac{4}{3}\log(2/\delta) ε = 2 v log ( 2/ δ ) + 3 4 log ( 2/ δ ) gives the second part. The reward r t r_t r t also lies in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] , so the same proof applies to its centered sum.
This concludes the proof.
The previous result relates the true imbalance to the sum of the variables ρ τ \rho_\tau ρ τ . We next bound these conditional expected increments under the good event.
Theorem 6.13. Under the good event (16) , it holds:
∣ ∑ τ = 1 t ρ τ ∣ ≤ 4 ∑ τ = 1 t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 ) } . \left|\sum_{\tau=1}^{t}\rho_\tau\right| \le4\sum_{\tau=1}^{t}\max\{\psi_{\tau-1}(A_{\tau,0}),\psi_{\tau-1}(B_{\tau,0})\}. τ = 1 ∑ t ρ τ ≤ 4 τ = 1 ∑ t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 )} .
Proof. Fix a round τ \tau τ . In this proof, let F τ − 1 \mathcal{F}_{\tau-1} F τ − 1 contain all valuations and algorithmic random draws through round τ − 1 \tau-1 τ − 1 , before the fresh correction draws, and let ρ τ : = E [ I τ − I τ − 1 ∣ F τ − 1 ] \rho_\tau:= \mathbb{E}[I_\tau-I_{\tau-1}\mid\mathcal{F}_{\tau-1}] ρ τ := E [ I τ − I τ − 1 ∣ F τ − 1 ] . By Lines 12 and 17, ρ τ \rho_\tau ρ τ writes as:
ρ τ = E [ I ( V τ s e l l ≤ B τ ) − I ( V τ b u y ≥ A τ ) ∣ F τ − 1 ] = F ( B τ , 0 ) P ( X = 1 ∣ F τ − 1 ) + F ( 0 ) P ( X = 0 ∣ F τ − 1 ) − S ( A τ , 0 ) P ( Y = 1 ∣ F τ − 1 ) − S ( 1 ) P ( Y = 0 ∣ F τ − 1 ) = F ( B τ , 0 ) P ( X = 1 ∣ F τ − 1 ) − S ( A τ , 0 ) P ( Y = 1 ∣ F τ − 1 ) . \begin{aligned}
\rho_\tau&= \mathbb{E}[\mathbb{I}(V^{\mathrm{sell}}_\tau\le B_\tau)-\mathbb{I}(V^{\mathrm{buy}}_\tau\ge A_\tau)\mid\mathcal{F}_{\tau-1}]\\
&=F(B_{\tau,0})\mathbb{P}(X=1\mid\mathcal{F}_{\tau-1})+F(0)\mathbb{P}(X=0\mid\mathcal{F}_{\tau-1})\\
&\quad-S(A_{\tau,0})\mathbb{P}(Y=1\mid\mathcal{F}_{\tau-1})-S(1)\mathbb{P}(Y=0\mid\mathcal{F}_{\tau-1})\\
&=F(B_{\tau,0})\mathbb{P}(X=1\mid\mathcal{F}_{\tau-1})-S(A_{\tau,0})\mathbb{P}(Y=1\mid\mathcal{F}_{\tau-1}).
\end{aligned} ρ τ = E [ I ( V τ sell ≤ B τ ) − I ( V τ buy ≥ A τ ) ∣ F τ − 1 ] = F ( B τ , 0 ) P ( X = 1 ∣ F τ − 1 ) + F ( 0 ) P ( X = 0 ∣ F τ − 1 ) − S ( A τ , 0 ) P ( Y = 1 ∣ F τ − 1 ) − S ( 1 ) P ( Y = 0 ∣ F τ − 1 ) = F ( B τ , 0 ) P ( X = 1 ∣ F τ − 1 ) − S ( A τ , 0 ) P ( Y = 1 ∣ F τ − 1 ) .
We prove the result in case F ( B τ , 0 ) ≥ S ( A τ , 0 ) F(B_{\tau,0})\ge S(A_{\tau,0}) F ( B τ , 0 ) ≥ S ( A τ , 0 ) . The other case follows analogously switching asks and bids. Under the good event, the ask correction cannot be triggered, since:
F τ − 1 u p ( B τ , 0 ) ≥ F ( B τ , 0 ) ≥ S ( A τ , 0 ) ≥ S τ − 1 l o w ( A τ , 0 ) . F^{\mathrm{up}}_{\tau-1}(B_{\tau,0})\ge F(B_{\tau,0})\ge S(A_{\tau,0})\ge S^{\mathrm{low}}_{\tau-1}(A_{\tau,0}). F τ − 1 up ( B τ , 0 ) ≥ F ( B τ , 0 ) ≥ S ( A τ , 0 ) ≥ S τ − 1 low ( A τ , 0 ) .
Therefore P ( Y = 1 ∣ F τ − 1 ) = 1 \mathbb{P}(Y=1\mid\mathcal{F}_{\tau-1})=1 P ( Y = 1 ∣ F τ − 1 ) = 1 . Now, two cases may occur:
If the bid correction is not triggered, S τ − 1 u p ( A τ , 0 ) ≥ F τ − 1 l o w ( B τ , 0 ) S^{\mathrm{up}}_{\tau-1}(A_{\tau,0})\ge F^{\mathrm{low}}_{\tau-1}(B_{\tau,0}) S τ − 1 up ( A τ , 0 ) ≥ F τ − 1 low ( B τ , 0 ) . By Lemma B.1 , it holds:
0 ≤ ρ τ = F ( B τ , 0 ) − S ( A τ , 0 ) ≤ F ( B τ , 0 ) − F τ − 1 l o w ( B τ , 0 ) + S τ − 1 u p ( A τ , 0 ) − S ( A τ , 0 ) ≤ 2 ψ τ − 1 ( B τ , 0 ) + 2 ψ τ − 1 ( A τ , 0 ) . \begin{aligned}
0\le\rho_\tau&=F(B_{\tau,0})-S(A_{\tau,0})\\
&\le F(B_{\tau,0})-F^{\mathrm{low}}_{\tau-1}(B_{\tau,0})+S^{\mathrm{up}}_{\tau-1}(A_{\tau,0})-S(A_{\tau,0})\\
&\le2\psi_{\tau-1}(B_{\tau,0})+2\psi_{\tau-1}(A_{\tau,0}).
\end{aligned} 0 ≤ ρ τ = F ( B τ , 0 ) − S ( A τ , 0 ) ≤ F ( B τ , 0 ) − F τ − 1 low ( B τ , 0 ) + S τ − 1 up ( A τ , 0 ) − S ( A τ , 0 ) ≤ 2 ψ τ − 1 ( B τ , 0 ) + 2 ψ τ − 1 ( A τ , 0 ) .
In the opposite case, F τ − 1 l o w ( B τ , 0 ) > S τ − 1 u p ( A τ , 0 ) ≥ 0 F^{\mathrm{low}}_{\tau-1}(B_{\tau,0})>S^{\mathrm{up}}_{\tau-1}(A_{\tau,0})\ge0 F τ − 1 low ( B τ , 0 ) > S τ − 1 up ( A τ , 0 ) ≥ 0 , so the denominator in the correction probability is strictly positive. Since F τ − 1 l o w ( B τ , 0 ) P ( X = 1 ∣ F τ − 1 ) = S τ − 1 u p ( A τ , 0 ) F^{\mathrm{low}}_{\tau-1}(B_{\tau,0})\mathbb{P}(X=1\mid\mathcal{F}_{\tau-1})=S^{\mathrm{up}}_{\tau-1}(A_{\tau,0}) F τ − 1 low ( B τ , 0 ) P ( X = 1 ∣ F τ − 1 ) = S τ − 1 up ( A τ , 0 ) , it holds:
0 ≤ ρ τ = ( F ( B τ , 0 ) − F τ − 1 l o w ( B τ , 0 ) ) P ( X = 1 ∣ F τ − 1 ) + S τ − 1 u p ( A τ , 0 ) − S ( A τ , 0 ) ≤ 2 ψ τ − 1 ( B τ , 0 ) + 2 ψ τ − 1 ( A τ , 0 ) , \begin{aligned}
0\le\rho_\tau&=\left(F(B_{\tau,0})-F^{\mathrm{low}}_{\tau-1}(B_{\tau,0})\right)\mathbb{P}(X=1\mid\mathcal{F}_{\tau-1})\\
&\quad+S^{\mathrm{up}}_{\tau-1}(A_{\tau,0})-S(A_{\tau,0})\\
&\le2\psi_{\tau-1}(B_{\tau,0})+2\psi_{\tau-1}(A_{\tau,0}),
\end{aligned} 0 ≤ ρ τ = ( F ( B τ , 0 ) − F τ − 1 low ( B τ , 0 ) ) P ( X = 1 ∣ F τ − 1 ) + S τ − 1 up ( A τ , 0 ) − S ( A τ , 0 ) ≤ 2 ψ τ − 1 ( B τ , 0 ) + 2 ψ τ − 1 ( A τ , 0 ) ,
where the last step is due to Lemma B.1 and P ( X = 1 ∣ F τ − 1 ) ≤ 1 \mathbb{P}(X=1\mid\mathcal{F}_{\tau-1})\le1 P ( X = 1 ∣ F τ − 1 ) ≤ 1 .
Putting everything together and using the symmetric argument when F ( B τ , 0 ) < S ( A τ , 0 ) F(B_{\tau,0})<S(A_{\tau,0}) F ( B τ , 0 ) < S ( A τ , 0 ) , we have shown that:
∣ ρ τ ∣ ≤ 4 max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 ) } . |\rho_\tau|\le4\max\{\psi_{\tau-1}(A_{\tau,0}),\psi_{\tau-1}(B_{\tau,0})\}. ∣ ρ τ ∣ ≤ 4 max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 )} .
Summing this bound over the first t t t rounds completes the proof.
This result allows to control the imbalance. In the following, we turn our attention to the regret.
Bounding The (Virtual) Regret
The first step towards proving the regret bound is to show that, under the good event, the virtual optimum is never eliminated. First, we need to show that the routine at Lines 7 and 17 used to decide which arm to eliminate works as expected.
Lemma 6.14. Let:
J t u p ( b , a ) : = ( a − b ) min { F t u p ( b ) , S t u p ( a ) } , J t l o w ( b , a ) : = ( a − b ) min { F t l o w ( b ) , S t l o w ( a ) } . J_t^{\mathrm{up}}(b,a) := (a-b)\min\{F_t^{\mathrm{up}}(b), S_t^{\mathrm{up}}(a)\}, \qquad J_t^{\mathrm{low}}(b,a) := (a-b)\min\{F_t^{\mathrm{low}}(b), S_t^{\mathrm{low}}(a)\}. J t up ( b , a ) := ( a − b ) min { F t up ( b ) , S t up ( a )} , J t low ( b , a ) := ( a − b ) min { F t low ( b ) , S t low ( a )} . Then, under the good event, for every pair b ∈ B t ∘ b \in B^\circ_t b ∈ B t ∘ , a ∈ A t ∘ a \in A^\circ_t a ∈ A t ∘ with b < a b<a b < a it holds:
J t l o w ( b , a ) ≤ J ( b , a ) ≤ J t u p ( b , a ) . J_t^{\mathrm{low}}(b,a) \le J(b,a) \le J_t^{\mathrm{up}}(b,a). J t low ( b , a ) ≤ J ( b , a ) ≤ J t up ( b , a ) . Proof. By Proposition 6.7 and the definition of good event, F t l o w ( b ) ≤ F ( b ) ≤ F t u p ( b ) F_t^{\mathrm{low}}(b) \le F(b) \le F_t^{\mathrm{up}}(b) F t low ( b ) ≤ F ( b ) ≤ F t up ( b ) and S t l o w ( a ) ≤ S ( a ) ≤ S t u p ( a ) S_t^{\mathrm{low}}(a) \le S(a) \le S_t^{\mathrm{up}}(a) S t low ( a ) ≤ S ( a ) ≤ S t up ( a ) . Therefore,
J t l o w ( b , a ) = ( a − b ) min { F t l o w ( b ) , S t l o w ( a ) } ≤ ( a − b ) min { F ( b ) , S ( a ) } ( = J ( b , a ) ) ≤ ( a − b ) min { F t u p ( b ) , S t u p ( a ) } = J t u p ( b , a ) . \begin{aligned}
J_t^{\mathrm{low}}(b,a) &= (a-b)\min\{F_t^{\mathrm{low}}(b),S_t^{\mathrm{low}}(a)\}\\
&\le(a-b)\min\{F(b),S(a)\} \qquad(= J(b,a))\\
&\le(a-b)\min\{F_t^{\mathrm{up}}(b),S_t^{\mathrm{up}}(a)\}\\
&= J_t^{\mathrm{up}}(b,a).
\end{aligned} J t low ( b , a ) = ( a − b ) min { F t low ( b ) , S t low ( a )} ≤ ( a − b ) min { F ( b ) , S ( a )} ( = J ( b , a )) ≤ ( a − b ) min { F t up ( b ) , S t up ( a )} = J t up ( b , a ) . This concludes the proof.
We are now ready to prove the result on the virtual optimum.
Theorem 6.15. Under the good event, the pair b ∘ , a ∘ b^\circ,a^\circ b ∘ , a ∘ in Definition 4.4 never gets eliminated.
Proof. Initially both optimal prices are active. Suppose they are active before round t t t . By design of Algorithm 4, in order for a ∘ , b ∘ a^\circ,b^\circ a ∘ , b ∘ to be eliminated, one of the following conditions must occur:
a ∘ a^\circ a ∘ is eliminated before b ∘ b^\circ b ∘ , at some round t ∈ [ T ] t \in[T] t ∈ [ T ] .
If this happens, there must be b ≤ b ∘ b \le b^\circ b ≤ b ∘ such that F t − 1 u p ( b ) ≥ S t − 1 u p ( a ∘ ) F_{t-1}^{\mathrm{up}}(b) \ge S_{t-1}^{\mathrm{up}}(a^\circ) F t − 1 up ( b ) ≥ S t − 1 up ( a ∘ ) and J t − 1 u p ( b , a ∘ ) < J t − 1 l o w ( b ′ , a ′ ) J_{t-1}^{\mathrm{up}}(b,a^\circ) < J_{t-1}^{\mathrm{low}}(b',a') J t − 1 up ( b , a ∘ ) < J t − 1 low ( b ′ , a ′ ) for some feasible pair b ′ ∈ B t − 1 ∘ b' \in B^\circ_{t-1} b ′ ∈ B t − 1 ∘ , a ′ ∈ A t − 1 ∘ a' \in A^\circ_{t-1} a ′ ∈ A t − 1 ∘ . Let b ≤ b ∘ b \le b^\circ b ≤ b ∘ such that F t − 1 u p ( b ) ≥ S t − 1 u p ( a ∘ ) F_{t-1}^{\mathrm{up}}(b) \ge S_{t-1}^{\mathrm{up}}(a^\circ) F t − 1 up ( b ) ≥ S t − 1 up ( a ∘ ) . Then, it holds:
J t − 1 l o w ( b ′ , a ′ ) ≤ J ( b ∘ , a ∘ ) (xref‘Lemma 6.14‘) ≤ ( a ∘ − b ∘ ) min { S t − 1 u p ( a ∘ ) , F t − 1 u p ( b ∘ ) } ≤ ( a ∘ − b ∘ ) S t − 1 u p ( a ∘ ) = ( a ∘ − b ∘ ) min { S t − 1 u p ( a ∘ ) , F t − 1 u p ( b ) } ≤ ( a ∘ − b ) min { S t − 1 u p ( a ∘ ) , F t − 1 u p ( b ) } = J t − 1 u p ( b , a ∘ ) . \begin{aligned}
J_{t-1}^{\mathrm{low}}(b',a') &\le J(b^\circ,a^\circ) \qquad\text{({xref}`Lemma 6.14`)}\\
&\le(a^\circ-b^\circ)\min\{S_{t-1}^{\mathrm{up}}(a^\circ),F_{t-1}^{\mathrm{up}}(b^\circ)\}\\
&\le(a^\circ-b^\circ)S_{t-1}^{\mathrm{up}}(a^\circ)\\
&= (a^\circ-b^\circ)\min\{S_{t-1}^{\mathrm{up}}(a^\circ),F_{t-1}^{\mathrm{up}}(b)\}\\
&\le(a^\circ-b)\min\{S_{t-1}^{\mathrm{up}}(a^\circ),F_{t-1}^{\mathrm{up}}(b)\}\\
&= J_{t-1}^{\mathrm{up}}(b,a^\circ).
\end{aligned} J t − 1 low ( b ′ , a ′ ) ≤ J ( b ∘ , a ∘ ) ( xref ‘Lemma 6.14‘) ≤ ( a ∘ − b ∘ ) min { S t − 1 up ( a ∘ ) , F t − 1 up ( b ∘ )} ≤ ( a ∘ − b ∘ ) S t − 1 up ( a ∘ ) = ( a ∘ − b ∘ ) min { S t − 1 up ( a ∘ ) , F t − 1 up ( b )} ≤ ( a ∘ − b ) min { S t − 1 up ( a ∘ ) , F t − 1 up ( b )} = J t − 1 up ( b , a ∘ ) . This shows that J t − 1 u p ( b , a ∘ ) < J t − 1 l o w ( b ′ , a ′ ) J_{t-1}^{\mathrm{up}}(b,a^\circ) < J_{t-1}^{\mathrm{low}}(b',a') J t − 1 up ( b , a ∘ ) < J t − 1 low ( b ′ , a ′ ) is false, which means that this case cannot occur.
b ∘ b^\circ b ∘ is eliminated before a ∘ a^\circ a ∘ , at some t ∈ [ T ] t \in[T] t ∈ [ T ] .
If this happens, there must be a ≥ a ∘ a \ge a^\circ a ≥ a ∘ such that S t − 1 u p ( a ) > F t − 1 u p ( b ∘ ) S_{t-1}^{\mathrm{up}}(a) > F_{t-1}^{\mathrm{up}}(b^\circ) S t − 1 up ( a ) > F t − 1 up ( b ∘ ) and J t − 1 u p ( b ∘ , a ) < J t − 1 l o w ( b ′ , a ′ ) J_{t-1}^{\mathrm{up}}(b^\circ,a) < J_{t-1}^{\mathrm{low}}(b',a') J t − 1 up ( b ∘ , a ) < J t − 1 low ( b ′ , a ′ ) for some feasible pair b ′ ∈ B t − 1 ∘ b' \in B^\circ_{t-1} b ′ ∈ B t − 1 ∘ , a ′ ∈ A t − 1 ∘ a' \in A^\circ_{t-1} a ′ ∈ A t − 1 ∘ . However,
J t − 1 l o w ( b ′ , a ′ ) ≤ J ( b ∘ , a ∘ ) (xref‘Lemma 6.14‘) J_{t-1}^{\mathrm{low}}(b',a') \le J(b^\circ,a^\circ) \qquad\text{({xref}`Lemma 6.14`)} J t − 1 low ( b ′ , a ′ ) ≤ J ( b ∘ , a ∘ ) ( xref ‘Lemma 6.14‘)
≤ ( a ∘ − b ∘ ) min { S t − 1 u p ( a ∘ ) , F t − 1 u p ( b ∘ ) } ≤ ( a ∘ − b ∘ ) F t − 1 u p ( b ∘ ) = ( a ∘ − b ∘ ) min { S t − 1 u p ( a ) , F t − 1 u p ( b ∘ ) } ≤ ( a − b ∘ ) min { S t − 1 u p ( a ) , F t − 1 u p ( b ∘ ) } = J t − 1 u p ( b ∘ , a ) . \begin{aligned}
&\le(a^\circ-b^\circ)\min\{S^{\mathrm{up}}_{t-1}(a^\circ),F^{\mathrm{up}}_{t-1}(b^\circ)\}\\
&\le(a^\circ-b^\circ)F^{\mathrm{up}}_{t-1}(b^\circ)\\
&= (a^\circ-b^\circ)\min\{S^{\mathrm{up}}_{t-1}(a),F^{\mathrm{up}}_{t-1}(b^\circ)\}\\
&\le(a-b^\circ)\min\{S^{\mathrm{up}}_{t-1}(a),F^{\mathrm{up}}_{t-1}(b^\circ)\}\\
&=J^{\mathrm{up}}_{t-1}(b^\circ,a).
\end{aligned} ≤ ( a ∘ − b ∘ ) min { S t − 1 up ( a ∘ ) , F t − 1 up ( b ∘ )} ≤ ( a ∘ − b ∘ ) F t − 1 up ( b ∘ ) = ( a ∘ − b ∘ ) min { S t − 1 up ( a ) , F t − 1 up ( b ∘ )} ≤ ( a − b ∘ ) min { S t − 1 up ( a ) , F t − 1 up ( b ∘ )} = J t − 1 up ( b ∘ , a ) .
So, once again J t − 1 u p ( b ∘ , a ) < J t − 1 l o w ( b ′ , a ′ ) J^{\mathrm{up}}_{t-1}(b^\circ,a)<J^{\mathrm{low}}_{t-1}(b',a') J t − 1 up ( b ∘ , a ) < J t − 1 low ( b ′ , a ′ ) cannot be true.
This completes the induction and the proof.
The previous theorem is the main ingredient behind the regret bound. We first bound the sum of the conditional expected reward gaps. This is done in the following theorem.
Theorem 6.16. Under the good event, for every t ∈ [ T ] t\in[T] t ∈ [ T ] , it holds:
∑ τ = 1 t ( J ( b ∘ , a ∘ ) − E [ r τ ∣ F τ − 1 ] ) ≤ ∑ τ = 1 t ( 6 max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 ) } + 2 max { ψ τ − 1 ( b ∘ ) , ψ τ − 1 ( a ∘ ) } ) . \sum_{\tau=1}^{t}\left(J(b^\circ,a^\circ)-\mathbb{E}[r_\tau\mid\mathcal{F}_{\tau-1}]\right)
\le\sum_{\tau=1}^{t}\left(6\max\{\psi_{\tau-1}(A_{\tau,0}),\psi_{\tau-1}(B_{\tau,0})\}+2\max\{\psi_{\tau-1}(b^\circ),\psi_{\tau-1}(a^\circ)\}\right). τ = 1 ∑ t ( J ( b ∘ , a ∘ ) − E [ r τ ∣ F τ − 1 ] ) ≤ τ = 1 ∑ t ( 6 max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 )} + 2 max { ψ τ − 1 ( b ∘ ) , ψ τ − 1 ( a ∘ )} ) .
Proof. In this proof, let F t − 1 \mathcal{F}_{t-1} F t − 1 contain all valuations and algorithmic random draws through round t − 1 t-1 t − 1 , and let ρ t : = E [ I t − I t − 1 ∣ F t − 1 ] \rho_t:=\mathbb{E}[I_t-I_{t-1}\mid\mathcal{F}_{t-1}] ρ t := E [ I t − I t − 1 ∣ F t − 1 ] . First, we show that at any step t ∈ [ T ] t\in[T] t ∈ [ T ] , the pair of arms ( B t , 0 , A t , 0 ) (B_{t,0},A_{t,0}) ( B t , 0 , A t , 0 ) is not far from the optimum of J J J . Indeed, by Proposition 6.7 and the proof of Proposition 6.11, it holds:
J ( B t , 0 , A t , 0 ) ≥ ( A t , 0 − B t , 0 ) min { F t − 1 u p ( B t , 0 ) − 2 ψ t − 1 ( B t , 0 ) , S t − 1 u p ( A t , 0 ) − 2 ψ t − 1 ( A t , 0 ) } ≥ J t − 1 u p ( B t , 0 , A t , 0 ) − 2 max { ψ t − 1 ( B t , 0 ) , ψ t − 1 ( A t , 0 ) } ≥ J t − 1 l o w ( b ∘ , a ∘ ) − 2 max { ψ t − 1 ( B t , 0 ) , ψ t − 1 ( A t , 0 ) } ≥ J ( b ∘ , a ∘ ) − 2 max { ψ t − 1 ( b ∘ ) , ψ t − 1 ( a ∘ ) } − 2 max { ψ t − 1 ( B t , 0 ) , ψ t − 1 ( A t , 0 ) } , \begin{aligned}
J(B_{t,0},A_{t,0})&\ge(A_{t,0}-B_{t,0})\min\{F^{\mathrm{up}}_{t-1}(B_{t,0})-2\psi_{t-1}(B_{t,0}),\\
&\qquad\qquad\qquad\qquad S^{\mathrm{up}}_{t-1}(A_{t,0})-2\psi_{t-1}(A_{t,0})\}\\
&\ge J^{\mathrm{up}}_{t-1}(B_{t,0},A_{t,0})-2\max\{\psi_{t-1}(B_{t,0}),\psi_{t-1}(A_{t,0})\}\\
&\ge J^{\mathrm{low}}_{t-1}(b^\circ,a^\circ)-2\max\{\psi_{t-1}(B_{t,0}),\psi_{t-1}(A_{t,0})\}\\
&\ge J(b^\circ,a^\circ)-2\max\{\psi_{t-1}(b^\circ),\psi_{t-1}(a^\circ)\}\\
&\qquad-2\max\{\psi_{t-1}(B_{t,0}),\psi_{t-1}(A_{t,0})\},
\end{aligned} J ( B t , 0 , A t , 0 ) ≥ ( A t , 0 − B t , 0 ) min { F t − 1 up ( B t , 0 ) − 2 ψ t − 1 ( B t , 0 ) , S t − 1 up ( A t , 0 ) − 2 ψ t − 1 ( A t , 0 )} ≥ J t − 1 up ( B t , 0 , A t , 0 ) − 2 max { ψ t − 1 ( B t , 0 ) , ψ t − 1 ( A t , 0 )} ≥ J t − 1 low ( b ∘ , a ∘ ) − 2 max { ψ t − 1 ( B t , 0 ) , ψ t − 1 ( A t , 0 )} ≥ J ( b ∘ , a ∘ ) − 2 max { ψ t − 1 ( b ∘ ) , ψ t − 1 ( a ∘ )} − 2 max { ψ t − 1 ( B t , 0 ) , ψ t − 1 ( A t , 0 )} ,
where the first inequality holds by Lemma B.1 and the third inequality holds since, by Theorem 6.15, the pair b ∘ , a ∘ b^\circ,a^\circ b ∘ , a ∘ is always active, so that J l o w J^{\mathrm{low}} J low in Line 7 does not fall below J t − 1 l o w ( b ∘ , a ∘ ) J^{\mathrm{low}}_{t-1}(b^\circ,a^\circ) J t − 1 low ( b ∘ , a ∘ ) .
The second step of the proof compares E [ r t ∣ F t − 1 ] \mathbb{E}[r_t\mid\mathcal{F}_{t-1}] E [ r t ∣ F t − 1 ] with J ( B t , 0 , A t , 0 ) J(B_{t,0},A_{t,0}) J ( B t , 0 , A t , 0 ) . By design of the algorithm,
E [ r t ∣ F t − 1 ] = E [ A t I ( V t b u y ≥ A t ) − B t I ( V t s e l l ≤ B t ) ∣ F t − 1 ] = A t , 0 ⋅ S ( A t , 0 ) P ( Y = 1 ∣ F t − 1 ) + 1 ⋅ S ( 1 ) P ( Y = 0 ∣ F t − 1 ) − B t , 0 ⋅ F ( B t , 0 ) P ( X = 1 ∣ F t − 1 ) + 0 ⋅ F ( 0 ) P ( X = 0 ∣ F t − 1 ) = A t , 0 ⋅ S ( A t , 0 ) P ( Y = 1 ∣ F t − 1 ) − B t , 0 ⋅ F ( B t , 0 ) P ( X = 1 ∣ F t − 1 ) ≥ ( A t , 0 − B t , 0 ) min { S ( A t , 0 ) P ( Y = 1 ∣ F t − 1 ) , F ( B t , 0 ) P ( X = 1 ∣ F t − 1 ) } − ∣ E [ I ( V t s e l l ≤ B t ) − I ( V t b u y ≥ A t ) ∣ F t − 1 ] ∣ ≥ ( A t , 0 − B t , 0 ) min { S ( A t , 0 ) P ( Y = 1 ∣ F t − 1 ) , F ( B t , 0 ) P ( X = 1 ∣ F t − 1 ) } − ∣ ρ t ∣ , \begin{aligned}
\mathbb{E}[r_t\mid\mathcal{F}_{t-1}]
&=\mathbb{E}[A_t\mathbb{I}(V_t^{\mathrm{buy}}\ge A_t)-B_t\mathbb{I}(V_t^{\mathrm{sell}}\le B_t)\mid\mathcal{F}_{t-1}]\\
&=A_{t,0}\cdot S(A_{t,0})\mathbb{P}(Y=1\mid\mathcal{F}_{t-1})+1\cdot S(1)\mathbb{P}(Y=0\mid\mathcal{F}_{t-1})\\
&\qquad-B_{t,0}\cdot F(B_{t,0})\mathbb{P}(X=1\mid\mathcal{F}_{t-1})+0\cdot F(0)\mathbb{P}(X=0\mid\mathcal{F}_{t-1})\\
&=A_{t,0}\cdot S(A_{t,0})\mathbb{P}(Y=1\mid\mathcal{F}_{t-1})-B_{t,0}\cdot F(B_{t,0})\mathbb{P}(X=1\mid\mathcal{F}_{t-1})\\
&\ge(A_{t,0}-B_{t,0})\min\{S(A_{t,0})\mathbb{P}(Y=1\mid\mathcal{F}_{t-1}),F(B_{t,0})\mathbb{P}(X=1\mid\mathcal{F}_{t-1})\}\\
&\qquad-\left|\mathbb{E}[\mathbb{I}(V_t^{\mathrm{sell}}\le B_t)-\mathbb{I}(V_t^{\mathrm{buy}}\ge A_t)\mid\mathcal{F}_{t-1}]\right|\\
&\ge(A_{t,0}-B_{t,0})\min\{S(A_{t,0})\mathbb{P}(Y=1\mid\mathcal{F}_{t-1}),F(B_{t,0})\mathbb{P}(X=1\mid\mathcal{F}_{t-1})\}-|\rho_t|,
\end{aligned} E [ r t ∣ F t − 1 ] = E [ A t I ( V t buy ≥ A t ) − B t I ( V t sell ≤ B t ) ∣ F t − 1 ] = A t , 0 ⋅ S ( A t , 0 ) P ( Y = 1 ∣ F t − 1 ) + 1 ⋅ S ( 1 ) P ( Y = 0 ∣ F t − 1 ) − B t , 0 ⋅ F ( B t , 0 ) P ( X = 1 ∣ F t − 1 ) + 0 ⋅ F ( 0 ) P ( X = 0 ∣ F t − 1 ) = A t , 0 ⋅ S ( A t , 0 ) P ( Y = 1 ∣ F t − 1 ) − B t , 0 ⋅ F ( B t , 0 ) P ( X = 1 ∣ F t − 1 ) ≥ ( A t , 0 − B t , 0 ) min { S ( A t , 0 ) P ( Y = 1 ∣ F t − 1 ) , F ( B t , 0 ) P ( X = 1 ∣ F t − 1 )} − E [ I ( V t sell ≤ B t ) − I ( V t buy ≥ A t ) ∣ F t − 1 ] ≥ ( A t , 0 − B t , 0 ) min { S ( A t , 0 ) P ( Y = 1 ∣ F t − 1 ) , F ( B t , 0 ) P ( X = 1 ∣ F t − 1 )} − ∣ ρ t ∣ ,
where the proof of Theorem 6.13 bounds ∣ ρ t ∣ |\rho_t| ∣ ρ t ∣ by 4 max { ψ t − 1 ( A t , 0 ) , ψ t − 1 ( B t , 0 ) } 4\max\{\psi_{t-1}(A_{t,0}),\psi_{t-1}(B_{t,0})\} 4 max { ψ t − 1 ( A t , 0 ) , ψ t − 1 ( B t , 0 )} .
Now, let’s consider the remaining term. If neither correction is triggered, T 1 = min { F ( B t , 0 ) , S ( A t , 0 ) } \mathrm{T1}=\min\{F(B_{t,0}),S(A_{t,0})\} T1 = min { F ( B t , 0 ) , S ( A t , 0 )} . Otherwise, under the good event, if S ( A t , 0 ) > F ( B t , 0 ) S(A_{t,0})>F(B_{t,0}) S ( A t , 0 ) > F ( B t , 0 ) , only the ask correction can be triggered, and its denominator is strictly positive. In this case, it holds:
T 1 = min { S ( A t , 0 ) min { F t − 1 u p ( B t , 0 ) S t − 1 l o w ( A t , 0 ) , 1 } , F ( B t , 0 ) } ≥ min { S ( A t , 0 ) min { F ( B t , 0 ) S ( A t , 0 ) , 1 } , F ( B t , 0 ) } = F ( B t , 0 ) . \begin{aligned}
T1 &= \min\left\{S(A_{t,0})\min\left\{\frac{F^{\mathrm{up}}_{t-1}(B_{t,0})}{S^{\mathrm{low}}_{t-1}(A_{t,0})},1\right\},F(B_{t,0})\right\}\\
&\ge\min\left\{S(A_{t,0})\min\left\{\frac{F(B_{t,0})}{S(A_{t,0})},1\right\},F(B_{t,0})\right\}\\
&=F(B_{t,0}).
\end{aligned} T 1 = min { S ( A t , 0 ) min { S t − 1 low ( A t , 0 ) F t − 1 up ( B t , 0 ) , 1 } , F ( B t , 0 ) } ≥ min { S ( A t , 0 ) min { S ( A t , 0 ) F ( B t , 0 ) , 1 } , F ( B t , 0 ) } = F ( B t , 0 ) .
If instead S ( A t , 0 ) ≤ F ( B t , 0 ) S(A_{t,0}) \le F(B_{t,0}) S ( A t , 0 ) ≤ F ( B t , 0 ) , only the bid correction can be triggered, again with a strictly positive denominator, and it holds:
T 1 = min { S ( A t , 0 ) , F ( B t , 0 ) min { S t − 1 u p ( A t , 0 ) F t − 1 l o w ( B t , 0 ) , 1 } } ≥ min { S ( A t , 0 ) , F ( B t , 0 ) min { S ( A t , 0 ) F ( B t , 0 ) , 1 } } = S ( A t , 0 ) . \begin{aligned}
T1 &= \min\left\{S(A_{t,0}),F(B_{t,0})\min\left\{\frac{S^{\mathrm{up}}_{t-1}(A_{t,0})}{F^{\mathrm{low}}_{t-1}(B_{t,0})},1\right\}\right\}\\
&\ge\min\left\{S(A_{t,0}),F(B_{t,0})\min\left\{\frac{S(A_{t,0})}{F(B_{t,0})},1\right\}\right\}\\
&=S(A_{t,0}).
\end{aligned} T 1 = min { S ( A t , 0 ) , F ( B t , 0 ) min { F t − 1 low ( B t , 0 ) S t − 1 up ( A t , 0 ) , 1 } } ≥ min { S ( A t , 0 ) , F ( B t , 0 ) min { F ( B t , 0 ) S ( A t , 0 ) , 1 } } = S ( A t , 0 ) .
Therefore, in both cases,
T 1 ≥ min { F ( B t , 0 ) , S ( A t , 0 ) } , T1 \ge\min\{F(B_{t,0}),S(A_{t,0})\}, T 1 ≥ min { F ( B t , 0 ) , S ( A t , 0 )} ,
which implies that:
E [ r t ∣ F t − 1 ] ≥ J ( B t , 0 , A t , 0 ) − 4 max { ψ t − 1 ( A t , 0 ) , ψ t − 1 ( B t , 0 ) } . \mathbb{E}[r_t\mid\mathcal{F}_{t-1}] \ge J(B_{t,0},A_{t,0})-4\max\{\psi_{t-1}(A_{t,0}),\psi_{t-1}(B_{t,0})\}. E [ r t ∣ F t − 1 ] ≥ J ( B t , 0 , A t , 0 ) − 4 max { ψ t − 1 ( A t , 0 ) , ψ t − 1 ( B t , 0 )} .
Combining the previous parts, the sum of the conditional expected reward gaps is bounded as:
∑ τ = 1 t ( J ( b ∘ , a ∘ ) − E [ r τ ∣ F τ − 1 ] ) ≤ ∑ τ = 1 t ( J ( b ∘ , a ∘ ) − J ( B τ , 0 , A τ , 0 ) + 4 max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 ) } ) ≤ ∑ τ = 1 t ( 6 max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 ) } + 2 max { ψ τ − 1 ( b ∘ ) , ψ τ − 1 ( a ∘ ) } ) . \begin{aligned}
\sum_{\tau=1}^{t}\left(J(b^\circ,a^\circ)-\mathbb{E}[r_\tau\mid\mathcal{F}_{\tau-1}]\right)
&\le\sum_{\tau=1}^{t}\left(J(b^\circ,a^\circ)-J(B_{\tau,0},A_{\tau,0})+4\max\{\psi_{\tau-1}(A_{\tau,0}),\psi_{\tau-1}(B_{\tau,0})\}\right)\\
&\le\sum_{\tau=1}^{t}\left(6\max\{\psi_{\tau-1}(A_{\tau,0}),\psi_{\tau-1}(B_{\tau,0})\}+2\max\{\psi_{\tau-1}(b^\circ),\psi_{\tau-1}(a^\circ)\}\right).
\end{aligned} τ = 1 ∑ t ( J ( b ∘ , a ∘ ) − E [ r τ ∣ F τ − 1 ] ) ≤ τ = 1 ∑ t ( J ( b ∘ , a ∘ ) − J ( B τ , 0 , A τ , 0 ) + 4 max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 )} ) ≤ τ = 1 ∑ t ( 6 max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 )} + 2 max { ψ τ − 1 ( b ∘ ) , ψ τ − 1 ( a ∘ )} ) .
This concludes the proof.
Choosing ψ \psi ψ and The Final Bounds
In this section, we combine all the previous result in order to get the final theoretical guarantees attained by Algorithm 4.
We first specify the discretization used for bids and asks. From this point on, we take the discretized bid and ask as follows:
B ∘ : = { n N : n = 0 , 1 , … , N } , A ∘ : = { n N : n = 0 , 1 , … , N } . (22) \mathcal{B}^{\circ}:=\left\{\frac{n}{N}:n=0,1,\ldots,N\right\},\qquad\mathcal{A}^{\circ}:=\left\{\frac{n}{N}:n=0,1,\ldots,N\right\}. \tag*{(22)} B ∘ := { N n : n = 0 , 1 , … , N } , A ∘ := { N n : n = 0 , 1 , … , N } . (22)
This choice allows to prove the following relation between the surrogate regret and the virtual one.
Proposition 6.17. For any algorithm working on the discretized sets B ∘ B^\circ B ∘ , A ∘ A^\circ A ∘ defined in Equation (22) , at every t ≤ T t \le T t ≤ T , the following inequality holds:
R t J ≤ R t ∘ + 2 ( t / N ) . R_t^J \le R_t^\circ+ 2(t/N). R t J ≤ R t ∘ + 2 ( t / N ) . Proof. By Proposition 4.3, J ⋆ J^\star J ⋆ cannot be larger than J ( b ∘ , a ∘ ) + 2 / N J(b^\circ, a^\circ) + 2/N J ( b ∘ , a ∘ ) + 2/ N . This immediately gives the result.
Given the previous result, we are now able to show the final theoretical guarantees attained by Algorithm 4. This is done in the following theorem.
Theorem 6.18. Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Use ψ 0 = 1 \psi_0 = 1 ψ 0 = 1 . Let ψ t ( b , δ ) = ψ t ( a , δ ) : = min { 1 , log ( 12 T / δ ) 2 t } \psi_t(b,\delta) = \psi_t(a,\delta) := \min\left\{1,\sqrt{\frac{\log(12T/\delta)}{2t}}\right\} ψ t ( b , δ ) = ψ t ( a , δ ) := min { 1 , 2 t l o g ( 12 T / δ ) } and N = ⌈ T ⌉ N = \lceil\sqrt{T}\rceil N = ⌈ T ⌉ in Equation (22) . Then, Algorithm 4 enjoys, with probability at least 1 − δ 1-\delta 1 − δ simultaneously for all the t t t time-steps, the following guarantees:
∣ I t ∣ ≤ 10 T log ( 12 T / δ ) , R t J ≤ 15 T log ( 12 T / δ ) . |I_t| \le10\sqrt{T\log(12T/\delta)}, \qquad R_t^J \le15\sqrt{T\log(12T/\delta)}. ∣ I t ∣ ≤ 10 T log ( 12 T / δ ) , R t J ≤ 15 T log ( 12 T / δ ) . Proof. Let F t \mathcal{F}_t F t contain all valuations and algorithmic random draws through round t t t , and let ρ t : = E [ I t − I t − 1 ∣ F t − 1 ] \rho_t := \mathbb{E}[I_t-I_{t-1}\mid\mathcal{F}_{t-1}] ρ t := E [ I t − I t − 1 ∣ F t − 1 ] . By Equation (13) with failure parameter δ / 3 \delta/3 δ /3 , the good event has probability at least 1 − δ / 3 1-\delta/3 1 − δ /3 . Applying the first part of Proposition 6.12 with parameter δ / 3 \delta/3 δ /3 to inventory and cumulative reward, and taking a union bound, gives an event of probability at least 1 − δ 1-\delta 1 − δ on which the good event and both concentration conclusions hold at every time-step. On this event, the following statements hold:
By the first part of Proposition 6.12 and Theorem 6.13 , it holds:
∣ I t ∣ ≤ ∣ ∑ τ = 1 t ρ τ ∣ + 2 T log ( 6 / δ ) |I_t| \le\left|\sum_{\tau=1}^{t}\rho_\tau\right|+\sqrt{2T\log(6/\delta)} ∣ I t ∣ ≤ τ = 1 ∑ t ρ τ + 2 T log ( 6/ δ ) ≤ 4 ∑ τ = 1 t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 ) } + 2 T log ( 6 / δ ) . \le4\sum_{\tau=1}^{t}\max\{\psi_{\tau-1}(A_{\tau,0}),\psi_{\tau-1}(B_{\tau,0})\}
+\sqrt{2T\log(6/\delta)}. ≤ 4 τ = 1 ∑ t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 )} + 2 T log ( 6/ δ ) . Additionally, by definition of ψ t \psi_t ψ t , it holds:
∑ τ = 1 t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 ) } ≤ log ( 12 T / δ ) 2 ( 1 + ∑ s = 1 T − 1 1 s ) \sum_{\tau=1}^{t}\max\{\psi_{\tau-1}(A_{\tau,0}),\psi_{\tau-1}(B_{\tau,0})\}
\le\sqrt{\frac{\log(12T/\delta)}{2}}\left(1+\sum_{s=1}^{T-1}\frac{1}{\sqrt{s}}\right) τ = 1 ∑ t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 )} ≤ 2 log ( 12 T / δ ) ( 1 + s = 1 ∑ T − 1 s 1 ) ≤ 2 T log ( 12 T / δ ) . \le\sqrt{2T\log(12T/\delta)}. ≤ 2 T log ( 12 T / δ ) . Here we used ψ 0 = 1 \psi_0=1 ψ 0 = 1 , log ( 12 T / δ ) ≥ 2 \log(12T/\delta)\ge2 log ( 12 T / δ ) ≥ 2 , and 1 + ∑ s = 1 T − 1 s − 1 / 2 ≤ 2 T 1+\sum_{s=1}^{T-1}s^{-1/2}\le2\sqrt{T} 1 + ∑ s = 1 T − 1 s − 1/2 ≤ 2 T , which also holds for T = 1 T=1 T = 1 . This shows that:
∣ I t ∣ ≤ 4 2 T log ( 12 T / δ ) + 2 T log ( 6 / δ ) ≤ 10 T log ( 12 T / δ ) . |I_t| \le4\sqrt{2T\log(12T/\delta)}+\sqrt{2T\log(6/\delta)}
\le10\sqrt{T\log(12T/\delta)}. ∣ I t ∣ ≤ 4 2 T log ( 12 T / δ ) + 2 T log ( 6/ δ ) ≤ 10 T log ( 12 T / δ ) .
By Proposition 6.17 and Theorem 6.16 , adding the reward concentration bound gives:
R t J ≤ R t ∘ + 2 T ≤ ∑ τ = 1 t ( J ( b ∘ , a ∘ ) − E [ r τ ∣ F τ − 1 ] ) + 2 T log ( 6 / δ ) + 2 T \begin{aligned}
R_t^J \le R_t^\circ+ 2\sqrt{T} \\
&\le\sum_{\tau=1}^{t} \left(J(b^\circ,a^\circ)-\mathbb{E}[r_\tau\mid\mathcal{F}_{\tau-1}]\right)
+ \sqrt{2T\log(6/\delta)} + 2\sqrt{T}
\end{aligned} R t J ≤ R t ∘ + 2 T ≤ τ = 1 ∑ t ( J ( b ∘ , a ∘ ) − E [ r τ ∣ F τ − 1 ] ) + 2 T log ( 6/ δ ) + 2 T
≤ 8 2 T log ( 12 T / δ ) + 2 T log ( 6 / δ ) + 2 T \le8\sqrt{2T\log(12T/\delta)}+\sqrt{2T\log(6/\delta)}+2\sqrt{T} ≤ 8 2 T log ( 12 T / δ ) + 2 T log ( 6/ δ ) + 2 T
≤ 15 T log ( 12 T / δ ) . \le15\sqrt{T\log(12T/\delta)}. ≤ 15 T log ( 12 T / δ ) .
where we have employed the bonus sum bound from the previous point, since the bonus does not depend on the price. The last step uses log ( 6 / δ ) ≤ log ( 12 T / δ ) \log(6/\delta)\le\log(12T/\delta) log ( 6/ δ ) ≤ log ( 12 T / δ ) and log ( 12 T / δ ) ≥ 1 \log(12T/\delta)\ge1 log ( 12 T / δ ) ≥ 1 .
This concludes the proof, simultaneously for every t ≤ T t\le T t ≤ T .
We conclude this part by further improving the previous bound, providing an instance dependent result which, while technically more involved, captures the performance of the optimal bid-ask pair.
Theorem 6.19. Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Use ψ 0 = 1 \psi_0=1 ψ 0 = 1 , the two radii in Proposition 6.5 with failure parameter δ / 6 \delta/6 δ /6 , and N = T N=T N = T in Equation (22) . Then, Algorithm 4 enjoys, with probability at least 1 − δ 1-\delta 1 − δ simultaneously over all the t t t time-steps, the following guarantees:
∣ I t ∣ ≤ 256 max { F ( b ∘ ) , S ( a ∘ ) } T log ( 12 T / δ ) + 1728 ( 1 + log T ) log ( 12 T / δ ) , |I_t|\le256\sqrt{\max\{F(b^\circ),S(a^\circ)\}T\log(12T/\delta)}+1728(1+\log T)\log(12T/\delta), ∣ I t ∣ ≤ 256 max { F ( b ∘ ) , S ( a ∘ )} T log ( 12 T / δ ) + 1728 ( 1 + log T ) log ( 12 T / δ ) , and:
R t J ≤ 320 max { F ( b ∘ ) , S ( a ∘ ) } T log ( 12 T / δ ) + 2160 ( 1 + log T ) log ( 12 T / δ ) . R_t^J\le320\sqrt{\max\{F(b^\circ),S(a^\circ)\}T\log(12T/\delta)}+2160(1+\log T)\log(12T/\delta). R t J ≤ 320 max { F ( b ∘ ) , S ( a ∘ )} T log ( 12 T / δ ) + 2160 ( 1 + log T ) log ( 12 T / δ ) .
Proof. We start the proof by bounding the conditional variances. Let F t \mathcal{F}_t F t contain all valuations and algorithmic random draws through round t t t , and let ρ t : = E [ I t − I t − 1 ∣ F t − 1 ] \rho_t:=\mathbb{E}[I_t-I_{t-1}\mid\mathcal{F}_{t-1}] ρ t := E [ I t − I t − 1 ∣ F t − 1 ] . Specifically, the following bound holds:
σ t 2 : = Var [ I ( V t s e l l ≤ B t ) − I ( V t b u y ≥ A t ) ∣ F t − 1 ] \sigma_t^2:=\operatorname{Var}[\mathbb{I}(V_t^{\mathrm{sell}}\le B_t)-\mathbb{I}(V_t^{\mathrm{buy}}\ge A_t)\mid\mathcal{F}_{t-1}] σ t 2 := Var [ I ( V t sell ≤ B t ) − I ( V t buy ≥ A t ) ∣ F t − 1 ]
≤ 2 Var [ I ( V t s e l l ≤ B t ) ∣ F t − 1 ] + 2 Var [ I ( V t b u y ≥ A t ) ∣ F t − 1 ] . \le2\operatorname{Var}[\mathbb{I}(V_t^{\mathrm{sell}}\le B_t)\mid\mathcal{F}_{t-1}]+2\operatorname{Var}[\mathbb{I}(V_t^{\mathrm{buy}}\ge A_t)\mid\mathcal{F}_{t-1}]. ≤ 2 Var [ I ( V t sell ≤ B t ) ∣ F t − 1 ] + 2 Var [ I ( V t buy ≥ A t ) ∣ F t − 1 ] .
By the law of total variance, it holds:
Var [ I ( V t s e l l ≤ B t ) ∣ F t − 1 ] = Var [ E [ I ( V t s e l l ≤ B t ) ∣ F t − 1 , X ] ∣ F t − 1 ] + E [ Var [ I ( V t s e l l ≤ B t ) ∣ F t − 1 , X ] ∣ F t − 1 ] = F ( B t , 0 ) 2 Var [ X ∣ F t − 1 ] + F ( B t , 0 ) ( 1 − F ( B t , 0 ) ) E [ X ∣ F t − 1 ] ≤ F ( B t , 0 ) E [ X ∣ F t − 1 ] ≤ F ( B t , 0 ) . \begin{aligned}
\operatorname{Var}[\mathbb{I}(V_t^{\mathrm{sell}}\le B_t)\mid\mathcal{F}_{t-1}]
&=\operatorname{Var}[\mathbb{E}[\mathbb{I}(V_t^{\mathrm{sell}}\le B_t)\mid\mathcal{F}_{t-1},X]\mid\mathcal{F}_{t-1}]\\
&\quad+\mathbb{E}[\operatorname{Var}[\mathbb{I}(V_t^{\mathrm{sell}}\le B_t)\mid\mathcal{F}_{t-1},X]\mid\mathcal{F}_{t-1}]\\
&=F(B_{t,0})^2\operatorname{Var}[X\mid\mathcal{F}_{t-1}]\\
&\quad+F(B_{t,0})(1-F(B_{t,0}))\mathbb{E}[X\mid\mathcal{F}_{t-1}]\\
&\le F(B_{t,0})\mathbb{E}[X\mid\mathcal{F}_{t-1}]\le F(B_{t,0}).
\end{aligned} Var [ I ( V t sell ≤ B t ) ∣ F t − 1 ] = Var [ E [ I ( V t sell ≤ B t ) ∣ F t − 1 , X ] ∣ F t − 1 ] + E [ Var [ I ( V t sell ≤ B t ) ∣ F t − 1 , X ] ∣ F t − 1 ] = F ( B t , 0 ) 2 Var [ X ∣ F t − 1 ] + F ( B t , 0 ) ( 1 − F ( B t , 0 )) E [ X ∣ F t − 1 ] ≤ F ( B t , 0 ) E [ X ∣ F t − 1 ] ≤ F ( B t , 0 ) .
Indeed, by design of the algorithm, conditional on F t − 1 \mathcal{F}_{t-1} F t − 1 and X X X , the trade indicator is Bernoulli with parameter F ( B t , 0 ) F(B_{t,0}) F ( B t , 0 ) if X = 1 X=1 X = 1 and zero otherwise. An analogous result holds for the ask side, so that σ t 2 ≤ 2 F ( B t , 0 ) + 2 S ( A t , 0 ) \sigma_t^2\le2F(B_{t,0})+2S(A_{t,0}) σ t 2 ≤ 2 F ( B t , 0 ) + 2 S ( A t , 0 ) . The same bound holds for the conditional variance of r t r_t r t . Indeed, deactivated sides make no trades, so r t = A t , 0 I ( V t b u y ≥ A t ) − B t , 0 I ( V t s e l l ≤ B t ) r_t=A_{t,0}\mathbb{I}(V_t^{\mathrm{buy}}\ge A_t)-B_{t,0}\mathbb{I}(V_t^{\mathrm{sell}}\le B_t) r t = A t , 0 I ( V t buy ≥ A t ) − B t , 0 I ( V t sell ≤ B t ) , and the candidate prices are F t − 1 \mathcal{F}_{t-1} F t − 1 -measurable and belong to [ 0 , 1 ] [0,1] [ 0 , 1 ] .
This bound can be refined using the structure of the algorithm. Specifically, under the good event, Theorem 6.15 gives B t , 0 ≤ b ∘ < a ∘ ≤ A t , 0 B_{t,0} \le b^{\circ} < a^{\circ} \le A_{t,0} B t , 0 ≤ b ∘ < a ∘ ≤ A t , 0 . Therefore,
F ( B t , 0 ) ≤ F ( b ∘ ) , S ( A t , 0 ) ≤ S ( a ∘ ) , F(B_{t,0}) \le F(b^{\circ}), \qquad S(A_{t,0}) \le S(a^{\circ}), F ( B t , 0 ) ≤ F ( b ∘ ) , S ( A t , 0 ) ≤ S ( a ∘ ) ,
∑ τ = 1 t σ τ 2 ≤ 2 T ( F ( b ∘ ) + S ( a ∘ ) ) = : v . (23) \sum_{\tau=1}^{t} \sigma_{\tau}^{2} \le2T\bigl(F(b^{\circ}) + S(a^{\circ})\bigr) =: v. \tag*{(23)} τ = 1 ∑ t σ τ 2 ≤ 2 T ( F ( b ∘ ) + S ( a ∘ ) ) =: v . (23)
The sum of the conditional reward variances is bounded by the same deterministic v v v on the good event. Proposition 6.5 with parameter δ / 6 \delta/6 δ /6 gives P ( E g o o d ) ≥ 1 − δ / 3 \mathbb{P}(\mathcal{E}_{\mathrm{good}}) \ge1-\delta/3 P ( E good ) ≥ 1 − δ /3 . Applying the second part of Proposition 6.12 with parameter δ / 3 \delta/3 δ /3 to inventory and cumulative reward, and using the variance bounds on the good event, gives a common event of probability at least 1 − δ 1-\delta 1 − δ on which the good event and both concentration conclusions hold at every time-step.
Now, we can proceed as follows on this common event:
By the second part of Proposition 6.12 and Theorem 6.13 , it holds:
∣ I t ∣ ≤ ∣ ∑ τ = 1 t ρ τ ∣ + 2 v log ( 6 / δ ) + 4 3 log ( 6 / δ ) \lvert I_t\rvert\le\left\lvert\sum_{\tau=1}^{t}\rho_{\tau}\right\rvert+ \sqrt{2v\log(6/\delta)} + \frac{4}{3}\log(6/\delta) ∣ I t ∣ ≤ τ = 1 ∑ t ρ τ + 2 v log ( 6/ δ ) + 3 4 log ( 6/ δ )
≤ 4 ∑ τ = 1 t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 ) } + 2 v log ( 6 / δ ) + 4 3 log ( 6 / δ ) . \le4\sum_{\tau=1}^{t}\max\{\psi_{\tau-1}(A_{\tau,0}),\psi_{\tau-1}(B_{\tau,0})\}
+ \sqrt{2v\log(6/\delta)} + \frac{4}{3}\log(6/\delta). ≤ 4 τ = 1 ∑ t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 )} + 2 v log ( 6/ δ ) + 3 4 log ( 6/ δ ) .
The grids have T + 1 T+1 T + 1 points each, so log ( 18 T ( T + 1 ) / δ ) ≤ 2 log ( 12 T / δ ) \log(18T(T+1)/\delta) \le2\log(12T/\delta) log ( 18 T ( T + 1 ) / δ ) ≤ 2 log ( 12 T / δ ) . By definition of ψ t \psi_t ψ t , Theorem 6.6 , and Equation (23) , we have:
∑ τ = 1 t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 ) } \sum_{\tau=1}^{t}\max\{\psi_{\tau-1}(A_{\tau,0}),\psi_{\tau-1}(B_{\tau,0})\} τ = 1 ∑ t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 )}
≤ 1 + ∑ s = 1 T − 1 ( 4 max { F ( b ∘ ) , S ( a ∘ ) } log ( 12 T / δ ) s + 16 log ( 12 T / δ ) s ) \le1+\sum_{s=1}^{T-1}\left(4\sqrt{\frac{\max\{F(b^{\circ}),S(a^{\circ})\}\log(12T/\delta)}{s}}+\frac{16\log(12T/\delta)}{s}\right) ≤ 1 + s = 1 ∑ T − 1 ( 4 s max { F ( b ∘ ) , S ( a ∘ )} log ( 12 T / δ ) + s 16 log ( 12 T / δ ) )
≤ 1 + 8 T log ( 12 T / δ ) max { F ( b ∘ ) , S ( a ∘ ) } + 16 ( 1 + log T ) log ( 12 T / δ ) . \le1+8\sqrt{T\log(12T/\delta)}\max\{F(b^{\circ}),S(a^{\circ})\}
+16(1+\log T)\log(12T/\delta). ≤ 1 + 8 T log ( 12 T / δ ) max { F ( b ∘ ) , S ( a ∘ )} + 16 ( 1 + log T ) log ( 12 T / δ ) .
The initial radius contributes 1. The last step uses ∑ s = 1 T − 1 s − 1 / 2 ≤ 2 T \sum_{s=1}^{T-1}s^{-1/2}\le2\sqrt{T} ∑ s = 1 T − 1 s − 1/2 ≤ 2 T and ∑ s = 1 T − 1 s − 1 ≤ 1 + log T \sum_{s=1}^{T-1}s^{-1}\le1+\log T ∑ s = 1 T − 1 s − 1 ≤ 1 + log T ; for T = 1 T=1 T = 1 , the sums are empty. This finally proves that:
∣ I t ∣ ≤ 256 T log ( 12 T / δ ) max { F ( b ∘ ) , S ( a ∘ ) } + 1728 ( 1 + log T ) log ( 12 T / δ ) . \lvert I_t\rvert\le256\sqrt{T}\log(12T/\delta)\max\{F(b^{\circ}),S(a^{\circ})\}
+1728(1+\log T)\log(12T/\delta). ∣ I t ∣ ≤ 256 T log ( 12 T / δ ) max { F ( b ∘ ) , S ( a ∘ )} + 1728 ( 1 + log T ) log ( 12 T / δ ) .
Here we also used v ≤ 4 T max { F ( b ∘ ) , S ( a ∘ ) } v\le4T\max\{F(b^{\circ}),S(a^{\circ})\} v ≤ 4 T max { F ( b ∘ ) , S ( a ∘ )} , log ( 6 / δ ) ≤ log ( 12 T / δ ) \log(6/\delta)\le\log(12T/\delta) log ( 6/ δ ) ≤ log ( 12 T / δ ) , and log ( 12 T / δ ) ≥ 2 \log(12T/\delta)\ge2 log ( 12 T / δ ) ≥ 2 .
By Proposition 6.17 and Theorem 6.16 , adding the reward concentration bound gives:
R t J ≤ R t ∘ + 2 t / T R_t^J \le R_t^{\circ} + 2t/T R t J ≤ R t ∘ + 2 t / T
≤ 6 ∑ τ = 1 t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 ) } + 2 ∑ τ = 1 t max { ψ τ − 1 ( b ∘ ) , ψ τ − 1 ( a ∘ ) } + 2 v log ( 6 / δ ) + 4 3 log ( 6 / δ ) + 2 t / T . \begin{aligned}
\le6\sum_{\tau=1}^{t}\max\{\psi_{\tau-1}(A_{\tau,0}),\psi_{\tau-1}(B_{\tau,0})\} \\
&+ 2\sum_{\tau=1}^{t}\max\{\psi_{\tau-1}(b^\circ),\psi_{\tau-1}(a^\circ)\}
+ \sqrt{2v\log(6/\delta)}+\frac{4}{3}\log(6/\delta)+2t/T.
\end{aligned} ≤ 6 τ = 1 ∑ t max { ψ τ − 1 ( A τ , 0 ) , ψ τ − 1 ( B τ , 0 )} + 2 τ = 1 ∑ t max { ψ τ − 1 ( b ∘ ) , ψ τ − 1 ( a ∘ )} + 2 v log ( 6/ δ ) + 3 4 log ( 6/ δ ) + 2 t / T .
Finally, employing the bound on the bonus sum provided in the previous point, which also holds with B τ , 0 B_{\tau,0} B τ , 0 , A τ , 0 A_{\tau,0} A τ , 0 replaced by b ∘ b^\circ b ∘ , a ∘ a^\circ a ∘ , we obtain:
R t J ≤ 320 T log ( 12 T / δ ) max { F ( b ∘ ) , S ( a ∘ ) } + 2160 ( 1 + log T ) log ( 12 T / δ ) . R_t^J \leq320\sqrt{T}\log(12T/\delta)\max\{F(b^\circ),S(a^\circ)\}+2160(1+\log T)\log(12T/\delta). R t J ≤ 320 T log ( 12 T / δ ) max { F ( b ∘ ) , S ( a ∘ )} + 2160 ( 1 + log T ) log ( 12 T / δ ) .
This concludes the proof, simultaneously for every t ≤ T t\leq T t ≤ T .
Theorem 6.19 provides an instance-dependent bound for the online market making problem under LOB feedback. In particular, when the discretization parameter in Equation (22) is set to N = T N=T N = T and the confidence radius is chosen according to Proposition 6.5 with parameter δ / 6 \delta/6 δ /6 , Algorithm 4 guarantees, with high probability and uniformly over all time steps, a per-round inventory imbalance ∣ I t ∣ |I_t| ∣ I t ∣ and a surrogate regret R t J R_t^J R t J of order O ~ ( max { F ( b ∘ ) , S ( a ∘ ) } T ) \widetilde{O}(\sqrt{\max\{F(b^\circ),S(a^\circ)\}T}) O ( max { F ( b ∘ ) , S ( a ∘ )} T ) . The benchmark appearing in the bound is the pair ( b ∘ , a ∘ ) (b^\circ,a^\circ) ( b ∘ , a ∘ ) maximizing the surrogate objective over the grid with 1 / T 1/T 1/ T -discretization. In particular, since max { F ( b ∘ ) , S ( a ∘ ) } ≤ 1 \max\{F(b^\circ),S(a^\circ)\}\leq1 max { F ( b ∘ ) , S ( a ∘ )} ≤ 1 , Theorem 6.19 immediately implies worst-case bounds of order O ~ ( T ) \widetilde{O}(\sqrt{T}) O ( T ) for both regret and per-round inventory.
Lower bound
In this section, we provide a lower bound showing that the previously derived worst-case regret upper bound is optimal, up to logarithmic factors. We remark that the following lower bound is not restricted to the LOB setting studied here. Indeed, we prove it under the much stronger assumption that the agent knows the functions S S S and F F F exactly . This assumption is stronger even than full feedback, and highlights that the impossibility of simultaneously achieving small regret and small imbalance is driven by the intrinsic nature of the problem, rather than by the feedback structure.
In the rest of this section, we are going to refer as hard instance to the one characterized by this choice of the c.d.f. and survival function for the bids and asks, respectively:
F ( b ) = { 0 b < 1 / 10 1 / 2 1 / 10 ≤ b < 9 / 10 1 b ≥ 9 / 10 S ( a ) = { 1 a ≤ 1 / 10 1 / 2 1 / 10 < a ≤ 9 / 10 0 a > 9 / 10 (24) F(b)=
\begin{cases}
0 & b<1/10\\
1/2 & 1/10\leq b<9/10\\
1 & b\geq9/10
\end{cases}
\qquad
S(a)=
\begin{cases}
1 & a\leq1/10\\
1/2 & 1/10<a\leq9/10\\
0 & a>9/10
\end{cases} \tag*{(24)} F ( b ) = ⎩ ⎨ ⎧ 0 1/2 1 b < 1/10 1/10 ≤ b < 9/10 b ≥ 9/10 S ( a ) = ⎩ ⎨ ⎧ 1 1/2 0 a ≤ 1/10 1/10 < a ≤ 9/10 a > 9/10 (24)
In such a case, Program (3) admits a unique solution characterized by:
b = 1 10 , a = 9 10 , O P T T = 2 5 . b=\frac{1}{10},\qquad a=\frac{9}{10},\qquad\frac{\mathrm{OPT}}{T}=\frac{2}{5}. b = 10 1 , a = 10 9 , T OPT = 5 2 .
Due to the structure of the problem, at each time step every action generates the same trades as one of the following representatives, whose reward is at least as large:
s 0 : = ( b , a ) = ( 1 / 10 , 9 / 10 ) s_0 := (b,a)=(1/10,9/10) s 0 := ( b , a ) = ( 1/10 , 9/10 ) , which incurs zero expected regret. The imbalance generated follows
the following distribution:
X ( 0 ) ∼ { 1 p = 1 / 4 0 p = 1 / 2 − 1 p = 1 / 4 X^{(0)} \sim\begin{cases}
1 & p = 1/4 \\
0 & p = 1/2 \\
-1 & p = 1/4
\end{cases} X ( 0 ) ∼ ⎩ ⎨ ⎧ 1 0 − 1 p = 1/4 p = 1/2 p = 1/4
s 1 : = ( b , a ) = ( 0 , 1 / 10 ) s_1 := (b,a) = (0,1/10) s 1 := ( b , a ) = ( 0 , 1/10 ) , which guarantees a sale without a purchase. Therefore, the associated imbalance is:
X ( 1 ) = − 1. X^{(1)} = -1. X ( 1 ) = − 1.
Its expected reward is 1 10 \frac{1}{10} 10 1 ; thus, the associated expected regret is 3 10 \boxed{\frac{3}{10}} 10 3 .
s 2 : = ( b , a ) = ( 9 / 10 , 1 ) s_2 := (b,a) = (9/10,1) s 2 := ( b , a ) = ( 9/10 , 1 ) , which guarantees a purchase without a sale. For this reason, its imbalance is:
X ( 2 ) = 1. X^{(2)} = 1. X ( 2 ) = 1.
Its expected reward is − 9 10 -\frac{9}{10} − 10 9 ; thus, the associated expected regret is 13 10 \boxed{\frac{13}{10}} 10 13 .
s 3 : = ( b , a ) = ( 0 , 9 / 10 ) s_3 := (b,a) = (0,9/10) s 3 := ( b , a ) = ( 0 , 9/10 ) . The associated imbalance is the following:
X ( 3 ) ∼ { 0 p = 1 / 2 − 1 p = 1 / 2 X^{(3)} \sim\begin{cases}
0 & p = 1/2 \\
-1 & p = 1/2
\end{cases} X ( 3 ) ∼ { 0 − 1 p = 1/2 p = 1/2
Its expected reward is 9 20 \frac{9}{20} 20 9 ; thus, the associated expected regret corresponds to − 1 20 \boxed{-\frac{1}{20}} − 20 1 .
s 4 : = ( b , a ) = ( 1 / 10 , 1 ) s_4 := (b,a) = (1/10,1) s 4 := ( b , a ) = ( 1/10 , 1 ) . The associated imbalance is the following:
X ( 4 ) ∼ { 1 p = 1 / 2 0 p = 1 / 2 X^{(4)} \sim\begin{cases}
1 & p = 1/2 \\
0 & p = 1/2
\end{cases} X ( 4 ) ∼ { 1 0 p = 1/2 p = 1/2
Its expected reward is − 1 20 -\frac{1}{20} − 20 1 ; thus, the associated expected regret corresponds to 9 20 \boxed{\frac{9}{20}} 20 9 .
s 5 : = ( b , a ) = ( 0 , 1 ) s_5 := (b,a) = (0,1) s 5 := ( b , a ) = ( 0 , 1 ) , which prevents both trades. Its imbalance is:
X ( 5 ) = 0. X^{(5)} = 0. X ( 5 ) = 0.
Its expected reward is zero; thus, the associated expected regret is 2 5 \boxed{\frac{2}{5}} 5 2 .
These six trade patterns exhaust all the possibilities under b < a b < a b < a . We refer as T i T_i T i to the number of rounds in which the selected action has the same trade pattern as s i s_i s i , for i = 1 , … , 5 i = 1,\ldots,5 i = 1 , … , 5 . Combining everything we have that the expected regret can be bounded as:
E [ R T ] ≥ 3 10 E [ T 1 ] + 13 10 E [ T 2 ] − 1 20 E [ T 3 ] + 9 20 E [ T 4 ] + 2 5 E [ T 5 ] . (25) \mathbb{E}[R_T] \ge\frac{3}{10}\mathbb{E}[T_1] + \frac{13}{10}\mathbb{E}[T_2] - \frac{1}{20}\mathbb{E}[T_3] + \frac{9}{20}\mathbb{E}[T_4] + \frac{2}{5}\mathbb{E}[T_5]. \tag*{(25)} E [ R T ] ≥ 10 3 E [ T 1 ] + 10 13 E [ T 2 ] − 20 1 E [ T 3 ] + 20 9 E [ T 4 ] + 5 2 E [ T 5 ] . (25)
Equality holds when the algorithm selects only the representatives. Similarly, by the definition of the inventory, any algorithm must satisfy:
− E [ T 1 ] + E [ T 2 ] − E [ T 3 ] 2 + E [ T 4 ] 2 = E [ I T ] . (26) -\mathbb{E}[T_1] + \mathbb{E}[T_2] - \frac{\mathbb{E}[T_3]}{2} + \frac{\mathbb{E}[T_4]}{2} = \mathbb{E}[I_T]. \tag*{(26)} − E [ T 1 ] + E [ T 2 ] − 2 E [ T 3 ] + 2 E [ T 4 ] = E [ I T ] . (26)
Crucially, Equations (26) and (25) lead to the following minimization problem that links the number of pulls performed by any algorithm to the associated regret. The imbalance identity allows us to lower bound expected regret by the value of the following linear program, parametrized over E [ T s u b ] \mathbb{E}[T_{\mathrm{sub}}] E [ T sub ] , where T s u b : = T 1 + T 2 + T 3 + T 4 + T 5 T_{\mathrm{sub}} := T_1 + T_2 + T_3 + T_4 + T_5 T sub := T 1 + T 2 + T 3 + T 4 + T 5 , and over E [ I T ] \mathbb{E}[I_T] E [ I T ] :
min v ∈ R 5 3 10 v 1 + 13 10 v 2 − 1 20 v 3 + 9 20 v 4 + 2 5 v 5 s.t. − v 1 + v 2 − 1 2 v 3 + 1 2 v 4 = E [ I T ] v 1 + v 2 + v 3 + v 4 + v 5 = E [ T s u b ] v 1 , v 2 , v 3 , v 4 , v 5 ≥ 0 \begin{aligned}
\min_{\mathbf{v}\in\mathbb{R}^{5}}\quad& \frac{3}{10}v_1+\frac{13}{10}v_2-\frac{1}{20}v_3+\frac{9}{20}v_4+\frac{2}{5}v_5\\
\text{s.t.}\quad& -v_1+v_2-\frac{1}{2}v_3+\frac{1}{2}v_4=\mathbb{E}[I_T]\\
& v_1+v_2+v_3+v_4+v_5=\mathbb{E}[T_{\mathrm{sub}}]\\
& v_1,v_2,v_3,v_4,v_5\ge0
\end{aligned} v ∈ R 5 min s.t. 10 3 v 1 + 10 13 v 2 − 20 1 v 3 + 20 9 v 4 + 5 2 v 5 − v 1 + v 2 − 2 1 v 3 + 2 1 v 4 = E [ I T ] v 1 + v 2 + v 3 + v 4 + v 5 = E [ T sub ] v 1 , v 2 , v 3 , v 4 , v 5 ≥ 0
whose value is at least E [ T s u b ] / 5 + E [ I T ] / 2 \mathbb{E}[T_{\mathrm{sub}}]/5+\mathbb{E}[I_T]/2 E [ T sub ] /5 + E [ I T ] /2 . Indeed, subtracting 1 / 5 1/5 1/5 times the second constraint and 1 / 2 1/2 1/2 times the first from the objective leaves the nonnegative quantity 3 ( v 1 + v 2 ) / 5 + v 5 / 5 3(v_1+v_2)/5+v_5/5 3 ( v 1 + v 2 ) /5 + v 5 /5 . Therefore,
E [ R T ] ≥ E [ T s u b ] 5 + E [ I T ] 2 . (27) \mathbb{E}[R_T]\ge\frac{\mathbb{E}[T_{\mathrm{sub}}]}{5}+\frac{\mathbb{E}[I_T]}{2}. \tag*{(27)} E [ R T ] ≥ 5 E [ T sub ] + 2 E [ I T ] . (27)
The terminal inventory term accounts for the negative regret of s 3 s_3 s 3 ; the proof below refines this comparison by measuring the total correction relative to s 0 s_0 s 0 .
Given the aforementioned reasoning, we are now able to provide our lower bound.
Theorem 6.20. Let T ≥ 144 H 2 T \ge144H^{2} T ≥ 144 H 2 . Then, every algorithm that satisfies the per-round inventory constraint for α ≤ H \alpha\le H α ≤ H suffers expected regret E [ R T ] ≥ T 720 H \mathbb{E}[R_T] \ge\frac{T}{720H} E [ R T ] ≥ 720 H T .
Proof. Let I 0 = 0 I_0 = 0 I 0 = 0 and Z t : = I t − I t − 1 Z_t := I_t - I_{t-1} Z t := I t − I t − 1 . Define the imbalance generated by s 0 s_0 s 0 on the valuations at round t t t as:
X t ( 0 ) : = I ( V t s e l l ≤ 1 / 10 ) − I ( V t b u y ≥ 9 / 10 ) . X_t^{(0)} := \mathbb{I}(V_t^{\mathrm{sell}} \le1/10) - \mathbb{I}(V_t^{\mathrm{buy}} \ge9/10). X t ( 0 ) := I ( V t sell ≤ 1/10 ) − I ( V t buy ≥ 9/10 ) .
Let H t \mathcal{H}_t H t denote the information available after selecting ( B t , A t ) (B_t, A_t) ( B t , A t ) and before observing the valuations at round t t t . Conditional on this information, E [ Z t ∣ H t ] = F ( B t ) − S ( A t ) \mathbb{E}[Z_t \mid\mathcal{H}_t] = F(B_t) - S(A_t) E [ Z t ∣ H t ] = F ( B t ) − S ( A t ) and E [ r t ∣ H t ] = A t S ( A t ) − B t F ( B t ) \mathbb{E}[r_t \mid\mathcal{H}_t] = A_tS(A_t) - B_tF(B_t) E [ r t ∣ H t ] = A t S ( A t ) − B t F ( B t ) . Therefore,
E [ 2 5 − r t − 1 2 Z t ∣ H t ] = 2 5 + ( B t − 1 2 ) F ( B t ) + ( 1 2 − A t ) S ( A t ) ≥ 2 5 E [ ∣ Z t − X t ( 0 ) ∣ ∣ H t ] . (28) \begin{aligned}
\mathbb{E}\left[\left.\frac{2}{5} - r_t - \frac{1}{2}Z_t \right| \mathcal{H}_t\right]
= \frac{2}{5} + \left(B_t - \frac{1}{2}\right)F(B_t) + \left(\frac{1}{2} - A_t\right)S(A_t) \\
&\ge\frac{2}{5}\mathbb{E}\left[\left.|Z_t - X_t^{(0)}| \right| \mathcal{H}_t\right]. \tag*{(28)}
\end{aligned} E [ 5 2 − r t − 2 1 Z t H t ] = 5 2 + ( B t − 2 1 ) F ( B t ) + ( 2 1 − A t ) S ( A t ) ≥ 5 2 E [ ∣ Z t − X t ( 0 ) ∣ H t ] . (28)
Indeed, when ( F ( B t ) , S ( A t ) ) = ( 1 / 2 , 1 / 2 ) (F(B_t), S(A_t)) = (1/2, 1/2) ( F ( B t ) , S ( A t )) = ( 1/2 , 1/2 ) , the expression equals 2 / 5 − ( A t − B t ) / 2 ≥ 0 2/5 - (A_t - B_t)/2 \ge0 2/5 − ( A t − B t ) /2 ≥ 0 and Z t = X t ( 0 ) Z_t = X_t^{(0)} Z t = X t ( 0 ) . The other possible pairs are ( 0 , 1 ) (0, 1) ( 0 , 1 ) , ( 0 , 1 / 2 ) (0, 1/2) ( 0 , 1/2 ) , ( 0 , 0 ) (0, 0) ( 0 , 0 ) , ( 1 / 2 , 0 ) (1/2, 0) ( 1/2 , 0 ) , and ( 1 , 0 ) (1, 0) ( 1 , 0 ) , for which the expression is at least 4 / 5 4/5 4/5 , 1 / 5 1/5 1/5 , 2 / 5 2/5 2/5 , 1 / 5 1/5 1/5 , and 4 / 5 4/5 4/5 , respectively, while the conditional expectations of ∣ Z t − X t ( 0 ) ∣ |Z_t - X_t^{(0)}| ∣ Z t − X t ( 0 ) ∣ are 1 1 1 , 1 / 2 1/2 1/2 , 1 / 2 1/2 1/2 , 1 / 2 1/2 1/2 , and 1 1 1 . Combining everything, the regret can be bounded as:
E [ R T ] ≥ 2 5 E [ ∣ ∑ t = 1 T Z t − X t ( 0 ) ∣ ] + 1 2 E [ I T ] . (29) \mathbb{E}[R_T] \ge\frac{2}{5}\mathbb{E}\left[\left|\sum_{t=1}^{T} Z_t - X_t^{(0)}\right|\right] + \frac{1}{2}\mathbb{E}[I_T]. \tag*{(29)} E [ R T ] ≥ 5 2 E [ t = 1 ∑ T Z t − X t ( 0 ) ] + 2 1 E [ I T ] . (29)
For some deterministic $0 \le j < k \le T$ to be defined, consider the imbalances I j I_j I j and I k I_k I k , the total imbalances at time j j j and k k k , respectively. Indeed, it holds:
I k − I j = ∑ τ = j + 1 k [ I ( V τ s e l l ≤ B τ ) − I ( V τ b u y ≥ A τ ) ] = ∑ τ = j + 1 k X τ ( 0 ) + Ξ j k . \begin{aligned}
I_k - I_j = \sum_{\tau=j+1}^{k}\left[\mathbb{I}(V_\tau^{\mathrm{sell}} \le B_\tau) - \mathbb{I}(V_\tau^{\mathrm{buy}} \ge A_\tau)\right] \\
&= \sum_{\tau=j+1}^{k} X_\tau^{(0)} + \Xi_j^k.
\end{aligned} I k − I j = τ = j + 1 ∑ k [ I ( V τ sell ≤ B τ ) − I ( V τ buy ≥ A τ ) ] = τ = j + 1 ∑ k X τ ( 0 ) + Ξ j k .
Using this decomposition, Ξ j k : = ∑ τ = j + 1 k ( Z τ − X τ ( 0 ) ) \Xi_j^k := \sum_{\tau=j+1}^{k}(Z_\tau- X_\tau^{(0)}) Ξ j k := ∑ τ = j + 1 k ( Z τ − X τ ( 0 ) ) corresponds to the correction relative to always playing s 0 s_0 s 0 . Now, by definition of s 0 s_0 s 0 and independence of the valuations, it holds:
X τ ( 0 ) ∼ ξ τ ( 1 ) + ξ τ ( 2 ) 2 , ξ τ ( 1 ) , ξ τ ( 2 ) ∼ i . i . d . Rademacher , X_\tau^{(0)} \sim\frac{\xi_\tau^{(1)} + \xi_\tau^{(2)}}{2}, \qquad\xi_\tau^{(1)}, \xi_\tau^{(2)} \overset{\mathrm{i.i.d.}}{\sim} \text{Rademacher}, X τ ( 0 ) ∼ 2 ξ τ ( 1 ) + ξ τ ( 2 ) , ξ τ ( 1 ) , ξ τ ( 2 ) ∼ i.i.d. Rademacher ,
with independence also across rounds. Thus, by the Khintchine’s anti-concentration inequality [69 ] , it holds:
E [ ∣ ∑ τ = j + 1 k X τ ( 0 ) ∣ ] = 1 2 E [ ∣ ∑ τ = j + 1 k ( ξ τ ( 1 ) + ξ τ ( 2 ) ) ∣ ] ≥ 2 ( k − j ) 2 2 = k − j 2 . \mathbb{E}\left[\left|\sum_{\tau=j+1}^{k} X_{\tau}^{(0)}\right|\right]
= \frac{1}{2}\mathbb{E}\left[\left|\sum_{\tau=j+1}^{k}\left(\xi_{\tau}^{(1)}+\xi_{\tau}^{(2)}\right)\right|\right]
\ge\frac{\sqrt{2(k-j)}}{2\sqrt{2}}
= \frac{\sqrt{k-j}}{2}. E [ τ = j + 1 ∑ k X τ ( 0 ) ] = 2 1 E [ τ = j + 1 ∑ k ( ξ τ ( 1 ) + ξ τ ( 2 ) ) ] ≥ 2 2 2 ( k − j ) = 2 k − j .
In order for the assumption of the theorem to be satisfied, we have E [ ∣ I k − I j ∣ ] ≤ 2 H \mathbb{E}[|I_k-I_j|]\le2H E [ ∣ I k − I j ∣ ] ≤ 2 H . Therefore, it follows from the previous equations that:
E [ ∣ Ξ j k ∣ ] ≥ k − j 2 − 2 H . \mathbb{E}[|\Xi_j^k|]\ge\frac{\sqrt{k-j}}{2}-2H. E [ ∣ Ξ j k ∣ ] ≥ 2 k − j − 2 H .
Notice that ∣ Ξ j k ∣ ≤ ∑ τ = j + 1 k ∣ Z τ − X τ ( 0 ) ∣ |\Xi_j^k|\le\sum_{\tau=j+1}^{k}|Z_{\tau}-X_{\tau}^{(0)}| ∣ Ξ j k ∣ ≤ ∑ τ = j + 1 k ∣ Z τ − X τ ( 0 ) ∣ .
Now, we can rewrite the regret lower bound as follows by defining a bucket size q : = ⌈ 36 H 2 ⌉ q:=\lceil36H^2\rceil q := ⌈ 36 H 2 ⌉ . We use the complete deterministic blocks and discard the nonnegative contribution of the remaining rounds. By Equation (29) and I T ≥ − H I_T\ge-H I T ≥ − H , it holds:
E [ R T ] ≥ 2 5 ∑ ℓ = 0 ⌊ T / q ⌋ − 1 E [ ∣ Ξ q ℓ q ℓ + q ∣ ] − H 2 ≥ 2 5 ∑ ℓ = 0 ⌊ T / q ⌋ − 1 ( q 2 − 2 H ) − H 2 ≥ 2 5 ⌊ T q ⌋ H − H 2 ≥ 2 5 ( T 37 H 2 − 1 ) H − H 2 ≥ T 720 H . \mathbb{E}[R_T]\ge\frac{2}{5}\sum_{\ell=0}^{\lfloor T/q\rfloor-1}\mathbb{E}\left[|\Xi_{q\ell}^{q\ell+q}|\right]-\frac{H}{2}
\ge\frac{2}{5}\sum_{\ell=0}^{\lfloor T/q\rfloor-1}\left(\frac{\sqrt{q}}{2}-2H\right)-\frac{H}{2}
\ge\frac{2}{5}\left\lfloor\frac{T}{q}\right\rfloor H-\frac{H}{2}
\ge\frac{2}{5}\left(\frac{T}{37H^2}-1\right)H-\frac{H}{2}
\ge\frac{T}{720H}. E [ R T ] ≥ 5 2 ℓ = 0 ∑ ⌊ T / q ⌋ − 1 E [ ∣ Ξ q ℓ q ℓ + q ∣ ] − 2 H ≥ 5 2 ℓ = 0 ∑ ⌊ T / q ⌋ − 1 ( 2 q − 2 H ) − 2 H ≥ 5 2 ⌊ q T ⌋ H − 2 H ≥ 5 2 ( 37 H 2 T − 1 ) H − 2 H ≥ 720 H T .
where the penultimate step uses q ≤ 37 H 2 q\le37H^2 q ≤ 37 H 2 for H ≥ 1 H\ge1 H ≥ 1 , and the last step comes from the assumption T ≥ 144 H 2 T\ge144H^2 T ≥ 144 H 2 . This concludes the proof. □
The previous theorem implies, in particular, that any algorithm attaining o ( T ) o(\sqrt{T}) o ( T ) per-round inventory imbalance must also incur ω ( T ) \omega(\sqrt{T}) ω ( T ) expected regret on the hard instance.
In Figure 4 , we provide a graphical intuition behind the lower bound of our setting.
Figure 4. This figure provides heuristic intuition for the lower-bound construction developed in § 9.4 . Suppose that the agent aims to guarantee an imbalance bound of the form ∣ I t ∣ ≤ H = O ( T β ) |I_t| \le H = \mathcal{O}(T^\beta) ∣ I t ∣ ≤ H = O ( T β ) for some β < 1 / 2 \beta< 1/2 β < 1/2 . If the agent always selects the J J J -maximizing actions b ∘ b^\circ b ∘ and a ∘ a^\circ a ∘ , then, since F ( b ∘ ) = S ( a ∘ ) = 1 / 2 F(b^\circ) = S(a^\circ) = 1/2 F ( b ∘ ) = S ( a ∘ ) = 1/2 , the resulting imbalance process I t I_t I t evolves as a driftless random walk; this behavior is illustrated by the shaded curve. To prevent the walk from leaving the interval [ − H , H ] [-H,H] [ − H , H ] (delimited by the dashed lines), the agent must occasionally intervene by selecting suboptimal actions, represented by the black points. As the figure suggests, the smaller H H H is, the more frequently such corrective interventions are needed, leading to a fundamental trade-off between the strength of the imbalance constraint and the resulting cumulative regret. The core of the proof is to show that expected regret grows at least linearly with the expected total amount of correction, up to an additive O ( H ) \mathcal{O}(H) O ( H ) term. This correction is of order Ω ( T / H ) = Ω ( T 1 − β ) \Omega(T/H) = \Omega(T^{1-\beta}) Ω ( T / H ) = Ω ( T 1 − β ) .
Attaining Global Inventory Balance
In this section, we provide a wrapper procedure which, given as input any algorithm with similar guarantees to the ones of § 8 –§ 9 , obtains a global inventory constraint satisfaction, that is, at the end of the process, the number of sold items is equal to the number of purchased ones.
Algorithm 6 Global Inventory Balance Metaprocedure
Require: T ∈ N > 0 T \in\mathbb{N}_{>0} T ∈ N > 0 , Algorithm A \mathcal{A} A with per-round imbalance upper bound of I A I_{\mathcal{A}} I A
Initialize A \mathcal{A} A for horizon T T T and set I 0 ← 0 I_0 \leftarrow0 I 0 ← 0
for t ∈ [ T − I A ] t \in[T-I_{\mathcal{A}}] t ∈ [ T − I A ] do
Select ( B t , A t ) ← A (B_t,A_t) \leftarrow\mathcal{A} ( B t , A t ) ← A
Update I t I_t I t from the observed trades
end for
while ∣ I t − 1 ∣ > 0 \lvert I_{t-1}\rvert> 0 ∣ I t − 1 ∣ > 0 do
if ∑ τ = 1 t − 1 I ( V τ b u y ≥ A τ ) > ∑ τ = 1 t − 1 I ( V τ s e l l ≤ B τ ) \sum_{\tau=1}^{t-1}\mathbb{I}(V^{\mathrm{buy}}_{\tau} \ge A_{\tau}) > \sum_{\tau=1}^{t-1}\mathbb{I}(V^{\mathrm{sell}}_{\tau} \le B_{\tau}) ∑ τ = 1 t − 1 I ( V τ buy ≥ A τ ) > ∑ τ = 1 t − 1 I ( V τ sell ≤ B τ ) then
Select ( B t , A t ) ← ( 1 , 1 ) (B_t,A_t) \leftarrow(1,1) ( B t , A t ) ← ( 1 , 1 )
else
Select ( B t , A t ) ← ( 0 , 0 ) (B_t,A_t) \leftarrow(0,0) ( B t , A t ) ← ( 0 , 0 )
end if
Update I t I_t I t from the observed trades
end while
Select ( B t , A t ) ← ( 0 , 1 ) (B_t,A_t) \leftarrow(0,1) ( B t , A t ) ← ( 0 , 1 ) until the end of the learning dynamic
Algorithm
In Algorithm 6, we provide a black-box metaprocedure that converts any algorithm with a sublinear per-round imbalance guarantee into one that additionally satisfies the global inventory constraint. Specifically, given any algorithm A \mathcal{A} A whose per-round inventory imbalance is bounded by I A I_{\mathcal{A}} I A ,7 we execute A \mathcal{A} A for the first T − I A T-I_{\mathcal{A}} T − I A rounds and reserve the final I A I_{\mathcal{A}} I A rounds for a balancing phase. By the guarantee on A \mathcal{A} A , the inventory at time T − I A T-I_{\mathcal{A}} T − I A has magnitude at most I A I_{\mathcal{A}} I A , and can therefore be fully balanced over the remaining horizon. During this phase, the algorithm repeatedly selects the most inventory-increasing bid-ask pair whenever the agent is short, and the most inventory-decreasing bid-ask pair whenever the agent is long, until the total imbalance reaches zero. After that, it selects the no-trade bid-ask pair ( 0 , 1 ) (0,1) ( 0 , 1 ) for all remaining rounds. In this way, the resulting algorithm satisfies the global inventory constraint.
The careful reader will notice that, in this section, we allow our algorithm to play the extreme bid-ask pairs ( 1 , 1 ) (1,1) ( 1 , 1 ) and ( 0 , 0 ) (0,0) ( 0 , 0 ) , which do not satisfy the strict inequality B t < A t B_t < A_t B t < A t . Nonetheless, this is only a notational convenience. In standard market-making models, one typically has access to prices that effectively implement the decision of not selling or not buying. Thus, these extreme actions should be interpreted as shorthand for reserve prices that deterministically prevent trade on one side while forcing it on the other.
Theoretical Guarantees
We can now prove the final result of the paper.
Theorem 7.1. Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and let A \mathcal{A} A be an algorithm for the online market making problem whose (surrogate) regret and per-round imbalance are upper bounded by R A J R_{\mathcal{A}}^J R A J , I A I_{\mathcal{A}} I A with probability at least 1 − δ 1-\delta 1 − δ , respectively. Then, Algorithm 6 instantiated with A \mathcal{A} A attains with probability at least 1 − δ 1-\delta 1 − δ :
R T J ≤ R A J + 2 I A , ∣ I T ∣ = 0 , ∣ I t ∣ ≤ I A ∀ t ∈ [ T ] . R_T^J \le R_{\mathcal{A}}^J + 2I_{\mathcal{A}}, \qquad\lvert I_T\rvert= 0, \qquad\lvert I_t\rvert\le I_{\mathcal{A}} \quad\forall t \in[T]. R T J ≤ R A J + 2 I A , ∣ I T ∣ = 0 , ∣ I t ∣ ≤ I A ∀ t ∈ [ T ] .
Proof. The final surrogate regret bound follows from the fact that, up to round T − I A T-I_{\mathcal A} T − I A , the surrogate regret is bounded by R A ′ R_{\mathcal A}^{\prime} R A ′ , while over the remaining rounds it is at most 2 I A 2I_{\mathcal A} 2 I A .
The per-round imbalance guarantee follows from the fact that, in the second phase of the algorithm, namely after round T − I A T-I_{\mathcal A} T − I A , the quantity ∣ I t ∣ |I_t| ∣ I t ∣ strictly decreases at each round.
The satisfaction of the global inventory constraint follows by observing that, at round T − I A T-I_{\mathcal A} T − I A , the imbalance is at most I A I_{\mathcal A} I A , and then decreases strictly over the next I A I_{\mathcal A} I A rounds until it reaches 0, by construction of the algorithm.
Noticing that the above argument holds with probability at least 1 − δ 1-\delta 1 − δ concludes the proof. □ \square □
As a final remark, the assumption that the per-round imbalance upper bound I A I_{\mathcal A} I A achieved by algorithm A \mathcal A A is known in advance—notice that, this assumption does not hold for our instance-dependent bound—can be removed . It is sufficient to start balancing the inventory as soon as ∣ I t ∣ = T − t |I_t|=T-t ∣ I t ∣ = T − t , and the same guarantee continues to hold.
Final Discussion
In this paper, we study the sequential market making problem through the lens of regret minimization . Specifically, we formulate sequential market making as an online learning problem under peculiar inventory constraints. In this setting, the goal of the agent (the market maker) is two-fold. On the one hand, the agent iteratively posts bid and ask prices so as to maximize the revenue collected during the learning process. On the other hand, the agent must handle the inventory by i) guaranteeing that the number of sold items matches the number of purchased ones at the end of the learning process, and ii) keeping the inventory as small as possible throughout learning.
We study the setting in which buyers’ and sellers’ valuations are sampled at each round from fixed distributions, without making any additional assumption on the shape of the corresponding c.d.f.’s. Moreover, we consider two feedback models, which determine what the market maker observes at the end of each round. Our results can be shortly summarized as follows:
We first study the well-known two-bit feedback model, in which the market maker only observes whether a trade with the seller and/or with the buyer occurred. In this setting, we develop an algorithm attaining O ~ ( T 2 / 3 ) \widetilde{O}(T^{2/3}) O ( T 2/3 ) regret and O ~ ( T 2 / 3 ) \widetilde{O}(T^{2/3}) O ( T 2/3 ) per-round inventory bounds, while satisfying the overall inventory constraint.
We then turn to the LOB feedback model, where the agent has access to the limit order book , and therefore observes the realized valuation of the buyer or seller whenever the corresponding trade does not occur. This feedback model is particularly relevant for several reasons. First, it is realistic in practice, since larger market players often have access to limit order book information. Second, as we show in this work, it allows one to achieve O ~ ( T ) \widetilde{O}(\sqrt{T}) O ( T ) regret and per-round inventory bounds—which we prove to be tight up to logarithmic factors—thus yielding significantly improved guarantees while still relying on a realistic feedback structure. Finally, our results show that in sequential market making, observing the complete per-round valuations at the end of the round is not necessary to get O ~ ( T ) \widetilde{O}(\sqrt{T}) O ( T ) guarantees.
Overall, our results show that sequential market making is a technically challenging online learning problem, where limited feedback and inventory constraints interact in a non-trivial way and require substantially new ideas.
Open Problems
An intriguing direction for future work is to study sequential market making under adversarial buyer and seller valuations, namely, no statistical assumption is made on the per-round valuations of buyers and sellers. To fix ideas, let us consider the natural offline benchmark in hindsight:
OPT A d v ≔ { max b , a ∈ [ 0 , 1 ] 2 ∑ t = 1 T [ a ⋅ I ( V t b u y ≥ a ) − b ⋅ I ( V t s e l l ≤ b ) ] s.t. ∑ t = 1 T I ( V t b u y ≥ a ) = ∑ t = 1 T I ( V t s e l l ≤ b ) b < a . (30) \operatorname{OPT}_{\mathrm{Adv}} \coloneqq
\begin{cases}
\max_{b,a\in[0,1]^2}\ \sum_{t=1}^{T}\left[a\cdot\mathbb{I}\left(V_t^{\mathrm{buy}}\ge a\right)-b\cdot\mathbb{I}\left(V_t^{\mathrm{sell}}\le b\right)\right] \\
\text{s.t.}\quad\sum_{t=1}^{T}\mathbb{I}\left(V_t^{\mathrm{buy}}\ge a\right)=\sum_{t=1}^{T}\mathbb{I}\left(V_t^{\mathrm{sell}}\le b\right) \\
b<a.
\end{cases} \tag*{(30)} OPT Adv : = ⎩ ⎨ ⎧ max b , a ∈ [ 0 , 1 ] 2 ∑ t = 1 T [ a ⋅ I ( V t buy ≥ a ) − b ⋅ I ( V t sell ≤ b ) ] s.t. ∑ t = 1 T I ( V t buy ≥ a ) = ∑ t = 1 T I ( V t sell ≤ b ) b < a . (30)
This is the standard type of comparator considered in adversarial constrained online learning [25 ] . At the same time, it is well known that, in bandit settings with adversarial rewards and adversarial constraints, one cannot in general hope for sublinear regret and sublinear violation with respect to a benchmark satisfying the constraints on average (namely, the constraints in-hindsight, as specified in OPT A d v \operatorname{OPT}_{\mathrm{Adv}} OPT Adv ). The associated impossibility result is provided in Proposition 4 of [55 ] for the simple case of two player zero-sum games with constraints.
However, it is far from clear whether the existing impossibility results fully capture the adversarial sequential market making problem. Indeed, our setting has a very specific structure: the action is a bid-ask pair, the reward and the feasibility conditions are tightly coupled through the inventory, and the benchmark in Program (30) is computed in terms of a single bid-ask pair rather than a distribution over actions (bid-ask), which instead is the case of [55 ] . For this reason, a direct reduction from the classical impossibility instance is not immediate, and understanding the adversarial regime appears particularly interesting in our setting.
This leads to several natural open questions:
OPT A d v W e a k ≔ { max b , a ∈ [ 0 , 1 ] 2 ∑ t = 1 T [ a ⋅ I ( V t b u y ≥ a ) − b ⋅ I ( V t s e l l ≤ b ) ] s.t. I ( V t b u y ≥ a ) = I ( V t s e l l ≤ b ) ∀ t ∈ [ T ] b < a . \operatorname{OPT}_{\mathrm{Adv}}^{\mathrm{Weak}} \coloneqq
\begin{cases}
\max_{b,a\in[0,1]^2}\ \sum_{t=1}^{T}\left[a\cdot\mathbb{I}\left(V_t^{\mathrm{buy}}\ge a\right)-b\cdot\mathbb{I}\left(V_t^{\mathrm{sell}}\le b\right)\right] \\
\text{s.t.}\quad\mathbb{I}\left(V_t^{\mathrm{buy}}\ge a\right)=\mathbb{I}\left(V_t^{\mathrm{sell}}\le b\right)\quad\forall t\in[T] \\
b<a.
\end{cases} OPT Adv Weak : = ⎩ ⎨ ⎧ max b , a ∈ [ 0 , 1 ] 2 ∑ t = 1 T [ a ⋅ I ( V t buy ≥ a ) − b ⋅ I ( V t sell ≤ b ) ] s.t. I ( V t buy ≥ a ) = I ( V t sell ≤ b ) ∀ t ∈ [ T ] b < a .
but this benchmark appears overly restrictive, and arguably not very natural, in market making settings.
These questions naturally suggest several directions for future work.
AI Use Statement
Generative AI tools (OpenAI Codex) were used exclusively to (i i i ) refine the writing, (i i ii ii ) generate the figures and (i i i iii iii ) identify potential typos in the mathematical proofs.
Notation Summary
Table A.
Technical Lemmas
Proposition 5.4. Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and E g o o d \mathcal{E}_{\mathrm{good}} E good be the good event defined in Equation (10) , it holds P ( E g o o d ) ≥ 1 − δ \mathbb{P}(\mathcal{E}_{\mathrm{good}}) \ge1-\delta P ( E good ) ≥ 1 − δ .
Proof. By Theorem 6.1 , for fixed t t t , ℓ \ell ℓ as in Definition 5.3 and ε > 0 \varepsilon> 0 ε > 0 , it holds:
P ( max { sup b Δ F ( b , t , ℓ ) , sup a Δ S ( a , t , ℓ ) } > ε ) ≤ 4 e − 2 ( 2 ℓ ) ε 2 . \mathbb{P}\left(\max\left\{\sup_b \Delta_F(b,t,\ell),\sup_a \Delta_S(a,t,\ell)\right\}>\varepsilon\right)\leq4e^{-2(2^\ell)\varepsilon^2}. P ( max { b sup Δ F ( b , t , ℓ ) , a sup Δ S ( a , t , ℓ ) } > ε ) ≤ 4 e − 2 ( 2 ℓ ) ε 2 .
For S S S , the theorem is applied to the reflected buyers’ valuations, since S ( a ) = P ( − V t b u y ≤ − a ) S(a)=\mathbb{P}(-V_t^{\mathrm{buy}}\leq-a) S ( a ) = P ( − V t buy ≤ − a ) . Taking ε ↑ ψ ℓ \varepsilon\uparrow\psi_\ell ε ↑ ψ ℓ and employing a union bound on all the possible values of t t t and ℓ \ell ℓ in Definition 5.3 , we get:
P ( E g o o d c ) ≤ ∑ ℓ = 0 ⌊ log 2 ( T 2 / 3 ) ⌋ ∑ t = 1 T − 2 ℓ + 1 4 e − 2 ( 2 ℓ ) ψ ℓ 2 ≤ T 2 δ 2 4 T 2 = δ 2 4 ≤ δ , \mathbb{P}(\mathcal{E}_{\mathrm{good}}^c)\leq\sum_{\ell=0}^{\lfloor\log_2(T^{2/3})\rfloor}\sum_{t=1}^{T-2^{\ell}+1}4e^{-2(2^\ell)\psi_\ell^2}\leq T^2\frac{\delta^2}{4T^2}=\frac{\delta^2}{4}\leq\delta, P ( E good c ) ≤ ℓ = 0 ∑ ⌊ l o g 2 ( T 2/3 )⌋ t = 1 ∑ T − 2 ℓ + 1 4 e − 2 ( 2 ℓ ) ψ ℓ 2 ≤ T 2 4 T 2 δ 2 = 4 δ 2 ≤ δ ,
where the last inequalities hold as ⌊ log 2 ( T 2 / 3 ) ⌋ + 1 ≤ T \lfloor\log_2(T^{2/3})\rfloor+1\leq T ⌊ log 2 ( T 2/3 )⌋ + 1 ≤ T and 0 < δ < 1 0<\delta<1 0 < δ < 1 . □
Lemma B.1. Under the good event (16) , for every active ( b , a ) (b,a) ( b , a ) pair, it holds at any time t ∈ [ T ] t\in[T] t ∈ [ T ] :
F ( b ) − 2 ψ t ( b ) ≤ F t l o w ( b ) ≤ F ( b ) ≤ F t u p ( b ) ≤ F ( b ) + 2 ψ t ( b ) , F(b)-2\psi_t(b)\leq F_t^{\mathrm{low}}(b)\leq F(b)\leq F_t^{\mathrm{up}}(b)\leq F(b)+2\psi_t(b), F ( b ) − 2 ψ t ( b ) ≤ F t low ( b ) ≤ F ( b ) ≤ F t up ( b ) ≤ F ( b ) + 2 ψ t ( b ) , and:
S ( a ) − 2 ψ t ( a ) ≤ S t l o w ( a ) ≤ S ( a ) ≤ S t u p ( a ) ≤ S ( a ) + 2 ψ t ( a ) . S(a)-2\psi_t(a)\leq S_t^{\mathrm{low}}(a)\leq S(a)\leq S_t^{\mathrm{up}}(a)\leq S(a)+2\psi_t(a). S ( a ) − 2 ψ t ( a ) ≤ S t low ( a ) ≤ S ( a ) ≤ S t up ( a ) ≤ S ( a ) + 2 ψ t ( a ) .
Proof. By definition of the good event, it holds:
F t u p ( b ) ≤ F ^ t ( b ) + ψ t ( b , δ ) ≤ F ( b ) + ∣ F ( b ) − F ^ t ( b ) ∣ + ψ t ( b , δ ) ≤ F ( b ) + 2 ψ t ( b , δ ) . \begin{aligned}
F_t^{\mathrm{up}}(b)&\leq\widehat{F}_t(b)+\psi_t(b,\delta)\\
&\leq F(b)+|F(b)-\widehat{F}_t(b)|+\psi_t(b,\delta)\\
&\leq F(b)+2\psi_t(b,\delta).
\end{aligned} F t up ( b ) ≤ F t ( b ) + ψ t ( b , δ ) ≤ F ( b ) + ∣ F ( b ) − F t ( b ) ∣ + ψ t ( b , δ ) ≤ F ( b ) + 2 ψ t ( b , δ ) .
The other points follow in an analogous manner. □
References