Introduction
Online resource allocation problems arise in revenue management, online matching, e-commerce fulfillment, and online marketplaces. In the canonical formulation, a decision maker begins with an exogenously given stock of resources and decides how to allocate them as requests arrive. Accepting a request consumes a resource; rejecting it preserves that resource for subsequent requests. A central question is how much the decision maker loses, relative to a hindsight optimizer, by making these decisions without knowing future requests; see Balseiro et al. [4 ] .
Many operational settings depart from this one-way allocation paradigm. A decision maker must procure resources endogenously and decide how to allocate them to exploit future selling opportunities. Inventory then becomes central. Buying increases inventory, selling decreases it, and both decisions must respect capacity limits. A warehouse manager chooses when to acquire, store, and sell a commodity. A battery operator makes the analogous charging, idling, and discharging decisions. Such procurement-and-allocation decisions also arise for intermediaries whose inventory consists of contractual service capacity.
A concrete, albeit stylized, motivation is freight brokerage. A broker brings together shippers requiring transportation and carriers supplying it. For concreteness, consider a single-lane broker who can buy one unit of carrier service, sell one unit of that service to a shipper, or hold at each time step. The broker begins with no carrier capacity reserved. A purchase secures one unit of contractual carrier service, a sale allocates that unit to shipper demand, and holding keeps the commitment unallocated. The intermediary limits its unallocated commitments to B B B units, which can be interpreted as an internal risk or working-capital limit. We deliberately abstract from the details of freight brokerage to focus on the core operational question: how does one make online trading decisions when resources need to be endogenously procured and allocated?
We study a prototypical version of this problem. Over a horizon of T T T time steps, a trader observes i.i.d. prices drawn from a known distribution and can buy one unit, sell one unit, or hold at each time step. Inventory lies between zero and a capacity B B B , and the terminal inventory must equal the initial inventory y 0 y_0 y 0 . Performance is measured by regret relative to the best feasible trading sequence with full knowledge of the prices.
The closest classical analogue is the multisecretary problem (see Kleinberg [12 ] ; Arlotto and Gurvich [2 ] ), where a decision maker observes a sequence of n n n candidate valuations and makes irrevocable accept/reject decisions, subject to accepting at most k k k candidates. The connection to trading with storage is particularly close at the level of the hindsight problem. Suppose that both the initial inventory y 0 y_0 y 0 and the unused storage capacity B − y 0 B-y_0 B − y 0 are proportional to the horizon T T T . If we temporarily ignore the pathwise inventory constraints, while retaining the requirement that terminal inventory equal initial inventory, an optimal hindsight trading strategy buys at the ⌊ T / 2 ⌋ \lfloor T/2\rfloor ⌊ T /2 ⌋ lowest prices, sells at the ⌊ T / 2 ⌋ \lfloor T/2\rfloor ⌊ T /2 ⌋ highest prices, and holds once if T T T is odd. Thus, the empirical median acts as a hindsight threshold, with ties broken at random. Selecting the sale periods is the same as selecting the accepted candidates in a multisecretary problem with n = T n=T n = T candidates and k = ⌊ T / 2 ⌋ k=\lfloor T/2\rfloor k = ⌊ T /2 ⌋ acceptances when valuations are known in advance. Under i.i.d. prices, the temporal ordering of these selected trades produces inventory fluctuations of order T \sqrt{T} T . Because both buffers are proportional to T T T , they dominate the T \sqrt{T} T -scale inventory fluctuations. The relaxed hindsight strategy is therefore feasible with high probability, connecting the two hindsight problems.
However, when the initial inventory level is zero, the problems differ substantially. The relaxed hindsight strategy may prescribe a sale before the first purchase, making it infeasible. The hindsight optimizer must now account for when buying and selling opportunities arrive, rather than simply selecting the lowest and highest prices. Unlike the multisecretary problem, the optimum can no longer be characterized by a single static threshold. The connection therefore fails already at the hindsight level and is even less transparent for online policies, which act without knowledge of future prices. This is the central difficulty introduced by storage constraints.
These observations motivate three questions. (i) How do storage constraints fundamentally change achievable performance relative to the classical dynamic resource allocation paradigm? (ii) What are the fundamental drivers of the attainable regret scaling? (iii) What simple algorithmic principles achieve these regret scalings?
Main contributions
(i) Novel spectrum of fundamental limits: We identify the initial inventory and the local geometry of the price distribution as two fundamental drivers of algorithmic performance. For regular continuous distributions (Definition 2.4 ), the parameter β ≥ 0 \beta\ge0 β ≥ 0 describes how rapidly probability mass accumulates near the median, and Δ \Delta Δ denotes the median gap. When y 0 ∈ [ ϵ B , ( 1 − ϵ ) B ] y_0 \in[\epsilon B,(1-\epsilon)B] y 0 ∈ [ ϵ B , ( 1 − ϵ ) B ] and B = ρ T B = \rho T B = ρT , for fixed ϵ , ρ > 0 \epsilon,\rho> 0 ϵ , ρ > 0 , the initial inventory provides linear slack from both boundaries. Proposition 3.1 shows that a feasible implementation of the CwG principle of Besbes et al. [5 ] then achieves regret O ~ ( T β / ( 2 β + 2 ) ) \widetilde{O}(T^{\beta/(2\beta+2)}) O ( T β / ( 2 β + 2 ) ) . Its inventory avoids the boundaries with high probability, recovering the spectrum of regret exponents from the multisecretary problem.
A new spectrum emerges when the system starts at the boundary, i.e., y 0 = 0 y_0 = 0 y 0 = 0 . Theorem 3.2 shows that, for every β ≥ 0 \beta\ge0 β ≥ 0 and every fixed regular continuous distribution with a positive median gap, every feasible online policy starting empty incurs Ω ( T ( β + 1 ) / ( β + 4 ) ) \Omega(T^{(\beta+1)/(\beta+4)}) Ω ( T ( β + 1 ) / ( β + 4 ) ) regret. Since β ≥ 0 \beta\ge0 β ≥ 0 , the new exponent is at least 1 / 4 1/4 1/4 . The contrast is particularly striking when the density is positive at the median-gap edges (β = 0 \beta= 0 β = 0 ). For the same price distribution and storage capacity, starting with both inventory and unused capacity proportional to T T T permits polylogarithmic regret, whereas starting empty forces every feasible online policy to incur regret of at least order T 1 / 4 T^{1/4} T 1/4 .
This distinction also sheds a new perspective on degeneracy in resource allocation. Consider the fluid relaxation that ignores the intermediate inventory constraints and requires purchases and sales to balance only in expectation. For a continuous distribution with a median gap, every price in the gap is an optimal shadow price for the balance constraint. The fluid problem therefore has multiple optimal dual prices, a form of degeneracy studied in the resource allocation literature (see [11 , 4 ] . For the multisecretary problem, Besbes et al. [5 ] show that gaps do not change the achievable polynomial regret exponent, although logarithmic factors may differ. In contrast, for regular continuous distributions, a positive median gap forces a strictly larger polynomial regret exponent when trading starts from zero inventory. Figure 1 summarizes this distinction.
Figure 1. Regret scaling by starting inventory and the local geometry of the price distribution.
(ii) Fragility of boundary-unaware algorithms: We next show that algorithmic ideas inherited directly from the dynamic resource allocation literature without any consideration for the boundary constraint can be highly sub-optimal. Consider the classical certainty-equivalent heuristic which continually re-solves a fluid problem and steers inventory toward the terminal target. For uniform prices, Proposition 4.1 shows that it achieves the classical logarithmic regret rate when the initial inventory is a linear distance from both storage boundaries. The same heuristic behaves very differently at y 0 = 0 y_0 = 0 y 0 = 0 . The boundary-unaware certainty-equivalent heuristic does not value the inventory slack needed to exploit future selling opportunities. It may therefore sell when the inventory is close to zero and lose precisely the opportunities that a temporally aware hindsight policy preserves inventory for. Proposition 4.1 proves that this boundary-unaware certainty-equivalent policy incurs Ω ( T ) \Omega(\sqrt{T}) Ω ( T ) regret even for uniform prices. For the same uniform instance, STARS, discussed next, has only O ( log 2 T ) O(\log^2 T) O ( log 2 T ) regret by Theorem 4.3 .
(iii) A unifying algorithmic principle: Motivated by the fragility of the boundary-unaware certainty-equivalent heuristic, we study an approximate dynamic programming approach based on simulated future prices. At each time step, the trader draws multiple future scenarios, computes the best feasible continuation for each current action in each scenario, and implements the action with the highest average total profit, including the current trade. We call this algorithm STARS, short for Storage Trading by Averaging Repeatedly across multiple Scenarios. Given a price simulator and a hindsight optimizer, the algorithm requires no distribution-specific fine-tuning. Its buy/hold/sell regions arise endogenously from the scenario continuation values.
For expositional simplicity and motivated by practical settings, we focus on y 0 = y T = 0 y_0 = y_T = 0 y 0 = y T = 0 . With capacity proportional to the horizon and sufficiently many scenarios at each time step, STARS achieves O ( log T ) O(\log T) O ( log T ) regret for finite atomic distributions, O ~ ( T β / ( 2 β + 2 ) ) \widetilde{O}(T^{\beta/(2\beta+2)}) O ( T β / ( 2 β + 2 ) ) for regular continuous prices without a median gap, and O ~ ( T ( β + 1 ) / ( 2 β + 4 ) ) \widetilde{O}(T^{(\beta+1)/(2\beta+4)}) O ( T ( β + 1 ) / ( 2 β + 4 ) ) for regular continuous prices with a median gap (Theorem 4.3 ). For positive-gap distributions, this guarantee matches our fundamental limit up to logarithmic factors.
Specific examples illustrate how STARS protects inventory. In finite-price examples with a median gap, the policy may hold or buy at a moderately high price when inventory is low, but sell at the same price when inventory is plentiful. This behavior preserves stock for more valuable future selling opportunities. The inventory level separating these behaviors grows logarithmically with the remaining horizon. For uniform prices, protection takes a softer form. When inventory is small relative to the square root of the remaining horizon and far from the upper boundary, the expected upward drift is of inverse-inventory order: the smaller the inventory, the stronger the push away from zero. This Bessel-type repulsion weakens as inventory grows. § 4.4 develops both interpretations.
(iv) Key technical innovation: We follow the compensated-coupling approach of Vera and Banerjee [18 ] : regret is the sum of marginal compensations , each measuring the loss from making hindsight take the online action at the online policy’s current inventory (Proposition 4.4 ). In the multisecretary analyses of Bray [6 ] and Besbes et al. [5 ] , a crucial step is to bound expected marginal compensation uniformly over the current state by a quantity that decreases with the remaining horizon. Summing this time-dependent bound gives the regret guarantee. This simplification is unavailable here. For uniform prices, Proposition D.3 shows that expected marginal compensation at zero inventory remains bounded below by a positive constant as the remaining horizon grows. We must therefore account jointly for how often the policy visits a state and how much compensation it pays there . Our analysis derives both the compensation and the inventory movement from the same hindsight marginal values, then combines them along the policy’s inventory path. § 4.4 explains this compensation-weighted accounting and how it yields guarantees for the different distribution classes.
Related literature
Regret and distributional geometry in resource allocation. For the multisecretary problem with a fixed finite support, Arlotto and Gurvich [2 ] develop a Budget-Ratio policy with regret bounded uniformly over the horizon and hiring budget. For regular continuous valuations, Bray [6 ] establishes logarithmic regret by controlling hindsight shadow prices. In network revenue management, Vera and Banerjee [18 ] ; Bumpensanti and Wang [7 ] obtain bounded loss by combining re-solving with thresholding. These results show how adaptivity and distributional structure improve on square-root losses; see Balseiro et al. [4 ] for a broader survey. Besbes et al. [5 ] identify a spectrum of multisecretary regret rates governed by mass accumulation around gaps. Their CwG principle and clustered-distribution framework motivate our focus on median geometry, and their RAMS algorithm provides the simulation-based idea we specialize to our problem with storage constraints. We allow inventory to be replenished as well as depleted and require feasibility at every time step. We identify a different set of fundamental limits: a continuous distribution with a positive median gap can impose an additional polynomial penalty when starting close to the boundary. Our regret decomposition builds on the compensated-coupling framework of Vera and Banerjee [18 ] , which compares online and hindsight actions from the same state and expresses regret as the sum of the resulting losses. In the multisecretary setting, Bray [6 ] relate one-step loss to uncertainty in hindsight marginal values, while Besbes et al. [5 ] use marginal-compensation bounds to transfer guarantees to RAMS. We retain this decomposition, but must also control the inventory process generated by STARS. We combine state-dependent compensation with the time spent in each state.
Simulation-based and model-predictive policies. Talluri and Van Ryzin [17 ] compute network bid prices by averaging dual prices from demand-scenario linear programs. Model predictive control provides the broader approach of repeatedly optimizing a future plan and implementing its current action ([14 , 15 ] ). Relatedly, Sinclair et al. [16 ] use hindsight planning to learn policies under exogenous uncertainty. In a related dynamic matching context, Chen et al. [8 ] introduce SOAR, which samples future demand, solves a matching problem with the remaining supply, and implements the current assignment. Its expected average reward is characterized by an average of finite-sample hindsight values. Kumar [13 ] replace the simulator with realized demand observations in ROAR, obtaining a related identity and regret guarantees without prior distributional knowledge. STARS uses the same forward-looking idea to preserve inventory, but averages multiple scenarios from a known price distribution. The benchmarks also differ: those papers study per-match loss relative to the fluid problem, whereas we study total loss relative to the hindsight optimum which is a tighter benchmark. The ordering constraints on purchases and sales lead to a totally different regret argument and analytical techniques.
Prophet inequalities for trading. The trading-prophet literature studies the closely related problem of repeated buying and selling against a hindsight benchmark. Correa et al. [9 ] establish competitive guarantees for stochastic prices, Azar et al. [3 ] examine initial capital and transaction costs, and Aggarwal et al. [1 ] quantify the effects of capacity and initial inventory with asymmetric buying and selling prices. Their principal guarantees identify the fraction of hindsight profit achievable uniformly over admissible price distributions. We build on this perspective to ask which properties of a fixed distribution determine the difficulty of online trading. With unit trades and capacity proportional to the horizon, our analysis identifies median gaps, local mass accumulation, and initial inventory as joint drivers of regret scaling. Across finite atomic and regular continuous distributions, these features give rise to different regret scalings. In particular, a continuous median gap coupled with zero initial inventory creates a new polynomial lower-bound spectrum, while linear initial slack permits smaller exponents (Theorem 3.2 and Proposition 3.1 ). This distribution-sensitive classification explains how price geometry and inventory conditions affect the cost of online decision making.
Model and Classes of Price Distribution
Feasible trading and regret
The horizon is T ∈ N T \in\mathbb{N} T ∈ N , capacity is B = ⌈ ρ T ⌉ B = \lceil\rho T\rceil B = ⌈ ρT ⌉ for fixed ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) , and y 0 ∈ { 0 , … , B } y_0 \in\{0,\ldots,B\} y 0 ∈ { 0 , … , B } is the initial inventory. Prices p 1 , … , p T p_1,\ldots,p_T p 1 , … , p T are i.i.d. with known CDF F F F supported on [ 0 , 1 ] [0,1] [ 0 , 1 ] . At time step t t t , the trader observes p t p_t p t and chooses x t ∈ { − 1 , 0 , + 1 } x_t \in\{-1,0,+1\} x t ∈ { − 1 , 0 , + 1 } , corresponding to sell, hold, and buy. Profit is − p t x t -p_tx_t − p t x t , and
y t = y t − 1 + x t , 0 ≤ y t ≤ B , y T = y 0 . (1) y_t = y_{t-1} + x_t,\qquad0 \le y_t \le B,\qquad y_T = y_0. \tag*{(1)} y t = y t − 1 + x t , 0 ≤ y t ≤ B , y T = y 0 . (1)
Write τ t = T − t + 1 \tau_t = T-t+1 τ t = T − t + 1 for the remaining number of time steps, including the current decision. We use τ \tau τ for the remaining length of a generic continuation problem and y y y for its inventory; the continuation after the decision at t t t has τ t − 1 \tau_t-1 τ t − 1 prices. We reserve n n n and k k k for the horizon and selection quota of a multisecretary instance. From a feasible pre-decision state y y y , the actions preserving a feasible completion are exactly
A t ( y ) = { x ∈ { − 1 , 0 , 1 } : 0 ≤ y + x ≤ B , ∣ y + x − y 0 ∣ ≤ T − t } . (2) \mathcal{A}_t(y) = \{x \in\{-1,0,1\}: 0 \le y+x \le B,\ |y+x-y_0| \le T-t\}. \tag*{(2)} A t ( y ) = { x ∈ { − 1 , 0 , 1 } : 0 ≤ y + x ≤ B , ∣ y + x − y 0 ∣ ≤ T − t } . (2)
The constraint ∣ y + x − y 0 ∣ ≤ T − t |y+x-y_0| \le T-t ∣ y + x − y 0 ∣ ≤ T − t ensures that the trader can still return to y 0 y_0 y 0 by time T T T .
Let ζ t \zeta_t ζ t encode the policy’s fresh randomization, independent across time and independent of all actual prices. Put F t = σ ( p s , ζ s : s ≤ t ) \mathcal{F}_t = \sigma(p_s,\zeta_s : s \le t) F t = σ ( p s , ζ s : s ≤ t ) and let F 0 \mathcal{F}_0 F 0 be trivial. A feasible online policy π \pi π chooses an F t \mathcal{F}_t F t -measurable x t π ∈ A t ( y t − 1 π ) x_t^\pi\in A_t(y_{t-1}^\pi) x t π ∈ A t ( y t − 1 π ) . Denote this policy set by Π ( B , T , y 0 ) \Pi(B,T,y_0) Π ( B , T , y 0 ) . For a price sequence p \mathbf{p} p , hindsight chooses the best feasible action sequence:
V 1 v h s ( B , T , y 0 ; p ) = max { ∑ t = 1 T − p t x t : ( x t , y t ) t = 1 T satisfy x r e f ‘ ( 1 ) ‘ } . V_1^{\mathrm{vhs}}(B,T,y_0;\mathbf{p})=\max\left\{\sum_{t=1}^{T}-p_t x_t : (x_t,y_t)_{t=1}^{T}\text{ satisfy }{xref}`(1)`\right\}. V 1 vhs ( B , T , y 0 ; p ) = max { t = 1 ∑ T − p t x t : ( x t , y t ) t = 1 T satisfy x r e f ‘ ( 1 ) ‘ } .
Note that the maximum exists since the feasible action set is finite and contains the all-hold sequence. The expected regret for a policy π \pi π is defined as
Reg ( π ; B , T , y 0 ) = E [ V 1 v h s ( B , T , y 0 ; p ) − ∑ t = 1 T − p t x t π ] . \operatorname{Reg}(\pi;B,T,y_0)=\mathbb{E}\left[V_1^{\mathrm{vhs}}(B,T,y_0;\mathbf{p})-\sum_{t=1}^{T}-p_t x_t^\pi\right]. Reg ( π ; B , T , y 0 ) = E [ V 1 vhs ( B , T , y 0 ; p ) − t = 1 ∑ T − p t x t π ] .
The expectation includes actual prices and policy randomization. We denote R T ( π ; y 0 ) = ∑ t = 1 T − p t x t π R_T(\pi;y_0)=\sum_{t=1}^{T}-p_t x_t^\pi R T ( π ; y 0 ) = ∑ t = 1 T − p t x t π as the realized trading profit for policy π \pi π , and we have that
Reg ∗ ( B , T ; y 0 ) = inf π ∈ Π ( B , T , y 0 ) Reg ( π ; B , T , y 0 ) , Reg ∗ ( B , T ) = sup y 0 ∈ { 0 , … , B } Reg ∗ ( B , T ; y 0 ) . \operatorname{Reg}^{*}(B,T;y_0)=\inf_{\pi\in\Pi(B,T,y_0)}\operatorname{Reg}(\pi;B,T,y_0),\qquad\operatorname{Reg}^{*}(B,T)=\sup_{y_0\in\{0,\ldots,B\}}\operatorname{Reg}^{*}(B,T;y_0). Reg ∗ ( B , T ; y 0 ) = π ∈ Π ( B , T , y 0 ) inf Reg ( π ; B , T , y 0 ) , Reg ∗ ( B , T ) = y 0 ∈ { 0 , … , B } sup Reg ∗ ( B , T ; y 0 ) .
For real numbers a , b a,b a , b , write a ∧ b = min { a , b } a\wedge b=\min\{a,b\} a ∧ b = min { a , b } and a ∨ b = max { a , b } a\vee b=\max\{a,b\} a ∨ b = max { a , b } . All logarithms are natural. We state horizon-dependent rate bounds for T ≥ 2 T\ge2 T ≥ 2 ; when T = 1 T=1 T = 1 , the equal initial and terminal inventories force a hold, so every feasible policy has zero regret.
The distribution F F F is held fixed in this notation. The model and the STARS algorithm (presented in § 4.2 ) allow any initial inventory. § 3 compares regret guarantees for linearly interior and zero initial inventory. Our regret guarantees for STARS in Theorem 4.3 assume y 0 = y T = 0 y_0=y_T=0 y 0 = y T = 0 .
Three regimes of median geometry
We consider three distribution families, motivated by the ( β , ε , δ ) (\beta,\varepsilon,\delta) ( β , ε , δ ) -clustered distributions of Besbes et al. [5 ] . Our definitions focus on how probability mass accumulates near the median, since this determines the value of holding inventory for future trades. The first family consists of finite atomic distributions while the other two consist of regular continuous distributions, with and without a median gap. In all three families, the distribution is fixed independently of T T T .
Definition 2.1 (Median edges). For 0 < q < 1 0<q<1 0 < q < 1 , define F − 1 ( q ) = inf { p ∈ [ 0 , 1 ] : F ( p ) ≥ q } F^{-1}(q)=\inf\{p\in[0,1]:F(p)\ge q\} F − 1 ( q ) = inf { p ∈ [ 0 , 1 ] : F ( p ) ≥ q } . The lower and upper median edges are a F − = F − 1 ( 1 / 2 ) a_F^{-}=F^{-1}(1/2) a F − = F − 1 ( 1/2 ) and a F + = lim q ↓ 1 / 2 , q > 1 / 2 F − 1 ( q ) a_F^{+}=\lim_{q\downarrow1/2,\ q>1/2}F^{-1}(q) a F + = lim q ↓ 1/2 , q > 1/2 F − 1 ( q ) , respectively. The median gap has width Δ F = a F + − a F − \Delta_F=a_F^{+}-a_F^{-} Δ F = a F + − a F − .
The interval [ a F − , a F + ] [a_F^{-},a_F^{+}] [ a F − , a F + ] is the set of medians of F F F . A positive median gap separates the lower and upper halves of the distribution by a price interval containing no probability mass. This is the gap construction of Besbes et al. [5 ] , specialized to quantile 1 / 2 1/2 1/2 . Note that the definition identifies the gap specifically at the median, allowing other gaps elsewhere in the support. We drop the subscript F F F and abbreviate the edges by a − , a + a^{-},a^{+} a − , a + when F F F is understood.
Definition 2.2 (Finite atomic distributions). For μ ∈ ( 0 , 1 / 2 ] \mu\in(0,1/2] μ ∈ ( 0 , 1/2 ] and Δ ∈ [ 0 , 1 ] \Delta\in[0,1] Δ ∈ [ 0 , 1 ] , let F μ , Δ a t \mathcal{F}^{\mathrm{at}}_{\mu,\Delta} F μ , Δ at be the class of distributions F F F with finite support in [ 0 , 1 ] [0,1] [ 0 , 1 ] , median gap Δ F = Δ \Delta_F = \Delta Δ F = Δ , and quantiles satisfying F − 1 ( 1 / 2 − q ) = a F − F^{-1}(1/2-q) = a_F^{-} F − 1 ( 1/2 − q ) = a F − and F − 1 ( 1 / 2 + q ) = a F + F^{-1}(1/2+q) = a_F^{+} F − 1 ( 1/2 + q ) = a F + for every 0 < q < μ 0 < q < \mu 0 < q < μ .
Every fixed finite atomic distribution belongs to such a family for some μ > 0 \mu> 0 μ > 0 . If a cumulative mass equals 1 / 2 1/2 1/2 , the two adjacent support prices form a positive median gap. Otherwise 1 / 2 1/2 1/2 lies strictly inside one atom, and its quantile interval has positive length on both sides of 1 / 2 1/2 1/2 . The parameter μ \mu μ specifies the local quantile windows around the median.
Example 2.3 (Finite atomic prices, with and without a median gap). Consider prices taking values 0.2, 0.4, 0.6, 0.8. If each price has probability 1 / 4 1/4 1/4 , then a − = 0.4 a^{-} = 0.4 a − = 0.4 , a + = 0.6 a^{+} = 0.6 a + = 0.6 , and Δ F = 0.2 \Delta_F = 0.2 Δ F = 0.2 . If instead these prices have probabilities 0.25, 0.20, 0.30, 0.25, respectively, the median lies inside the atom at 0.6: now a − = a + = 0.6 a^{-} = a^{+} = 0.6 a − = a + = 0.6 and Δ F = 0 \Delta_F = 0 Δ F = 0 . Both distributions satisfy Definition 2.2 with μ = 0.05 \mu= 0.05 μ = 0.05 . Figure 2 shows that the same support can yield either a positive median gap or no median gap, depending on the probability masses.
Figure 2. Finite atomic distributions on { 0.2 , 0.4 , 0.6 , 0.8 } \{0.2, 0.4, 0.6, 0.8\} { 0.2 , 0.4 , 0.6 , 0.8 } . The top panels show probability masses, and the bottom panels show quantile functions.
For continuous prices, the key feature is how much probability lies close to the median edges. We use β \beta β to describe a local power law: the probability mass within price distance z z z below a − a^{-} a − or above a + a^{+} a + is asymptotically proportional to z β + 1 z^{\beta+1} z β + 1 . Equivalently, a probability mass q q q next to an edge occupies a price interval of width asymptotically proportional to q 1 / ( β + 1 ) q^{1/(\beta+1)} q 1/ ( β + 1 ) . The case β = 0 \beta= 0 β = 0 gives linear mass accumulation, while larger β \beta β describes sparser prices near the edges.
Definition 2.4 (Regular continuous family). For β ≥ 0 \beta\ge0 β ≥ 0 , ε 0 ∈ ( 0 , 1 / 4 ] \varepsilon_0 \in(0,1/4] ε 0 ∈ ( 0 , 1/4 ] , and Δ ∈ [ 0 , 1 ) \Delta\in[0,1) Δ ∈ [ 0 , 1 ) , let F β , Δ , ε 0 a c \mathcal{F}^{\mathrm{ac}}_{\beta,\Delta,\varepsilon_0} F β , Δ , ε 0 ac be the class of absolutely continuous distributions F F F on [ 0 , 1 ] [0,1] [ 0 , 1 ] with bounded density and median gap Δ F = Δ \Delta_F=\Delta Δ F = Δ , satisfying the following conditions. There exist constants c − , c + > 0 c_-,c_+>0 c − , c + > 0 and remainder functions r − , r + r_-,r_+ r − , r + such that, for every 0 < q < ε 0 0<q<\varepsilon_0 0 < q < ε 0 ,
a F − − F − 1 ( 1 / 2 − q ) = c − q 1 / ( β + 1 ) ( 1 + r − ( q ) ) , a_F^- - F^{-1}(1/2-q)=c_-q^{1/(\beta+1)}(1+r_-(q)), a F − − F − 1 ( 1/2 − q ) = c − q 1/ ( β + 1 ) ( 1 + r − ( q )) , F − 1 ( 1 / 2 + q ) − a F + = c + q 1 / ( β + 1 ) ( 1 + r + ( q ) ) . F^{-1}(1/2+q)-a_F^+=c_+q^{1/(\beta+1)}(1+r_+(q)). F − 1 ( 1/2 + q ) − a F + = c + q 1/ ( β + 1 ) ( 1 + r + ( q )) . The remainder functions satisfy ∣ r ± ( q ) ∣ ≤ 1 / 2 |r_\pm(q)|\le1/2 ∣ r ± ( q ) ∣ ≤ 1/2 and r ± ( q ) → 0 r_\pm(q)\to0 r ± ( q ) → 0 as q ↓ 0 q\downarrow0 q ↓ 0 . When β = 0 \beta=0 β = 0 , they additionally satisfy ∣ r ± ( q ) ∣ ≤ L q η |r_\pm(q)|\le Lq^\eta ∣ r ± ( q ) ∣ ≤ L q η for some L ≥ 0 L\ge0 L ≥ 0 and η > 0 \eta>0 η > 0 . The density bound, constants, and remainder functions may depend on F F F .
The cases Δ = 0 \Delta=0 Δ = 0 and Δ > 0 \Delta>0 Δ > 0 give the two continuous families. The parameter ε 0 \varepsilon_0 ε 0 specifies a probability window around the median, and c − c_- c − and c + c_+ c + allow different scales on the two sides. The remainder functions allow departures from an exact power law while requiring the relative error to vanish near each edge. These regularity conditions control the inventory drift in the STARS analysis; the additional condition at β = 0 \beta=0 β = 0 controls the error terms in the logarithmic regret estimates. Behavior away from these median neighborhoods is unrestricted apart from the density bound.
Example 2.5 (Continuous prices without a median gap). With Δ = 0 \Delta=0 Δ = 0 , let F β , 0 F_{\beta,0} F β , 0 have density f β , 0 ( p ) = ( β + 1 ) 2 β ∣ p − 1 / 2 ∣ β f_{\beta,0}(p)=(\beta+1)2^\beta|p-1/2|^\beta f β , 0 ( p ) = ( β + 1 ) 2 β ∣ p − 1/2 ∣ β for 0 ≤ p ≤ 1 0\le p\le1 0 ≤ p ≤ 1 . These give uniform, V-shaped, and quadratic examples at β = 0 , 1 , 2 \beta=0,1,2 β = 0 , 1 , 2 respectively. Their quantiles satisfy F β , 0 − 1 ( 1 / 2 ± q ) = 1 / 2 ± ( 2 q ) 1 / ( β + 1 ) / 2 F^{-1}_{\beta,0}(1/2\pm q)=1/2\pm(2q)^{1/(\beta+1)}/2 F β , 0 − 1 ( 1/2 ± q ) = 1/2 ± ( 2 q ) 1/ ( β + 1 ) /2 for 0 < q < 1 / 2 0<q<1/2 0 < q < 1/2 . Thus they satisfy Definition 2.4 with zero remainder. Figure 3 displays the densities and their quantile functions. The shaded band isolates the local median window.
Figure 3. The continuous no-gap family of Example 2.5, drawn for β ∈ { 0 , 1 , 2 } \beta\in\{0,1,2\} β ∈ { 0 , 1 , 2 } . The shaded band is the quantile window of radius ε 0 = 0.15 \varepsilon_0=0.15 ε 0 = 0.15 used in Definition 2.4.
Example 2.6 (Continuous prices with a positive median gap). For Δ ∈ ( 0 , 1 ) \Delta\in(0,1) Δ ∈ ( 0 , 1 ) , put a ± = ( 1 ± Δ ) / 2 a^{\pm} = (1 \pm\Delta)/2 a ± = ( 1 ± Δ ) /2 and let F β , Δ F_{\beta,\Delta} F β , Δ have density
f β , Δ ( p ) = ( β + 1 ) 2 β ( 1 − Δ ) β + 1 { ( a − − p ) β , 0 ≤ p < a − , 0 , a − < p < a + , ( p − a + ) β , a + < p ≤ 1. (3) f_{\beta,\Delta}(p) = \frac{(\beta+1)2^\beta}{(1-\Delta)^{\beta+1}}
\begin{cases}
(a^- - p)^\beta, & 0 \le p < a^-, \\
0, & a^- < p < a^+, \\
(p-a^+)^\beta, & a^+ < p \le1.
\end{cases} \tag*{(3)} f β , Δ ( p ) = ( 1 − Δ ) β + 1 ( β + 1 ) 2 β ⎩ ⎨ ⎧ ( a − − p ) β , 0 , ( p − a + ) β , 0 ≤ p < a − , a − < p < a + , a + < p ≤ 1. (3)
These examples belong to Definition 2.4 , with r ± = 0 r_{\pm}=0 r ± = 0 , c − = c + = ( 1 − Δ ) 2 − β / ( β + 1 ) c_{-}=c_{+}=(1-\Delta)2^{-\beta/(\beta+1)} c − = c + = ( 1 − Δ ) 2 − β / ( β + 1 ) , and M = ( β + 1 ) / ( 1 − Δ ) M=(\beta+1)/(1-\Delta) M = ( β + 1 ) / ( 1 − Δ ) . For β > 0 \beta>0 β > 0 the density vanishes at the gap edges. Equation (3) also supplies the explicit instances for our lower bound discussed in Theorem 3.2 . The quantiles satisfy F β , Δ − 1 ( 1 / 2 ± q ) = a ± ± ( 1 − Δ ) ( 2 q ) 1 / ( β + 1 ) / 2 F_{\beta,\Delta}^{-1}(1/2\pm q)=a^{\pm}\pm(1-\Delta)(2q)^{1/(\beta+1)}/2 F β , Δ − 1 ( 1/2 ± q ) = a ± ± ( 1 − Δ ) ( 2 q ) 1/ ( β + 1 ) /2 for 0 < q < 1 / 2 0<q<1/2 0 < q < 1/2 . Figure 4 shows the resulting jump at the median for Δ = 0.2 \Delta=0.2 Δ = 0.2 .
Figure 4. The positive-gap family of Example 2.6, drawn with Δ F = 0.2 \Delta_F=0.2 Δ F = 0.2 for β ∈ { 0 , 1 , 2 } \beta\in\{0,1,2\} β ∈ { 0 , 1 , 2 } .
Novel Spectrum of Fundamental Limits
In this section, we present a novel spectrum of fundamental limits that arises when continuous price distributions have a positive median gap and the initial inventory is zero. To isolate the effect of the initial inventory, we first consider a setting with linear slack from both storage boundaries. A feasible implementation of a multisecretary policy then recovers the regret guarantees of Besbes et al. [5 ] . We subsequently change the initial and terminal inventories to zero. For every positive-gap distribution in the regular continuous family of Definition 2.4 , this change forces every online policy to incur a strictly larger polynomial regret exponent.
Starting in the interior: Recovering previously known regret scalings
Consider first the unconstrained static median-sign rule : buy one unit when the price is below a fixed median, sell one unit when it is above, and hold at equality. When there is a positive median gap, choose the median strictly inside it. For continuous prices, its cumulative trades form a simple symmetric random walk (SSRW). The inventory fluctuations are of order T \sqrt{T} T , so linear slack from both boundaries protects this SSRW from hitting any of the boundaries with high probability. To obtain a feasible trading policy, we must also balance purchases and sales by the end. Interpreting a selected price as a sale and a rejected price as a purchase, this leads to a multisecretary type policy that adjusts its threshold to the remaining quota and the gaps in the price distribution.
We can hence use the CwG principle of Besbes et al. [5 ] with a selection quota of k = n / 2 k=n/2 k = n /2 , where n = 2 ⌊ T / 2 ⌋ n=2\lfloor T/2\rfloor n = 2 ⌊ T /2 ⌋ , and hold in the final time step when T T T is odd. The details are deferred to Appendix § 10.4 . Denote the resulting feasible policy by π C w G \pi^{\mathrm{CwG}} π CwG .
Proposition 3.1. Fix η > 0 \eta>0 η > 0 , let T ≥ 2 T\ge2 T ≥ 2 , and assume y 0 ∧ ( B − y 0 ) ≥ η T y_0\wedge(B-y_0)\ge\eta T y 0 ∧ ( B − y 0 ) ≥ η T .
(a) Fix μ ∈ ( 0 , 1 / 2 ] \mu\in(0,1/2] μ ∈ ( 0 , 1/2 ] and Δ ∈ [ 0 , 1 ] \Delta\in[0,1] Δ ∈ [ 0 , 1 ] . For every distribution F ∈ F μ , Δ f a t F\in\mathcal{F}^{\mathrm{fat}}_{\mu,\Delta} F ∈ F μ , Δ fat , there exists a constant C = C ( F , η ) < ∞ C=C(F,\eta)<\infty C = C ( F , η ) < ∞ such that Reg ( π C w G ; B , T , y 0 ) ≤ C \operatorname{Reg}(\pi^{\mathrm{CwG}};B,T,y_0)\le C Reg ( π CwG ; B , T , y 0 ) ≤ C .
(b) Fix β ≥ 0 \beta\ge0 β ≥ 0 , ε 0 ∈ ( 0 , 1 / 4 ] \varepsilon_0\in(0,1/4] ε 0 ∈ ( 0 , 1/4 ] , and let Δ = 0 \Delta=0 Δ = 0 . For every distribution F ∈ F β , Δ , ε 0 a c F\in\mathcal{F}^{\mathrm{ac}}_{\beta,\Delta,\varepsilon_0} F ∈ F β , Δ , ε 0 ac , there exists a constant C = C ( F , η ) < ∞ C=C(F,\eta)<\infty C = C ( F , η ) < ∞ such that
Reg ( π C w G ; B , T , y 0 ) ≤ C log T 1 { β = 0 } + C T β / ( 2 β + 2 ) 1 { β > 0 } . \operatorname{Reg}(\pi^{\mathrm{CwG}};B,T,y_0)\le C\log T\mathbb{1}\{\beta=0\}+CT^{\beta/(2\beta+2)}\mathbb{1}\{\beta>0\}. Reg ( π CwG ; B , T , y 0 ) ≤ C log T 1 { β = 0 } + C T β / ( 2 β + 2 ) 1 { β > 0 } . (c) Fix β ≥ 0 \beta\ge0 β ≥ 0 , ε 0 ∈ ( 0 , 1 / 4 ] \varepsilon_0\in(0,1/4] ε 0 ∈ ( 0 , 1/4 ] , and Δ ∈ ( 0 , 1 ) \Delta\in(0,1) Δ ∈ ( 0 , 1 ) . For every distribution F ∈ F β , Δ , ε 0 a c F\in\mathcal{F}^{\mathrm{ac}}_{\beta,\Delta,\varepsilon_0} F ∈ F β , Δ , ε 0 ac , there exists a constant C = C ( F , η ) < ∞ C=C(F,\eta)<\infty C = C ( F , η ) < ∞ such that
Reg ( π C w G ; B , T , y 0 ) ≤ C log 2 T 1 { β = 0 } + C T β / ( 2 β + 2 ) ( log T ) ( β + 2 ) / ( 2 β + 2 ) 1 { β > 0 } . \operatorname{Reg}(\pi^{\mathrm{CwG}};B,T,y_0)\le C\log^2 T\mathbb{1}\{\beta=0\}+CT^{\beta/(2\beta+2)}(\log T)^{(\beta+2)/(2\beta+2)}\mathbb{1}\{\beta>0\}. Reg ( π CwG ; B , T , y 0 ) ≤ C log 2 T 1 { β = 0 } + C T β / ( 2 β + 2 ) ( log T ) ( β + 2 ) / ( 2 β + 2 ) 1 { β > 0 } .
The key observation is that, before enforcing the physical boundaries, the inventory displacement has a restoring drift with at most a small quantile perturbation. Its maximum is less than η T \eta T η T except with probability exponentially small in T T T . On this event the storage policy implements the multisecretary decisions exactly. Moreover, its trading profit is twice the selection reward minus the sum of all prices and the same identity holds for the static hindsight benchmark. Consequently, the storage regret is at most twice the n n n -step multisecretary regret of the specified selection rule, plus O F , η ( T e − c η T ) + 1 O_{F,\eta}(Te^{-c_\eta T})+1 O F , η ( T e − c η T ) + 1 . Appendix § 10.4 proves the concentration, the feasible fallback, and this comparison.
Proposition 3.1 establishes the achievable rates in Figure 1 for this transferred policy. In particular, a positive median gap preserves the polynomial exponent β / ( 2 β + 2 ) \beta/(2\beta+2) β / ( 2 β + 2 ) of the multisecretary guarantee. The proof separates the cost of choosing the wrong side of the median from the cost of the price’s distance to its median edge. The first is controlled by the finite-type CwG guarantee while the second is controlled by the local quantile bound and the inventory fluctuations.
Starting from zero: a new lower-bound spectrum
Starting from zero, an online policy must build inventory before it can exploit selling opportunities. Following the static median-sign rule would prescribe sales even when the inventory level is zero. A feasible policy must therefore modify this rule and may also forgo sales to preserve inventory for later. A positive median gap makes unnecessary reserve costly. Forgoing sales near the upper gap edge is less costly than forgoing sales at higher prices, but such opportunities are scarce when little probability mass lies near that edge. We show that this tradeoff imposes a polynomial regret lower bound on every online policy.
We establish the lower bound for every fixed distribution in the regular continuous family of Definition 2.4 with a positive median gap. The local quantile bounds control both the scarcity of cheap online corrections and the cost of the corrections available in hindsight.
Theorem 3.2. Fix β ≥ 0 \beta\ge0 β ≥ 0 , ε 0 ∈ ( 0 , 1 / 4 ] \varepsilon_0 \in(0,1/4] ε 0 ∈ ( 0 , 1/4 ] , Δ ∈ ( 0 , 1 ) \Delta\in(0,1) Δ ∈ ( 0 , 1 ) , and ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) . Suppose prices are i.i.d. with a fixed distribution F ∈ F β , Δ , ε 0 a c F \in\mathcal{F}^{\mathrm{ac}}_{\beta,\Delta,\varepsilon_0} F ∈ F β , Δ , ε 0 ac , as defined in Definition 2.4 . Let B = ⌈ ρ T ⌉ B = \lceil\rho T \rceil B = ⌈ ρT ⌉ and set y 0 = y T = 0 y_0 = y_T = 0 y 0 = y T = 0 . There exist constants c = c ( F , ρ ) > 0 c = c(F,\rho) > 0 c = c ( F , ρ ) > 0 and T 0 = T 0 ( F , ρ ) < ∞ T_0 = T_0(F,\rho) < \infty T 0 = T 0 ( F , ρ ) < ∞ such that, for every T ≥ T 0 T \ge T_0 T ≥ T 0 , every possibly randomized, nonanticipative feasible policy π \pi π satisfies Reg ( π ; B , T , 0 ) ≥ c T ( β + 1 ) / ( 2 β + 4 ) \operatorname{Reg}(\pi;B,T,0) \ge cT^{(\beta+1)/(2\beta+4)} Reg ( π ; B , T , 0 ) ≥ c T ( β + 1 ) / ( 2 β + 4 ) .
Compare Theorem 3.2 with Proposition 3.1 for the same fixed F ∈ F β , Δ , ε 0 a c F \in\mathcal{F}^{\mathrm{ac}}_{\beta,\Delta,\varepsilon_0} F ∈ F β , Δ , ε 0 ac with Δ > 0 \Delta> 0 Δ > 0 and the same capacity. The zero initial inventory lower-bound exponent exceeds the upper-bound exponent when starting in the interior by ( β + 1 ) / ( 2 β + 4 ) − β / ( 2 β + 2 ) = 1 / [ 2 ( β + 1 ) ( β + 2 ) ] > 0 (\beta+1)/(2\beta+4) - \beta/(2\beta+2) = 1/[2(\beta+1)(\beta+2)] > 0 ( β + 1 ) / ( 2 β + 4 ) − β / ( 2 β + 2 ) = 1/ [ 2 ( β + 1 ) ( β + 2 )] > 0 . Thus the boundary lower bound eventually exceeds the achievable interior regret, including its logarithmic factors, for every fixed β ≥ 0 \beta\ge0 β ≥ 0 . At β = 0 \beta= 0 β = 0 , starting with linear slack permits an O ( log 2 T ) O(\log^2 T) O ( log 2 T ) guarantee, whereas starting empty forces an Ω ( T 1 / 4 ) \Omega(T^{1/4}) Ω ( T 1/4 ) loss. The canonical distribution F 0 , Δ F_{0,\Delta} F 0 , Δ , uniform on two separated intervals, is a concrete example. The price distribution and its median gap are unchanged in this comparison, but with the initial inventory being zero, the decision maker must now acquire the inventory needed for future sales.
The contrast also explains how degeneracy interacts with the initial inventory. In the balanced fluid relaxation, the intermediate storage constraints are removed and the mean trade must be zero. Interpret λ \lambda λ as an accounting value assigned to one unit of inventory: buying at price p p p gives net value λ − p \lambda-p λ − p , while selling gives p − λ p-\lambda p − λ . Because expected net purchases are zero, these inventory values cancel from expected profit. For every λ ∈ [ 0 , 1 ] \lambda\in[0,1] λ ∈ [ 0 , 1 ] and every action rule x ( p ) ∈ [ − 1 , 1 ] x(p) \in[-1,1] x ( p ) ∈ [ − 1 , 1 ] with E [ x ( p ) ] = 0 \mathbb{E}[x(p)] = 0 E [ x ( p )] = 0 , we have E [ − p x ( p ) ] = ( a ) E [ − ( p − λ ) x ( p ) ] ≤ E ∣ p − λ ∣ \mathbb{E}[-px(p)] \mathrel{\overset{(a)}{=}} \mathbb{E}[-(p-\lambda)x(p)] \le\mathbb{E}|p-\lambda| E [ − p x ( p )] = ( a ) E [ − ( p − λ ) x ( p )] ≤ E ∣ p − λ ∣ , where (a) uses the balance constraint and (b) uses ∣ x ( p ) ∣ ≤ 1 |x(p)| \le1 ∣ x ( p ) ∣ ≤ 1 . The static median-sign rule attains equality for every λ ∈ [ a − , a + ] \lambda\in[a^-,a^+] λ ∈ [ a − , a + ] . Outside this interval, the occupied prices between λ \lambda λ and the nearest median edge make the inequality strict for that rule. Hence the optimal dual prices are precisely argmin λ ∈ [ 0 , 1 ] E ∣ p − λ ∣ = [ a − , a + ] \operatorname*{argmin}_{\lambda\in[0,1]} \mathbb{E}|p-\lambda| = [a^-,a^+] argmin λ ∈ [ 0 , 1 ] E ∣ p − λ ∣ = [ a − , a + ] . This multiplicity of optimal shadow prices is the degeneracy created by the median gap.
In the multisecretary problem, the decision maker has the resource upfront and decides which arrivals should consume it. The CwG policy of Besbes et al. [5 ] handles gaps while retaining the same polynomial regret exponent as in the corresponding no-gap setting, up to logarithmic factors. In trading, starting with zero inventory requires the decision maker to acquire inventory before a sale can be made. The same gap now makes an unnecessary inventory reserve costly, and the continuous mass near its edges determines the availability of inexpensive opportunities to build that reserve. Proposition 3.1 and Theorem 3.2 isolate this interaction: for the same price distribution, linear initial slack permits the multisecretary rates, while zero initial inventory forces the larger exponent.
To understand the lower-bound argument, first take the canonical example F 0 , Δ F_{0,\Delta} F 0 , Δ , with prices uniform on the two intervals [ 0 , a − ] [0,a^{-}] [ 0 , a − ] and [ a + , 1 ] [a^{+},1] [ a + , 1 ] , where a ± = ( 1 ± Δ ) / 2 a^{\pm}=(1\pm\Delta)/2 a ± = ( 1 ± Δ ) /2 . Call a price low if p t ≤ a − p_t\le a^{-} p t ≤ a − and high if p t ≥ a + p_t\ge a^{+} p t ≥ a + . The static median-sign rule buys at every low price and sells at every high price. Let S t S_t S t be the number of low prices minus the number of high prices in the first t t t steps, and let M t = max 0 ≤ s ≤ t ( − S s ) + M_t=\max_{0\le s\le t}(-S_s)^{+} M t = max 0 ≤ s ≤ t ( − S s ) + . The expected deepest deficit E M T \mathbb{E}M_T E M T is of order T \sqrt{T} T . If the high prices outnumber the low prices among the first t t t arrivals, a trader starting at zero cannot make all the sales prescribed by the static median-sign rule. Every feasible policy, including hindsight, must therefore change at least M T M_T M T units of its prescribed high-price trades. Holding instead of selling counts as one unit; buying instead of selling counts as two.
The necessity of these changes is shared by online and hindsight policies. Their costs depend on which high-price trades are changed. Hindsight can choose prices close to a + a^{+} a + , subject to feasibility at every time step: by the first time S t = − y S_t=-y S t = − y , at least y y y units of changes must already have occurred. It also chooses which low-price purchases to forgo to restore the terminal inventory to zero. Appendix § 10.5 constructs such a feasible hindsight path whose expected correction cost is at most Δ E M T + O ( log T ) \Delta\mathbb{E}M_T+O(\log T) Δ E M T + O ( log T ) . The first term is the minimum gap charge; the second accounts for the distances of the chosen prices from the gap edges and the rare adjustments needed to respect capacity.
An online policy must choose these trades without knowing future prices. To quantify its difficulty, apply the static median-sign rule from zero with sales blocked whenever the inventory level is zero, ignoring the upper boundary and terminal requirement. Its inventory is Y ‾ t = S t + M t \overline{Y}_t=S_t+M_t Y t = S t + M t . This process depends only on the observed low/high price sequence; the online policy’s inventory can differ from it. Fix 2 ≤ L ≤ T 2\le L\le\sqrt{T} 2 ≤ L ≤ T and 0 < z ≤ ( 1 − Δ ) / 2 0<z\le(1-\Delta)/2 0 < z ≤ ( 1 − Δ ) /2 . Consider the band 0 ≤ Y ‾ t − 1 ≤ L 0\le\overline{Y}_{t-1}\le L 0 ≤ Y t − 1 ≤ L and call a high price cheap to forgo when p t ∈ [ a + , a + + z ] p_t\in[a^{+},a^{+}+z] p t ∈ [ a + , a + + z ] . For the uniform example, such a price has probability z / ( 1 − Δ ) z/(1-\Delta) z / ( 1 − Δ ) . The static median-sign rule spends at most order L T L\sqrt{T} L T steps in the band in expectation, so there are at most order z L T zL\sqrt{T} z L T cheap opportunities there. This limits how often the online policy can preserve inventory at little additional edge cost while Y ‾ t − 1 \overline{Y}_{t-1} Y t − 1 is close to zero.
The policy can also forgo a cheap high-price sale outside the band. After such an arrival, however, Y ‾ \overline{Y} Y has probability at least order L / T L/\sqrt{T} L / T of never returning to zero before the horizon. On that event, the running minimum of S S S has already reached its final value. The last visit of Y ‾ \overline{Y} Y to zero occurred before the current arrival, and the changes needed to cover the deficit M T M_T M T had to be made by that visit. The current high-price change therefore increases the total above this minimum. Each excess unit adds the fixed gap Δ \Delta Δ to the correction cost. Thus preserving inventory can turn out to have been unnecessary even though all inventory is ultimately returned to zero. The online policy has to balance this risk against forgoing higher-priced sales, which carry a larger edge cost.
Choosing z z z proportional to Δ L / T \Delta L/\sqrt{T} Δ L / T balances these two costs. The scarcity estimate then gives, for the uniform example, Reg ( π ; B , T , 0 ) ≥ c 1 L − c 2 L 3 / T − C log T \operatorname{Reg}(\pi;B,T,0)\ge c_1L-c_2L^3/\sqrt{T}-C\log T Reg ( π ; B , T , 0 ) ≥ c 1 L − c 2 L 3 / T − C log T . Taking L L L to be a sufficiently small constant times T 1 / 4 T^{1/4} T 1/4 makes the first two terms a positive multiple of T 1 / 4 T^{1/4} T 1/4 , while the hindsight edge cost is smaller. For any fixed distribution F F F in the stated class, the probability of a cheap high price is at most C F z β + 1 C_F z^{\beta+1} C F z β + 1 for sufficiently small z > 0 z > 0 z > 0 . The local quantile bounds also keep the hindsight edge cost at a smaller order than the claimed lower bound. The same argument therefore gives Reg ( π ; B , T , 0 ) ≥ c 1 L − c 2 L β + 3 / T ( β + 1 ) / 2 − o ( L ) \operatorname{Reg}(\pi;B,T,0) \ge c_1L-c_2L^{\beta+3}/T^{(\beta+1)/2}-o(L) Reg ( π ; B , T , 0 ) ≥ c 1 L − c 2 L β + 3 / T ( β + 1 ) /2 − o ( L ) at the scale L ≍ T ( β + 1 ) / ( 2 β + 4 ) L \asymp T^{(\beta+1)/(2\beta+4)} L ≍ T ( β + 1 ) / ( 2 β + 4 ) , yielding Theorem 3.2 . The appendix proves the deadline construction, band-occupation estimate, and last-return bound, and includes the physical capacity and terminal constraints.
This correction-cost calculation also connects the lower bound to the marginal-compensation analysis used for the upper bounds. Write C T ( π ) C_T(\pi) C T ( π ) for the total gap and edge costs of the policy’s departures from the static median-sign rule, as defined in Lemma B.1 . That lemma gives the pathwise identity
∑ t = 1 T ∂ R t = R T ( π h s ; 0 ) − R T ( π ; 0 ) = C T ( π ) − C T ( π h s ) . \sum_{t=1}^{T}\partial R_t=R_T(\pi^{\mathrm{hs}};0)-R_T(\pi;0)=C_T(\pi)-C_T(\pi^{\mathrm{hs}}). t = 1 ∑ T ∂ R t = R T ( π hs ; 0 ) − R T ( π ; 0 ) = C T ( π ) − C T ( π hs ) .
Subtracting the common baseline Δ M T \Delta M_T Δ M T from both correction costs leaves their difference unchanged. The argument above bounds the additional gap and edge costs forced by online decisions, and hence the same regret measured by marginal compensation.
We illustrate the fundamental limit numerically in Figure 5 . We compute the optimal online policy using Dynamic Programming (DP) for the three canonical distributions with β ∈ { 0 , 1 , 2 } \beta\in\{0,1,2\} β ∈ { 0 , 1 , 2 } and median gap Δ = 0.2 \Delta=0.2 Δ = 0.2 . We vary T T T from 10 to 10,000, set B = T / 2 B=T/2 B = T /2 , and start and end with zero inventory. Each point is the average hindsight profit minus the realized DP profit over 200 independent price sequences. We fit curves of the form a T ( β + 1 ) / ( 2 β + 4 ) − b aT^{(\beta+1)/(2\beta+4)}-b a T ( β + 1 ) / ( 2 β + 4 ) − b , shown as dashed lines. The coefficient a a a and offset b b b are estimated using weighted least squares, with weights equal to the inverse squared Monte Carlo standard errors. For all three distributions, the fitted curves closely track the observed regret. This is consistent with the polynomial spectrum in Theorem 3.2 and with the upper bounds in Theorem 4.3 , which also bound the regret of optimal DP.
Figure 5. Optimal online regret with zero initial inventory for the canonical positive-gap distributions, with Δ = 0.2 \Delta=0.2 Δ = 0.2 and B = T / 2 B=T/2 B = T /2 .
Algorithmic Design Principles
Section 3 identifies how initial inventory changes the achievable regret spectrum. We now ask how an online policy should account for the storage boundary. We first examine certainty equivalence for uniform prices to see where inventory protection is needed. We then introduce STARS, which generates a holding region by averaging optimized future scenarios, state its performance guarantees, and explain the main proof ideas.
Fragility of the boundary-unaware certainty-equivalent heuristic
We begin with the simplest continuous distribution, uniform prices on [ 0 , 1 ] [0,1] [ 0 , 1 ] . Here the fluid re-solving threshold underlying CwG reduces to the certainty-equivalent threshold since there is no gap to adjust for. The approximation balances inventory over the remaining horizon while ignoring intermediate storage constraints. We study its natural trading implementation, which projects each proposed trade onto the feasible actions. The same rule has logarithmic regret with linear initial slack, but at least square-root regret from zero initial inventory. Since this distribution has no median gap, the latter loss isolates the cost of boundary-unaware decisions even without the positive-gap obstruction in § 3 .
Write τ t = T − t + 1 \tau_t = T - t + 1 τ t = T − t + 1 and d = y − y 0 d = y - y_0 d = y − y 0 . In the fluid problem, a trading profile x : [ 0 , 1 ] → [ − 1 , 1 ] x : [0,1] \to[-1,1] x : [ 0 , 1 ] → [ − 1 , 1 ] specifies the trade at each price quantile. The fluid problem maximizes − τ t ∫ 0 1 F − 1 ( q ) x ( q ) d q -\tau_t \int_0^1 F^{-1}(q)x(q)\,\mathrm{d}q − τ t ∫ 0 1 F − 1 ( q ) x ( q ) d q subject to τ t ∫ 0 1 x ( q ) d q = − d \tau_t \int_0^1 x(q)\,\mathrm{d}q = -d τ t ∫ 0 1 x ( q ) d q = − d : the remaining trades must offset the current displacement in expectation. Since lower prices are preferable for buying and higher prices for selling, an optimal fluid profile buys below a quantile threshold and sells above it. Consequently, the certainty-equivalent threshold is q t C E ( y ) = 1 / 2 − ( y − y 0 ) / ( 2 τ t ) q_t^{\mathrm{CE}}(y) = 1/2 - (y - y_0)/(2\tau_t) q t CE ( y ) = 1/2 − ( y − y 0 ) / ( 2 τ t ) . For the uniform distribution, the price and its quantile coincide. The policy tentatively buys if p t < q t C E ( y ) p_t < q_t^{\mathrm{CE}}(y) p t < q t CE ( y ) and sells if p t > q t C E ( y ) p_t > q_t^{\mathrm{CE}}(y) p t > q t CE ( y ) , then projects this tentative action onto A t ( y ; y 0 ) = { x ∈ { − 1 , 0 , 1 } : 0 ≤ y + x ≤ B , ∣ y + x − y 0 ∣ ≤ τ t − 1 } A_t(y;y_0) = \{x \in\{-1,0,1\} : 0 \le y + x \le B,\ |y + x - y_0| \le\tau_t - 1\} A t ( y ; y 0 ) = { x ∈ { − 1 , 0 , 1 } : 0 ≤ y + x ≤ B , ∣ y + x − y 0 ∣ ≤ τ t − 1 } . Projection means choosing the feasible action nearest the tentative action. This defines π C E \pi^{\mathrm{CE}} π CE completely. The projection enforces both physical storage feasibility and the ability to return to y 0 y_0 y 0 by time T T T .
Proposition 4.1. Assume prices are independent and uniform on [ 0 , 1 ] [0,1] [ 0 , 1 ] , and use the projected policy π C E \pi^{\mathrm{CE}} π CE defined above.
(a) Fix η > 0 \eta> 0 η > 0 . There exists a constant C = C ( η ) < ∞ C = C(\eta) < \infty C = C ( η ) < ∞ such that, for every integer T ≥ 2 T \ge2 T ≥ 2 and every feasible integer B , y 0 B, y_0 B , y 0 with y 0 ∧ ( B − y 0 ) ≥ η T y_0 \wedge(B-y_0) \ge\eta T y 0 ∧ ( B − y 0 ) ≥ η T , we have Reg ( π C E ; B , T , y 0 ) ≤ C log T \operatorname{Reg}(\pi^{\mathrm{CE}};B,T,y_0) \le C \log T Reg ( π CE ; B , T , y 0 ) ≤ C log T .
(b) Fix ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) and let B = ⌈ ρ T ⌉ B = \lceil\rho T\rceil B = ⌈ ρT ⌉ . There exist constants c = c ( ρ ) > 0 c = c(\rho) > 0 c = c ( ρ ) > 0 and T 0 = T 0 ( ρ ) < ∞ T_0 = T_0(\rho) < \infty T 0 = T 0 ( ρ ) < ∞ such that Reg ( π C E ; B , T , y 0 = 0 ) ≥ c T \operatorname{Reg}(\pi^{\mathrm{CE}};B,T,y_0=0) \ge c\sqrt{T} Reg ( π CE ; B , T , y 0 = 0 ) ≥ c T for every T ≥ T 0 T \ge T_0 T ≥ T 0 .
The result in Proposition 4.1 (a) follows from the result in Proposition 3.1 for the uniform distribution, where CwG reduces to the certainty equivalent heuristic. We focus here on why the same principle incurs a regret of Ω ( T ) \Omega(\sqrt{T}) Ω ( T ) when the initial inventory is zero.
For reference, consider the static median-sign rule from § 3 , with sales blocked at zero: buy below 1 / 2 1/2 1/2 , sell above 1 / 2 1/2 1/2 when inventory is positive, and hold when a sale is requested while the inventory level is zero. Temporarily ignore the upper boundary and the terminal requirement. The rule’s proposed trades form the SSRW described in that section; a proposed sale at zero is replaced by a hold. The expected number of these blocked sales is of order T \sqrt{T} T , and the static median-sign rule consequently spends order T \sqrt{T} T time steps at zero inventory.
The certainty equivalent heuristic adds a downward pull to the static median-sign rule. When y 0 = 0 y_0 = 0 y 0 = 0 , its threshold is 1 / 2 − y / ( 2 τ t ) 1/2 - y/(2\tau_t) 1/2 − y / ( 2 τ t ) : at positive inventory, it sells at some prices below 1 / 2 1/2 1/2 at which the static median-sign rule would buy. The expected tentative change in inventory is − y / τ t -y/\tau_t − y / τ t . Under the same price sequence, its inventory stays below that of the static median-sign rule, so its inventory level is zero whenever the static median-sign rule’s inventory level is zero. The capacity and terminal constraints preserve this ordering. Thus CE spends at least order T \sqrt{T} T time steps at zero in expectation.
To see how this leads to a regret of Ω ( T ) \Omega(\sqrt{T}) Ω ( T ) , consider an occasion when CE has one unit left. Suppose the current price lies in [ 1 / 2 , 3 / 4 ] [1/2, 3/4] [ 1/2 , 3/4 ] and the next price lies in [ 7 / 8 , 1 ] [7/8, 1] [ 7/8 , 1 ] . CE sells its last unit at the current price and then holds at the next, higher price because its inventory is zero. Hindsight can instead hold for one time step and sell at the higher price. This increases profit by at least 1 / 8 1/8 1/8 , uses only one unit of storage, and leaves exactly the same inventory after the two time steps. Conditional on having one unit at the start, the two price intervals occur with probability 1 / 32 1/32 1/32 .
There are sufficiently many such opportunities. At zero inventory before the final step, the next price causes a purchase with probability 1 / 2 1/2 1/2 . Each departure from zero must eventually be followed by a return from inventory one to zero, since the terminal inventory is zero. Consequently, the expected number of time steps with one unit remaining is also at least order T \sqrt{T} T . Apart from at most the final step, each permits the two-step improvement above. These improvements do not overlap: after a selected sale, the original CE inventory is zero, so another selected pair cannot start at the next step. Their gains can therefore be added along a single feasible hindsight path. Appendix § 10.11 makes this counting argument precise and obtains the Ω ( T ) \Omega(\sqrt{T}) Ω ( T ) regret bound.
The example identifies the additional task in algorithm design: preserve inventory for valuable selling opportunities before the inventory becomes zero. One can encode this protection through an inventory-dependent holding region, whose width depends on the price law and the remaining horizon. We next show how scenario optimization generates such a region directly from feasible future trades.
STARS: scenario optimization generates a holding region
STARS stands for Storage Trading by Averaging Repeatedly across multiple Scenarios. The algorithm uses a simulator to evaluate the future trading opportunities created by each feasible current action. At time step t t t , a candidate action changes inventory to y t − 1 + x y_{t-1} + x y t − 1 + x . For each simulated future price sequence, we compute the best continuation from that inventory to the target y 0 y_0 y 0 , using a deterministic hindsight optimizer. We use the same scenarios for all candidate actions, average their profits, and execute only the maximizing current action.
To define this precisely, let V t + 1 h s ( z ; p > t ) V^{\mathrm{hs}}_{t+1}(z; \mathbf{p}_{>t}) V t + 1 hs ( z ; p > t ) be the maximum profit over time steps t + 1 , … , T t+1,\ldots,T t + 1 , … , T , starting from z z z , ending at y 0 y_0 y 0 , and respecting capacity and unit-trade constraints. Its domain is Y t + 1 = { z ∈ { 0 , … , B } : ∣ z − y 0 ∣ ≤ T − t } \mathcal{Y}_{t+1} = \{z \in\{0,\ldots,B\}: |z-y_0| \le T-t\} Y t + 1 = { z ∈ { 0 , … , B } : ∣ z − y 0 ∣ ≤ T − t } , with terminal value V T + 1 h s ( y 0 ; ∅ ) = 0 V^{\mathrm{hs}}_{T+1}(y_0;\varnothing)=0 V T + 1 hs ( y 0 ; ∅ ) = 0 . The optimizer knows the prices within its scenario, so this continuation differs from an optimal nonanticipative policy. Feasible actions in (2) ensure that every continuation value evaluated below is defined.
Algorithm 1 STARS: Storage Trading by Averaging Repeatedly across multiple Scenarios
Require: T T T , B B B , y 0 y_0 y 0 , a simulator for F F F , and positive sample counts K t K_t K t chosen before observing p t p_t p t .
for t = 1 , … , T t=1,\ldots,T t = 1 , … , T do
Observe p t p_t p t and inventory y t − 1 y_{t-1} y t − 1 .
Form A t ( y t − 1 ) \mathcal{A}_t(y_{t-1}) A t ( y t − 1 ) using (2) . ▷ Preserve a feasible completion
Draw independent p ~ > t ( i ) ∼ F ⊗ ( T − t ) \widetilde{\mathbf{p}}_{>t}^{(i)} \sim F^{\otimes(T-t)} p > t ( i ) ∼ F ⊗ ( T − t ) , i = 1 , … , K t i=1,\ldots,K_t i = 1 , … , K t . ▷ Fresh future scenarios
for each x ∈ A t ( y t − 1 ) x \in\mathcal{A}_t(y_{t-1}) x ∈ A t ( y t − 1 ) do
Evaluate V t + 1 h s ( y t − 1 + x ; p ~ > t ( i ) ) V^{\mathrm{hs}}_{t+1}(y_{t-1}+x;\widetilde{\mathbf{p}}_{>t}^{(i)}) V t + 1 hs ( y t − 1 + x ; p > t ( i ) ) for all i i i . ▷ Reuse the same scenarios
end for
Choose a maximizing feasible action
x t ∈ arg max x ∈ A t ( y t − 1 ) { − p t x + 1 K t ∑ i = 1 K t V t + 1 h s ( y t − 1 + x ; p ~ > t ( i ) ) } . x_t \in\mathop{\arg\max}_{x\in\mathcal{A}_t(y_{t-1})}\left\{-p_t x+\frac{1}{K_t}\sum_{i=1}^{K_t}V^{\mathrm{hs}}_{t+1}(y_{t-1}+x;\widetilde{\mathbf{p}}_{>t}^{(i)})\right\}. x t ∈ arg max x ∈ A t ( y t − 1 ) { − p t x + K t 1 i = 1 ∑ K t V t + 1 hs ( y t − 1 + x ; p > t ( i ) ) } .
Execute x t x_t x t and set y t = y t − 1 + x t y_t=y_{t-1}+x_t y t = y t − 1 + x t . ▷ Implement only this action
end for
Ties are resolved in the order hold, buy, sell, restricted to feasible maximizers. Scenarios are independent of all actual prices and previous simulations. Throughout the performance guarantees, STARS means this finite-scenario algorithm, with K t ≥ ( T − t + 1 ) 2 K_t \ge(T-t+1)^2 K t ≥ ( T − t + 1 ) 2 chosen before observing p t p_t p t . We also write π K \pi^K π K when the sampling schedule needs to be explicit.
An additional unit is valuable because it changes what trades can be executed in the future. For adjacent feasible inventories define its realized and expected marginal continuation values:
Δ V t + 1 h s ( y ; p > t ) = V t + 1 h s ( y ; p > t ) − V t + 1 h s ( y − 1 ; p > t ) , \Delta V^{\mathrm{hs}}_{t+1}(y;\mathbf{p}_{>t})=V^{\mathrm{hs}}_{t+1}(y;\mathbf{p}_{>t})-V^{\mathrm{hs}}_{t+1}(y-1;\mathbf{p}_{>t}), Δ V t + 1 hs ( y ; p > t ) = V t + 1 hs ( y ; p > t ) − V t + 1 hs ( y − 1 ; p > t ) ,
λ t + 1 ( y ) = E p > t [ Δ V t + 1 h s ( y ; p > t ) ] , \lambda_{t+1}(y)=\mathbb{E}_{\mathbf{p}_{>t}}\left[\Delta V^{\mathrm{hs}}_{t+1}(y;\mathbf{p}_{>t})\right], λ t + 1 ( y ) = E p > t [ Δ V t + 1 hs ( y ; p > t ) ] ,
λ ^ t + 1 ( y ) = 1 K t ∑ i = 1 K t Δ V t + 1 h s ( y ; p ~ > t ( i ) ) . \widehat{\lambda}_{t+1}(y)=\frac{1}{K_t}\sum_{i=1}^{K_t}\Delta V^{\mathrm{hs}}_{t+1}(y;\widetilde{\mathbf{p}}_{>t}^{(i)}). λ t + 1 ( y ) = K t 1 i = 1 ∑ K t Δ V t + 1 hs ( y ; p > t ( i ) ) .
Here E p > t \mathbb{E}_{\mathbf{p}_{>t}} E p > t averages a fresh i.i.d. future while keeping the stated inventory fixed. With holding feasible at y y y , subtracting its common continuation value from the three scenario-averaged profits gives
− p t + λ ^ t + 1 ( y + 1 ) ⏟ b u y , 0 ⏟ h o l d , p t − λ ^ t + 1 ( y ) ⏟ s e l l . \underbrace{-p_t+\widehat{\lambda}_{t+1}(y+1)}_{\mathrm{buy}},\qquad
\underbrace{0}_{\mathrm{hold}},\qquad
\underbrace{p_t-\widehat{\lambda}_{t+1}(y)}_{\mathrm{sell}}. buy − p t + λ t + 1 ( y + 1 ) , hold 0 , sell p t − λ t + 1 ( y ) .
To understand what these sample averages estimate, let π ∘ \pi^\circ π ∘ be the auxiliary rule that substitutes λ t + 1 \lambda_{t+1} λ t + 1 for λ ^ t + 1 \hat{\lambda}_{t+1} λ ^ t + 1 , with the same feasibility and tie conventions. We use this reference rule in the analysis; the implemented algorithm and the performance theorem below use finitely many scenarios.
Proposition 4.2. Fix a terminal target y 0 y_0 y 0 and a decision epoch t t t .
(a) For every fixed future price sequence p > t \mathbf{p}_{>t} p > t , the function V t + 1 h s ( ⋅ ; p > t ) V_{t+1}^{\mathrm{hs}}(\cdot;\mathbf{p}_{>t}) V t + 1 hs ( ⋅ ; p > t ) is discretely concave on Y t + 1 \mathcal{Y}_{t+1} Y t + 1 . Its expectation and its empirical average are also discretely concave. Consequently, the realized, expected, and sample-average marginal values are nonincreasing in inventory.
(b) At every inventory y y y where all three actions are feasible, STARS uses the rule
x t = { + 1 , p t < λ ^ t + 1 ( y + 1 ) , 0 , λ ^ t + 1 ( y + 1 ) ≤ p t ≤ λ ^ t + 1 ( y ) , − 1 , p t > λ ^ t + 1 ( y ) . x_t =
\begin{cases}
+1, & p_t < \hat{\lambda}_{t+1}(y+1),\\
0, & \hat{\lambda}_{t+1}(y+1) \le p_t \le\hat{\lambda}_{t+1}(y),\\
-1, & p_t > \hat{\lambda}_{t+1}(y).
\end{cases} x t = ⎩ ⎨ ⎧ + 1 , 0 , − 1 , p t < λ ^ t + 1 ( y + 1 ) , λ ^ t + 1 ( y + 1 ) ≤ p t ≤ λ ^ t + 1 ( y ) , p t > λ ^ t + 1 ( y ) . The proposition explains why scenario optimization generates a holding region. Selling gives up the continuation value of the last stored unit, whereas buying adds the next, weakly less valuable unit. The policy holds when neither transaction compensates for the resulting change in continuation value. This hold region adapts to inventory, the remaining horizon, and the distribution without requiring a gap width, edge exponent, or target buffer as an input.
Performance guarantees of STARS
Theorem 4.3. Fix ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) , let B = ⌈ ρ T ⌉ B = \lceil\rho T \rceil B = ⌈ ρT ⌉ , and assume y 0 = y T = 0 y_0 = y_T = 0 y 0 = y T = 0 . Run Algorithm 1 with fresh common scenarios and predictable sample counts K t ≥ ( T − t + 1 ) 2 K_t \ge(T-t+1)^2 K t ≥ ( T − t + 1 ) 2 .
(a) Fix μ ∈ ( 0 , 1 / 2 ] \mu\in(0,1/2] μ ∈ ( 0 , 1/2 ] and Δ ∈ [ 0 , 1 ] \Delta\in[0,1] Δ ∈ [ 0 , 1 ] . For every distribution F ∈ F μ , Δ a t F \in\mathcal{F}^{\mathrm{at}}_{\mu,\Delta} F ∈ F μ , Δ at , there exists a constant C = C ( F , ρ ) < ∞ C = C(F,\rho) < \infty C = C ( F , ρ ) < ∞ such that Reg ( S T A R S ; B , T , 0 ) ≤ C log T \operatorname{Reg}(\mathrm{STARS};B,T,0) \le C\log T Reg ( STARS ; B , T , 0 ) ≤ C log T .
(b) Fix β ≥ 0 \beta\ge0 β ≥ 0 and ϵ 0 ∈ ( 0 , 1 / 4 ] \epsilon_0 \in(0,1/4] ϵ 0 ∈ ( 0 , 1/4 ] , and let Δ = 0 \Delta= 0 Δ = 0 . For every distribution F ∈ F β , 0 , ϵ 0 a c F \in\mathcal{F}^{\mathrm{ac}}_{\beta,0,\epsilon_0} F ∈ F β , 0 , ϵ 0 ac , there exists a constant C = C ( F , ρ ) < ∞ C = C(F,\rho) < \infty C = C ( F , ρ ) < ∞ such that
Reg ( S T A R S ; B , T , 0 ) ≤ C log 2 T 1 { β = 0 } + C T β / ( 2 β + 2 ) 1 { β > 0 } . \operatorname{Reg}(\mathrm{STARS};B,T,0) \le C\log^2 T\,\mathbf{1}\{\beta=0\} + CT^{\beta/(2\beta+2)}\,\mathbf{1}\{\beta>0\}. Reg ( STARS ; B , T , 0 ) ≤ C log 2 T 1 { β = 0 } + C T β / ( 2 β + 2 ) 1 { β > 0 } . (c) Fix β ≥ 0 \beta\ge0 β ≥ 0 , ϵ 0 ∈ ( 0 , 1 / 4 ] \epsilon_0 \in(0,1/4] ϵ 0 ∈ ( 0 , 1/4 ] , and Δ ∈ ( 0 , 1 ) \Delta\in(0,1) Δ ∈ ( 0 , 1 ) . For every distribution F ∈ F β , Δ , ϵ 0 a c F \in\mathcal{F}^{\mathrm{ac}}_{\beta,\Delta,\epsilon_0} F ∈ F β , Δ , ϵ 0 ac , there exists a constant C = C ( F , ρ ) < ∞ C = C(F,\rho) < \infty C = C ( F , ρ ) < ∞ such that
Reg ( S T A R S ; B , T , 0 ) ≤ C T 1 / 4 log T 1 { β = 0 } + C T ( β + 1 ) / ( 2 β + 4 ) 1 { β > 0 } . \operatorname{Reg}(\mathrm{STARS};B,T,0) \le CT^{1/4}\log T\,\mathbf{1}\{\beta=0\} + CT^{(\beta+1)/(2\beta+4)}\,\mathbf{1}\{\beta>0\}. Reg ( STARS ; B , T , 0 ) ≤ C T 1/4 log T 1 { β = 0 } + C T ( β + 1 ) / ( 2 β + 4 ) 1 { β > 0 } . For every fixed F ∈ F β , Δ , ϵ 0 a c F \in\mathcal{F}^{\mathrm{ac}}_{\beta,\Delta,\epsilon_0} F ∈ F β , Δ , ϵ 0 ac with Δ > 0 \Delta> 0 Δ > 0 , these upper bounds match the polynomial exponent of Theorem 3.2 . The bounds match in order for β > 0 \beta> 0 β > 0 , and up to a factor log T \log T log T for β = 0 \beta= 0 β = 0 . All the guarantees apply to the same finite-scenario decision rule, although the proof treats sampling differently for continuous and atomic prices. For continuous prices, Appendix § 10.26 bounds the reference
rule and Appendix I transfers that bound to Algorithm 1. For atomic prices, Appendix J extends the compensation and inventory estimates of Appendix H directly to the sampled trajectory.
For a continuous distribution with density at most M M M , the additional regret relative to ideal STARS (which exactly computes the expected marginal value λ t + 1 \lambda_{t+1} λ t + 1 ) π ∘ \pi^\circ π ∘ is at most M E ∑ t = 1 T − 1 K t − 1 / 2 ≤ M log T M\mathbb{E}\sum_{t=1}^{T-1}K_t^{-1/2}\le M\log T M E ∑ t = 1 T − 1 K t − 1/2 ≤ M log T . For uniform prices there is a stronger special identity: at every state the sampled inventory transition probabilities equal those of π ∘ \pi^\circ π ∘ . For any fixed K ≥ 1 K\ge1 K ≥ 1 , the regret is exactly ( 1 + 1 / K ) Reg ( π ∘ ; B , T , 0 ) (1+1/K)\operatorname{Reg}(\pi^\circ;B,T,0) ( 1 + 1/ K ) Reg ( π ∘ ; B , T , 0 ) and this fixed-K K K exception is proved in Appendix D.
Proof ideas: compensation and inventory dynamics
At time step t t t , give hindsight the online policy’s current inventory y y y . Hindsight can choose whichever feasible buy, hold, or sell action yields the highest profit. Now force its current action to be the online policy’s choice x x x , and let it optimize all subsequent trades from y + x y+x y + x . The loss from this restriction is the marginal compensation
∂ R t ( y , x ; p ≥ t ) = V t h s ( y ; p ≥ t ) − ( − p t x + V t + 1 h s ( y + x ; p > t ) ) ≥ 0. \partial R_t(y,x;\mathbf{p}_{\ge t})=V_t^{\mathrm{hs}}(y;\mathbf{p}_{\ge t})-\left(-p_t x+V_{t+1}^{\mathrm{hs}}(y+x;\mathbf{p}_{>t})\right)\ge0. ∂ R t ( y , x ; p ≥ t ) = V t hs ( y ; p ≥ t ) − ( − p t x + V t + 1 hs ( y + x ; p > t ) ) ≥ 0.
Proposition 4.4. Fix T T T , B B B , an initial and terminal inventory y 0 y_0 y 0 , and a feasible online policy π \pi π .
(a) For every realized price sequence and policy trajectory,
V 1 h s ( B , T , y 0 ; p ) − ∑ t = 1 T ( − p t x t π ) = ∑ t = 1 T ∂ R t ( y t − 1 π , x t π ; p ≥ t ) . V_1^{\mathrm{hs}}(B,T,y_0;\mathbf{p})-\sum_{t=1}^{T}(-p_t x_t^\pi)=\sum_{t=1}^{T}\partial R_t(y_{t-1}^\pi,x_t^\pi;\mathbf{p}_{\ge t}). V 1 hs ( B , T , y 0 ; p ) − t = 1 ∑ T ( − p t x t π ) = t = 1 ∑ T ∂ R t ( y t − 1 π , x t π ; p ≥ t ) . (b) Consequently,
Reg ( π ; B , T , y 0 ) = ∑ t = 1 T E [ E [ ∂ R t ( y t − 1 π , x t π ; p ≥ t ) ∣ F t − 1 ] ] . \operatorname{Reg}(\pi;B,T,y_0)=\sum_{t=1}^{T}\mathbb{E}\left[\mathbb{E}\left[\partial R_t(y_{t-1}^\pi,x_t^\pi;\mathbf{p}_{\ge t})\mid\mathcal{F}_{t-1}\right]\right]. Reg ( π ; B , T , y 0 ) = t = 1 ∑ T E [ E [ ∂ R t ( y t − 1 π , x t π ; p ≥ t ) ∣ F t − 1 ] ] .
Proof. Substitute the inventory update y t π = y t − 1 π + x t π y_t^\pi=y_{t-1}^\pi+x_t^\pi y t π = y t − 1 π + x t π into the definition of compensation and sum over time. Successive continuation values cancel, and the terminal value V T + 1 h s ( y 0 ; ∅ ) V_{T+1}^{\mathrm{hs}}(y_0;\varnothing) V T + 1 hs ( y 0 ; ∅ ) is zero, giving part (a). Taking expectations and conditioning each summand on the past gives part (b). The inner expectation fixes the current inventory and averages over the current price, actual future, and fresh policy randomization.
This is the compensated-coupling decomposition of Vera and Banerjee [18 ] and Besbes et al. [5 ] . We now explain how it is used for STARS, with zero initial and terminal inventory and capacity proportional to the horizon, as in Theorem 4.3 .
The difficulty is that compensation need not become small merely because many periods remain. Even for uniform prices, every feasible online policy has expected compensation bounded below by a positive constant whenever its inventory is zero and at least two decisions remain (Appendix D.3).
A worst-case bound over all inventory levels therefore cannot give sublinear regret. We must account for both the loss incurred at an inventory level and how often the policy visits it.
To see how compensation arises, consider a state where all three actions are feasible. Let b h s b^{\mathrm{hs}} b hs and s h s s^{\mathrm{hs}} s hs be hindsight’s buying and selling thresholds, and let b ^ \hat{b} b ^ and s ^ \hat{s} s ^ be the corresponding scenario estimates used by STARS. These are the marginal continuation values defined in § 4.2 : b h s b^{\mathrm{hs}} b hs is the value of adding the next unit, whereas s h s s^{\mathrm{hs}} s hs is the value lost by giving up the last stored unit.
In Figure 6 (a), STARS buys at price p t p_t p t , while hindsight would hold. The extra unit is worth only b h s b^{\mathrm{hs}} b hs in the actual future, so compensation is p t − b h s p_t-b^{\mathrm{hs}} p t − b hs . In panel (b), STARS sells a unit worth s h s s^{\mathrm{hs}} s hs for only p t p_t p t , losing s h s − p t s^{\mathrm{hs}}-p_t s hs − p t . Compensation thus depends on both how often decisions disagree and how costly those disagreements are.
Figure 6. Marginal compensation at a fixed inventory with all three actions feasible, after fixing the actual and simulated futures. The shaded interval is where the indicated threshold disagreement changes the action.
The same continuation values also determine inventory movement. To explain this connection, first consider the mean-threshold rule π ∘ \pi^\circ π ∘ from § 4.2 , which replaces scenario averages by their exact expectations. This is still an online rule: it averages over possible futures without observing the future that will occur. Using this rule first lets us study inventory movement without also tracking simulation error.
Uniform prices on [ 0 , 1 ] [0,1] [ 0 , 1 ] provide the simplest example. Remove the upper capacity, fix an inventory level y ≥ 1 y \ge1 y ≥ 1 , and let the number of future periods grow. Each finite continuation problem still has to end with zero inventory. Let λ ∞ ( y ) \lambda_\infty(y) λ ∞ ( y ) denote the limiting expected extra profit from starting with y y y units rather than y − 1 y-1 y − 1 . For large y y y , we obtain
λ ∞ ( y ) = 1 2 + 1 4 y + O ( y − 2 ) as y → ∞ . \lambda_\infty(y) = \frac{1}{2} + \frac{1}{4y} + O(y^{-2}) \quad\text{as } y \to\infty. λ ∞ ( y ) = 2 1 + 4 y 1 + O ( y − 2 ) as y → ∞.
An additional unit protects against high-price selling opportunities arriving before low-price replenishments. This protection makes its value exceed the median 1 / 2 1/2 1/2 . The premium is smaller when inventory is already plentiful, because another unit then offers less protection.
This premium also explains why the policy tends to build inventory when little is available. For a uniform price on [ 0 , 1 ] [0,1] [ 0 , 1 ] , a buying threshold b b b gives buying probability b b b , while a selling threshold s s s gives selling probability 1 − s 1-s 1 − s . In the limiting calculation, these probabilities are λ ∞ ( y + 1 ) \lambda_{\infty}(y+1) λ ∞ ( y + 1 ) and 1 − λ ∞ ( y ) 1-\lambda_{\infty}(y) 1 − λ ∞ ( y ) , respectively. Since a purchase adds one unit and a sale removes one, the expected inventory change is their difference, 1 / ( 2 y ) + O ( y − 2 ) 1/(2y)+O(y^{-2}) 1/ ( 2 y ) + O ( y − 2 ) . Thus the continuation values generate an upward inventory bias that weakens as inventory increases. Appendix § 10.26 controls the difference between these limiting values and the actual finite-horizon thresholds.
An upward bias does not prevent the policy from returning to low inventory. To bound regret, we must also control the cost of these visits. For uniform prices, the compensation estimates give a low-inventory term bounded by a constant times ( y + 1 ) − 2 (y+1)^{-2} ( y + 1 ) − 2 , in addition to terms associated with the finite horizon and capacity. We therefore count inventory visits with weight ( y + 1 ) − 2 (y+1)^{-2} ( y + 1 ) − 2 : a visit to zero receives weight one, a visit to one receives weight 1 / 4 1/4 1/4 , and visits to larger inventories receive progressively less weight. These weights bound a contribution to expected compensation; they are not the realized loss on each visit.
The proof bounds this weighted count by constructing an increasing function Φ \Phi Φ of inventory. Its expected one-period increase is at least the current weight ( y + 1 ) − 2 (y+1)^{-2} ( y + 1 ) − 2 , apart from finite-horizon and capacity error terms. This turns a cost incurred repeatedly along the path into changes of a single function. Taking expectations and summing through the penultimate decision, the intermediate function values cancel, leaving only E Φ ( y T − 1 π ∘ ) − Φ ( 0 ) \mathbb{E}\Phi(y_{T-1}^{\pi^\circ})-\Phi(0) E Φ ( y T − 1 π ∘ ) − Φ ( 0 ) . To finish with zero inventory, the policy can have at most one unit before the final decision, so this endpoint contribution is bounded by a constant. The final decision itself adds at most one to the weighted count.
It remains to control the error terms in this accounting argument. The threshold and inventory-moment estimates in Appendix § 10.26 bound their sum in expectation by O ( log 2 T ) O(\log^2 T) O ( log 2 T ) . Consequently,
E ∑ t = 1 T ( y t − 1 π ∘ + 1 ) − 2 = O ( log 2 T ) . \mathbb{E}\sum_{t=1}^{T}(y_{t-1}^{\pi^\circ}+1)^{-2}=O(\log^2 T). E t = 1 ∑ T ( y t − 1 π ∘ + 1 ) − 2 = O ( log 2 T ) .
The remaining compensation terms, including those associated with terminal liquidation and capacity, contribute O ( log T ) O(\log T) O ( log T ) . Together, these estimates give the uniform-price regret bound.
Now introduce a median gap. Consider the canonical distribution F 0 , Δ F_{0,\Delta} F 0 , Δ , which is uniform on two intervals separated by a gap of width Δ \Delta Δ . For each fixed positive inventory, the limiting expected marginal value lies above the upper gap edge a + a^+ a + . With limited time left, however, the additional unit can be much less valuable. For some future price sequences, its marginal value lies in the lower price interval, at or below a − a^- a − .
For example, take prices uniform on [ 0 , 0.4 ] ∪ [ 0.6 , 1 ] [0,0.4]\cup[0.6,1] [ 0 , 0.4 ] ∪ [ 0.6 , 1 ] and suppose only one future period remains. Starting with one unit rather than zero adds exactly the final price to hindsight profit: the unit must be sold, whereas with zero inventory the only feasible action is to hold. Thus the realized marginal value is the final price itself. It is at most 0.4 with probability 1/2, and its expectation is 0.5, below the upper gap edge 0.6. Although no price lies inside the gap, an expected marginal value can. With more future periods, the marginal value reflects an entire optimal trading sequence; we must quantify how often it still falls below the gap.
The important feature is that a marginal value on the lower side falls short of a + a^{+} a + by at least the full gap width Δ \Delta Δ . In the uncapped continuation problem, the reduction from the long-future expected marginal value includes exactly Δ \Delta Δ times the probability of falling on that side, in addition to the effects of price differences within the two intervals. Lower expected marginal values lower both buying and selling thresholds, making the mean-threshold rule less willing to buy and more willing to sell.
The proof quantifies this effect as follows. Write τ = T − t ≥ 1 \tau=T-t\ge1 τ = T − t ≥ 1 for the number of future prices, and let λ τ B ( y ) \lambda_{\tau}^{B}(y) λ τ B ( y ) be the expected marginal value of the y y y th unit with this finite future and capacity B B B . At low feasible inventories away from the upper capacity, Appendix G bounds λ ∞ ( y ) − λ τ B ( y ) \lambda_{\infty}(y)-\lambda_{\tau}^{B}(y) λ ∞ ( y ) − λ τ B ( y ) by a constant multiple of Δ y / τ + y / τ \Delta y/\sqrt{\tau}+y/\tau Δ y / τ + y / τ , apart from a negligible capacity correction. The first term arises when the hindsight marginal value falls below the gap; this event has probability bounded by a constant times y / τ y/\sqrt{\tau} y / τ . Without a gap, this term vanishes and only the y / τ y/\tau y / τ correction remains.
To see what this means for inventory movement, compare the reduction with the long-future inventory premium, which is of order 1 / y 1/y 1/ y in both examples. Without a gap, y / τ y/\tau y / τ is small relative to 1 / y 1/y 1/ y when y y y is small relative to τ \sqrt{\tau} τ . With a fixed positive gap, the additional term Δ y / τ \Delta y/\sqrt{\tau} Δ y / τ instead requires y y y to be small relative to τ 1 / 4 \tau^{1/4} τ 1/4 . More precisely, below a sufficiently small constant multiple of the respective scale, the estimates preserve an upward inventory bias of order 1 / y 1/y 1/ y . The comparison applies for sufficiently large τ \tau τ , with constants depending on the fixed distribution. These are ranges where the proof guarantees inventory protection, not target inventory levels; the comparison alone is not a regret bound.
Appendix G uses these inventory-dependent estimates to bound accumulated compensation and obtain the positive-gap upper bounds in Theorem 4.3 . For F 0 , Δ F_{0,\Delta} F 0 , Δ with a fixed positive gap, the resulting bound is O ( T 1 / 4 log T ) O(T^{1/4}\log T) O ( T 1/4 log T ) , compared with O ( log 2 T ) O(\log^2 T) O ( log 2 T ) for uniform prices without a gap. The appendix also extends the analysis to the continuous class in Definition 2.4 , where β \beta β describes the mass near the median edges.
Atomic prices can instead produce a logarithmic inventory reserve. Consider the equal-mass example on { 0.2 , 0.4 , 0.6 , 0.8 } \{0.2,0.4,0.6,0.8\} { 0.2 , 0.4 , 0.6 , 0.8 } , again temporarily removing the upper capacity. At price 0.6, the mean-threshold rule may hold or buy when inventory is low, but sells when inventory is plentiful. The inventory level separating these behaviors grows logarithmically with the number of future periods. The rule continues to sell at 0.8 whenever inventory is available, so its reluctance to sell at 0.6 preserves stock for more valuable opportunities. This reserve emerges from the continuation values rather than being specified as an input. Appendices H and J combine the compensation and inventory estimates to obtain the O ( log T ) O(\log T) O ( log T ) guarantee for the finite-atomic class.
Finally, the guarantees concern finite-scenario STARS, not only the mean-threshold rule used to explain these mechanisms. For continuous prices, the comparison in § 4.3 adds at most O ( log T ) O(\log T) O ( log T ) regret under the prescribed sampling schedule. For atomic prices, the proof controls compensation along the sampled policy’s own inventory path. Both arguments account for the effect of sampling on subsequent decisions and inventories.
Numerical experiments
We perform numerical experiments to study the performance of STARS and the effect of the initial inventory. We consider the canonical positive-gap distributions F β , Δ F_{\beta,\Delta} F β , Δ in Example 2.6, with Δ = 0.2 \Delta= 0.2 Δ = 0.2 and β ∈ { 0 , 1 , 2 } \beta\in\{0,1,2\} β ∈ { 0 , 1 , 2 } . We vary the horizon over T ∈ { 10 , 20 , 50 , 100 , 200 , 500 , 1000 , 2000 , 5000 , 10,000 } T \in\{10,20,50,100,200,500,1000,2000,5000,10{,}000\} T ∈ { 10 , 20 , 50 , 100 , 200 , 500 , 1000 , 2000 , 5000 , 10 , 000 } and set B = T / 2 B = T/2 B = T /2 . We consider two initial states: zero inventory, y 0 = 0 y_0 = 0 y 0 = 0 , and an interior state, y 0 = ⌊ B / 2 ⌋ y_0 = \lfloor B/2 \rfloor y 0 = ⌊ B /2 ⌋ .
We compare three policies. Dynamic Programming (DP) computes the optimal online value function by backward induction, using the known price distribution and enforcing all storage and terminal constraints. For the distributions considered here, the expectations in the recursion are evaluated analytically without any price discretization. The DP provides the optimal online benchmark. STARS uses Algorithm 1 with K t = 50 K_t = 50 K t = 50 fresh future scenarios at each decision epoch with a choice of actions. Finally, certainty equivalence (CE) uses the fluid quantile q t C E ( y ) = 1 / 2 − ( y − y 0 ) / ( 2 ( T − t + 1 ) ) q_t^{\mathrm{CE}}(y) = 1/2 - (y-y_0)/(2(T-t+1)) q t CE ( y ) = 1/2 − ( y − y 0 ) / ( 2 ( T − t + 1 )) . It tentatively buys below F − 1 ( q t C E ( y ) ) F^{-1}(q_t^{\mathrm{CE}}(y)) F − 1 ( q t CE ( y )) and sells above it, then projects the action onto the feasible set, as in § 4.1 .
For each distribution, horizon, and initial state, we generate 200 independent price sequences and evaluate all three policies on the same sequences. On each sequence, we calculate regret as the optimal feasible hindsight profit minus the policy’s realized profit. We plot the sample mean of these paired differences and 95% confidence intervals across replications. Both axes are linear in all figures.
We first compare the three policies when y 0 = y T = 0 y_0 = y_T = 0 y 0 = y T = 0 in Figure 7 . Across the three distributions, STARS tracks the optimal online DP substantially more closely than CE does, and the separation from CE grows over the plotted horizons. These observations complement Figure 5 , where the fitted DP curves are consistent with the polynomial exponent ( β + 1 ) / ( 2 β + 4 ) (\beta+1)/(2\beta+4) ( β + 1 ) / ( 2 β + 4 ) in Theorems 3.2 and 4.3 . The fixed-budget STARS policy performs close to this benchmark. In contrast, CE exhibits growth close to T \sqrt{T} T over the tested horizons.
Figure 7. Policy regret from zero initial inventory, y 0 = y T = 0 y_0 = y_T = 0 y 0 = y T = 0 , for F β , 0.2 F_{\beta,0.2} F β , 0.2 with B = T / 2 B = T/2 B = T /2 .
We next repeat the comparison with y 0 = y T = ⌊ B / 2 ⌋ y_0 = y_T = \lfloor B/2 \rfloor y 0 = y T = ⌊ B /2 ⌋ , keeping the distributions, horizons, and capacity unchanged (Figure 8 ). Comparing Figure 7 and Figure 8 shows that the same positive-gap distribution can be substantially easier when the initial inventory provides slack from both boundaries. This is consistent with the distinction between the boundary lower bound in Theorem 3.2 and the achievable interior rates in Proposition 3.1 . Taken together, the experiments support the importance of initial inventory and show that scenario averaging can perform close to optimal online control with a modest, distribution-independent number of scenarios over the tested range.
Figure 8. Policy regret from an interior state, y 0 = y T = ⌊ B / 2 ⌋ y_0 = y_T = \lfloor B/2 \rfloor y 0 = y T = ⌊ B /2 ⌋ , with the same distributions and experimental settings as Figure 7 .
Conclusion
In this work, we studied online trading with storage and identified initial inventory and local price geometry as fundamental drivers of regret. For every β ≥ 0 \beta\ge0 β ≥ 0 , we proved that, for every fixed distribution in the regular continuous positive-gap family, every online policy starting and ending with zero inventory, with capacity proportional to T T T , incurs Ω ( T ( β + 1 ) / ( β + 4 ) ) \Omega(T^{(\beta+1)/(\beta+4)}) Ω ( T ( β + 1 ) / ( β + 4 ) ) regret. In contrast, linear slack from both boundaries allows resource-allocation guarantees to carry over. Thus, a median gap can create a new polynomial penalty when the trader must build inventory before exploiting selling opportunities.
We analyzed STARS, which averages optimized continuation values over simulated future price sequences. Its holding region arises endogenously, without distribution-specific fine-tuning. With sufficiently many scenarios, the same policy achieves logarithmic regret for finite atomic prices and the stated regret spectra for regular continuous prices. For every fixed distribution in the regular continuous positive-gap class, these bounds match the lower bound up to logarithmic factors. The analysis combines marginal compensation with control of how often the policy visits each inventory state. Numerically, STARS performs close to the optimal online dynamic program with only 50 scenarios and substantially improves on certainty equivalence in the positive-gap instances considered.
These results suggest several follow-up questions. First, how many scenarios are needed for near-optimal regret, and can that number depend on the current inventory and the difference between candidate action values? The numerical performance with a small fixed budget motivates sharper sampling guarantees. Second, how does regret change when the initial inventory and capacity grow on intermediate scales between zero initial inventory and linear slack? Finally, it would be useful to study unknown or temporally dependent prices, transaction costs, and storage losses, to understand how these features change the value of holding inventory.
AI usage disclosure
GPT-5.6 Sol, Claude Fable 5, and GPT-6 Astra provided excellent research assistance. They helped develop rigorous proofs for many of our results by formalizing proof details, checking intermediate arguments, and locating relevant concentration inequalities and convergence results. They also helped organize portions of the exposition. The authors developed the research question, model, main results and algorithmic ideas without much AI assistance. The authors take responsibility for the manuscript and any remaining errors.
G.3 Step 2: reduce compensation to small and large inventory costs
G.4 Step 3: control the physical and terminal boundaries
G.5 Step 4: bound compensation-weighted visits near zero
G.6 Step 5: sum the compensation and finish
Finite atomic prices: a logarithmic buffer emerges automatically
The mean thresholds reveal a logarithmic reserve
A crossing identity that applies to the sampled policy
The effect of finitely many scenarios
Finite scenarios for atomic prices
Bounding the accumulated corrections
Proof of Proposition 3.1
We prove Proposition 3.1 by converting a multisecretary policy into a trading policy. Selecting a price corresponds to selling; rejecting it corresponds to buying. We show that the resulting inventory stays close to its initial level with high probability, and modify the policy on the remaining paths to preserve feasibility. We then prove the selection-regret bounds using the local median assumptions. For a positive median gap, the key step separates each price into a two-price component and a within-side remainder.
From selections to balanced trades. Begin with an even horizon n ≥ 2 n \ge2 n ≥ 2 and a multisecretary quota k = n / 2 k = n/2 k = n /2 . Let a t ∈ { 0 , 1 } a_t \in\{0,1\} a t ∈ { 0 , 1 } denote selection, b t = k − ∑ s < t a s b_t = k - \sum_{s<t} a_s b t = k − ∑ s < t a s the remaining quota, and τ t = n − t + 1 \tau_t = n - t + 1 τ t = n − t + 1 . We specify the selection threshold below. Every version uses two completion rules: reject when b t = 0 b_t = 0 b t = 0 , and accept all remaining prices when b t = τ t b_t = \tau_t b t = τ t . These rules preserve 0 ≤ b t ≤ τ t 0 \le b_t \le\tau_t 0 ≤ b t ≤ τ t , because an interior integer quota allows either decision. In particular, b n + 1 = 0 b_{n+1} = 0 b n + 1 = 0 .
Define virtual trades x t = 1 − 2 a t x_t = 1 - 2a_t x t = 1 − 2 a t and displacement D j = ∑ t = 1 j x t D_j = \sum_{t=1}^{j} x_t D j = ∑ t = 1 j x t , with D 0 = 0 D_0 = 0 D 0 = 0 . Selection means selling and rejection means buying. The identity D t − 1 = 2 b t − τ t D_{t-1} = 2b_t - \tau_t D t − 1 = 2 b t − τ t gives both ∣ D t − 1 ∣ ≤ τ t \lvert D_{t-1}\rvert\le\tau_t ∣ D t − 1 ∣ ≤ τ t and D n = 0 D_n = 0 D n = 0 . Writing S k ( p ) S_k(\mathbf{p}) S k ( p ) for the sum of the k k k largest prices, we have
R n v i r t u a l = 2 ∑ t = 1 n p t a t − ∑ t = 1 n p t , V n s t a t = 2 S k ( p ) − ∑ t = 1 n p t . R_n^{\mathrm{virtual}} = 2\sum_{t=1}^{n} p_t a_t - \sum_{t=1}^{n} p_t,
\qquad
V_n^{\mathrm{stat}} = 2S_k(\mathbf{p}) - \sum_{t=1}^{n} p_t. R n virtual = 2 t = 1 ∑ n p t a t − t = 1 ∑ n p t , V n stat = 2 S k ( p ) − t = 1 ∑ n p t .
Here V n s t a t V_n^{\mathrm{stat}} V n stat removes only intermediate inventory bounds. Balance requires equally many purchases and sales; exchange assigns them to the smallest and largest prices, respectively. Buying the smaller and selling the larger of any two held prices cannot reduce profit, so an optimum uses k k k of each. The identities give static regret exactly twice the completed policy’s multisecretary regret.
Specifying the quantile rule. We work in quantile space to treat continuous prices and atoms together. Use fresh independent W t ∼ Unif [ 0 , 1 ] W_t \sim\operatorname{Unif}[0,1] W t ∼ Unif [ 0 , 1 ] and set U t = F ( p t − ) + W t ( F ( p t ) − F ( p t − ) ) U_t = F(p_t^{-}) + W_t(F(p_t) - F(p_t^{-})) U t = F ( p t − ) + W t ( F ( p t ) − F ( p t − )) . Then the U t U_t U t are i.i.d. uniform and independent of F t − 1 \mathcal{F}_{t-1} F t − 1 . Indeed, drawing a uniform U t U_t U t first and setting p t = F − 1 ( U t ) p_t = F^{-1}(U_t) p t = F − 1 ( U t ) has exactly this joint law: conditional on an atom, the uniform draw lies uniformly within that atom’s quantile interval, whereas at non-atoms it equals F ( p t ) F(p_t) F ( p t ) almost surely. Include W t W_t W t in the policy randomization defining F t \mathcal{F}_t F t .
Let q t q_t q t be the pre-decision rejection quantile, so that a t = 1 { U t ≥ q t } a_t = 1\{U_t \ge q_t\} a t = 1 { U t ≥ q t } almost surely. At quota endpoints use q t = 1 q_t = 1 q t = 1 when b t = 0 b_t = 0 b t = 0 and q t = 0 q_t = 0 q t = 0 when b t = τ t b_t = \tau_t b t = τ t . Write q t C E = 1 − b t / τ t q_t^{\mathrm{CE}} = 1 - b_t/\tau_t q t CE = 1 − b t / τ t and r τ = 2 log ( τ ) / τ r_\tau= \sqrt{2\log(\tau)/\tau} r τ = 2 log ( τ ) / τ . At interior quota states use the following rules.
(a) For finite atomic prices, use Algorithm 1 of Besbes et al. [5 ] with all atom-boundary quantiles designated as gaps and ε ∗ = min i w i \varepsilon_* = \min_i w_i ε ∗ = min i w i . Its main phase snaps the CE quantile to a nearest designated gap within r τ t r_{\tau_t} r τ t , when one exists, and otherwise uses the CE quantile. The final n ∧ L F n \wedge L_F n ∧ L F steps freeze the CE quantile at the start of that phase, where L F = ⌊ 64 log ( 1 / ε ∗ ) / ε 2 ⌋ L_F = \left\lfloor64\log(1/\varepsilon_*)/\varepsilon^2 \right\rfloor L F = ⌊ 64 log ( 1/ ε ∗ ) / ε 2 ⌋ . A one-point law has zero trading regret and can be handled by holding.
(b) For continuous prices with Δ = 0 \Delta= 0 Δ = 0 , use q t = q t C E q_t = q_t^{\mathrm{CE}} q t = q t CE throughout, and set L F = 0 L_F = 0 L F = 0 .
(c) For continuous prices with Δ > 0 \Delta> 0 Δ > 0 , designate only the median quantile 1 / 2 1/2 1/2 . Set L F = ⌊ 256 log 2 ⌋ L_F = \lfloor256\log2\rfloor L F = ⌊ 256 log 2 ⌋ , the cutoff in Algorithm 1 of Besbes et al. [5 ] for two clusters of mass 1 / 2 1/2 1/2 . When τ t > L F \tau_t > L_F τ t > L F , set q t = 1 / 2 q_t = 1/2 q t = 1/2 if ∣ q t C E − 1 / 2 ∣ ≤ r τ t \lvert q_t^{\mathrm{CE}} - 1/2\rvert\le r_{\tau_t} ∣ q t CE − 1/2 ∣ ≤ r τ t , and otherwise set q t = q t C E q_t = q_t^{\mathrm{CE}} q t = q t CE . In the final n ∧ L F n \wedge L_F n ∧ L F steps, freeze the CE quantile at that phase’s start.
The endpoint completion rules override every frozen or adjusted threshold. Thus each policy selects exactly k = n / 2 k = n/2 k = n /2 prices. This specification allows arbitrary additional gaps away from the median in the continuous families.
The online inventory has sublinear fluctuations. Completion preserves the main-phase bound, since its endpoint quantiles equal q t C E q_t^{\mathrm{CE}} q t CE . In the final phase both quantiles lie in [ 0 , 1 ] [0,1] [ 0 , 1 ] . Consequently,
E [ x t ∣ F t − 1 ] = 2 q t − 1 = ( a ) − D t − 1 τ t + e t , ∣ e t ∣ ≤ { 2 r τ t , τ t > L F , 2 , τ t ≤ L F . \mathbb{E}[x_t \mid\mathcal{F}_{t-1}] = 2q_t - 1 \overset{(a)}{=} -\frac{D_{t-1}}{\tau_t} + e_t,
\qquad
\lvert e_t\rvert\le
\begin{cases}
2r_{\tau_t}, & \tau_t > L_F,\\
2, & \tau_t \le L_F.
\end{cases} E [ x t ∣ F t − 1 ] = 2 q t − 1 = ( a ) − τ t D t − 1 + e t , ∣ e t ∣ ≤ { 2 r τ t , 2 , τ t > L F , τ t ≤ L F .
Step (a) uses the conditional uniformity of U t U_t U t ; step (b) uses D t − 1 = 2 b t − τ t D_{t-1} = 2b_t-\tau_t D t − 1 = 2 b t − τ t and defines e t = 2 ( q t − q t C E ) e_t = 2(q_t-q_t^{\mathrm{CE}}) e t = 2 ( q t − q t CE ) . Thus the fluid part of the drift points toward zero. The total possible outward perturbation satisfies
∑ t = 1 n ∣ e t ∣ ≤ A n : = 2 ∑ τ = L F + 1 n 2 log τ τ + 2 L F ≤ ( a ) 4 2 n log n + 2 L F = o ( n ) , \sum_{t=1}^{n} \lvert e_t\rvert\le A_n := 2\sum_{\tau=L_F+1}^{n}\sqrt{\frac{2\log\tau}{\tau}} + 2L_F \overset{(a)}{\le} 4\sqrt{2n\log n} + 2L_F = o(n), t = 1 ∑ n ∣ e t ∣ ≤ A n := 2 τ = L F + 1 ∑ n τ 2 log τ + 2 L F ≤ ( a ) 4 2 n log n + 2 L F = o ( n ) ,
with an empty sum interpreted as zero. Step (a) uses ∑ τ = 1 n τ − 1 / 2 ≤ 2 n \sum_{\tau=1}^{n}\tau^{-1/2} \le2\sqrt{n} ∑ τ = 1 n τ − 1/2 ≤ 2 n .
The restoring drift lets us control the largest inventory displacement. Put ξ t = x t − E [ x t ∣ F t − 1 ] \xi_t = x_t - \mathbb{E}[x_t \mid\mathcal{F}_{t-1}] ξ t = x t − E [ x t ∣ F t − 1 ] and M j = ∑ t = 1 j ξ t M_j = \sum_{t=1}^{j}\xi_t M j = ∑ t = 1 j ξ t . This is a martingale with increments bounded in absolute value by two. If D j > 0 D_j > 0 D j > 0 , let ℓ < j \ell< j ℓ < j be its last zero. Since D D D starts at zero and has unit increments, it is positive between ℓ \ell ℓ and j j j . Therefore
D j = ∑ t = ℓ + 1 j ( − D t − 1 τ t + e t + ξ t ) ≤ ( a ) A n + M j − M ℓ ≤ A n + 2 max i ≤ n ∣ M i ∣ . D_j = \sum_{t=\ell+1}^{j}\left(-\frac{D_{t-1}}{\tau_t} + e_t + \xi_t\right) \overset{(a)}{\le} A_n + M_j - M_\ell\le A_n + 2\max_{i\le n}\lvert M_i\rvert. D j = t = ℓ + 1 ∑ j ( − τ t D t − 1 + e t + ξ t ) ≤ ( a ) A n + M j − M ℓ ≤ A n + 2 i ≤ n max ∣ M i ∣ .
Step (a) drops the nonpositive restoring drift and bounds the sum of perturbations by A n A_n A n . For a negative excursion, apply the same argument to − D -D − D . Thus max j ∣ D j ∣ ≤ A n + 2 max j ∣ M j ∣ \max_j \lvert D_j\rvert\le A_n + 2\max_j\lvert M_j\rvert max j ∣ D j ∣ ≤ A n + 2 max j ∣ M j ∣ on every realization.
The bounded-increment exponential martingale gives P ( max j ≤ n ∣ M j ∣ ≥ z ) ≤ 2 exp ( − z 2 / ( 8 n ) ) \mathbb{P}(\max_{j\le n}\lvert M_j\rvert\ge z) \le2\exp(-z^2/(8n)) P ( max j ≤ n ∣ M j ∣ ≥ z ) ≤ 2 exp ( − z 2 / ( 8 n )) . Indeed, conditional Hoeffding gives E [ e θ ξ t ∣ F t − 1 ] ≤ e 2 θ 2 \mathbb{E}[e^{\theta\xi_t}\mid\mathcal{F}_{t-1}] \le e^{2\theta^2} E [ e θ ξ t ∣ F t − 1 ] ≤ e 2 θ 2 . Stopping the resulting nonnegative supermartingale at the first crossing of z z z , or at n n n , bounds the upper-tail probability by $\exp(-\theta z + 2 n θ 2 2n\theta^2 2 n θ 2 ). Set θ = z / ( 4 n ) \theta= z/(4n) θ = z / ( 4 n ) and repeat for − M -M − M . For fixed F , η F,\eta F , η , take n n n sufficiently large that A n ≤ η n / 2 A_n \le\eta n/2 A n ≤ η n /2 .
It follows that
P ( max j ≤ n ∣ D j ∣ ≥ η n ) ≤ P ( max j ≤ n ∣ M j ∣ ≥ η n / 4 ) ≤ 2 e − η 2 n / 128 . \mathbb{P}\left(\max_{j\le n}|D_j| \ge\eta n\right) \le\mathbb{P}\left(\max_{j\le n}|M_j| \ge\eta n/4\right) \le2e^{-\eta^2 n/128}. P ( j ≤ n max ∣ D j ∣ ≥ η n ) ≤ P ( j ≤ n max ∣ M j ∣ ≥ η n /4 ) ≤ 2 e − η 2 n /128 .
Thus the adaptive online trajectory stays within a linear distance of its initial inventory with exponentially high probability.
Feasibility and transfer of regret. Now suppose y 0 ∧ ( B − y 0 ) ≥ η n y_0 \wedge(B-y_0) \ge\eta n y 0 ∧ ( B − y 0 ) ≥ η n . Execute the virtual trades until a proposed trade first leaves [ 0 , B ] [0,B] [ 0 , B ] . At that time step, instead move one unit toward y 0 y_0 y 0 , continue moving toward it, and hold once it is reached. The rule uses only observed information. Before a switch, the actual displacement equals D t − 1 D_{t-1} D t − 1 ; the inequality ∣ D t − 1 ∣ ≤ τ t |D_{t-1}| \le\tau_t ∣ D t − 1 ∣ ≤ τ t proves that the remaining time suffices for the return. Each return step remains within [ 0 , B ] [0,B] [ 0 , B ] . If no switch occurs, D n = 0 D_n=0 D n = 0 already gives terminal balance. The policy is therefore feasible on every price sequence.
A switch is possible only if the virtual path has max j ∣ D j ∣ ≥ η n \max_j |D_j| \ge\eta n max j ∣ D j ∣ ≥ η n . The virtual and feasible policies agree otherwise, and their profits differ by at most 2 n 2n 2 n on any path. Let Reg M S ( n ) \operatorname{Reg}_{\mathrm{MS}}(n) Reg MS ( n ) denote the specified completed selection policy’s expected regret against the sum of the n / 2 n/2 n /2 largest prices. For all sufficiently large even n n n ,
Reg ( π C w G ; B , n , y 0 ) ≤ ( a ) E [ V n s t a t − R n v i r t u a l ] + 2 n P ( s w i t c h ) ≤ ( b ) 2 Reg M S ( n ) + 4 n e − η 2 n / 128 . \operatorname{Reg}(\pi^{\mathrm{CwG}};B,n,y_0)
\overset{(a)}{\le} \mathbb{E}\left[V_n^{\mathrm{stat}}-R_n^{\mathrm{virtual}}\right]+2n\mathbb{P}(\mathrm{switch})
\overset{(b)}{\le} 2\operatorname{Reg}_{\mathrm{MS}}(n)+4ne^{-\eta^2 n/128}. Reg ( π CwG ; B , n , y 0 ) ≤ ( a ) E [ V n stat − R n virtual ] + 2 n P ( switch ) ≤ ( b ) 2 Reg MS ( n ) + 4 n e − η 2 n /128 .
Step (a) uses storage hindsight ≤ V n s t a t \le V_n^{\mathrm{stat}} ≤ V n stat and the pathwise profit comparison. Step (b) uses the two reward identities and the maximal bound. The storage constraints therefore add only an exponentially small error to the multisecretary regret comparison.
For odd T ≥ 3 T\ge3 T ≥ 3 , use n = T − 1 n=T-1 n = T − 1 and hold in the final time step. Pointwise, V T s t a t ≤ V n s t a t + 1 V_T^{\mathrm{stat}} \le V_n^{\mathrm{stat}}+1 V T stat ≤ V n stat + 1 . To see this, remove the final action from a balanced T T T -step optimizer. If it is a hold, the remaining path is balanced. Otherwise, also change one opposite-sign action among the first n n n time steps to a hold; such an action exists by balance. The two removed opposite-sign rewards sum to a difference of two prices, which is at most one. The resulting n n n -step static path is feasible. This proves the claimed inequality, so odd horizons add at most one to the transfer bound. For T = 1 T=1 T = 1 every feasible policy holds. The finitely many smaller horizons excluded by A n ≤ η n / 2 A_n \le\eta n/2 A n ≤ η n /2 are absorbed into constants depending on F , η F,\eta F , η .
Finite atomic prices. Each atom is a cluster whose quantile function is constant, and ε ∗ = min i w i > 0 \varepsilon_*=\min_i w_i>0 ε ∗ = min i w i > 0 . The discrete CwG corollary in Besbes et al. [5 ] gives the original selection policy regret O F ( 1 ) O_F(1) O F ( 1 ) . Completion preserves this bound. Indeed, couple the original and completed policies on the same quantiles. They agree until completion first forces a selection; thereafter the completed policy selects every remaining price, including all original selections. Nonnegative prices make its reward weakly larger on every realization. Thus Reg M S ( n ) = O F ( 1 ) \operatorname{Reg}_{\mathrm{MS}}(n)=O_F(1) Reg MS ( n ) = O F ( 1 ) , proving part (a) after transfer.
Separating the median gap from the within-side prices. For the rest of the proof, let F ∈ F β , Δ , ε 0 a c F \in\mathcal{F}^{\mathrm{ac}}_{\beta,\Delta,\varepsilon_0} F ∈ F β , Δ , ε 0 ac and put α = 1 / ( β + 1 ) \alpha= 1/(\beta+1) α = 1/ ( β + 1 ) . Define h ( u ) = F − 1 ( u ) − a − − Δ 1 { u > 1 / 2 } h(u)=F^{-1}(u)-a^- -\Delta\mathbf{1}\{u>1/2\} h ( u ) = F − 1 ( u ) − a − − Δ 1 { u > 1/2 } for u ∈ ( 0 , 1 ) ∖ { 1 / 2 } u\in(0,1)\setminus\{1/2\} u ∈ ( 0 , 1 ) ∖ { 1/2 } . The remainder h h h is nonpositive below the median and nonnegative above it. Moreover, there is a finite constant C F C_F C F such that ∣ h ( u ) ∣ ≤ C F ∣ u − 1 / 2 ∣ α |h(u)|\le C_F|u-1/2|^\alpha ∣ h ( u ) ∣ ≤ C F ∣ u − 1/2 ∣ α for all u ≠ 1 / 2 u\ne1/2 u = 1/2 . For ∣ u − 1 / 2 ∣ < ε 0 |u-1/2|<\varepsilon_0 ∣ u − 1/2∣ < ε 0 , this follows from Definition 2.4 and ∣ r ± ∣ ≤ 1 / 2 |r_\pm|\le1/2 ∣ r ± ∣ ≤ 1/2 . Outside that window, ∣ h ( u ) ∣ ≤ 1 |h(u)|\le1 ∣ h ( u ) ∣ ≤ 1 and ∣ u − 1 / 2 ∣ α ≥ ε 0 α |u-1/2|^\alpha\ge\varepsilon_0^\alpha ∣ u − 1/2 ∣ α ≥ ε 0 α . Thus one can take C F = max { 3 c − / 2 , 3 c + / 2 , ε 0 − α } C_F=\max\{3c_-/2,3c_+/2,\varepsilon_0^{-\alpha}\} C F = max { 3 c − /2 , 3 c + /2 , ε 0 − α } . All assertions at u = 1 / 2 u=1/2 u = 1/2 may be defined arbitrarily, since this event has probability zero.
This decomposition separates two kinds of selection error. Choosing the wrong side of the median costs the fixed gap Δ \Delta Δ . Within either side, the error depends on the distance of the price from its median edge. To formalize this, let z t = 1 { U t > 1 / 2 } z_t=\mathbf{1}\{U_t>1/2\} z t = 1 { U t > 1/2 } and let I ∗ I^* I ∗ contain the indices of the k = n / 2 k=n/2 k = n /2 largest quantiles. These indices maximize both the sum of the actual prices and the sum of the binary prices z t z_t z t . Since ∑ t a t = k \sum_t a_t=k ∑ t a t = k , the constant a − a^- a − cancels, giving
S k ( p ) − ∑ t a t p t = ( a ) Δ ( S k ( z ) − ∑ t a t z t ) + ∑ t ∈ I ∗ h ( U t ) − ∑ t a t h ( U t ) ≤ Δ ( S k ( z ) − ∑ t a t z t ) + ∑ t ∣ h ( U t ) ∣ 1 { a t ≠ z t } . \begin{aligned}
S_k(\mathbf{p})-\sum_t a_t p_t \overset{(a)}{=} \Delta\left(S_k(\mathbf{z})-\sum_t a_t z_t\right)+\sum_{t\in I^*}h(U_t)-\sum_t a_t h(U_t) \\
&\le\Delta\left(S_k(\mathbf{z})-\sum_t a_t z_t\right)+\sum_t |h(U_t)|\mathbf{1}\{a_t\ne z_t\}.
\end{aligned} S k ( p ) − t ∑ a t p t = ( a ) Δ ( S k ( z ) − t ∑ a t z t ) + t ∈ I ∗ ∑ h ( U t ) − t ∑ a t h ( U t ) ≤ Δ ( S k ( z ) − t ∑ a t z t ) + t ∑ ∣ h ( U t ) ∣ 1 { a t = z t } .
Step (a) substitutes the price decomposition. For (b), bound ∑ t ∈ I ∗ h ( U t ) \sum_{t\in I^*}h(U_t) ∑ t ∈ I ∗ h ( U t ) by ∑ t h ( U t ) + \sum_t h(U_t)^+ ∑ t h ( U t ) + and use the sign of h h h : the difference h ( U t ) + − a t h ( U t ) h(U_t)^+-a_t h(U_t) h ( U t ) + − a t h ( U t ) equals the displayed disagreement charge.
Conditional on F t − 1 \mathcal{F}_{t-1} F t − 1 , the threshold q t q_t q t is fixed and U t U_t U t is uniform. Disagreement with the median decision occurs exactly between q t q_t q t and 1 / 2 1/2 1/2 , up to null endpoints. Therefore
E [ ∣ h ( U t ) ∣ 1 { a t ≠ z t } ∣ F t − 1 ] = ∫ q t ∧ ( 1 / 2 ) q t ∨ ( 1 / 2 ) ∣ h ( u ) ∣ d u ≤ ( a ) C F 1 + α ∣ q t − 1 / 2 ∣ 1 + α . \mathbb{E}\left[|h(U_t)|\mathbf{1}\{a_t\ne z_t\}\mid\mathcal{F}_{t-1}\right]
=\int_{q_t\wedge(1/2)}^{q_t\vee(1/2)}|h(u)|\,du
\overset{(a)}{\le}\frac{C_F}{1+\alpha}|q_t-1/2|^{1+\alpha}. E [ ∣ h ( U t ) ∣ 1 { a t = z t } ∣ F t − 1 ] = ∫ q t ∧ ( 1/2 ) q t ∨ ( 1/2 ) ∣ h ( u ) ∣ d u ≤ ( a ) 1 + α C F ∣ q t − 1/2 ∣ 1 + α .
Step (a) integrates the bound on h h h . We next control these quantile deviations and, when Δ > 0 \Delta>0 Δ > 0 , the binary selection loss.
Continuous prices without a median gap. Here Δ = 0 \Delta=0 Δ = 0 , so the binary term vanishes. Under the CE rule, e t = 0 e_t=0 e t = 0 and ∣ q t − 1 / 2 ∣ = ∣ D t − 1 ∣ / ( 2 τ t ) |q_t-1/2|=|D_{t-1}|/(2\tau_t) ∣ q t − 1/2∣ = ∣ D t − 1 ∣/ ( 2 τ t ) . Write s τ = E [ D τ − 1 2 ] s_\tau=\mathbb{E}[D_{\tau-1}^2] s τ = E [ D τ − 1 2 ] for the second moment with τ \tau τ steps remaining. Since x t 2 = 1 x_t^2=1 x t 2 = 1 , conditioning on the history gives, for τ ≥ 2 \tau\ge2 τ ≥ 2 ,
s τ − 1 = ( a ) ( 1 − 2 / τ ) s τ + 1 ≤ ( b ) τ − 1. s_{\tau-1}\overset{(a)}{=}(1-2/\tau)s_\tau+1\overset{(b)}{\le}\tau-1. s τ − 1 = ( a ) ( 1 − 2/ τ ) s τ + 1 ≤ ( b ) τ − 1.
Step (a) expands ( D t − 1 + x t ) 2 (D_{t-1}+x_t)^2 ( D t − 1 + x t ) 2 and uses drift − D t − 1 / τ -D_{t-1}/\tau − D t − 1 / τ . Step (b) proves s τ ≤ τ s_\tau\le\tau s τ ≤ τ by downward induction starting at s n = 0 s_n=0 s n = 0 ; its coefficient is nonnegative for τ ≥ 2 \tau\ge2 τ ≥ 2 . Because 1 + α ≤ 2 1+\alpha\le2 1 + α ≤ 2 , Jensen’s inequality now yields E ∣ q t − 1 / 2 ∣ 1 + α ≤ 2 − ( 1 + α ) s τ t ( 1 + α ) / 2 / τ t 1 + α ≤ 2 − ( 1 + α ) τ t − ( 1 + α ) / 2 \mathbb{E}|q_t-1/2|^{1+\alpha}\le2^{-(1+\alpha)}s_{\tau_t}^{(1+\alpha)/2}/\tau_t^{1+\alpha}\le2^{-(1+\alpha)}\tau_t^{-(1+\alpha)/2} E ∣ q t − 1/2 ∣ 1 + α ≤ 2 − ( 1 + α ) s τ t ( 1 + α ) /2 / τ t 1 + α ≤ 2 − ( 1 + α ) τ t − ( 1 + α ) /2 . Summing the conditional disagreement charges proves Reg M S ( n ) = O F ( log n ) \operatorname{Reg}_{\mathrm{MS}}(n)=O_F(\log n) Reg MS ( n ) = O F ( log n ) when α = 1 \alpha=1 α = 1 , and O F ( n ( 1 − α ) / 2 O_F(n^{(1-\alpha)/2} O F ( n ( 1 − α ) /2 when α < 1 \alpha< 1 α < 1 . Indeed, the sum is harmonic in the first case, and at most 1 + ∫ 1 n u − ( 1 + α ) / 2 d u 1 + \int_1^n u^{-(1+\alpha)/2}\,du 1 + ∫ 1 n u − ( 1 + α ) /2 d u in the second. Since ( 1 − α ) / 2 = β / ( 2 β + 2 ) (1-\alpha)/2 = \beta/(2\beta+2) ( 1 − α ) /2 = β / ( 2 β + 2 ) , transfer gives part (b).
Continuous prices with a positive median gap. First consider the binary loss. The variables z t z_t z t are i.i.d. Bernoulli( 1 / 2 ) (1/2) ( 1/2 ) . Conditional on z t z_t z t , the quantile U t U_t U t is uniform on the corresponding half of [ 0 , 1 ] [0,1] [ 0 , 1 ] . These are precisely the randomized within-atom quantiles in CwG applied to the two prices { 0 , 1 } \{0,1\} { 0 , 1 } , each with probability 1 / 2 1/2 1/2 . Their only gap quantile is 1 / 2 1/2 1/2 . Our median-only rule has the same thresholds, quotas, and final static phase as this binary policy, with the same completion rules. The coupling is therefore exact. The finite-type guarantee of Besbes et al. [5 ] , together with completion’s pathwise reward improvement proved above, gives E [ S k ( z ) − ∑ t a t z t ] = O ( 1 ) \mathbb{E}[S_k(\mathbf{z})-\sum_t a_tz_t]=O(1) E [ S k ( z ) − ∑ t a t z t ] = O ( 1 ) uniformly in n n n .
It remains to bound the within-side charges. In the main phase τ = τ t > L F \tau=\tau_t>L_F τ = τ t > L F , the drift perturbation satisfies ∣ e t ∣ ≤ 2 r τ |e_t|\le2r_\tau ∣ e t ∣ ≤ 2 r τ . Expanding the squared displacement and using Young’s inequality gives
s τ − 1 = ( 1 − 2 / τ ) s τ + 2 E [ D τ − 1 e t ] + 1 ≤ ( 1 − 3 / ( 2 τ ) ) s τ + 1 + 2 τ E [ e t 2 ] ≤ ( 1 − 3 / ( 2 τ ) ) s τ + 1 + 16 log τ . \begin{aligned}
s_{\tau-1} = (1-2/\tau)s_\tau+ 2\mathbb{E}[D_{\tau-1}e_t] + 1 \\
&\le(1-3/(2\tau))s_\tau+ 1 + 2\tau\mathbb{E}[e_t^2] \le(1-3/(2\tau))s_\tau+ 1 + 16\log\tau.
\end{aligned} s τ − 1 = ( 1 − 2/ τ ) s τ + 2 E [ D τ − 1 e t ] + 1 ≤ ( 1 − 3/ ( 2 τ )) s τ + 1 + 2 τ E [ e t 2 ] ≤ ( 1 − 3/ ( 2 τ )) s τ + 1 + 16 log τ .
Step (a) uses 2 ∣ D e ∣ ≤ D 2 / ( 2 τ ) + 2 τ e 2 2|De|\le D^2/(2\tau)+2\tau e^2 2∣ D e ∣ ≤ D 2 / ( 2 τ ) + 2 τ e 2 ; step (b) uses e t 2 ≤ 8 log ( τ ) / τ e_t^2\le8\log(\tau)/\tau e t 2 ≤ 8 log ( τ ) / τ . Downward induction from s n = 0 s_n=0 s n = 0 shows s τ ≤ 36 τ log n s_\tau\le36\tau\log n s τ ≤ 36 τ log n throughout the main phase. In fact, substituting this bound on the right gives 36 ( τ − 3 / 2 ) log n + 1 + 16 log τ ≤ 36 ( τ − 1 ) log n 36(\tau-3/2)\log n+1+16\log\tau\le36(\tau-1)\log n 36 ( τ − 3/2 ) log n + 1 + 16 log τ ≤ 36 ( τ − 1 ) log n , since 1 ≤ 2 log n 1\le2\log n 1 ≤ 2 log n for n ≥ 2 n\ge2 n ≥ 2 . Snapping to the median can only reduce the threshold’s distance from 1 / 2 1/2 1/2 , so ∣ q t − 1 / 2 ∣ ≤ ∣ D t − 1 ∣ / ( 2 τ ) |q_t-1/2|\le|D_{t-1}|/(2\tau) ∣ q t − 1/2∣ ≤ ∣ D t − 1 ∣/ ( 2 τ ) . Another application of Jensen gives E ∣ q t − 1 / 2 ∣ 1 + α ≤ C α ( log n / τ ) ( 1 + α ) / 2 \mathbb{E}|q_t-1/2|^{1+\alpha}\le C_\alpha(\log n/\tau)^{(1+\alpha)/2} E ∣ q t − 1/2 ∣ 1 + α ≤ C α ( log n / τ ) ( 1 + α ) /2 . The final phase has at most the fixed L F L_F L F steps, each contributing at most one to the residual charge, so it adds only O ( 1 ) O(1) O ( 1 ) .
The binary loss is also O ( 1 ) O(1) O ( 1 ) . Summing the main-phase charges thus gives Reg M S ( n ) = O F ( log 2 n ) \operatorname{Reg}_{\mathrm{MS}}(n)=O_F(\log^2 n) Reg MS ( n ) = O F ( log 2 n ) when α = 1 \alpha=1 α = 1 , and O F ( n ( 1 − α ) / 2 ( log n ) ( 1 + α ) / 2 ) O_F(n^{(1-\alpha)/2}(\log n)^{(1+\alpha)/2}) O F ( n ( 1 − α ) /2 ( log n ) ( 1 + α ) /2 ) when α < 1 \alpha<1 α < 1 . Use ( 1 + α ) / 2 = ( β + 2 ) / ( 2 β + 2 ) (1+\alpha)/2=(\beta+2)/(2\beta+2) ( 1 + α ) /2 = ( β + 2 ) / ( 2 β + 2 ) and the transfer bound to obtain part (c). The continuous argument uses only the local upper-quantile envelope and bounded support; all distributions in Definition 2.4 satisfy these requirements.
Proof of the positive-gap boundary lower bound
We prove Theorem 3.2 by comparing the cost of keeping inventory feasible online with the cost of doing so in hindsight. The key distinction is that hindsight can choose inexpensive opportunities to hold before inventory runs out, whereas an online policy must make these choices without knowing which opportunities will be needed. Fix β ≥ 0 \beta\ge0 β ≥ 0 , ε 0 ∈ ( 0 , 1 / 4 ) \varepsilon_0\in(0,1/4) ε 0 ∈ ( 0 , 1/4 ) , Δ ∈ ( 0 , 1 ) \Delta\in(0,1) Δ ∈ ( 0 , 1 ) , and ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) . Let F ∈ F β , Δ , ε 0 a c F\in\mathcal{F}_{\beta,\Delta,\varepsilon_0}^{\mathrm{ac}} F ∈ F β , Δ , ε 0 ac be fixed independently of T T T , and write κ : = β + 1 \kappa:=\beta+1 κ := β + 1 and a − : = a F − a^-:=a_F^- a − := a F − , a + : = a F + a^+:=a_F^+ a + := a F + . Prices are i.i.d. with distribution F F F . Absolute continuity and the median-gap definition imply F ( a − ) = F ( a + ) = 1 / 2 F(a^-)=F(a^+)=1/2 F ( a − ) = F ( a + ) = 1/2 and a + − a − = Δ a^+-a^-=\Delta a + − a − = Δ . Thus each side of the gap has probability 1 / 2 1/2 1/2 , even when the two conditional price distributions differ. The local quantile bounds below replace the exact power-law formulas of the canonical examples.
A possibly randomized online policy is represented by independent fresh seeds ( ζ t ) t = 1 T (\zeta_t)_{t=1}^{T} ( ζ t ) t = 1 T , independent of the entire price sequence. Put F 0 : = { ∅ , Ω } \mathcal{F}_0 := \{\varnothing, \Omega\} F 0 := { ∅ , Ω } and F t : = σ ( p s , ζ s : s ≤ t ) \mathcal{F}_t := \sigma(p_s, \zeta_s : s \le t) F t := σ ( p s , ζ s : s ≤ t ) . The action x t x_t x t is F t \mathcal{F}_t F t -measurable and takes values in { − 1 , 0 , 1 } \{-1,0,1\} { − 1 , 0 , 1 } . Almost surely, it satisfies y t = y t − 1 + x t y_t = y_{t-1} + x_t y t = y t − 1 + x t , 0 ≤ y t ≤ B : = ⌈ ρ T ⌉ 0 \le y_t \le B := \lceil\rho T\rceil 0 ≤ y t ≤ B := ⌈ ρT ⌉ , and y 0 = y T = 0 y_0 = y_T = 0 y 0 = y T = 0 . All conditional statements below include the seed in the filtration. Consequently, future prices and their median-side signs remain independent of F t \mathcal{F}_t F t .
Marginal compensation and departures from the static median-sign rule
We first express regret in terms of departures from the static median-sign rule. Buying at every low price and selling at every high price is generally infeasible when the initial inventory level is zero. Any feasible policy must modify some of these actions. The following accounting separates the fixed cost imposed by the median gap from the additional cost of the particular prices at which these modifications occur.
Let V t h s ( y ; p ≥ t ) V_t^{\mathrm{hs}}(y; \mathbf{p}_{\ge t}) V t hs ( y ; p ≥ t ) be the storage-constrained hindsight value from periods t , … , T t,\ldots,T t , … , T , starting with inventory y y y immediately before period t t t and ending at zero. Set V T + 1 h s ( 0 ; ∅ ) = 0 V_{T+1}^{\mathrm{hs}}(0;\varnothing)=0 V T + 1 hs ( 0 ; ∅ ) = 0 . For a feasible current action x x x , define its marginal compensation by
∂ R t ( y , x ; p ≥ t ) : = V t h s ( y ; p ≥ t ) − [ − p t x + V t + 1 h s ( y + x ; p > t ) ] . (4) \partial R_t(y,x;\mathbf{p}_{\ge t}) := V_t^{\mathrm{hs}}(y;\mathbf{p}_{\ge t})-\left[-p_t x+V_{t+1}^{\mathrm{hs}}(y+x;\mathbf{p}_{>t})\right]. \tag*{(4)} ∂ R t ( y , x ; p ≥ t ) := V t hs ( y ; p ≥ t ) − [ − p t x + V t + 1 hs ( y + x ; p > t ) ] . (4)
It is nonnegative because the hindsight value maximizes over the feasible current actions.
Let ξ t \xi_t ξ t be the action proposed by the static median-sign rule: ξ t : = + 1 \xi_t := +1 ξ t := + 1 when p t ≤ a − p_t \le a^- p t ≤ a − and ξ t : = − 1 \xi_t := -1 ξ t := − 1 when p t ≥ a + p_t \ge a^+ p t ≥ a + . The sum of its proposed trades is S t : = ∑ s = 1 t ξ s S_t := \sum_{s=1}^{t}\xi_s S t := ∑ s = 1 t ξ s , with S 0 : = 0 S_0 := 0 S 0 := 0 . The gap has no mass, so this defines ξ t \xi_t ξ t almost surely, and the variables ( ξ t ) (\xi_t) ( ξ t ) are i.i.d. Rademacher. Define the globally nonnegative edge premiums W t : = ( a − − p t ) 1 { ξ t = + 1 } W_t := (a^- - p_t)1\{\xi_t = +1\} W t := ( a − − p t ) 1 { ξ t = + 1 } and Z t : = ( p t − a + ) 1 { ξ t = − 1 } Z_t := (p_t-a^+)1\{\xi_t=-1\} Z t := ( p t − a + ) 1 { ξ t = − 1 } . Thus 0 ≤ W t , Z t ≤ 1 0 \le W_t,Z_t \le1 0 ≤ W t , Z t ≤ 1 , and on the corresponding side p t = a − − W t p_t=a^- - W_t p t = a − − W t or p t = a + + Z t p_t=a^+ + Z_t p t = a + + Z t .
For a feasible policy π \pi π , let
u t : = 1 { ξ t = − 1 } ( 1 + x t π ) , U t : = ∑ s = 1 t u s , ℓ t : = 1 { ξ t = + 1 } ( 1 − x t π ) , L t : = ∑ s = 1 t ℓ s . (5) \begin{aligned}
u_t &:= 1\{\xi_t=-1\}(1+x_t^\pi), & U_t &:= \sum_{s=1}^{t}u_s,\\
\ell_t &:= 1\{\xi_t=+1\}(1-x_t^\pi), & L_t &:= \sum_{s=1}^{t}\ell_s. \tag*{(5)}
\end{aligned} u t ℓ t := 1 { ξ t = − 1 } ( 1 + x t π ) , := 1 { ξ t = + 1 } ( 1 − x t π ) , U t L t := s = 1 ∑ t u s , := s = 1 ∑ t ℓ s . (5)
Both u t u_t u t and ℓ t \ell_t ℓ t belong to { 0 , 1 , 2 } \{0,1,2\} { 0 , 1 , 2 } . They count deviations, in units, from buying on the lower side and selling on the upper side.
Lemma B.1. Let π \pi π be a feasible cyclic policy and π h s \pi^{\mathrm{hs}} π hs a hindsight-optimal feasible policy. Put M t : = max 0 ≤ s ≤ t ( − S s ) + M_t := \max_{0 \le s \le t}(-S_s)^+ M t := max 0 ≤ s ≤ t ( − S s ) + and define the correction cost
C T ( π ) : = ∑ t : ξ t = + 1 W t ℓ t + ∑ t : ξ t = − 1 ( Δ + Z t ) u t . (6) C_T(\pi) := \sum_{t:\xi_t=+1} W_t\ell_t + \sum_{t:\xi_t=-1}(\Delta+Z_t)u_t. \tag*{(6)} C T ( π ) := t : ξ t = + 1 ∑ W t ℓ t + t : ξ t = − 1 ∑ ( Δ + Z t ) u t . (6) The following statements hold pathwise.
(a) The inventory satisfies
y t = S t + U t − L t . (7) y_t=S_t+U_t-L_t. \tag*{(7)} y t = S t + U t − L t . (7) (b) The upper-side correction count satisfies U T ≥ M T U_T \ge M_T U T ≥ M T .
(c) The marginal compensations satisfy
∑ t = 1 T ∂ R t ( y t − 1 π , x t π ; p ≥ t ) = R T ( π h s ; 0 ) − R T ( π ; 0 ) = C T ( π ) − C T ( π h s ) . (8) \sum_{t=1}^{T}\partial R_t(y_{t-1}^{\pi},x_t^\pi;\mathbf{p}_{\geq t})=R_T(\pi^{\mathrm{hs}};0)-R_T(\pi;0)=C_T(\pi)-C_T(\pi^{\mathrm{hs}}). \tag*{(8)} t = 1 ∑ T ∂ R t ( y t − 1 π , x t π ; p ≥ t ) = R T ( π hs ; 0 ) − R T ( π ; 0 ) = C T ( π ) − C T ( π hs ) . (8) Proof. At a lower-side price, x t π = ξ t − ℓ t x_t^\pi=\xi_t-\ell_t x t π = ξ t − ℓ t , while at an upper-side price, x t π = ξ t + u t x_t^\pi=\xi_t+u_t x t π = ξ t + u t . Hence
y t = ( a ) ∑ s = 1 t x s π = ( b ) S t + U t − L t , y_t \mathrel{\overset{(a)}{=}} \sum_{s=1}^{t}x_s^\pi\mathrel{\overset{(b)}{=}} S_t+U_t-L_t, y t = ( a ) s = 1 ∑ t x s π = ( b ) S t + U t − L t , where (a) uses y 0 = 0 y_0=0 y 0 = 0 , and (b) uses (App.2). Since y t ≥ 0 y_t\geq0 y t ≥ 0 and L t ≥ 0 L_t\geq0 L t ≥ 0 , U t ≥ − S t U_t\geq-S_t U t ≥ − S t . The process U U U is nondecreasing, so maximizing over t t t proves the mandatory-reflection claim.
Let R T ∘ : = ∑ t = 1 T − p t ξ t R_T^\circ:=\sum_{t=1}^{T}-p_t\xi_t R T ∘ := ∑ t = 1 T − p t ξ t be the reward of the unconstrained actions of the static median-sign rule. Direct substitution gives
R T ( π ; 0 ) − R T ∘ = ( c ) a − L T − ∑ ξ t = + 1 W t ℓ t − a + U T − ∑ ξ t = − 1 Z t u t = ( d ) a − S T − Δ U T − ∑ ξ t = + 1 W t ℓ t − ∑ ξ t = − 1 Z t u t = ( e ) a − S T − C T ( π ) . \begin{aligned}
R_T(\pi;0)-R_T^\circ&\mathrel{\overset{(c)}{=}} a^-L_T-\sum_{\xi_t=+1}W_t\ell_t-a^+U_T-\sum_{\xi_t=-1}Z_tu_t\\
&\mathrel{\overset{(d)}{=}} a^-S_T-\Delta U_T-\sum_{\xi_t=+1}W_t\ell_t-\sum_{\xi_t=-1}Z_tu_t\\
&\mathrel{\overset{(e)}{=}} a^-S_T-C_T(\pi).
\end{aligned} R T ( π ; 0 ) − R T ∘ = ( c ) a − L T − ξ t = + 1 ∑ W t ℓ t − a + U T − ξ t = − 1 ∑ Z t u t = ( d ) a − S T − Δ U T − ξ t = + 1 ∑ W t ℓ t − ξ t = − 1 ∑ Z t u t = ( e ) a − S T − C T ( π ) . Here (c) uses p t = a − − W t p_t=a^--W_t p t = a − − W t or p t = a + + Z t p_t=a^++Z_t p t = a + + Z t according to the side, (d) uses L T − U T = S T L_T-U_T=S_T L T − U T = S T , which follows from y T = 0 y_T=0 y T = 0 and (App.4), and (e) uses a + − a − = Δ a^+-a^-=\Delta a + − a − = Δ and (App.3). The terms R T ∘ + a − S T R_T^\circ+a^-S_T R T ∘ + a − S T are common to all cyclic feasible policies. Applying the identity to π \pi π and π h s \pi^{\mathrm{hs}} π hs proves the second equality in (App.5).
For the first equality, sum (App.1) along the trajectory of π \pi π . Consecutive hindsight values cancel, the initial term is V 1 h s ( 0 ; p ) = R T ( π h s ; 0 ) V_1^{\mathrm{hs}}(0;\mathbf{p})=R_T(\pi^{\mathrm{hs}};0) V 1 hs ( 0 ; p ) = R T ( π hs ; 0 ) , and the terminal term is V T + 1 h s ( 0 ; ∅ ) = 0 V_{T+1}^{\mathrm{hs}}(0;\varnothing)=0 V T + 1 hs ( 0 ; ∅ ) = 0 because y T = 0 y_T=0 y T = 0 . This proves the pathwise telescope.
Taking expectations in (App.5) gives the identity Reg ( π ; B , T , 0 ) = E [ C T ( π ) − C T ( π h s ) ] \operatorname{Reg}(\pi; B, T, 0) = \mathbb{E}[C_T(\pi) - C_T(\pi^{\mathrm{hs}})] Reg ( π ; B , T , 0 ) = E [ C T ( π ) − C T ( π hs )] . We work with C T C_T C T because it separates the fixed gap cost from the edge premiums, while preserving the exact regret comparison.
A deadline-respecting hindsight comparator
We next construct a feasible hindsight path with a small correction cost. Each new minimum of the walk generated by the static median-sign rule gives a deadline by which a sale must have been replaced by a hold. Hindsight can meet each deadline by selecting a low-premium arrival among those already available. We first bound these premiums and then restore the terminal inventory.
Let U U U be uniform on ( 0 , 1 ) (0,1) ( 0 , 1 ) and define the nondecreasing functions
ψ + ( u ) : = F − 1 ( ( 1 + u ) / 2 ) − a + , ψ − ( u ) : = a − − F − 1 ( ( 1 − u ) / 2 ) , 0 < u < 1. \begin{aligned}
\psi_{+}(u) &:= F^{-1}((1+u)/2)-a^{+},\\
\psi_{-}(u) &:= a^{-}-F^{-1}((1-u)/2), \qquad0<u<1.
\end{aligned} ψ + ( u ) ψ − ( u ) := F − 1 (( 1 + u ) /2 ) − a + , := a − − F − 1 (( 1 − u ) /2 ) , 0 < u < 1.
The conditional upper-side premium Z t Z_t Z t has the law of ψ + ( U ) \psi_{+}(U) ψ + ( U ) , and the conditional lower-side premium W t W_t W t has the law of ψ − ( U ) \psi_{-}(U) ψ − ( U ) . These representations follow by drawing a uniform quantile on the corresponding half of the distribution. Conditional on the entire sign path, premiums at distinct times are independent, with the appropriate side-specific law.
Put u 0 : = ε 0 u_0 := \varepsilon_0 u 0 := ε 0 . Definition 2.4 , applied at q = u / 2 q=u/2 q = u /2 , gives
d ± u 1 / κ ≤ ψ ± ( u ) ≤ b ± u 1 / κ , 0 < u ≤ u 0 . (9) d_{\pm}u^{1/\kappa} \leq\psi_{\pm}(u) \leq b_{\pm}u^{1/\kappa}, \qquad0<u\leq u_0. \tag*{(9)} d ± u 1/ κ ≤ ψ ± ( u ) ≤ b ± u 1/ κ , 0 < u ≤ u 0 . (9)
where d ± : = c ± 2 − 1 − 1 / κ > 0 d_{\pm} := c_{\pm}2^{-1-1/\kappa}>0 d ± := c ± 2 − 1 − 1/ κ > 0 and b ± : = 3 d ± b_{\pm} := 3d_{\pm} b ± := 3 d ± . Here the constants c ± c_{\pm} c ± are those in that definition, and the bounds use ∣ r ± ∣ ≤ 1 / 2 |r_{\pm}|\leq1/2 ∣ r ± ∣ ≤ 1/2 . Since 0 ≤ ψ ± ( u ) ≤ 1 0\leq\psi_{\pm}(u)\leq1 0 ≤ ψ ± ( u ) ≤ 1 , the constants A ± : = b ± ∨ u 0 − 1 / κ A_{\pm}:=b_{\pm}\vee u_0^{-1/\kappa} A ± := b ± ∨ u 0 − 1/ κ give the global bounds
ψ ± ( u ) ≤ A ± u 1 / κ , 0 < u < 1. (10) \psi_{\pm}(u) \leq A_{\pm}u^{1/\kappa}, \qquad0<u<1. \tag*{(10)} ψ ± ( u ) ≤ A ± u 1/ κ , 0 < u < 1. (10)
Indeed, (App.6) applies below u 0 u_0 u 0 , while 1 ≤ u 0 − 1 / κ u 1 / κ 1\leq u_0^{-1/\kappa}u^{1/\kappa} 1 ≤ u 0 − 1/ κ u 1/ κ above it.
The lower bound for ψ + \psi_{+} ψ + also controls the probability of a cheap upper-side arrival. Put z 0 : = ( d + / 2 ) u 0 1 / κ > 0 z_0 := (d_{+}/2)u_0^{1/\kappa}>0 z 0 := ( d + /2 ) u 0 1/ κ > 0 . For 0 < z ≤ z 0 0<z\leq z_0 0 < z ≤ z 0 , monotonicity and ψ + ( u 0 ) ≥ d + u 0 1 / κ = 2 z 0 \psi_{+}(u_0)\geq d_{+}u_0^{1/\kappa}=2z_0 ψ + ( u 0 ) ≥ d + u 0 1/ κ = 2 z 0 imply that ψ + ( U ) ≤ z \psi_{+}(U)\leq z ψ + ( U ) ≤ z requires U < u 0 U<u_0 U < u 0 . (App.6) then implies U ≤ ( z / d + ) κ U\leq(z/d_{+})^{\kappa} U ≤ ( z / d + ) κ . Consequently,
P ( a + ≤ p t ≤ a + + z ) = 1 2 P ( ψ + ( U ) ≤ z ) ≤ K F z κ , 0 < z ≤ z 0 , K F : = 1 2 d + − κ . (11) \mathbb{P}(a^{+}\leq p_t\leq a^{+}+z)=\frac{1}{2}\mathbb{P}(\psi_{+}(U)\leq z)\leq K_Fz^{\kappa}, \qquad0<z\leq z_0,\quad K_F:=\frac{1}{2}d_{+}^{-\kappa}. \tag*{(11)} P ( a + ≤ p t ≤ a + + z ) = 2 1 P ( ψ + ( U ) ≤ z ) ≤ K F z κ , 0 < z ≤ z 0 , K F := 2 1 d + − κ . (11)
All these constants depend only on the fixed distribution and its specified class parameters. The proof needs these power bounds; it allows different leading constants and nonzero remainders at the two edges.
Lemma B.2. For either side ν ∈ { − , + } \nu\in\{-,+\} ν ∈ { − , + } , let X 1 , … , X m X_1,\ldots,X_m X 1 , … , X m be i.i.d. with the law of ψ ν ( U ) \psi_\nu(U) ψ ν ( U ) , and let X ( j : m ) X_{(j:m)} X ( j : m ) be their j j j th order statistic. For every 1 ≤ j ≤ m 1 \le j \le m 1 ≤ j ≤ m , E [ X ( j : m ) ] ≤ A ν ( j / ( m + 1 ) ) 1 / κ \mathbb{E}[X_{(j:m)}] \le A_\nu(j/(m+1))^{1/\kappa} E [ X ( j : m ) ] ≤ A ν ( j / ( m + 1 ) ) 1/ κ .
Proof. If U ( j : m ) U_{(j:m)} U ( j : m ) is the j j j th order statistic of m m m independent uniform random variables, monotonicity gives X ( j : m ) = d ψ ν ( U ( j : m ) ) X_{(j:m)} \mathrel{\overset{\mathrm{d}}{=}} \psi_\nu(U_{(j:m)}) X ( j : m ) = d ψ ν ( U ( j : m ) ) . Equation (App.7) therefore bounds its expectation by A ν E [ U ( j : m ) 1 / κ ] A_\nu\mathbb{E}[U_{(j:m)}^{1/\kappa}] A ν E [ U ( j : m ) 1/ κ ] . Since u ↦ u 1 / κ u \mapsto u^{1/\kappa} u ↦ u 1/ κ is concave for κ ≥ 1 \kappa\ge1 κ ≥ 1 , Jensen’s inequality and E [ U ( j : m ) ] = j / ( m + 1 ) \mathbb{E}[U_{(j:m)}] = j/(m+1) E [ U ( j : m ) ] = j / ( m + 1 ) give the claim.
For y ≥ 1 y \ge1 y ≥ 1 , define the first-passage deadline σ y : = inf { t ≥ 0 : S t = − y } \sigma_y := \inf\{t \ge0:S_t=-y\} σ y := inf { t ≥ 0 : S t = − y } , with inf ∅ = ∞ \inf\varnothing= \infty inf ∅ = ∞ .
Lemma B.3. Fix κ ≥ 1 \kappa\ge1 κ ≥ 1 , put a : = 1 / κ ∈ ( 0 , 1 ] a := 1/\kappa\in(0,1] a := 1/ κ ∈ ( 0 , 1 ] , and define
Φ κ ( T ) : = log T 1 { κ = 1 } + T ( κ − 1 ) / ( 2 κ ) 1 { κ > 1 } . \Phi_\kappa(T) := \log T\mathbb{1}\{\kappa=1\} + T^{(\kappa-1)/(2\kappa)}\mathbb{1}\{\kappa>1\}. Φ κ ( T ) := log T 1 { κ = 1 } + T ( κ − 1 ) / ( 2 κ ) 1 { κ > 1 } . There exists a constant C κ < ∞ C_\kappa< \infty C κ < ∞ , depending only on κ \kappa κ , such that $\mathbb{E}\left[\sum_{y:\sigma_y\le T}\left(\frac{y}{\sigma_y+1}\right)^a\right] \le C_\kappa\Phi_\kappa(T)
for every T ≥ 2 T \ge2 T ≥ 2 .
Proof. The probability that the walk first reaches − y -y − y at time s s s satisfies
P ( σ y = s ) = y s P ( S s = − y ) ; (12) \mathbb{P}(\sigma_y=s)=\frac{y}{s}\mathbb{P}(S_s=-y); \tag*{(12)} P ( σ y = s ) = s y P ( S s = − y ) ; (12)
both sides are zero when one of s , y s,y s , y is even and the other is odd. For completeness, consider the walk during its first s − 1 s-1 s − 1 steps. Among paths ending at − y + 1 -y+1 − y + 1 , exclude those that have already reached − y -y − y . Reversing every step after the first visit to − y -y − y gives a one-to-one correspondence between these excluded paths and all paths ending at − y − 1 -y-1 − y − 1 . With the convention that a binomial coefficient is zero when its lower index is not an integer in its usual range, appending the final down-step therefore gives
2 s P ( σ y = s ) = ( a ) ( s − 1 ( s − y ) / 2 ) − ( s − 1 ( s − y − 2 ) / 2 ) 2^s\mathbb{P}(\sigma_y=s)
\mathrel{\overset{(a)}{=}}
\binom{s-1}{(s-y)/2}
-
\binom{s-1}{(s-y-2)/2} 2 s P ( σ y = s ) = ( a ) ( ( s − y ) /2 s − 1 ) − ( ( s − y − 2 ) /2 s − 1 )
= ( b ) y s ( s ( s − y ) / 2 ) = y s 2 s P ( S s = − y ) , \mathrel{\overset{(b)}{=}}
\frac{y}{s}\binom{s}{(s-y)/2}
=
\frac{y}{s}2^s\mathbb{P}(S_s=-y), = ( b ) s y ( ( s − y ) /2 s ) = s y 2 s P ( S s = − y ) ,
where (a) counts the paths that have not yet reached − y -y − y and appends their final down-step, and (b) uses ( s − 1 j ) − ( s − 1 j − 1 ) = ( s − 2 j ) ( s j ) / s \binom{s-1}{j}-\binom{s-1}{j-1}=(s-2j)\binom{s}{j}/s ( j s − 1 ) − ( j − 1 s − 1 ) = ( s − 2 j ) ( j s ) / s at j = ( s − y ) / 2 j=(s-y)/2 j = ( s − y ) /2 . This proves (App.9) directly. Consequently,
E [ ∑ y : σ y ≤ T ( y σ y + 1 ) a ] ≤ ( a ) ∑ s = 1 T ∑ y = 1 s ( y s + 1 ) a y s P ( S s = − y ) \mathbb{E}\left[\sum_{y:\sigma_y\le T}\left(\frac{y}{\sigma_y+1}\right)^a\right]
\mathrel{\overset{(a)}{\le}}
\sum_{s=1}^{T}\sum_{y=1}^{s}\left(\frac{y}{s+1}\right)^a\frac{y}{s}\mathbb{P}(S_s=-y) E y : σ y ≤ T ∑ ( σ y + 1 y ) a ≤ ( a ) s = 1 ∑ T y = 1 ∑ s ( s + 1 y ) a s y P ( S s = − y )
≤ ( b ) ∑ s = 1 T s − a − 1 E ∣ S s ∣ a + 1 \mathrel{\overset{(b)}{\le}}
\sum_{s=1}^{T}s^{-a-1}\mathbb{E}|S_s|^{a+1} ≤ ( b ) s = 1 ∑ T s − a − 1 E ∣ S s ∣ a + 1
≤ ( c ) ∑ s = 1 T s − ( a + 1 ) / 2 \mathrel{\overset{(c)}{\le}}
\sum_{s=1}^{T}s^{-(a+1)/2} ≤ ( c ) s = 1 ∑ T s − ( a + 1 ) /2
≤ ( d ) C F Φ κ ( T ) . \overset{(d)}{\le} C_F\Phi_\kappa(T). ≤ ( d ) C F Φ κ ( T ) .
Here (a) uses (App.9); (b) uses ( s + 1 ) − a s − 1 ≤ s − a − 1 (s+1)^{-a}s^{-1}\le s^{-a-1} ( s + 1 ) − a s − 1 ≤ s − a − 1 and groups the terms as a one-sided moment of S s S_s S s ; (c) uses Lyapunov’s inequality with a + 1 ≤ 2 a+1\le2 a + 1 ≤ 2 and E S s 2 = s \mathbb{E}S_s^2=s E S s 2 = s ; and (d) uses ∑ s = 1 T s − 1 ≤ 1 + log T ≤ ( 1 + 1 / log 2 ) log T \sum_{s=1}^{T}s^{-1}\le1+\log T\le(1+1/\log2)\log T ∑ s = 1 T s − 1 ≤ 1 + log T ≤ ( 1 + 1/ log 2 ) log T for T ≥ 2 T\ge2 T ≥ 2 when a = 1 a=1 a = 1 , while for a < 1 a<1 a < 1 it uses 1 + ∫ 1 T x − ( a + 1 ) / 2 d x ≤ C a T ( 1 − a ) / 2 1+\int_1^T x^{-(a+1)/2}\,dx\le C_aT^{(1-a)/2} 1 + ∫ 1 T x − ( a + 1 ) /2 d x ≤ C a T ( 1 − a ) /2 .
Lemma B.4. There exists a constant C F < ∞ C_F<\infty C F < ∞ , depending only on F F F , such that for every T ≥ 2 T\ge2 T ≥ 2 there is a hindsight selection of upper-side arrivals with the following properties.
(a) Exactly M T M_T M T arrivals are selected, with at least M t M_t M t selected arrivals by every time t t t .
(b) If each selected arrival is changed from a sale to a hold, the expected total edge premium is at most C F Φ κ ( T ) C_F\Phi_\kappa(T) C F Φ κ ( T ) .
Proof. Fix the sign path. At time σ y ≤ T \sigma_y\le T σ y ≤ T , the number of upper-side arrivals is
N y + : = # { s ≤ σ y : ξ s = − 1 } = σ y + y 2 ≥ y . N_y^+ := \#\{s\le\sigma_y:\xi_s=-1\}=\frac{\sigma_y+y}{2}\ge y. N y + := # { s ≤ σ y : ξ s = − 1 } = 2 σ y + y ≥ y .
At each deadline σ y \sigma_y σ y , select the cheapest upper-side arrival that has occurred by that deadline and has not already been selected. The deadlines are strictly increasing in y y y , so this selects one new arrival at each of the M T M_T M T attained levels. Moreover, M t ≥ y M_t\ge y M t ≥ y if and only if σ y ≤ t \sigma_y\le t σ y ≤ t , which proves the deadline property.
Conditional on the sign path, upper-side premiums are independent with the law of ψ + ( U ) \psi_+(U) ψ + ( U ) . At most y − 1 y-1 y − 1 of the N y + N_y^+ N y + available arrivals were removed before deadline y y y ; therefore the newly selected premium is no larger than the y y y th order statistic among those N y + N_y^+ N y + premiums. Lemma B.2 and the formula N y + = ( σ y + y ) / 2 N_y^+=(\sigma_y+y)/2 N y + = ( σ y + y ) /2 give the conditional bound
E [ y th selected premium ∣ ( ξ s ) s ≤ T ] ≤ A + ( y N y + + 1 ) 1 / κ ≤ C F ( y σ y + 1 ) 1 / κ . \begin{aligned}
\mathbb{E}[y\text{th selected premium}\mid(\xi_s)_{s\le T}]\le A_+\left(\frac{y}{N_y^++1}\right)^{1/\kappa} \\
&\le C_F\left(\frac{y}{\sigma_y+1}\right)^{1/\kappa}.
\end{aligned} E [ y th selected premium ∣ ( ξ s ) s ≤ T ] ≤ A + ( N y + + 1 y ) 1/ κ ≤ C F ( σ y + 1 y ) 1/ κ .
Here (a) uses Lemma B.2 after at most y − 1 y-1 y − 1 removals, and (b) uses N y + + 1 ≥ ( σ y + 1 ) / 2 N_y^++1\ge(\sigma_y+1)/2 N y + + 1 ≥ ( σ y + 1 ) /2 and A + 2 1 / κ ≤ 2 A + A_+2^{1/\kappa}\le2A_+ A + 2 1/ κ ≤ 2 A + , so the constant depends only on F F F . Summing over attained deadlines and then applying Lemma B.3 proves the premium bound.
The upper selection makes inventory nonnegative but generally leaves S T + M T S_T+M_T S T + M T units at time step T T T . We remove this surplus by holding at selected lower-side prices instead of buying. Applying the same deadline construction in reverse time ensures that these holds occur late enough to preserve nonnegative inventory.
Lemma B.5. Put H T : = S T + M T H_T := S_T + M_T H T := S T + M T . There exists a constant C F < ∞ C_F < \infty C F < ∞ , depending only on F F F , such that for every T ≥ 2 T \ge2 T ≥ 2 there is a hindsight selection of exactly H T H_T H T lower-side arrivals with the following properties.
(a) The expected total edge premium is at most C F Φ κ ( T ) C_F\Phi_\kappa(T) C F Φ κ ( T ) .
(b) Together with the upper selection of Lemma B.4 , the selected holds produce a path that is nonnegative at every time and ends at zero.
Proof. Define the reversed walk S ^ r : = S T − r − S T \widehat{S}_r := S_{T-r} - S_T S r := S T − r − S T for 0 ≤ r ≤ T 0 \le r \le T 0 ≤ r ≤ T . Its increments are − ξ T − r + 1 -\xi_{T-r+1} − ξ T − r + 1 , so it is again a simple symmetric walk. An upper-side arrival for the reversed walk is precisely a lower-side arrival in forward time, and
max 0 ≤ r ≤ T ( − S ^ r ) + = ( a ) max 0 ≤ s ≤ T ( S T − S s ) + = ( b ) S T + M T = H T . \max_{0\le r\le T}(-\widehat{S}_r)^+ \mathrel{\overset{(a)}{=}} \max_{0\le s\le T}(S_T-S_s)^+ \mathrel{\overset{(b)}{=}} S_T+M_T=H_T. 0 ≤ r ≤ T max ( − S r ) + = ( a ) 0 ≤ s ≤ T max ( S T − S s ) + = ( b ) S T + M T = H T .
Here (a) substitutes the reversed walk and reindexes s = T − r s=T-r s = T − r , and (b) uses min s ≤ T S s = − M T ≤ S T \min_{s\le T}S_s=-M_T\le S_T min s ≤ T S s = − M T ≤ S T . Apply the greedy construction in Lemma B.4 to S ^ \widehat{S} S . It selects exactly H T H_T H T forward lower-side arrivals and, by Lemma B.2 applied to the lower-side law ψ − ( U ) \psi_-(U) ψ − ( U ) and the same deadline-sum calculation, has expected premium at most C F Φ κ ( T ) C_F\Phi_\kappa(T) C F Φ κ ( T ) .
Let L t σ L_t^\sigma L t σ be the number of these selected lower arrivals up to forward time t t t . The reversed deadline property at reverse time T − t T-t T − t is, on writing R t r e v : = max s ∈ [ t , T ] ( S T − S s ) + R_t^{\mathrm{rev}}:=\max_{s\in[t,T]}(S_T-S_s)^+ R t rev := max s ∈ [ t , T ] ( S T − S s ) + , L T σ − L t σ ≥ R t r e v L_T^\sigma-L_t^\sigma\ge R_t^{\mathrm{rev}} L T σ − L t σ ≥ R t rev . Since L T σ = H T L_T^\sigma=H_T L T σ = H T , it follows that
L t σ ≤ S T + M T − R t r e v . (13) L_t^\sigma\le S_T+M_T-R_t^{\mathrm{rev}}. \tag*{(13)} L t σ ≤ S T + M T − R t rev . (13)
We now verify the forward-time inequality
L t σ ≤ S t + M t . (14) L_t^\sigma\le S_t+M_t. \tag*{(14)} L t σ ≤ S t + M t . (14)
If M t = M T M_t=M_T M t = M T , then R t r e v ≥ ( S T − S t ) + R_t^{\mathrm{rev}}\ge(S_T-S_t)^+ R t rev ≥ ( S T − S t ) + , and hence R t r e v ≥ S T + M T − S t − M t R_t^{\mathrm{rev}}\ge S_T+M_T-S_t-M_t R t rev ≥ S T + M T − S t − M t . If M t < M T M_t<M_T M t < M T , a time s ⋆ ∈ [ t , T ] s^\star\in[t,T] s ⋆ ∈ [ t , T ] satisfies S s ⋆ = − M T S_{s^\star}=-M_T S s ⋆ = − M T , so R t r e v ≥ S T + M T R_t^{\mathrm{rev}}\ge S_T+M_T R t rev ≥ S T + M T . Since S t + M t ≥ 0 S_t+M_t\ge0 S t + M t ≥ 0 , the latter bound also gives R t r e v ≥ S T + M T − S t − M t R_t^{\mathrm{rev}}\ge S_T+M_T-S_t-M_t R t rev ≥ S T + M T − S t − M t . Substitution into (App.10) proves (App.11) in both cases.
Let U t σ U_t^\sigma U t σ be the count from the upper selection. Its deadline property gives U t σ ≥ M t U_t^\sigma\ge M_t U t σ ≥ M t . Therefore
y t σ = S t + U t σ − L t σ ≥ ( a ) S t + M t − L t σ ≥ ( b ) 0. y_t^\sigma=S_t+U_t^\sigma-L_t^\sigma\mathrel{\overset{(a)}{\ge}} S_t+M_t-L_t^\sigma\mathrel{\overset{(b)}{\ge}}0. y t σ = S t + U t σ − L t σ ≥ ( a ) S t + M t − L t σ ≥ ( b ) 0.
where (a) uses the upper deadline property U t σ ≥ M t U_t^\sigma\ge M_t U t σ ≥ M t , and (b) is (App.11). At time step T T T , U T σ = M T U_T^\sigma=M_T U T σ = M T and L T σ = S T + M T L_T^\sigma=S_T+M_T L T σ = S T + M T , so y T σ = 0 y_T^\sigma=0 y T σ = 0 .
:::
Proposition B.6. There exist finite constants C F , ρ C_{F,\rho} C F , ρ and C ρ C_\rho C ρ , depending only on their displayed parameters, such that for every T ≥ 2 T\ge2 T ≥ 2 there is a capacity-feasible hindsight policy σ \sigma σ satisfying:
(a) Its expected correction cost obeys E [ C T ( σ ) ] ≤ Δ E [ M T ] + C F , ρ Φ κ ( T ) + C ρ \mathbb{E}[C_T(\sigma)]\le\Delta\mathbb{E}[M_T]+C_{F,\rho}\Phi_\kappa(T)+C_\rho E [ C T ( σ )] ≤ Δ E [ M T ] + C F , ρ Φ κ ( T ) + C ρ .
(b) C T ( π h s ) ≤ C T ( σ ) C_T(\pi^{\mathrm{hs}}) \le C_T(\sigma) C T ( π hs ) ≤ C T ( σ ) pathwise.
Proof. First use the upper and lower selected holds from Lemmas B.4 and B.5. They define actions in { − 1 , 0 , 1 } \{-1,0,1\} { − 1 , 0 , 1 } : a selected arrival is held, and every unselected arrival uses the action prescribed by the static median-sign rule. The path is nonnegative and cyclic by Lemma B.5. It remains to enforce the capacity.
Define G T : = { max 0 ≤ t ≤ T ∣ S t ∣ ≤ ρ T / 4 } \mathcal{G}_T := \{\max_{0 \le t \le T} |S_t| \le\rho T/4\} G T := { max 0 ≤ t ≤ T ∣ S t ∣ ≤ ρT /4 } . The maximal Hoeffding inequality for a Rademacher walk gives P ( G T c ) ≤ 2 exp ( − ρ 2 T 32 ) \mathbb{P}(\mathcal{G}_T^{\mathrm{c}}) \le2\exp\left(-\frac{\rho^2T}{32}\right) P ( G T c ) ≤ 2 exp ( − 32 ρ 2 T ) . On G T \mathcal{G}_T G T , U t σ ≤ U T σ = M T U_t^\sigma\le U_T^\sigma= M_T U t σ ≤ U T σ = M T and L t σ ≥ 0 L_t^\sigma\ge0 L t σ ≥ 0 , whence
y t σ = S t + U t σ − L t σ ≤ ( a ) ∣ S t ∣ + M T ≤ 2 max s ≤ T ∣ S s ∣ ≤ ( b ) ρ T 2 ≤ B . y_t^\sigma= S_t + U_t^\sigma- L_t^\sigma\overset{(a)}{\le} |S_t| + M_T \le2\max_{s \le T}|S_s| \overset{(b)}{\le} \frac{\rho T}{2} \le B. y t σ = S t + U t σ − L t σ ≤ ( a ) ∣ S t ∣ + M T ≤ 2 s ≤ T max ∣ S s ∣ ≤ ( b ) 2 ρT ≤ B .
Here (a) uses U t σ ≤ M T U_t^\sigma\le M_T U t σ ≤ M T and L t σ ≥ 0 L_t^\sigma\ge0 L t σ ≥ 0 , and (b) uses the defining inequality of G T \mathcal{G}_T G T . On G T c \mathcal{G}_T^{\mathrm{c}} G T c , replace the selected path by the all-hold path, which stays at zero and is feasible. This event is known to the hindsight comparator because it depends on the complete sign path.
On G T \mathcal{G}_T G T , the upper holds pay the fixed amount Δ M T \Delta M_T Δ M T . The two expected edge-premium bounds are each C F Φ κ ( T ) C_F\Phi_\kappa(T) C F Φ κ ( T ) . On G T c \mathcal{G}_T^{\mathrm{c}} G T c , every all-hold correction costs at most one, so C T ( σ ) ≤ T C_T(\sigma) \le T C T ( σ ) ≤ T . Multiplying by the preceding Hoeffding bound on P ( G T c ) \mathbb{P}(\mathcal{G}_T^{\mathrm{c}}) P ( G T c ) and enlarging the constant proves the expected-cost bound. Finally, the common-term revenue identity in the proof of Lemma B.1 shows that maximizing hindsight reward over feasible policies is equivalent to minimizing C T C_T C T . Since σ \sigma σ is feasible, the pathwise inequality for π h s \pi^{\mathrm{hs}} π hs follows.
Reflected-walk boundary estimates
To compare an online policy with this hindsight path, we need two properties of the walk generated by the static median-sign rule: how often it is close to its running minimum, and how likely it is to avoid that minimum after moving away.
Put Y ‾ t : = S t + M t \overline{Y}_t := S_t + M_t Y t := S t + M t for 0 ≤ t ≤ T 0 \le t \le T 0 ≤ t ≤ T . It is the inventory of the static median-sign rule with sales blocked at zero, ignoring the upper boundary and terminal requirement. It obeys Y ‾ t = 0 ∨ ( Y ‾ t − 1 + ξ t ) \overline{Y}_t = 0 \vee(\overline{Y}_{t-1} + \xi_t) Y t = 0 ∨ ( Y t − 1 + ξ t ) and starts at zero.
Lemma B.7. There exist universal constants c , C > 0 c, C > 0 c , C > 0 such that for every T ≥ 1 T \ge1 T ≥ 1 :
(a) For every L ≥ 0 L \ge0 L ≥ 0 , ∑ t = 1 T P ( Y ‾ t − 1 ≤ L ) ≤ C ( L + 1 ) T \sum_{t=1}^{T} \mathbb{P}(\overline{Y}_{t-1} \le L) \le C(L+1)\sqrt{T} ∑ t = 1 T P ( Y t − 1 ≤ L ) ≤ C ( L + 1 ) T .
(b) E [ M T ] ≥ c T \mathbb{E}[M_T] \ge c\sqrt{T} E [ M T ] ≥ c T .
Proof. The reflection principle gives, for every integer j ≥ 0 j \ge0 j ≥ 0 ,
P ( Y ‾ t = j ) = P ( S t = j ) + P ( S t = − j − 1 ) . \mathbb{P}(\overline{Y}_t = j) = \mathbb{P}(S_t = j) + \mathbb{P}(S_t = -j-1). P ( Y t = j ) = P ( S t = j ) + P ( S t = − j − 1 ) .
The binomial coefficient bound sup m ∈ Z P ( S t = m ) ≤ C / t + 1 \sup_{m\in\mathbb{Z}} \mathbb{P}(S_t=m)\le C/\sqrt{t+1} sup m ∈ Z P ( S t = m ) ≤ C / t + 1 therefore yields P ( Y ‾ t ≤ L ) ≤ C ( L + 1 ) / t + 1 \mathbb{P}(\overline{Y}_t\le L)\le C(L+1)/\sqrt{t+1} P ( Y t ≤ L ) ≤ C ( L + 1 ) / t + 1 . Summing this estimate for t = 0 , … , T − 1 t=0,\ldots,T-1 t = 0 , … , T − 1 and using ∑ t = 0 T − 1 ( t + 1 ) − 1 / 2 ≤ 2 T \sum_{t=0}^{T-1}(t+1)^{-1/2}\le2\sqrt{T} ∑ t = 0 T − 1 ( t + 1 ) − 1/2 ≤ 2 T proves the boundary-occupation claim.
For the second claim, M T ≥ ( − S T ) + M_T\ge(-S_T)^+ M T ≥ ( − S T ) + and symmetry gives E [ ( − S T ) + ] = E ∣ S T ∣ / 2 \mathbb{E}[(-S_T)^+]=\mathbb{E}|S_T|/2 E [( − S T ) + ] = E ∣ S T ∣/2 . We bound this absolute moment using E S T 2 = T \mathbb{E}S_T^2=T E S T 2 = T and E S T 4 = 3 T 2 − 2 T ≤ 3 T 2 \mathbb{E}S_T^4=3T^2-2T\le3T^2 E S T 4 = 3 T 2 − 2 T ≤ 3 T 2 . Paley–Zygmund applied to S T 2 S_T^2 S T 2 gives
P ( S T 2 ≥ T / 2 ) ≥ ( 1 − 1 / 2 ) 2 ( E S T 2 ) 2 E S T 4 ≥ 1 12 . \mathbb{P}(S_T^2\ge T/2)\ge\frac{(1-1/2)^2(\mathbb{E}S_T^2)^2}{\mathbb{E}S_T^4}\ge\frac{1}{12}. P ( S T 2 ≥ T /2 ) ≥ E S T 4 ( 1 − 1/2 ) 2 ( E S T 2 ) 2 ≥ 12 1 .
Here ( a ) (a) ( a ) applies Paley–Zygmund to the nonnegative variable S T 2 S_T^2 S T 2 at half its mean, and ( b ) (b) ( b ) substitutes the second- and fourth-moment bounds. Thus E ∣ S T ∣ ≥ T / 2 / 12 \mathbb{E}|S_T|\ge\sqrt{T/2}/12 E ∣ S T ∣ ≥ T /2 /12 , proving the reflection-size claim.
Lemma B.8. Let X s = x + S s X_s=x+S_s X s = x + S s be a simple symmetric random walk started from an integer x ≥ 1 x\ge1 x ≥ 1 , and let τ 0 : = inf { s ≥ 0 : X s = 0 } \tau_0:=\inf\{s\ge0:X_s=0\} τ 0 := inf { s ≥ 0 : X s = 0 } . There is a universal c > 0 c>0 c > 0 such that, for every s ≥ 0 s\ge0 s ≥ 0 , P x ( τ 0 > s ) ≥ c ( 1 ∧ ( x / s + 1 ) ) \mathbb{P}_x(\tau_0>s)\ge c(1\wedge(x/\sqrt{s+1})) P x ( τ 0 > s ) ≥ c ( 1 ∧ ( x / s + 1 )) .
Proof. Reflection of paths at their first hit of zero gives
P x ( τ 0 > s ) = P ( 1 − x ≤ S s ≤ x ) , \mathbb{P}_x(\tau_0>s)=\mathbb{P}(1-x\le S_s\le x), P x ( τ 0 > s ) = P ( 1 − x ≤ S s ≤ x ) ,
with the lattice parity inherited from S s S_s S s . If 1 ≤ x ≤ s + 1 / 4 1\le x\le\sqrt{s+1}/4 1 ≤ x ≤ s + 1 /4 , the interval [ 1 − x , x ] [1-x,x] [ 1 − x , x ] contains at least c 0 x c_0x c 0 x points of the admissible parity, all lying within distance s + 1 \sqrt{s+1} s + 1 of zero. The elementary central-binomial lower bound is P ( S s = j ) ≥ c 1 / s + 1 \mathbb{P}(S_s=j)\ge c_1/\sqrt{s+1} P ( S s = j ) ≥ c 1 / s + 1 for every such admissible j j j . Summing gives c x / s + 1 cx/\sqrt{s+1} c x / s + 1 . If x > s + 1 / 4 x>\sqrt{s+1}/4 x > s + 1 /4 , monotonicity of the survival probability in the starting height and the preceding estimate at an integer height of order s + 1 \sqrt{s+1} s + 1 give a positive constant. Adjusting c c c handles the finitely many cases in which s + 1 / 4 < 1 \sqrt{s+1}/4<1 s + 1 /4 < 1 .
Scarcity and the last return
An online policy faces a tradeoff. Near the boundary, inexpensive upper-side corrections are scarce. Far from the boundary, an inexpensive correction may turn out to be unnecessary: if the free walk never returns to its running minimum, that correction increases the total number of corrections beyond the minimum required for feasibility. We quantify these two costs separately.
Fix an integer L L L satisfying 2 ≤ L ≤ T 2\le L\le\sqrt{T} 2 ≤ L ≤ T and a price threshold z ∈ ( 0 , z 0 ] z\in(0,z_0] z ∈ ( 0 , z 0 ] . Split all upper-side correction units into
U i n : = ∑ t = 1 T u t 1 { Z t ≤ z , Y ‾ t − 1 ≤ L } , U_{\mathrm{in}}:=\sum_{t=1}^{T}u_t\mathbf{1}\{Z_t\le z,\overline{Y}_{t-1}\le L\}, U in := t = 1 ∑ T u t 1 { Z t ≤ z , Y t − 1 ≤ L } ,
U o u t : = ∑ t = 1 T u t 1 { Z t ≤ z , Y ‾ t − 1 > L } . U_{\mathrm{out}}:=\sum_{t=1}^{T}u_t\mathbf{1}\{Z_t\le z,\overline{Y}_{t-1}>L\}. U out := t = 1 ∑ T u t 1 { Z t ≤ z , Y t − 1 > L } .
U e x p : = ∑ t = 1 T u t 1 { Z t > z } . (15) U_{\mathrm{exp}} := \sum_{t=1}^{T} u_t 1\{Z_t > z\}. \tag*{(15)} U exp := t = 1 ∑ T u t 1 { Z t > z } . (15)
Because u t = 0 u_t=0 u t = 0 off the upper side, these three variables partition U T U_T U T . Define the excess correction count A T : = U T − M T ≥ 0 A_T := U_T-M_T \ge0 A T := U T − M T ≥ 0 .
Lemma B.9. For the fixed integer 2 ≤ L ≤ T 2 \le L \le\sqrt{T} 2 ≤ L ≤ T and z ∈ ( 0 , z 0 ] z \in(0,z_0] z ∈ ( 0 , z 0 ] , there exists a constant C F < ∞ C_F < \infty C F < ∞ , depending only on F F F , such that E [ U i n ] ≤ C F z κ ( L + 1 ) T \mathbb{E}[U_{\mathrm{in}}] \le C_F z^\kappa(L+1)\sqrt{T} E [ U in ] ≤ C F z κ ( L + 1 ) T .
Proof. The event involving Y ‾ t − 1 \overline{Y}_{t-1} Y t − 1 is measurable with respect to the past signs, whereas p t p_t p t is independent of that past. Thus
E [ U i n ] ≤ ( a ) 2 ∑ t = 1 T P ( ξ t = − 1 , Z t ≤ z , Y ‾ t − 1 ≤ L ) \mathbb{E}[U_{\mathrm{in}}] \overset{(a)}{\le} 2\sum_{t=1}^{T}\mathbb{P}(\xi_t=-1,Z_t\le z,\overline{Y}_{t-1}\le L) E [ U in ] ≤ ( a ) 2 t = 1 ∑ T P ( ξ t = − 1 , Z t ≤ z , Y t − 1 ≤ L )
≤ ( b ) 2 K F z κ ∑ t = 1 T P ( Y ‾ t − 1 ≤ L ) ≤ ( c ) C F z κ ( L + 1 ) T , \overset{(b)}{\le} 2K_Fz^\kappa\sum_{t=1}^{T}\mathbb{P}(\overline{Y}_{t-1}\le L) \overset{(c)}{\le} C_Fz^\kappa(L+1)\sqrt{T}, ≤ ( b ) 2 K F z κ t = 1 ∑ T P ( Y t − 1 ≤ L ) ≤ ( c ) C F z κ ( L + 1 ) T ,
where (a) uses u t ≤ 2 u_t\le2 u t ≤ 2 and u t = 0 u_t=0 u t = 0 off the upper side, (b) uses the stated independence and P ( ξ t = − 1 , Z t ≤ z ) ≤ K F z κ \mathbb{P}(\xi_t=-1,Z_t\le z)\le K_Fz^\kappa P ( ξ t = − 1 , Z t ≤ z ) ≤ K F z κ from (App.8), and (c) uses the boundary-occupation bound in Lemma B.7 .
Lemma B.10. For the fixed integer 2 ≤ L ≤ T 2 \le L \le\sqrt{T} 2 ≤ L ≤ T and z ∈ ( 0 , z 0 ] z \in(0,z_0] z ∈ ( 0 , z 0 ] , there exists a universal constant c > 0 c>0 c > 0 such that E [ A T ] ≥ c ( L / T ) E [ U o u t ] \mathbb{E}[A_T]\ge c(L/\sqrt{T})\mathbb{E}[U_{\mathrm{out}}] E [ A T ] ≥ c ( L / T ) E [ U out ] .
Proof. Let g T : = max { 0 ≤ t ≤ T : Y ‾ t = 0 } g_T:=\max\{0\le t\le T:\overline{Y}_t=0\} g T := max { 0 ≤ t ≤ T : Y t = 0 } be the last return of the reflected free walk to zero. Since M t M_t M t is constant after g T g_T g T , M T = M g T M_T=M_{g_T} M T = M g T . Feasibility and (App.4) imply U g T ≥ M g T U_{g_T}\ge M_{g_T} U g T ≥ M g T . Therefore, pathwise,
A T = U T − M T = ( a ) ( U g T − M g T ) + ∑ t > g T u t A_T=U_T-M_T \overset{(a)}{=} (U_{g_T}-M_{g_T})+\sum_{t>g_T}u_t A T = U T − M T = ( a ) ( U g T − M g T ) + t > g T ∑ u t
≥ ( b ) ∑ t = 1 T u t 1 { t > g T } . (16) \overset{(b)}{\ge}\sum_{t=1}^{T}u_t1\{t>g_T\}. \tag*{(16)} ≥ ( b ) t = 1 ∑ T u t 1 { t > g T } . (16)
Here (a) uses M T = M g T M_T=M_{g_T} M T = M g T and splits the correction sum at g T g_T g T , and (b) uses U g T ≥ M g T U_{g_T}\ge M_{g_T} U g T ≥ M g T .
For each t t t , put I t : = 1 { ξ t = − 1 , Z t ≤ z , Y ‾ t − 1 > L } I_t:=1\{\xi_t=-1,Z_t\le z,\overline{Y}_{t-1}>L\} I t := 1 { ξ t = − 1 , Z t ≤ z , Y t − 1 > L } . The product u t I t u_tI_t u t I t is F t \mathcal{F}_t F t -measurable. On I t = 1 I_t=1 I t = 1 , Y ‾ t − 1 \overline{Y}_{t-1} Y t − 1 is an integer at least L + 1 L+1 L + 1 and the current sign is − 1 -1 − 1 , so Y ‾ t ≥ L \overline{Y}_t\ge L Y t ≥ L . Conditional on F t \mathcal{F}_t F t , future signs are fresh Rademacher variables. Until its next hit of zero, the reflected walk starting from Y ‾ t \overline{Y}_t Y t is an ordinary simple walk. Lemma B.8 , L ≤ T L\le\sqrt{T} L ≤ T , and T − t + 1 ≤ T + 1 T-t+1\le T+1 T − t + 1 ≤ T + 1 therefore give
P ( t > g T ∣ F t ) ≥ c ( 1 ∧ L T − t + 1 ) ≥ c ′ L T on { I t = 1 } . (17) \mathbb{P}(t>g_T\mid\mathcal{F}_t)\ge c\left(1\wedge\frac{L}{\sqrt{T-t+1}}\right)\ge c'\frac{L}{\sqrt{T}}\quad\text{on }\{I_t=1\}. \tag*{(17)} P ( t > g T ∣ F t ) ≥ c ( 1 ∧ T − t + 1 L ) ≥ c ′ T L on { I t = 1 } . (17)
Using (App.13), the tower property, and (App.14),
E [ A T ] ≥ ( a ) ∑ t = 1 T E [ u t 1 { t > g T } ] = ( b ) ∑ t = 1 T E [ u t P ( t > g T ∣ F t ) ] ≥ ( c ) c ′ L T ∑ t = 1 T E [ u t ] = c ′ L T E [ U o u t ] . \begin{aligned}
\mathbb{E}[A_T] &\overset{(a)}{\ge} \sum_{t=1}^{T}\mathbb{E}[u_t\mathbb{1}\{t > g_T\}] \\
&\overset{(b)}{=} \sum_{t=1}^{T}\mathbb{E}[u_t\mathbb{P}(t > g_T \mid\mathcal{F}_t)] \\
&\overset{(c)}{\ge} c'\frac{L}{\sqrt{T}}\sum_{t=1}^{T}\mathbb{E}[u_t] = c'\frac{L}{\sqrt{T}}\mathbb{E}[U_{\mathrm{out}}].
\end{aligned} E [ A T ] ≥ ( a ) t = 1 ∑ T E [ u t 1 { t > g T }] = ( b ) t = 1 ∑ T E [ u t P ( t > g T ∣ F t )] ≥ ( c ) c ′ T L t = 1 ∑ T E [ u t ] = c ′ T L E [ U out ] .
Here (a) restricts the nonnegative sum in (App.13), (b) uses F t \mathcal{F}_t F t -measurability and the tower property, and (c) uses (App.14).
Balancing scarcity and excess corrections
We now choose the inventory layer and the price-premium cutoff together. The choice makes cheap corrections outside the layer at least as costly as the expensive corrections they replace. The scarcity of cheap corrections inside the layer then gives the lower bound.
Proof of Theorem 3.2 . The common-term identity in Lemma B.1, optimality of π h s \pi^{\mathrm{hs}} π hs , and Proposition B.6 imply
Reg ( π ; B , T , 0 ) = E [ C T ( π ) − C T ( π h s ) ] \operatorname{Reg}(\pi; B,T,0) = \mathbb{E}[C_T(\pi)-C_T(\pi^{\mathrm{hs}})] Reg ( π ; B , T , 0 ) = E [ C T ( π ) − C T ( π hs )]
≥ ( a ) Δ E [ A T ] + z E [ U e x p ] − C F , ρ Φ κ ( T ) − C ρ . (18) \overset{(a)}{\ge} \Delta\mathbb{E}[A_T] + z\mathbb{E}[U_{\mathrm{exp}}] - C_{F,\rho}\Phi_\kappa(T) - C_\rho. \tag*{(18)} ≥ ( a ) Δ E [ A T ] + z E [ U exp ] − C F , ρ Φ κ ( T ) − C ρ . (18)
In step (a), the online upper corrections contribute at least Δ U T + z U e x p \Delta U_T + zU_{\mathrm{exp}} Δ U T + z U exp , the online lower premium is nonnegative, the comparator contributes at most Δ E M T + C Φ κ ( T ) + C \Delta\mathbb{E}M_T + C\Phi_\kappa(T) + C Δ E M T + C Φ κ ( T ) + C , and A T = U T − M T A_T = U_T - M_T A T = U T − M T .
The partition (App.12) and U T = M T + A T U_T = M_T + A_T U T = M T + A T give
U e x p = M T + A T − U i n − U o u t . (19) U_{\mathrm{exp}} = M_T + A_T - U_{\mathrm{in}} - U_{\mathrm{out}}. \tag*{(19)} U exp = M T + A T − U in − U out . (19)
Substituting (App.16) into (App.15) and dropping the nonnegative term z E [ A T ] z\mathbb{E}[A_T] z E [ A T ] yields
Reg ( π ; B , T , 0 ) ≥ Δ E [ A T ] + z E [ M T ] − z E [ U i n ] − z E [ U o u t ] − C Φ κ ( T ) − C \operatorname{Reg}(\pi; B,T,0) \ge\Delta\mathbb{E}[A_T] + z\mathbb{E}[M_T] - z\mathbb{E}[U_{\mathrm{in}}] - z\mathbb{E}[U_{\mathrm{out}}] - C\Phi_\kappa(T) - C Reg ( π ; B , T , 0 ) ≥ Δ E [ A T ] + z E [ M T ] − z E [ U in ] − z E [ U out ] − C Φ κ ( T ) − C
≥ ( b ) ( c Δ L T − z ) E [ U o u t ] + z E [ M T ] − z E [ U i n ] − C Φ κ ( T ) − C . (20) \overset{(b)}{\ge} \left(c\Delta\frac{L}{\sqrt{T}}-z\right)\mathbb{E}[U_{\mathrm{out}}] + z\mathbb{E}[M_T] - z\mathbb{E}[U_{\mathrm{in}}] - C\Phi_\kappa(T) - C. \tag*{(20)} ≥ ( b ) ( c Δ T L − z ) E [ U out ] + z E [ M T ] − z E [ U in ] − C Φ κ ( T ) − C . (20)
where (b) uses Lemma B.10.
Choose
z : = c Δ 2 L T . z := \frac{c\Delta}{2}\frac{L}{\sqrt{T}}. z := 2 c Δ T L .
For the value of L L L below, z ≤ z 0 z \le z_0 z ≤ z 0 for all sufficiently large T T T . The coefficient of E [ U o u t ] \mathbb{E}[U_{\mathrm{out}}] E [ U out ] in (App.17) is nonnegative. Lemmas B.7 and B.9, followed by this choice of z z z , therefore give
Reg ( π ; B , T , 0 ) ≥ c 1 L − C z κ + 1 ( L + 1 ) T − C Φ κ ( T ) − C ≥ c 1 L − c 2 L κ + 2 T κ / 2 − C Φ κ ( T ) − C . (21) \begin{aligned}
\operatorname{Reg}(\pi;B,T,0) &\ge c_1L-Cz^{\kappa+1}(L+1)\sqrt{T}-C\Phi_\kappa(T)-C \\
&\ge c_1L-c_2\frac{L^{\kappa+2}}{T^{\kappa/2}}-C\Phi_\kappa(T)-C. \tag*{(21)}
\end{aligned} Reg ( π ; B , T , 0 ) ≥ c 1 L − C z κ + 1 ( L + 1 ) T − C Φ κ ( T ) − C ≥ c 1 L − c 2 T κ /2 L κ + 2 − C Φ κ ( T ) − C . (21)
Here (c) uses E M T ≥ c T EM_T \ge c\sqrt{T} E M T ≥ c T and Lemma B.9; (d) uses L ≥ 2 L \ge2 L ≥ 2 and z ≍ Δ L / T z \asymp_{\Delta} L/\sqrt{T} z ≍ Δ L / T .
Let γ : = κ / ( 2 ( κ + 1 ) ) \gamma:= \kappa/(2(\kappa+1)) γ := κ / ( 2 ( κ + 1 )) and L : = ⌊ a T γ ⌋ L := \lfloor aT^\gamma\rfloor L := ⌊ a T γ ⌋ , where a ∈ ( 0 , 1 ) a \in(0,1) a ∈ ( 0 , 1 ) is fixed below. For sufficiently large T T T , 2 ≤ L ≤ T 2 \le L \le\sqrt{T} 2 ≤ L ≤ T , z ≤ z 0 z \le z_0 z ≤ z 0 , and L ≥ ( a / 2 ) T γ L \ge(a/2)T^\gamma L ≥ ( a /2 ) T γ . Moreover, L κ + 2 / T κ / 2 ≤ a κ + 2 T γ L^{\kappa+2}/T^{\kappa/2} \le a^{\kappa+2}T^\gamma L κ + 2 / T κ /2 ≤ a κ + 2 T γ because γ ( κ + 2 ) − κ / 2 = γ \gamma(\kappa+2)-\kappa/2=\gamma γ ( κ + 2 ) − κ /2 = γ . Choose a a a sufficiently small that c 2 a κ + 2 ≤ c 1 a / 4 c_2a^{\kappa+2} \le c_1a/4 c 2 a κ + 2 ≤ c 1 a /4 . The first two terms in (App.18) are then at least ( c 1 a / 4 ) T γ (c_1a/4)T^\gamma ( c 1 a /4 ) T γ for all sufficiently large T T T .
It remains to compare the hindsight premium. If κ = 1 \kappa=1 κ = 1 , then Φ κ ( T ) = log T = o ( T 1 / 4 ) \Phi_\kappa(T)=\log T=o(T^{1/4}) Φ κ ( T ) = log T = o ( T 1/4 ) . If κ > 1 \kappa>1 κ > 1 , then γ − ( κ − 1 ) / ( 2 κ ) = 1 / ( 2 κ ( κ + 1 ) ) > 0 \gamma-(\kappa-1)/(2\kappa)=1/(2\kappa(\kappa+1))>0 γ − ( κ − 1 ) / ( 2 κ ) = 1/ ( 2 κ ( κ + 1 )) > 0 , so again Φ κ ( T ) = o ( T γ ) \Phi_\kappa(T)=o(T^\gamma) Φ κ ( T ) = o ( T γ ) . Enlarging the threshold T 0 ( F , ρ ) T_0(F,\rho) T 0 ( F , ρ ) absorbs these lower-order terms and all preceding endpoint restrictions. Since γ = ( β + 1 ) / ( 2 β + 4 ) \gamma=(\beta+1)/(2\beta+4) γ = ( β + 1 ) / ( 2 β + 4 ) , this proves the bound in Theorem 3.2 .
The bound combines the exact accounting in Lemma B.1 with the feasible hindsight comparison in Proposition B.6 . Lemma B.9 limits cheap corrections near the floor, while Lemma B.10 bounds the cost of making them farther away. Every constant is independent of T T T and of the online policy; it may depend on the fixed distribution F F F and on ρ \rho ρ . In particular, the positive gap and the two local edge constants are held fixed as T T T varies.
Certainty equivalence for uniform prices
We prove Proposition 4.1 by comparing certainty equivalence with the static median-sign rule. From an interior state, the policy’s restoring drift keeps inventory away from the physical boundaries. Starting with zero inventory, the same rule repeatedly rejects high-price selling opportunities. Throughout, prices p 1 , … , p T p_1,\ldots,p_T p 1 , … , p T are independent and uniform on [ 0 , 1 ] [0,1] [ 0 , 1 ] , and F t = σ ( p 1 , … , p t ) \mathcal{F}_t=\sigma(p_1,\ldots,p_t) F t = σ ( p 1 , … , p t ) , with F 0 \mathcal{F}_0 F 0 trivial. We use the projected certainty-equivalent rule in § 4.1 . Constants do not depend on T T T , B B B , y 0 y_0 y 0 unless a dependence is indicated.
If ∣ y − y 0 ∣ ≤ τ t \lvert y-y_0\rvert\le\tau_t ∣ y − y 0 ∣ ≤ τ t , moving one unit toward y 0 y_0 y 0 , or holding when y = y 0 y=y_0 y = y 0 , belongs to A t ( y ; y 0 ) A_t(y;y_0) A t ( y ; y 0 ) . Hence this set is nonempty at every viable state. Its projection yields another viable state and changes inventory by at most one. Starting at y 0 y_0 y 0 , induction proves physical feasibility at every time and y T = y 0 y_T=y_0 y T = y 0 . In particular, ∣ y t − 1 − y 0 ∣ ≤ τ t \lvert y_{t-1}-y_0\rvert\le\tau_t ∣ y t − 1 − y 0 ∣ ≤ τ t , so the threshold belongs to [ 0 , 1 ] [0,1] [ 0 , 1 ] . The inventory is F t − 1 \mathcal{F}_{t-1} F t − 1 -measurable before the next price arrives, and that price is conditionally uniform.
We first verify that the threshold maximizes the fluid objective. Put q ∗ = 1 / 2 − d / ( 2 τ t ) q_* = 1/2-d/(2\tau_t) q ∗ = 1/2 − d / ( 2 τ t ) and x ∗ ( q ) = 1 x_*(q)=1 x ∗ ( q ) = 1 below q ∗ q_* q ∗ and − 1 -1 − 1 above it. It satisfies the fluid constraint. For uniform prices, any other feasible profile x x x satisfies
∫ 0 1 ( − q ) { x ∗ ( q ) − x ( q ) } d q = ( a ) ∫ 0 1 ( q ∗ − q ) { x ∗ ( q ) − x ( q ) } d q ≥ ( b ) 0. \int_0^1 (-q)\{x_*(q)-x(q)\}\,dq \overset{(a)}{=} \int_0^1 (q_*-q)\{x_*(q)-x(q)\}\,dq \overset{(b)}{\geq} 0. ∫ 0 1 ( − q ) { x ∗ ( q ) − x ( q )} d q = ( a ) ∫ 0 1 ( q ∗ − q ) { x ∗ ( q ) − x ( q )} d q ≥ ( b ) 0.
Here (a) uses the common integral of the two feasible profiles, and (b) uses the nonnegative integrand on both sides of q ∗ q_* q ∗ . At q ∗ = 0 q_*=0 q ∗ = 0 or one, the constraint fixes the profile almost everywhere. At an interior threshold, the same argument applies to an atomless general law using F − 1 ( q ∗ ) F^{-1}(q_*) F − 1 ( q ∗ ) as the multiplier. We now specialize to uniform prices to bound regret.
Lemma C.1. For a price vector with no observation equal to 1 / 2 1/2 1/2 , set x t ∗ = 1 { p t < 1 / 2 } − 1 { p t > 1 / 2 } x_t^*=1\{p_t<1/2\}-1\{p_t>1/2\} x t ∗ = 1 { p t < 1/2 } − 1 { p t > 1/2 } and H T = ∑ t = 1 T ∣ p t − 1 / 2 ∣ H_T=\sum_{t=1}^T |p_t-1/2| H T = ∑ t = 1 T ∣ p t − 1/2∣ . For any feasible cyclic trading path π \pi π , define its premium by
G T ( π ) = ∑ t = 1 T g t ( x t π ) , g t ( x ) = ∣ p t − 1 / 2 ∣ + ( p t − 1 / 2 ) x . G_T(\pi)=\sum_{t=1}^T g_t(x_t^\pi), \qquad g_t(x)=|p_t-1/2|+(p_t-1/2)x. G T ( π ) = t = 1 ∑ T g t ( x t π ) , g t ( x ) = ∣ p t − 1/2∣ + ( p t − 1/2 ) x . Then the following statements hold.
(a) For every x ∈ { − 1 , 0 , 1 } x\in\{-1,0,1\} x ∈ { − 1 , 0 , 1 } , 0 ≤ g t ( x ) ≤ 1 0\leq g_t(x)\leq1 0 ≤ g t ( x ) ≤ 1 .
(b) The realized reward satisfies R T ( π ; y 0 ) = H T − G T ( π ) R_T(\pi;y_0)=H_T-G_T(\pi) R T ( π ; y 0 ) = H T − G T ( π ) .
(c) For any other feasible path π c m p \pi^{\mathrm{cmp}} π cmp , including one that uses the entire price sequence,
Reg ( π ; B , T , y 0 ) ≤ E G T ( π ) , \operatorname{Reg}(\pi;B,T,y_0)\leq\mathbb{E}G_T(\pi), Reg ( π ; B , T , y 0 ) ≤ E G T ( π ) , Reg ( π ; B , T , y 0 ) ≥ E G T ( π ) − E G T ( π c m p ) \operatorname{Reg}(\pi;B,T,y_0)\geq\mathbb{E}G_T(\pi)-\mathbb{E}G_T(\pi^{\mathrm{cmp}}) Reg ( π ; B , T , y 0 ) ≥ E G T ( π ) − E G T ( π cmp )
Proof. The premium is zero for the action prescribed by the static median-sign rule, ∣ p t − 1 / 2 ∣ |p_t-1/2| ∣ p t − 1/2∣ for holding, and 2 ∣ p t − 1 / 2 ∣ 2|p_t-1/2| 2∣ p t − 1/2∣ for the opposite trade; hence the stated bounds. Cyclic feasibility gives ∑ t x t π = 0 \sum_t x_t^\pi=0 ∑ t x t π = 0 , and therefore
H T − G T ( π ) = ( a ) − ∑ t = 1 T ( p t − 1 / 2 ) x t π = ( b ) − ∑ t = 1 T p t x t π = R T ( π ; y 0 ) , H_T-G_T(\pi)\overset{(a)}{=}-\sum_{t=1}^T(p_t-1/2)x_t^\pi\overset{(b)}{=}-\sum_{t=1}^T p_t x_t^\pi=R_T(\pi;y_0), H T − G T ( π ) = ( a ) − t = 1 ∑ T ( p t − 1/2 ) x t π = ( b ) − t = 1 ∑ T p t x t π = R T ( π ; y 0 ) ,
where (a) uses the definition of the premium and (b) uses the zero total trade. The hindsight optimum also has nonnegative premium, proving the upper bound. It earns at least the revenue of any feasible comparison path, proving the comparison lower bound.
Interior states: contraction, concentration, and terminal projection
We first control the squared displacement of inventory from its target; this determines the expected premium of the tentative fluid trade. We then show that a linearly distant physical boundary is reached with exponentially small probability. Both bounds apply to the actual projected inventory, without conditioning on future boundary avoidance.
Lemma C.2. Let D t = y t C E − y 0 D_t = y_t^{\mathrm{CE}} - y_0 D t = y t CE − y 0 .
(a) For every 1 ≤ t ≤ T 1 \le t \le T 1 ≤ t ≤ T , E D t − 1 2 ≤ τ t \mathbb{E}D_{t-1}^{2} \le\tau_t E D t − 1 2 ≤ τ t , and D T = 0 D_T = 0 D T = 0 .
(b) For every z > 0 z > 0 z > 0 , P ( max 0 ≤ t ≤ T ∣ D t ∣ ≥ z ) ≤ 2 exp { − z 2 / ( 32 T ) } \mathbb{P}(\max_{0 \le t \le T} |D_t| \ge z) \le2\exp\{-z^2/(32T)\} P ( max 0 ≤ t ≤ T ∣ D t ∣ ≥ z ) ≤ 2 exp { − z 2 / ( 32 T )} .
Proof. Write x ~ t \tilde{x}_t x ~ t for the tentative action. Conditional on F t − 1 \mathcal{F}_{t-1} F t − 1 , its mean is − D t − 1 / τ t -D_{t-1}/\tau_t − D t − 1 / τ t and its square is one, outside a probability-zero price-tie event. The centered inventory after projection is the clipping of D t − 1 + x ~ t D_{t-1}+\tilde{x}_t D t − 1 + x ~ t to [ ( − y 0 ) ∨ ( − ( τ t − 1 ) ) , ( B − y 0 ) ∧ ( τ t − 1 ) ] [(-y_0)\vee(-(\tau_t-1)),(B-y_0)\wedge(\tau_t-1)] [( − y 0 ) ∨ ( − ( τ t − 1 )) , ( B − y 0 ) ∧ ( τ t − 1 )] . This interval contains zero, so clipping cannot increase the absolute value. For τ t ≥ 2 \tau_t \ge2 τ t ≥ 2 ,
E [ D t 2 ∣ F t − 1 ] ≤ ( a ) D t − 1 2 + 2 D t − 1 E [ x ~ t ∣ F t − 1 ] + 1 = ( 1 − 2 / τ t ) D t − 1 2 + 1 ( b ) . \mathbb{E}[D_t^2 \mid\mathcal{F}_{t-1}] \underset{(a)}{\le} D_{t-1}^2+2D_{t-1}\mathbb{E}[\tilde{x}_t\mid\mathcal{F}_{t-1}]+1
= \underset{(b)}{(1-2/\tau_t)D_{t-1}^2+1}. E [ D t 2 ∣ F t − 1 ] ( a ) ≤ D t − 1 2 + 2 D t − 1 E [ x ~ t ∣ F t − 1 ] + 1 = ( b ) ( 1 − 2/ τ t ) D t − 1 2 + 1 .
Here (a) uses clipping and expands the square, and (b) substitutes the conditional mean. The coefficient is nonnegative. Starting with E D 0 2 = 0 ≤ T \mathbb{E}D_0^2=0\le T E D 0 2 = 0 ≤ T , taking expectations and using the tower property gives inductively ( 1 − 2 / τ t ) τ t + 1 = τ t − 1 (1-2/\tau_t)\tau_t+1=\tau_t-1 ( 1 − 2/ τ t ) τ t + 1 = τ t − 1 as an upper bound for E D t 2 \mathbb{E}D_t^2 E D t 2 . This proves the moment claim through t = T − 1 t=T-1 t = T − 1 ; the final inventory is zero in centered coordinates by feasibility.
For concentration, put ξ t = x ~ t + D t − 1 / τ t \xi_t=\tilde{x}_t+D_{t-1}/\tau_t ξ t = x ~ t + D t − 1 / τ t , Z t = ∑ s = 1 t ξ s Z_t=\sum_{s=1}^{t}\xi_s Z t = ∑ s = 1 t ξ s , and Z 0 = 0 Z_0=0 Z 0 = 0 . Then Z t Z_t Z t is a martingale and ∣ ξ t ∣ ≤ 2 |\xi_t|\le2 ∣ ξ t ∣ ≤ 2 . Fix a time with D t > 0 D_t>0 D t > 0 , and let ℓ < t \ell<t ℓ < t be the last time at which D ℓ = 0 D_\ell=0 D ℓ = 0 . Such a time exists, and all subsequent inventory values up to t t t are positive: integer increments of size at most one cannot cross zero without visiting it. On this excursion, projection can only reduce a positive tentative value, and the predictable drift is nonpositive. Thus
D t ≤ ( a ) ∑ s = ℓ + 1 t x ~ s = ( b ) Z t − Z ℓ − ∑ s = ℓ + 1 t D s − 1 / τ s ≤ ( c ) Z t − Z ℓ . D_t \underset{(a)}{\le} \sum_{s=\ell+1}^{t}\tilde{x}_s \underset{(b)}{=} Z_t-Z_\ell-\sum_{s=\ell+1}^{t}D_{s-1}/\tau_s \underset{(c)}{\le} Z_t-Z_\ell. D t ( a ) ≤ s = ℓ + 1 ∑ t x ~ s ( b ) = Z t − Z ℓ − s = ℓ + 1 ∑ t D s − 1 / τ s ( c ) ≤ Z t − Z ℓ .
Here (a) sums the nonpositive projection corrections from D ℓ = 0 D_\ell=0 D ℓ = 0 , (b) substitutes the definition of Z Z Z , and (c) uses D s − 1 ≥ 0 D_{s-1}\ge0 D s − 1 ≥ 0 on this excursion. On a negative excursion the calculation with signs reversed gives − D t ≤ Z ℓ − Z t -D_t\le Z_\ell-Z_t − D t ≤ Z ℓ − Z t . Hence max t ∣ D t ∣ ≤ 2 max t ∣ Z t ∣ \max_t|D_t|\le2\max_t|Z_t| max t ∣ D t ∣ ≤ 2 max t ∣ Z t ∣ . The maximal Azuma–Hoeffding bound for martingale differences bounded by two gives P ( max t ∣ Z t ∣ ≥ z / 2 ) ≤ 2 e − z 2 / ( 32 T ) \mathbb{P}(\max_t|Z_t|\ge z/2)\le2e^{-z^2/(32T)} P ( max t ∣ Z t ∣ ≥ z /2 ) ≤ 2 e − z 2 / ( 32 T ) ; the pathwise comparison therefore proves the maximal-displacement claim.
Lemma C.3. Let B B B be the event that some tentative next inventory lies outside [ 0 , B ] [0,B] [ 0 , B ] , and put d 0 = y 0 ∧ ( B − y 0 ) d_0=y_0\wedge(B-y_0) d 0 = y 0 ∧ ( B − y 0 ) .
(a) On B c B^c B c , at most one tentative action is changed by projection.
(b) If d 0 > 0 d_0>0 d 0 > 0 , then P ( B ) ≤ 2 e − d 0 2 / ( 32 T ) \mathbb{P}(B)\le2e^{-d_0^2/(32T)} P ( B ) ≤ 2 e − d 0 2 / ( 32 T ) .
Proof. A unit tentative step leaves [ 0 , B ] [0,B] [ 0 , B ] only from inventory zero or B B B . Thus B B B implies max t ∣ D t ∣ ≥ d 0 \max_t|D_t|\ge d_0 max t ∣ D t ∣ ≥ d 0 , and the claimed probability bound follows from Lemma C.2.
On B c B^c B c , only the terminal cone can modify an action. If ∣ D t − 1 ∣ = τ t |D_{t-1}|=\tau_t ∣ D t − 1 ∣ = τ t , the threshold is zero or one and the action is necessarily inward, hence feasible. If ∣ D t − 1 ∣ ≤ τ t − 2 |D_{t-1}|\le\tau_t-2 ∣ D t − 1 ∣ ≤ τ t − 2 , both unit steps satisfy the cone. The only remaining possibility is ∣ D t − 1 ∣ = τ t − 1 |D_{t-1}|=\tau_t-1 ∣ D t − 1 ∣ = τ t − 1 : an outward step is changed to a hold. When τ t = 1 \tau_t=1 τ t = 1 and D t − 1 = 0 D_{t-1}=0 D t − 1 = 0 , either unit step is changed to a hold, which is the same remaining possibility. Before the first such hold, D t − 1 D_{t-1} D t − 1 has the parity of t − 1 t-1 t − 1 . Equality ∣ D t − 1 ∣ = τ t − 1 = T − t |D_{t-1}|=\tau_t-1=T-t ∣ D t − 1 ∣ = τ t − 1 = T − t requires T T T to be odd. After a hold has occurred, the parity changes by one relative to the all-unit-step path, so this equality cannot hold again unless another hold has already occurred. Considering the first putative second hold rules that out. For even T T T there is no first hold; for odd T T T there is at most one. These statements exclude only the probability-zero price ties already specified.
Proof of the interior bound in Proposition 4.1 . When T = 1 T=1 T = 1 , every cyclic feasible path holds, so regret is zero. Assume T ≥ 2 T\ge2 T ≥ 2 . Fix the observed history and set s = − D t − 1 / ( 2 τ t ) s=-D_{t-1}/(2\tau_t) s = − D t − 1 / ( 2 τ t ) , the threshold’s displacement from the median. On the interval between these thresholds the tentative action reverses the action prescribed by the static median-sign rule, and elsewhere the two agree. Therefore
E [ g t ( x ~ t ) ∣ F t − 1 ] = 2 ∫ 0 ∣ s ∣ u d u = D t − 1 2 4 τ t 2 . (22) \mathbb{E}[g_t(\widetilde{x}_t)\mid\mathcal{F}_{t-1}]
=2\int_0^{|s|}u\,du
=\frac{D_{t-1}^2}{4\tau_t^2}. \tag*{(22)} E [ g t ( x t ) ∣ F t − 1 ] = 2 ∫ 0 ∣ s ∣ u d u = 4 τ t 2 D t − 1 2 . (22)
For any actual and tentative actions, g t ( x t ) − g t ( x ~ t ) = ( p t − 1 / 2 ) ( x t − x ~ t ) g_t(x_t)-g_t(\widetilde{x}_t)=(p_t-1/2)(x_t-\widetilde{x}_t) g t ( x t ) − g t ( x t ) = ( p t − 1/2 ) ( x t − x t ) is at most one and is zero when the actions agree. Lemma C.3 consequently gives the pathwise bound G T ( π C E ) ≤ ∑ t = 1 T g t ( x ~ t ) + 1 + T 1 B G_T(\pi^{\mathrm{CE}})\le\sum_{t=1}^T g_t(\widetilde{x}_t)+1+T\mathbf{1}_{\mathcal{B}} G T ( π CE ) ≤ ∑ t = 1 T g t ( x t ) + 1 + T 1 B . Taking expectations, without conditioning on B c \mathcal{B}^c B c , yields
Reg ( π C E ; B , T , y 0 ) ≤ ( a ) E G T ( π C E ) \operatorname{Reg}(\pi^{\mathrm{CE}};B,T,y_0)
\overset{(a)}{\le}\mathbb{E}G_T(\pi^{\mathrm{CE}}) Reg ( π CE ; B , T , y 0 ) ≤ ( a ) E G T ( π CE )
≤ ( b ) 1 4 ∑ t = 1 T E D t − 1 2 τ t 2 + 1 + 2 T e − d 0 2 / ( 32 T ) \overset{(b)}{\le}\frac{1}{4}\sum_{t=1}^T\frac{\mathbb{E}D_{t-1}^2}{\tau_t^2}+1+2T e^{-d_0^2/(32T)} ≤ ( b ) 4 1 t = 1 ∑ T τ t 2 E D t − 1 2 + 1 + 2 T e − d 0 2 / ( 32 T )
≤ ( c ) 1 4 ( 1 + log T ) + 1 + 2 T e − η 2 T / 32 ≤ C η log T . \overset{(c)}{\le}\frac{1}{4}(1+\log T)+1+2T e^{-\eta^2T/32}\le C_\eta\log T. ≤ ( c ) 4 1 ( 1 + log T ) + 1 + 2 T e − η 2 T /32 ≤ C η log T .
Here (a) is the upper bound in Lemma C.1, (b) uses the tower property, (App.19), and the physical-event bound in Lemma C.3, and (c) uses the moment bound in Lemma C.2, d 0 ≥ η T d_0\ge\eta T d 0 ≥ η T , and ∑ j = 1 T j − 1 ≤ 1 + ∫ 1 T u − 1 d u \sum_{j=1}^Tj^{-1}\le1+\int_1^T u^{-1}\,du ∑ j = 1 T j − 1 ≤ 1 + ∫ 1 T u − 1 d u . The last bound is uniform in T ≥ 2 T\ge2 T ≥ 2 , since log T ≥ log 2 \log T\ge\log2 log T ≥ log 2 and sup u ≥ 0 u e − η 2 u / 32 < ∞ \sup_{u\ge0}ue^{-\eta^2u/32}<\infty sup u ≥ 0 u e − η 2 u /32 < ∞ .
Zero initial inventory: repeated visits and profitable delayed sales
The lower bound follows from two observations. Certainty equivalence spends at least order T \sqrt{T} T time steps near zero inventory, and some sales of its last unit can be profitably postponed by one time step. We count these improvements directly and show that they can all be made along one feasible hindsight path.
Proof of the bound for zero initial inventory in Proposition 4.1 . Assume y 0 = y T = 0 y_0=y_T=0 y 0 = y T = 0 , B ≥ 1 B\ge1 B ≥ 1 , and T ≥ 2 T\ge2 T ≥ 2 . Throughout this proof, y t y_t y t denotes the inventory under π C E \pi^{\mathrm{CE}} π CE .
Count the visits to zero. Let ξ t = 1 { p t < 1 / 2 } − 1 { p t > 1 / 2 } \xi_t = \mathbf{1}\{p_t < 1/2\} - \mathbf{1}\{p_t > 1/2\} ξ t = 1 { p t < 1/2 } − 1 { p t > 1/2 } , S t = ∑ s = 1 t ξ s S_t = \sum_{s=1}^{t} \xi_s S t = ∑ s = 1 t ξ s , and S 0 = 0 S_0 = 0 S 0 = 0 . These signs are the proposed actions of the static median-sign rule. With sales blocked at zero, its inventory is Z 0 = 0 Z_0 = 0 Z 0 = 0 and Z t = 0 ∨ ( Z t − 1 + ξ t ) Z_t = 0 \vee(Z_{t-1} + \xi_t) Z t = 0 ∨ ( Z t − 1 + ξ t ) . It ignores the upper boundary and terminal target and is used only to compare inventories. Put M t = max 0 ≤ s ≤ t ( − S s ) + M_t = \max_{0 \le s \le t}(-S_s)^+ M t = max 0 ≤ s ≤ t ( − S s ) + . Induction on t t t gives Z t = S t + M t Z_t = S_t + M_t Z t = S t + M t , and M t M_t M t increases by one exactly when Z t − 1 = 0 Z_{t-1} = 0 Z t − 1 = 0 and ξ t = − 1 \xi_t = -1 ξ t = − 1 . Independence of the current price gives
E ∑ t = 1 T 1 { Z t − 1 = 0 } = ( a ) 2 E ∑ t = 1 T 1 { Z t − 1 = 0 , ξ t = − 1 } = ( b ) 2 E M T . \mathbb{E}\sum_{t=1}^{T}\mathbf{1}\{Z_{t-1}=0\}\mathrel{\overset{(a)}{=} }2\mathbb{E}\sum_{t=1}^{T}\mathbf{1}\{Z_{t-1}=0,\xi_t=-1\}\mathrel{\overset{(b)}{=} }2\mathbb{E}M_T. E t = 1 ∑ T 1 { Z t − 1 = 0 } = ( a ) 2 E t = 1 ∑ T 1 { Z t − 1 = 0 , ξ t = − 1 } = ( b ) 2 E M T .
Here (a) uses the probability 1 / 2 1/2 1/2 of a high price at any fixed past history, and (b) counts the increases of M t M_t M t .
The CE threshold is at most 1 / 2 1/2 1/2 , so its tentative action x ~ t \widetilde{x}_t x t satisfies x ~ t ≤ ξ t \widetilde{x}_t \le\xi_t x t ≤ ξ t on the same price sequence. Projection clips the tentative next inventory to [ 0 , B ∧ ( τ t − 1 ) ] [0, B \wedge(\tau_t - 1)] [ 0 , B ∧ ( τ t − 1 )] . Therefore, if y t − 1 ≤ Z t − 1 y_{t-1} \le Z_{t-1} y t − 1 ≤ Z t − 1 ,
y t ≤ ( a ) 0 ∨ ( y t − 1 + ξ t ) ≤ ( b ) 0 ∨ ( Z t − 1 + ξ t ) = Z t . y_t \mathrel{\overset{(a)}{\le}} 0 \vee(y_{t-1}+\xi_t) \mathrel{\overset{(b)}{\le}} 0 \vee(Z_{t-1}+\xi_t)=Z_t. y t ≤ ( a ) 0 ∨ ( y t − 1 + ξ t ) ≤ ( b ) 0 ∨ ( Z t − 1 + ξ t ) = Z t .
Step (a) uses x ~ t ≤ ξ t \widetilde{x}_t \le\xi_t x t ≤ ξ t and the fact that clipping at the upper endpoint can only reduce inventory. Step (b) uses the induction hypothesis. Starting from y 0 = Z 0 = 0 y_0 = Z_0 = 0 y 0 = Z 0 = 0 , this proves 0 ≤ y t ≤ Z t 0 \le y_t \le Z_t 0 ≤ y t ≤ Z t for every t t t . In particular, with N 0 = ∑ t = 1 T 1 { y t − 1 = 0 } N_0 = \sum_{t=1}^{T}\mathbf{1}\{y_{t-1}=0\} N 0 = ∑ t = 1 T 1 { y t − 1 = 0 } , we have E N 0 ≥ 2 E M T \mathbb{E}N_0 \ge2\mathbb{E}M_T E N 0 ≥ 2 E M T .
For completeness, the scale of M T M_T M T follows directly from the symmetric random walk. Its moments satisfy E S T 2 = T \mathbb{E}S_T^2 = T E S T 2 = T and E S T 4 = 3 T 2 − 2 T ≤ 3 T 2 \mathbb{E}S_T^4 = 3T^2 - 2T \le3T^2 E S T 4 = 3 T 2 − 2 T ≤ 3 T 2 . Hölder’s inequality gives T ≤ ( E ∣ S T ∣ ) 2 / 3 ( E S T 4 ) 1 / 3 T \le(\mathbb{E}|S_T|)^{2/3}(\mathbb{E}S_T^4)^{1/3} T ≤ ( E ∣ S T ∣ ) 2/3 ( E S T 4 ) 1/3 , hence E ∣ S T ∣ ≥ T / 3 \mathbb{E}|S_T| \ge\sqrt{T/3} E ∣ S T ∣ ≥ T /3 and E M T ≥ E ( − S T ) + = E ∣ S T ∣ / 2 ≥ T / ( 2 3 ) \mathbb{E}M_T \ge\mathbb{E}(-S_T)^+ = \mathbb{E}|S_T|/2 \ge\sqrt{T}/(2\sqrt{3}) E M T ≥ E ( − S T ) + = E ∣ S T ∣/2 ≥ T / ( 2 3 ) . The matching upper bound follows from the reflection identity P ( M T ≥ y ) = P ( S T ≤ − y ) + P ( S T < − y ) \mathbb{P}(M_T \ge y) = \mathbb{P}(S_T \le-y) + \mathbb{P}(S_T < -y) P ( M T ≥ y ) = P ( S T ≤ − y ) + P ( S T < − y ) for integers y ≥ 1 y \ge1 y ≥ 1 . To obtain this identity, reflect all subsequent steps after the first visit to − y -y − y ; paths that visit − y -y − y and end above it correspond one-to-one to paths ending below it. Summing over y y y yields E M T ≤ 2 E ( − S T ) + = E ∣ S T ∣ ≤ T \mathbb{E}M_T \le2\mathbb{E}(-S_T)^+ = \mathbb{E}|S_T| \le\sqrt{T} E M T ≤ 2 E ( − S T ) + = E ∣ S T ∣ ≤ T .
Count the opportunities to sell the last unit. Let A A A count transitions from inventory zero to one. Every such transition occurs before T T T , and, at zero before the final step, a purchase occurs exactly when p t < 1 / 2 p_t < 1/2 p t < 1/2 . Also let N 1 = ∑ t = 1 T − 1 1 { y t − 1 = 1 } N_1 = \sum_{t=1}^{T-1}\mathbf{1}\{y_{t-1}=1\} N 1 = ∑ t = 1 T − 1 1 { y t − 1 = 1 } . The number of transitions from one to zero equals A A A , because the path starts and ends at zero and trades at most one unit per step. At most one of these downward transitions is at time T T T . Thus
E N 1 ≥ ( a ) E A − 1 \mathbb{E}N_1 \mathrel{\overset{(a)}{\ge}} \mathbb{E}A-1 E N 1 ≥ ( a ) E A − 1
= ( b ) 1 2 E ∑ t = 1 T − 1 1 { y t − 1 = 0 } − 1 \mathrel{\overset{(b)}{=}} \frac{1}{2}\mathbb{E}\sum_{t=1}^{T-1}\mathbf{1}\{y_{t-1}=0\}-1 = ( b ) 2 1 E t = 1 ∑ T − 1 1 { y t − 1 = 0 } − 1
≥ ( c ) 1 2 E N 0 − 3 2 ≥ E M T − 3 2 ≥ T 2 3 − 3 2 . \mathrel{\overset{(c)}{\ge}} \frac{1}{2}\mathbb{E}N_0-\frac{3}{2}\ge\mathbb{E}M_T-\frac{3}{2}\ge\frac{\sqrt{T}}{2\sqrt{3}}-\frac{3}{2}. ≥ ( c ) 2 1 E N 0 − 2 3 ≥ E M T − 2 3 ≥ 2 3 T − 2 3 .
Here (a) counts the downward transitions before the final step, (b) uses the independent uniform price when the inventory level is zero, and (c) removes at most one final-step indicator.
Turn these opportunities into hindsight profit. For 1 ≤ t < T 1 \le t < T 1 ≤ t < T , define E t = { y t − 1 = 1 , p t ∈ [ 1 / 2 , 3 / 4 ] , p t + 1 ∈ [ 7 / 8 , 1 ] } E_t = \{y_{t-1} = 1, p_t \in[1/2,3/4], p_{t+1} \in[7/8,1]\} E t = { y t − 1 = 1 , p t ∈ [ 1/2 , 3/4 ] , p t + 1 ∈ [ 7/8 , 1 ]} . On E t E_t E t , certainty equivalence sells at t t t and holds at t + 1 t+1 t + 1 . Change these two actions to hold at t t t and sell at t + 1 t+1 t + 1 . Inventory is now one instead of zero only between these two decisions; at time t + 1 t+1 t + 1 it is again zero, and every later inventory is unchanged. The modified pair therefore respects capacity even when B = 1 B = 1 B = 1 and preserves the terminal target, including when t = T − 1 t = T - 1 t = T − 1 . Its profit increases by p t + 1 − p t ≥ 1 / 8 p_{t+1} - p_t \ge1/8 p t + 1 − p t ≥ 1/8 .
The events E t E_t E t and E t + 1 E_{t+1} E t + 1 cannot both occur, because E t E_t E t implies y t = 0 y_t = 0 y t = 0 , while E t + 1 E_{t+1} E t + 1 requires y t = 1 y_t = 1 y t = 1 . Hence all selected two-step intervals are disjoint. Apply every selected change to the original CE path. This constructs a feasible hindsight path whose gain is at least 1 8 ∑ t = 1 T − 1 1 E t \frac{1}{8}\sum_{t=1}^{T-1}1_{E_t} 8 1 ∑ t = 1 T − 1 1 E t . Finally, y t − 1 y_{t-1} y t − 1 is determined by F t − 1 \mathcal{F}_{t-1} F t − 1 , while p t p_t p t and p t + 1 p_{t+1} p t + 1 are independent of it. Consequently,
Reg ( π C E ; B , T , 0 ) ≥ ( a ) 1 8 ∑ t = 1 T − 1 P ( E t ) ≥ ( b ) 1 256 E N 1 ≥ ( c ) 1 256 ( T 2 3 − 3 2 ) . \operatorname{Reg}(\pi^{\mathrm{CE}};B,T,0) \mathrel{\mathop{\ge}^{(a)}} \frac{1}{8}\sum_{t=1}^{T-1}\mathbb{P}(E_t) \mathrel{\mathop{\ge}^{(b)}} \frac{1}{256}\mathbb{E}N_1 \mathrel{\mathop{\ge}^{(c)}} \frac{1}{256}\left(\frac{\sqrt{T}}{2\sqrt{3}}-\frac{3}{2}\right). Reg ( π CE ; B , T , 0 ) ≥ ( a ) 8 1 t = 1 ∑ T − 1 P ( E t ) ≥ ( b ) 256 1 E N 1 ≥ ( c ) 256 1 ( 2 3 T − 2 3 ) .
Step (a) uses the feasible improved path as a lower bound on hindsight profit. For (b), the two independent price intervals have probabilities 1 / 4 1/4 1/4 and 1 / 8 1/8 1/8 , so P ( E t ∣ F t − 1 ) = 1 { y t − 1 = 1 } / 32 \mathbb{P}(E_t \mid\mathcal{F}_{t-1}) = 1\{y_{t-1} = 1\}/32 P ( E t ∣ F t − 1 ) = 1 { y t − 1 = 1 } /32 . Step (c) uses the visit count above. For T ≥ 108 T \ge108 T ≥ 108 , the last expression is at least T / ( 1024 3 ) \sqrt{T}/(1024\sqrt{3}) T / ( 1024 3 ) , proving part (b).
Benchmark structure, concavity, and illustrative examples
When the static hindsight solution respects storage
If the initial inventory is a linear distance from both boundaries, the static hindsight solution is feasible with high probability. The reason is that prices are i.i.d.: conditional on their ranks, purchases and sales arrive in a uniformly random order. We bound the resulting inventory fluctuations below.
Proposition D.1. Fix η > 0 \eta> 0 η > 0 and assume y 0 ∧ ( B − y 0 ) ≥ η T y_0 \wedge(B-y_0) \ge\eta T y 0 ∧ ( B − y 0 ) ≥ η T . Let prices be i.i.d. on [ 0 , 1 ] [0,1] [ 0 , 1 ] , and let V s t a t ( p ) V^{\mathrm{stat}}(\mathbf{p}) V stat ( p ) be the best realized profit with unit trades and ∑ t x t = 0 \sum_t x_t = 0 ∑ t x t = 0 , but without intermediate storage constraints. Then
0 ≤ E [ V s t a t ( p ) − V 1 h s ( B , T , y 0 ; p ) ] ≤ 2 T 2 e − η 2 T / 2 . 0 \le\mathbb{E}[V^{\mathrm{stat}}(\mathbf{p}) - V_1^{\mathrm{hs}}(B,T,y_0;\mathbf{p})] \le2T^2 e^{-\eta^2T/2}. 0 ≤ E [ V stat ( p ) − V 1 hs ( B , T , y 0 ; p )] ≤ 2 T 2 e − η 2 T /2 . Proof. For m m m purchases and m m m sales, an exchange argument assigns purchases to the m m m smallest prices and sales to the m m m largest. Increasing m m m by one until ⌊ T / 2 ⌋ \lfloor T/2\rfloor ⌊ T /2 ⌋ adds a nonnegative price spread. Thus the balanced rank prescription in the introduction is optimal. Break any price ties by independent continuous random numbers; this selects an optimal prescription without changing profit.
Conditional on the ordered price–tie-breaker pairs, their temporal ordering is a uniform permutation. The action labels are therefore a uniform permutation of a population with equal numbers of + 1 +1 + 1 and − 1 -1 − 1 , and at most one zero. Let S j S_j S j be its partial sum. For fixed j < T j < T j < T , expose the first $s \le j
labels. The Doob martingale is M s = E [ S j ∣ first s labels ] = ( T − j ) S s / ( T − s ) M_s = \mathbb{E}[S_j \mid\text{first }s\text{ labels}] = (T-j)S_s/(T-s) M s = E [ S j ∣ first s labels ] = ( T − j ) S s / ( T − s ) . Given the first s − 1 s-1 s − 1 labels, the range of M s M_s M s has length at most two, because ( T − j ) / ( T − s ) ≤ 1 (T-j)/(T-s) \le1 ( T − j ) / ( T − s ) ≤ 1 and the next label lies in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] . A centered random variable with range length two has conditional moment-generating function at most e θ 2 / 2 e^{\theta^2/2} e θ 2 /2 : this follows by twice differentiating its log moment-generating function, whose second derivative is a variance bounded by one. Iteration gives E e θ S j ≤ e j θ 2 / 2 \mathbb{E}e^{\theta S_j} \le e^{j\theta^2/2} E e θ S j ≤ e j θ 2 /2 . Markov’s inequality with θ = h / j \theta= h/j θ = h / j gives P ( ∣ S j ∣ ≥ h ) ≤ 2 e − h 2 / ( 2 j ) \mathbb{P}(|S_j| \ge h) \le2e^{-h^2/(2j)} P ( ∣ S j ∣ ≥ h ) ≤ 2 e − h 2 / ( 2 j ) . Also S T = 0 S_T = 0 S T = 0 . A union bound gives P ( max j ≤ T ∣ S j ∣ ≥ η T ) ≤ 2 T e − η 2 T / 2 \mathbb{P}(\max_{j\le T}|S_j| \ge\eta T) \le2Te^{-\eta^2T/2} P ( max j ≤ T ∣ S j ∣ ≥ η T ) ≤ 2 T e − η 2 T /2 . Off this event the rank prescription is storage-feasible, so the static and storage optima agree. The difference is always nonnegative and at most T T T , since all-hold is feasible and each reward is at most one. This proves Proposition D.1. The concentration argument applies to the hindsight ordering; the adaptive online inventory is treated separately in Appendix § 10.4 .
Concavity for every terminal target
The concavity argument works pathwise. Starting from optimal plans at two outer states, we average their inventory paths and round in both directions. The resulting plans start at the middle state, remain feasible, and preserve the sum of the original profits.
Proof of Proposition 4.2. Fix the future prices and adjacent feasible states j − 1 , j , j + 1 j-1,j,j+1 j − 1 , j , j + 1 . Choose optimal inventory paths w s − w_s^- w s − , w s + w_s^+ w s + from the outer states, both ending at y 0 y_0 y 0 . Their midpoint m s = ( w s − + w s + ) / 2 m_s=(w_s^-+w_s^+)/2 m s = ( w s − + w s + ) /2 starts at j j j , ends at y 0 y_0 y 0 , lies in [ 0 , B ] [0,B] [ 0 , B ] , and satisfies ∣ m s − m s − 1 ∣ ≤ 1 |m_s-m_{s-1}| \le1 ∣ m s − m s − 1 ∣ ≤ 1 . Define the two integer paths w ‾ s = ⌊ m s ⌋ \underline{w}_s=\lfloor m_s\rfloor w s = ⌊ m s ⌋ and w ‾ s = ⌈ m s ⌉ \overline{w}_s=\lceil m_s\rceil w s = ⌈ m s ⌉ . Both have the same initial and terminal states j , y 0 j,y_0 j , y 0 , remain within capacity, and have successive differences in { − 1 , 0 , 1 } \{-1,0,1\} { − 1 , 0 , 1 } . For example, m s ≤ m s − 1 + 1 m_s\le m_{s-1}+1 m s ≤ m s − 1 + 1 implies ⌊ m s ⌋ ≤ ⌊ m s − 1 ⌋ + 1 \lfloor m_s\rfloor\le\lfloor m_{s-1}\rfloor+1 ⌊ m s ⌋ ≤ ⌊ m s − 1 ⌋ + 1 , and the reverse inequality and ceiling argument are identical. Since m s m_s m s is an integer or half-integer, w ‾ s + w ‾ s = w s − + w s + \underline{w}_s+\overline{w}_s=w_s^-+w_s^+ w s + w s = w s − + w s + . Subtracting this identity at successive time steps shows that the sums of their trades agree at each price. Hence the sum of their profits equals the sum of the two outer optimal profits. Each rounded path is feasible from j j j , so
2 V t + 1 h s ( j ; p > t ) ≥ V t + 1 h s ( j − 1 ; p > t ) + V t + 1 h s ( j + 1 ; p > t ) . 2V^{\mathrm{hs}}_{t+1}(j;p_{>t}) \ge V^{\mathrm{hs}}_{t+1}(j-1;p_{>t}) + V^{\mathrm{hs}}_{t+1}(j+1;p_{>t}). 2 V t + 1 hs ( j ; p > t ) ≥ V t + 1 hs ( j − 1 ; p > t ) + V t + 1 hs ( j + 1 ; p > t ) .
This proves pathwise discrete concavity. Taking expectations, or averaging the same inequality over the common scenarios, preserves it. Subtracting adjacent continuation values gives the ordering of marginal values. Comparing the three action advantages in § 4.2 then shows that the lower threshold is no larger than the upper threshold, so the buy and sell advantages cannot both be positive. This gives the threshold rule in Proposition 4.2, with the specified tie rule.
Lemma D.2. Fix a terminal target, a future sequence in [ 0 , 1 ] [0,1] [ 0 , 1 ] , and adjacent feasible continuation states j − 1 , j j-1,j j − 1 , j . Then 0 ≤ Δ V h s ( j ) ≤ 1 0\le\Delta V^{\mathrm{hs}}(j)\le1 0 ≤ Δ V hs ( j ) ≤ 1 .
Proof. Take an optimal plan from j − 1 j-1 j − 1 . It cannot sell at every future time step, because the same target would then be unreachable from the also feasible state j j j . From j j j , follow those initial sales
one unit higher until its first non-sale action u ∈ { 0 , 1 } u \in\{0,1\} u ∈ { 0 , 1 } ; replace that action by u − 1 u-1 u − 1 . The paths coalesce and can agree thereafter. The new plan is feasible and earns one additional price, which is nonnegative. This proves the lower bound. For the upper bound take an optimal plan from j j j , follow its initial purchases one unit lower, and replace its first non-purchase u ∈ { − 1 , 0 } u \in\{-1,0\} u ∈ { − 1 , 0 } by u + 1 u+1 u + 1 . That action exists by the same reachability argument. The paths coalesce, and the lower-start plan loses only that time step’s price, at most one. Thus V h s ( j ) − V h s ( j − 1 ) ≤ 1 V^{\mathrm{hs}}(j)-V^{\mathrm{hs}}(j-1) \le1 V hs ( j ) − V hs ( j − 1 ) ≤ 1 .
A positive compensation at zero, regardless of the future length
At zero inventory, the policy must decide whether to buy before knowing the next selling opportunity. Among all online decisions, holding minimizes the expected compensation when the current price is sufficiently high. An even higher next price can nevertheless make buying optimal in hindsight. We use these two observations to obtain a positive compensation bound for every feasible online policy.
Proposition D.3. Assume independent uniform prices on [ 0 , 1 ] [0,1] [ 0 , 1 ] and terminal inventory zero. Fix B ≥ 1 B \ge1 B ≥ 1 and any feasible online policy π \pi π . For every t < T t<T t < T ,
E [ ∂ R t ( y t − 1 π , x t π ; p ≥ t ) ∣ F t − 1 ] ≥ 1 384 1 { y t − 1 π = 0 } . \mathbb{E}[\partial R_t(y^\pi_{t-1},x^\pi_t;p_{\ge t}) \mid\mathcal{F}_{t-1}] \ge\frac{1}{384}\mathbf{1}\{y^\pi_{t-1}=0\}. E [ ∂ R t ( y t − 1 π , x t π ; p ≥ t ) ∣ F t − 1 ] ≥ 384 1 1 { y t − 1 π = 0 } .
Proof of Proposition D.3. Fix the past F t − 1 \mathcal{F}_{t-1} F t − 1 on the event y t − 1 π = 0 y^\pi_{t-1}=0 y t − 1 π = 0 . Let τ = τ t − 1 = T − t ≥ 1 \tau=\tau_t-1=T-t\ge1 τ = τ t − 1 = T − t ≥ 1 be the number of prices after the current decision, let U 1 , … , U τ U_1,\ldots,U_\tau U 1 , … , U τ be these independent uniform future prices, and put W = V τ B ( 1 ; U ) − V τ B ( 0 ; U ) W=V^B_\tau(1;\mathbf{U})-V^B_\tau(0;\mathbf{U}) W = V τ B ( 1 ; U ) − V τ B ( 0 ; U ) and λ = E [ W ∣ F t − 1 ] \lambda=\mathbb{E}[W\mid\mathcal{F}_{t-1}] λ = E [ W ∣ F t − 1 ] . The i.i.d. assumption makes the conditional law of U \mathbf{U} U independent of the past. We first show
U 1 ≤ W ≤ 1 , λ ≤ log 2 < 3 / 4. U_1 \le W \le1,\qquad\lambda\le\log2 < 3/4. U 1 ≤ W ≤ 1 , λ ≤ log 2 < 3/4.
For the first inequality, take an optimal future plan from zero. If its first action is to hold, a plan starting from one sells instead; if its first action is to buy, a plan starting from one holds instead. In both cases the two plans have the same inventory after this action, so the new plan can follow the original continuation and remains feasible. Its profit increases by U 1 U_1 U 1 . The range upper bound follows from Lemma D.2.
For a ∈ ( 1 / 2 , 1 ) a \in(1/2,1) a ∈ ( 1/2 , 1 ) , call a future price cheap if it is at most a a a . Let L j , H j L_j,H_j L j , H j count cheap and expensive prices in the first j j j future time steps, and let E a = { L j ≥ H j for all j ≤ τ } E_a=\{L_j \ge H_j\text{ for all }j \le\tau\} E a = { L j ≥ H j for all j ≤ τ } . On this event, take an optimal plan from one and follow it from zero, one unit lower, until its first cheap time step at which it does not buy. This time step must exist: otherwise the original inventory would remain at least 1 + L j − H j ≥ 1 1+L_j-H_j \ge1 1 + L j − H j ≥ 1 through the terminal time, contradicting its target zero. Before that time the lower path is feasible because the original inventory is at least one. At that time replace the original action u ∈ { − 1 , 0 } u \in\{-1,0\} u ∈ { − 1 , 0 } by u + 1 u+1 u + 1 . The paths coalesce at a cost at most a a a . Thus W ≤ a W \le a W ≤ a on E a E_a E a ; the capacity constraint is respected because the lower path never exceeds the original path. The walk H j − L j H_j-L_j H j − L j moves up with probability 1 − a 1-a 1 − a and down with probability a a a . Set θ = a / ( 1 − a ) > 1 \theta=a/(1-a)>1 θ = a / ( 1 − a ) > 1 . Then θ H j − L j \theta^{H_j-L_j} θ H j − L j is a nonnegative martingale. Stop it at its first hit of one or at τ \tau τ . Optional stopping at this bounded time gives P ( E a c ∣ F t − 1 ) ≤ 1 / θ = ( 1 − a ) / a \mathbb{P}(E_a^c\mid\mathcal{F}_{t-1})\leq1/\theta=(1-a)/a P ( E a c ∣ F t − 1 ) ≤ 1/ θ = ( 1 − a ) / a . Consequently
λ = ( a ) ∫ 0 1 P ( W > a ∣ F t − 1 ) d a ≤ ( b ) 1 2 + ∫ 1 / 2 1 1 − a a d a = ( c ) log 2. \lambda\overset{(a)}{=} \int_0^1 \mathbb{P}(W>a\mid\mathcal{F}_{t-1})\,da \overset{(b)}{\leq} \frac{1}{2}+\int_{1/2}^1\frac{1-a}{a}\,da \overset{(c)}{=} \log2. λ = ( a ) ∫ 0 1 P ( W > a ∣ F t − 1 ) d a ≤ ( b ) 2 1 + ∫ 1/2 1 a 1 − a d a = ( c ) log 2.
where (a) is the tail integral formula for 0 ≤ W ≤ 1 0\leq W\leq1 0 ≤ W ≤ 1 , (b) uses W ≤ a W\leq a W ≤ a on E a E_a E a and the bound P ( E a c ∣ F t − 1 ) ≤ ( 1 − a ) / a \mathbb{P}(E_a^c\mid\mathcal{F}_{t-1})\leq(1-a)/a P ( E a c ∣ F t − 1 ) ≤ ( 1 − a ) / a , and (c) evaluates the integral. It remains to compare this unavoidable uncertainty with an arbitrary online decision. At zero inventory the feasible current actions are x t π ∈ { 0 , 1 } x_t^\pi\in\{0,1\} x t π ∈ { 0 , 1 } . Let ζ t \zeta_t ζ t collect any fresh randomization used by the policy; it is independent of the actual future prices, and x t π x_t^\pi x t π is determined by F t − 1 , p t , ζ t \mathcal{F}_{t-1},p_t,\zeta_t F t − 1 , p t , ζ t . Subtracting the continuation value from zero from both action values gives the pathwise identity ∂ R t ( 0 , x t π ; p t , U ) = ( W − p t ) + − x t π ( W − p t ) \partial R_t(0,x_t^\pi;p_t,\mathbf{U})=(W-p_t)^+-x_t^\pi(W-p_t) ∂ R t ( 0 , x t π ; p t , U ) = ( W − p t ) + − x t π ( W − p t ) . Therefore,
E [ ∂ R t ( 0 , x t π ; p t , U ) ∣ F t − 1 , p t , ζ t ] = ( a ) E [ ( W − p t ) + ∣ F t − 1 , p t ] − x t π ( λ − p t ) ≥ ( b ) E [ ( W − p t ) + ∣ F t − 1 , p t ] − ( λ − p t ) + . \begin{aligned}
\mathbb{E}[\partial R_t(0,x_t^\pi;p_t,\mathbf{U})\mid\mathcal{F}_{t-1},p_t,\zeta_t]
&\overset{(a)}{=}\mathbb{E}[(W-p_t)^+\mid\mathcal{F}_{t-1},p_t]-x_t^\pi(\lambda-p_t)\\
&\overset{(b)}{\geq}\mathbb{E}[(W-p_t)^+\mid\mathcal{F}_{t-1},p_t]-(\lambda-p_t)^+.
\end{aligned} E [ ∂ R t ( 0 , x t π ; p t , U ) ∣ F t − 1 , p t , ζ t ] = ( a ) E [( W − p t ) + ∣ F t − 1 , p t ] − x t π ( λ − p t ) ≥ ( b ) E [( W − p t ) + ∣ F t − 1 , p t ] − ( λ − p t ) + .
Here (a) uses nonanticipativity and independence of the future prices, and (b) uses x t π ∈ { 0 , 1 } x_t^\pi\in\{0,1\} x t π ∈ { 0 , 1 } . The last expression is nonnegative by convexity of the positive-part function. When p t ≥ 3 / 4 p_t\geq3/4 p t ≥ 3/4 , we have λ < p t \lambda<p_t λ < p t , so it is at least E [ ( U 1 − p t ) + ∣ F t − 1 , p t ] \mathbb{E}[(U_1-p_t)^+\mid\mathcal{F}_{t-1},p_t] E [( U 1 − p t ) + ∣ F t − 1 , p t ] . Averaging over the current price and the policy’s randomization, conditional on the past, now gives
E [ ∂ R t ( 0 , x t π ; p t , U ) ∣ F t − 1 ] ≥ ∫ 3 / 4 1 ∫ p 1 ( u − p ) d u d p = 1 384 . \mathbb{E}[\partial R_t(0,x_t^\pi;p_t,\mathbf{U})\mid\mathcal{F}_{t-1}]
\geq\int_{3/4}^1\int_p^1(u-p)\,du\,dp
=\frac{1}{384}. E [ ∂ R t ( 0 , x t π ; p t , U ) ∣ F t − 1 ] ≥ ∫ 3/4 1 ∫ p 1 ( u − p ) d u d p = 384 1 .
Here (a) uses the preceding conditional bound and the independent uniform laws of p t p_t p t and U 1 U_1 U 1 , and (b) integrates ∫ p 1 ( u − p ) d u = ( 1 − p ) 2 / 2 \int_p^1(u-p)\,du=(1-p)^2/2 ∫ p 1 ( u − p ) d u = ( 1 − p ) 2 /2 . The argument applies almost surely on the event of zero current inventory, for every τ ≥ 1 \tau\geq1 τ ≥ 1 and B ≥ 1 B\geq1 B ≥ 1 , and to every feasible online policy. On the complementary event, nonnegative compensation gives the claimed lower bound of zero. □
Frequent visits with zero cost for two prices
A two-price law illustrates how frequent boundary visits can have zero cost. The reference rule visits zero repeatedly and pays zero compensation. The following example explains why we must account for both visits and their costs.
Lemma D.4. Let P ( p = a ) = P ( p = b ) = 1 / 2 \mathbb{P}(p=a)=\mathbb{P}(p=b)=1/2 P ( p = a ) = P ( p = b ) = 1/2 with 0 ≤ a < b ≤ 1 0\le a<b\le1 0 ≤ a < b ≤ 1 , y 0 = 0 y_0=0 y 0 = 0 , and B = ⌈ ρ T ⌉ B=\lceil\rho T\rceil B = ⌈ ρT ⌉ . The auxiliary reference rule π ∘ \pi^\circ π ∘ satisfies:
(a) For every T T T , Reg ( π ∘ ; B , T , 0 ) = 0 \operatorname{Reg}(\pi^\circ;B,T,0)=0 Reg ( π ∘ ; B , T , 0 ) = 0 .
(b) There exist constants c ρ > 0 c_\rho>0 c ρ > 0 and T 0 ( ρ ) < ∞ T_0(\rho)<\infty T 0 ( ρ ) < ∞ , depending only on ρ \rho ρ , such that the expected number of visits to zero is at least c ρ T c_\rho\sqrt{T} c ρ T for all T ≥ T 0 ( ρ ) T\ge T_0(\rho) T ≥ T 0 ( ρ ) .
Proof. The marginal recursion of Lemma E.1 preserves the price support. Every real marginal W W W therefore belongs to { a , b } \{a,b\} { a , b } . At A i = a A_i=a A i = a , ( a − W ) + = 0 (a-W)^+=0 ( a − W ) + = 0 ; at A i = b A_i=b A i = b , ( W − b ) + = 0 (W-b)^+=0 ( W − b ) + = 0 . Equation (App.24) is zero for every existing channel. Forced actions also have zero compensation, so the exact regret decomposition proves zero regret.
For every real index y ≤ τ ∧ B y\le\tau\wedge B y ≤ τ ∧ B with τ ≥ 1 \tau\ge1 τ ≥ 1 , the events that all future prices equal a a a or all equal b b b have positive probability. On the all-c c c event, every feasible continuation earns c y cy cy by terminal balance, so its marginal equals c c c . Hence a < λ B − ( y ) < b a<\lambda_B^-(y)<b a < λ B − ( y ) < b . Whenever not constrained by the upper or terminal boundary, the reference rule buys at a a a , sells at b b b if positive inventory is available, and holds at b b b when inventory is zero.
Take m = ⌊ c T ⌋ m=\lfloor cT\rfloor m = ⌊ c T ⌋ with c = ( ρ / 2 ) ∧ ( 1 / 4 ) c=(\rho/2)\wedge(1/4) c = ( ρ /2 ) ∧ ( 1/4 ) . In the first m m m time steps, an inventory starting from zero is at most m < B m<B m < B and the terminal ceiling is at least T − m > m T-m>m T − m > m . Thus the actual process there is exactly the lower-reflected fair walk. At time j j j , its distribution equals the running maximum of an ordinary fair walk S S S of length j j j , by reversing its i.i.d. increments. Reflection at the first hit of one yields
P ( y j = 0 ) = ( a ) P ( max i ≤ j S i < 1 ) = ( b ) P ( − 1 ≤ S j < 1 ) ≥ ( c ) c 0 ( j + 1 ) − 1 / 2 . \mathbb{P}(y_j=0)\overset{(a)}{=}\mathbb{P}\left(\max_{i\le j}S_i<1\right)\overset{(b)}{=}\mathbb{P}(-1\le S_j<1)\overset{(c)}{\ge}c_0(j+1)^{-1/2}. P ( y j = 0 ) = ( a ) P ( i ≤ j max S i < 1 ) = ( b ) P ( − 1 ≤ S j < 1 ) ≥ ( c ) c 0 ( j + 1 ) − 1/2 .
where (a) reverses the i.i.d. increments of the lower-reflected walk, (b) reflects at the first hit of one, and (c) uses the central-binomial estimate in Lemma F.2 . Summing for 0 ≤ j < m 0\le j<m 0 ≤ j < m gives at least c ρ T c_\rho\sqrt{T} c ρ T visits. Each visit has zero expected compensation, giving zero regret.
Why fixed simulation counts suffice in the uniform special case
For uniform prices, the sampled policy and the reference rule have the same inventory transition probabilities. We use their common state distributions to compare the one-step compensation and obtain an exact relation between their regrets.
Proposition D.5. Assume uniform prices and zero initial and terminal inventory, and fix an integer K ≥ 1 K\ge1 K ≥ 1 .
(a) Algorithm 1 has the same inventory transition kernel as the reference rule π ∘ \pi^\circ π ∘ .
(b) Reg ( S T A R S K ; B , T , 0 ) = ( 1 + 1 / K ) Reg ( π ∘ ; B , T , 0 ) \operatorname{Reg}(\mathrm{STARS}_K;B,T,0)=(1+1/K)\operatorname{Reg}(\pi^\circ;B,T,0) Reg ( STARS K ; B , T , 0 ) = ( 1 + 1/ K ) Reg ( π ∘ ; B , T , 0 ) .
Proof. Fix a time and feasible inventory. The shared scenarios keep empirical marginal thresholds ordered, and Lemma D.2 puts them in [ 0 , 1 ] [0,1] [ 0 , 1 ] . For each existing buy threshold, integrating the independent current uniform price gives purchase probability E ζ t λ ^ = λ \mathbb{E}_{\zeta_t}\hat{\lambda}=\lambda E ζ t λ ^ = λ . The sell probability is similarly 1 − λ 1-\lambda 1 − λ . Missing actions have probability zero and forced actions agree. Thus the two policies have the same time-dependent transition kernel at every state. They start from the same inventory, so their marginal state distributions agree at every time step.
For one channel, freeze the actual and simulated futures. Its current-price-integrated compensation is ( W − λ ^ ) 2 / 2 (W-\hat{\lambda})^2/2 ( W − λ ^ ) 2 /2 by App. 23. The actual future is independent of the K K K simulated futures, so
E p > t , ζ t ( W − λ ^ ) 2 = ( a ) Var p > t ( W ) + Var ζ t ( λ ^ ) = ( b ) ( 1 + 1 / K ) Var p > t ( W ) . \mathbb{E}_{p_{>t},\zeta_t}(W-\hat{\lambda})^2 \mathrel{\overset{(a)}{=}} \operatorname{Var}_{p_{>t}}(W)+\operatorname{Var}_{\zeta_t}(\hat{\lambda}) \mathrel{\overset{(b)}{=}} (1+1/K)\operatorname{Var}_{p_{>t}}(W). E p > t , ζ t ( W − λ ^ ) 2 = ( a ) Var p > t ( W ) + Var ζ t ( λ ^ ) = ( b ) ( 1 + 1/ K ) Var p > t ( W ) .
where (a) uses independence and the unbiasedness E ζ t λ ^ = E p > t W \mathbb{E}_{\zeta_t}\hat{\lambda}=\mathbb{E}_{p_{>t}}W E ζ t λ ^ = E p > t W , and (b) uses the variance of the mean of K K K i.i.d. copies. Add the existing channels, multiply by the common state probabilities, and sum over time using App. 26 and the corresponding reference identity. This proves the identity. □
STARS and the marginal compensation identity
This appendix begins the proof of Theorem 4.3 . Throughout, prices are i.i.d. with law F F F on [ 0 , 1 ] [0,1] [ 0 , 1 ] , y 0 = y T = 0 y_0=y_T=0 y 0 = y T = 0 , and B = ⌈ ρ T ⌉ B=\lceil\rho T\rceil B = ⌈ ρT ⌉ for fixed 0 < ρ < 1 0<\rho<1 0 < ρ < 1 . Our first step is to express the loss from a decision in terms of the hindsight buy and sell thresholds. We begin with the population-threshold reference rule π ∘ \pi^\circ π ∘ from § 4.2 , which replaces the scenario averages by their expectations. This gives a compensation bound as a function of the current inventory. We then account for the finite scenarios used by STARS: Appendix § 11.10 transfers the continuous reference bounds, and Appendix § 11.11 bounds atomic compensation directly along the sampled inventory path.
We retain the paper’s time-indexed notation for the realized path. When analyzing a hypothetical future, we instead index its value by the number of remaining prices. Thus
V τ B ( y ; p ) = V T − τ + 1 h s ( y ; p ) , Δ V τ B ( y ; p ) = Δ V T − τ + 1 h s ( y ; p ) , V_\tau^B(y;\mathbf{p})=V_{T-\tau+1}^{\mathrm{hs}}(y;\mathbf{p}), \qquad\Delta V_\tau^B(y;\mathbf{p})=\Delta V_{T-\tau+1}^{\mathrm{hs}}(y;\mathbf{p}), V τ B ( y ; p ) = V T − τ + 1 hs ( y ; p ) , Δ V τ B ( y ; p ) = Δ V T − τ + 1 hs ( y ; p ) ,
λ τ B ( y ) = λ T − τ + 1 ( y ) . \lambda_\tau^B(y)=\lambda_{T-\tau+1}(y). λ τ B ( y ) = λ T − τ + 1 ( y ) .
Both sides describe the same τ \tau τ remaining prices, the same capacity, and the same zero terminal inventory. The superscript B B B only makes the capacity visible in the auxiliary notation. At decision epoch t t t , write τ t = T − t + 1 \tau_t=T-t+1 τ t = T − t + 1 for the number of remaining decisions, including the current one. Its continuation therefore has τ t − 1 = T − t \tau_t-1=T-t τ t − 1 = T − t prices, and λ τ t − 1 B ( y ) = λ t + 1 ( y ) \lambda_{\tau_t-1}^B(y)=\lambda_{t+1}(y) λ τ t − 1 B ( y ) = λ t + 1 ( y ) .
At decision epoch t t t , STARS observes inventory y t − 1 y_{t-1} y t − 1 and price p t p_t p t . An action x t ∈ { − 1 , 0 , 1 } x_t\in\{-1,0,1\} x t ∈ { − 1 , 0 , 1 } means sell, hold, or buy, respectively; reward is − p t x t -p_tx_t − p t x t and y t = y t − 1 + x t y_t=y_{t-1}+x_t y t = y t − 1 + x t . There are τ t − 1 \tau_t-1 τ t − 1 future prices after this action. Use the observed-history filtration F t \mathcal{F}_t F t from § 2 , including the scenarios drawn through epoch t t t . Sample counts K t K_t K t are F t − 1 \mathcal{F}_{t-1} F t − 1 -measurable and at least τ t 2 \tau_t^2 τ t 2 . Feasible current actions specialize to A t ( y ) = { x ∈ { − 1 , 0 , 1 } : 0 ≤ y + x ≤ B ∧ ( τ t − 1 ) } A_t(y)=\{x\in\{-1,0,1\}:0\le y+x\le B\wedge(\tau_t-1)\} A t ( y ) = { x ∈ { − 1 , 0 , 1 } : 0 ≤ y + x ≤ B ∧ ( τ t − 1 )} . The constraint y + x ≤ τ t − 1 y+x\le\tau_t-1 y + x ≤ τ t − 1 ensures that inventory can be reduced to zero by epoch T T T ; it is as important as the physical capacity.
For a specified τ \tau τ -price future p \mathbf{p} p , let V T B ( y ; p ) V_T^B(y;\mathbf{p}) V T B ( y ; p ) be the maximum reward starting with y y y units and ending at zero. Its domain is 0 ≤ y ≤ B ∧ τ 0\le y\le B\wedge\tau 0 ≤ y ≤ B ∧ τ , with V 0 B ( 0 ) = 0 V_0^B(0)=0 V 0 B ( 0 ) = 0 . At epoch t t t , choosing the current action and optimizing its continuation gives
V t B ( y ; p , p ) = max x ∈ A t ( y ) { − p x + V t − 1 B ( y + x ; p ) } . V_t^B(y;\mathbf{p},\mathbf{p})=\max_{x\in A_t(y)}\{-px+V_{t-1}^B(y+x;\mathbf{p})\}. V t B ( y ; p , p ) = x ∈ A t ( y ) max { − p x + V t − 1 B ( y + x ; p )} .
STARS draws K K K independent i.i.d. future vectors p ( 1 ) , … , p ( K ) \mathbf{p}^{(1)},\ldots,\mathbf{p}^{(K)} p ( 1 ) , … , p ( K ) , uses the same vectors for all actions, and maximizes − p t x + K − 1 ∑ j = 1 K V t − 1 B ( y + x ; p ( j ) ) -p_tx+K^{-1}\sum_{j=1}^{K}V_{t-1}^B(y+x;\mathbf{p}^{(j)}) − p t x + K − 1 ∑ j = 1 K V t − 1 B ( y + x ; p ( j ) ) over x ∈ A t ( y ) x\in A_t(y) x ∈ A t ( y ) . Only the current action is implemented; the procedure repeats at the next epoch. The auxiliary rule π ∘ \pi^\circ π ∘ uses E V t − 1 B ( y + x ) \operatorname{E}V_{t-1}^B(y+x) E V t − 1 B ( y + x ) instead. We prefer holding whenever it is a feasible maximizer. The future scenarios are independent of actual prices and are drawn from the known price distribution.
We compare with the feasible hindsight optimum, writing Reg T ( π ) : = Reg ( π ; B , T , 0 ) = E V T B ( 0 ; p ) − E ∑ t = 1 T ( − p t x t π ) \operatorname{Reg}_T(\pi):=\operatorname{Reg}(\pi;B,T,0)=\operatorname{E}V_T^B(0;\mathbf{p})-\operatorname{E}\sum_{t=1}^{T}(-p_tx_t^\pi) Reg T ( π ) := Reg ( π ; B , T , 0 ) = E V T B ( 0 ; p ) − E ∑ t = 1 T ( − p t x t π ) . Only in the reference calculations of this appendix and Appendix G, Reg T \operatorname{Reg}_T Reg T without a policy means Reg T ( π ∘ ) \operatorname{Reg}_T(\pi^\circ) Reg T ( π ∘ ) . We identify sampled trajectories explicitly.
Concavity gives the buy and sell thresholds
An extra stored unit changes future reward by Δ V T B ( y ) = V T B ( y ) − V T B ( y − 1 ) \Delta V_T^B(y)=V_T^B(y)-V_T^B(y-1) Δ V T B ( y ) = V T B ( y ) − V T B ( y − 1 ) , whose mean is λ T B ( y ) = E Δ V T B ( y ) \lambda_T^B(y)=\operatorname{E}\Delta V_T^B(y) λ T B ( y ) = E Δ V T B ( y ) , for 1 ≤ y ≤ B ∧ τ 1\le y\le B\wedge\tau 1 ≤ y ≤ B ∧ τ . To use these differences as buy and sell thresholds, we first show that an additional unit is less valuable when more inventory is already available. The following induction proves this decreasing marginal-value property. It also gives a recursion that will allow us to characterize the distribution of the thresholds.
Lemma E.1. Fix a future price vector in [ 0 , 1 ] τ [0,1]^\tau [ 0 , 1 ] τ and a capacity B B B .
(a) V T B V_T^B V T B is discretely concave, its real marginals form a decreasing list, and each marginal is one of the future prices. Thus the marginals lie in [ 0 , 1 ] [0,1] [ 0 , 1 ] , and E V T B \operatorname{E}V_T^B E V T B is also concave.
(b) Prepending price p p p updates every new real marginal by
Δ V ^ ( y ) = Δ V T B ( y + 1 ) ∨ ( p ∧ Δ V T B ( y − 1 ) ) . (23) \widehat{\Delta V}(y)=\Delta V_T^B(y+1)\vee\left(p\wedge\Delta V_T^B(y-1)\right). \tag*{(23)} Δ V ( y ) = Δ V T B ( y + 1 ) ∨ ( p ∧ Δ V T B ( y − 1 ) ) . (23) For this formula only, use ordering conventions Δ V T B ( y ) = + ∞ \Delta V_T^B(y)=+\infty Δ V T B ( y ) = + ∞ for y ≤ 0 y\le0 y ≤ 0 and Δ V T B ( y ) = − ∞ \Delta V_T^B(y)=-\infty Δ V T B ( y ) = − ∞ beyond the old domain. They are not random values whose expectations are taken.
Proof. Induct on the number of future prices. The zero-price domain is a singleton; after one price the first marginal, if present, is p p p . Suppose the old list decreases. At an inventory where the hold action is feasible, Bellman’s maximization improves the hold reward by ( p − Δ V ( y ) ) + + ( Δ V ( y + 1 ) − p ) + (p-\Delta V(y))^++(\Delta V(y+1)-p)^+ ( p − Δ V ( y ) ) + + ( Δ V ( y + 1 ) − p ) + , omitting missing actions; at most one term is positive. Here and in the next display, suppress the old horizon and write Δ V y = Δ V τ B ( y ) \Delta V_y = \Delta V^B_\tau(y) Δ V y = Δ V τ B ( y ) . Subtract the new values at adjacent old states:
Δ V ~ ( y ) = ( a ) Δ V y + ( p − Δ V y ) + + ( Δ V y + 1 − p ) + − ( p − Δ V y − 1 ) + − ( Δ V y − p ) + = ( b ) p + ( Δ V y + 1 − p ) + − ( p − Δ V y − 1 ) + = ( c ) Δ V y + 1 ∨ ( p ∧ Δ V y − 1 ) . \begin{aligned}
\widetilde{\Delta V}(y) &\overset{(a)}{=} \Delta V_y + (p-\Delta V_y)^+ + (\Delta V_{y+1}-p)^+ - (p-\Delta V_{y-1})^+ - (\Delta V_y-p)^+ \\
&\overset{(b)}{=} p + (\Delta V_{y+1}-p)^+ - (p-\Delta V_{y-1})^+ \\
&\overset{(c)}{=} \Delta V_{y+1} \vee(p \wedge\Delta V_{y-1}).
\end{aligned} Δ V ( y ) = ( a ) Δ V y + ( p − Δ V y ) + + ( Δ V y + 1 − p ) + − ( p − Δ V y − 1 ) + − ( Δ V y − p ) + = ( b ) p + ( Δ V y + 1 − p ) + − ( p − Δ V y − 1 ) + = ( c ) Δ V y + 1 ∨ ( p ∧ Δ V y − 1 ) .
where (a) subtracts the two Bellman improvements over holding, (b) uses a + ( p − a ) + − ( a − p ) + = p a+(p-a)^+-(a-p)^+=p a + ( p − a ) + − ( a − p ) + = p , and (c) uses Δ V y + 1 ≤ Δ V y − 1 \Delta V_{y+1}\le\Delta V_{y-1} Δ V y + 1 ≤ Δ V y − 1 . At the floor the update is p ∨ Δ V 2 p\vee\Delta V_2 p ∨ Δ V 2 ; a newly feasible top state y = τ + 1 y=\tau+1 y = τ + 1 must sell and gives p ∧ Δ V τ B ( τ ) p\wedge\Delta V^B_\tau(\tau) p ∧ Δ V τ B ( τ ) . At the physical cap the unavailable purchase is omitted. The first marginal from the singleton case is p p p . These checks establish (App.20) at every boundary without subtracting infinite values.
Both inputs Δ V ( y + 1 ) , Δ V ( y − 1 ) \Delta V(y+1),\Delta V(y-1) Δ V ( y + 1 ) , Δ V ( y − 1 ) decrease in y y y , so the updated list also decreases. Each new entry is an old entry or p p p . This closes the induction, proving support-valued marginals and discrete concavity. Expectation preserves the concavity inequalities, and its first differences are λ τ B ( y ) \lambda^B_\tau(y) λ τ B ( y ) by linearity.
Relative to holding, the reference rule’s buying advantage is λ τ t − 1 B ( y + 1 ) − p \lambda^B_{\tau_{t-1}}(y+1)-p λ τ t − 1 B ( y + 1 ) − p , its selling advantage is p − λ τ t − 1 B ( y ) p-\lambda^B_{\tau_{t-1}}(y) p − λ τ t − 1 B ( y ) , and holding has advantage zero. It therefore buys below the first threshold, sells above the second, and holds between them. Thus the hold interval arises endogenously from the continuation values, without a distribution-specific holding rule. Missing actions are omitted. If y = τ t y=\tau_t y = τ t , selling is compulsory. At the last epoch, only the action reaching zero is feasible.
Compensation arises between the corresponding thresholds
Fix STARS’s actual current inventory y y y and the realized future. Let hindsight optimize from this same y y y . Its loss from being forced to take STARS’s current action x t x_t x t is the paper’s realized marginal compensation, evaluated on that path:
∂ R t = V τ t B ( y ; p t , p > t ) + p t x t − V τ t − 1 B ( y + x t ; p > t ) ≥ 0. \partial R_t = V^B_{\tau_t}(y;\mathbf{p}_t,\mathbf{p}_{>t}) + p_t x_t - V^B_{\tau_{t-1}}(y+x_t;\mathbf{p}_{>t}) \ge0. ∂ R t = V τ t B ( y ; p t , p > t ) + p t x t − V τ t − 1 B ( y + x t ; p > t ) ≥ 0.
Summing along STARS cancels successive continuation values:
V T B ( 0 ; p ) − ∑ t = 1 T ( − p t x t ) = ∑ t = 1 T ∂ R t , (24) V^B_T(0;\mathbf{p})-\sum_{t=1}^{T}(-p_t x_t)=\sum_{t=1}^{T}\partial R_t, \tag*{(24)} V T B ( 0 ; p ) − t = 1 ∑ T ( − p t x t ) = t = 1 ∑ T ∂ R t , (24)
because the last continuation is V 0 B ( 0 ) = 0 V^B_0(0)=0 V 0 B ( 0 ) = 0 . At each epoch we compare the action chosen by STARS with the hindsight-optimal action, both selected from the feasible buy, hold, and sell choices at STARS’s current inventory.
When the hold action is feasible, put W b = Δ V τ t − 1 B ( y + 1 ) W_b = \Delta V^{B}_{\tau_{t-1}}(y+1) W b = Δ V τ t − 1 B ( y + 1 ) and W s = Δ V τ t − 1 B ( y ) W_s = \Delta V^{B}_{\tau_{t-1}}(y) W s = Δ V τ t − 1 B ( y ) for the existing channels. Let B H , S H B^{H}, S^{H} B H , S H and B S , S S B^{S}, S^{S} B S , S S indicate hindsight and STARS buying/selling. The exact pathwise charge is
∂ R t = ∣ p t − W b ∣ 1 { B H ≠ B S } + ∣ p t − W s ∣ 1 { S H ≠ S S } . (25) \partial R_t = |p_t-W_b|\mathbf{1}\{B^{H}\ne B^{S}\} + |p_t-W_s|\mathbf{1}\{S^{H}\ne S^{S}\}. \tag*{(25)} ∂ R t = ∣ p t − W b ∣ 1 { B H = B S } + ∣ p t − W s ∣ 1 { S H = S S } . (25)
Indeed an action’s advantage over holding is ( W b − p t ) B + ( p t − W s ) S (W_b-p_t)B+(p_t-W_s)S ( W b − p t ) B + ( p t − W s ) S . Hindsight chooses each positive coefficient; subtracting STARS’s chosen coefficient gives (App.22). A buy-versus-sell disagreement has two terms because it changes the residual inventory by two units. Zero coefficients cost nothing.
For π ∘ \pi^\circ π ∘ , a buy charge occurs only between W b W_b W b and E W b \mathbb{E}W_b E W b , and a sell charge only between W s W_s W s and E W s \mathbb{E}W_s E W s . With holding at equality, the buy interval is [ W b ∧ E W b , W b ∨ E W b ) [W_b\wedge\mathbb{E}W_b,W_b\vee\mathbb{E}W_b) [ W b ∧ E W b , W b ∨ E W b ) , and the sell interval is ( W s ∧ E W s , W s ∨ E W s ] (W_s\wedge\mathbb{E}W_s,W_s\vee\mathbb{E}W_s] ( W s ∧ E W s , W s ∨ E W s ] . The endpoint conventions matter at atoms of the mean threshold; at the random threshold the price distance is zero.
Proposition E.2. Define H F ( z ) = E p ( z − p ) + H_F(z)=\mathbb{E}_p(z-p)^+ H F ( z ) = E p ( z − p ) + and J F ( W ) = E H F ( W ) − H F ( E W ) J_F(W)=\mathbb{E}H_F(W)-H_F(\mathbb{E}W) J F ( W ) = E H F ( W ) − H F ( E W ) . Write ∂ R ˉ τ t − 1 B ( y ) \partial\bar{R}^{B}_{\tau_{t-1}}(y) ∂ R ˉ τ t − 1 B ( y ) for the expected value of ∂ R t \partial R_t ∂ R t when π ∘ \pi^\circ π ∘ starts a decision at y y y , there are τ \tau τ prices after that decision, and the independent current price and future are averaged out. This is the conditional mean of the realized compensation: E [ ∂ R t ( y t − 1 ∘ , x t ∘ ; p ≥ t ) ∣ F t − 1 ] = ∂ R ˉ τ t − 1 B ( y t − 1 ∘ ) \mathbb{E}[\partial R_t(y_{t-1}^\circ,x_t^\circ;p_{\ge t})\mid\mathcal{F}_{t-1}]=\partial\bar{R}^{B}_{\tau_{t-1}}(y_{t-1}^\circ) E [ ∂ R t ( y t − 1 ∘ , x t ∘ ; p ≥ t ) ∣ F t − 1 ] = ∂ R ˉ τ t − 1 B ( y t − 1 ∘ ) . The same fixed-state quantity is defined at any feasible y y y , regardless of which policy visits it.
(a) When the hold action is feasible,
∂ R ˉ τ B ( y ) = J F ( Δ V τ B ( y + 1 ) ) + J F ( Δ V τ B ( y ) ) , \partial\bar{R}^{B}_{\tau}(y)=J_F(\Delta V^{B}_{\tau}(y+1))+J_F(\Delta V^{B}_{\tau}(y)), ∂ R ˉ τ B ( y ) = J F ( Δ V τ B ( y + 1 )) + J F ( Δ V τ B ( y )) , with unavailable channels omitted. Forced actions cost zero.
(b) The reference rule satisfies $\operatorname{Reg}_T(\pi^\circ)=\sum_{t=1}^{T}\mathbb{E}\partial\bar{R}^{B}_{\tau_{t-1}}(y^\circ_{t-1}).
Proof. For a buy marginal W W W with mean λ \lambda λ , the reference action’s realized contribution is ( W − p ) 1 { p < λ } (W-p)\mathbf{1}\{p<\lambda\} ( W − p ) 1 { p < λ } . Conditional on p p p , its expectation over the independent future is ( λ − p ) + (\lambda-p)^+ ( λ − p ) + . Hindsight’s contribution is ( W − p ) + (W-p)^+ ( W − p ) + . Averaging the difference over p p p gives J F ( W ) J_F(W) J F ( W ) . The equality concerns expected contributions after averaging over the current price and the future. Selling gives the same Jensen difference because E p ( p − z ) + = H F ( z ) + E p − z \mathbb{E}_p(p-z)^+=H_F(z)+\mathbb{E}p-z E p ( p − z ) + = H F ( z ) + E p − z and affine terms cancel. Finally y t − 1 y_{t-1} y t − 1 is measurable with respect to past prices, while current and future prices remain i.i.d. and independent of that past. Conditional expectation and the tower property in (App.21) prove the stated expected-regret identity.
We next specialize this identity to the price laws considered in the paper. These calculations explain which threshold errors are costly. For uniforms, H F ( z ) = z 2 / 2 H_F(z)=z^2/2 H F ( z ) = z 2 /2 , so J F ( W ) = Var ( W ) / 2 J_F(W)=\operatorname{Var}(W)/2 J F ( W ) = Var ( W ) /2 . For a finite law with masses w i w_i w i at z i z_i z i ,
J F ( W ) = ∑ i w i ( E ( W − z i ) + ∧ E ( z i − W ) + ) . J_F(W)=\sum_i w_i\bigl(\mathbb{E}(W-z_i)^+ \wedge\mathbb{E}(z_i-W)^+\bigr). J F ( W ) = i ∑ w i ( E ( W − z i ) + ∧ E ( z i − W ) + ) .
To check this, set the two positive parts’ expectations to A A A , D D D ; the summand is A − ( A − D ) + = A ∧ D A-(A-D)^{+}=A\wedge D A − ( A − D ) + = A ∧ D .
For continuous prices with median interval [ a − , a + ] [a^{-},a^{+}] [ a − , a + ] , subtract the affine function ℓ ( z ) = H F ( a − ) + ( z − a − ) / 2 \ell(z)=H_F(a^{-})+(z-a^{-})/2 ℓ ( z ) = H F ( a − ) + ( z − a − ) /2 . Convexity gives R F = H F − ℓ ≥ 0 R_F=H_F-\ell\ge0 R F = H F − ℓ ≥ 0 , zero on the median interval, and
J F ( W ) = E R F ( W ) − R F ( E W ) ≤ E R F ( W ) . J_F(W)=\mathbb{E}R_F(W)-R_F(\mathbb{E}W)\le\mathbb{E}R_F(W). J F ( W ) = E R F ( W ) − R F ( E W ) ≤ E R F ( W ) .
When the interval is a single point, ℓ \ell ℓ is the tangent there. Uncertainty within a price gap causes no charge because no price can arrive in that interval. More generally, the charge depends on both the probability of a disagreement and the price difference when it occurs.
Expected compensation and inventory occupation
Fix the past F t − 1 \mathcal{F}_{t-1} F t − 1 , so the current inventory y y y and scenario count K = K t K=K_t K = K t are known. Write τ t = T − t + 1 \tau_t=T-t+1 τ t = T − t + 1 for the number of decisions remaining, including the current decision. The continuation after this decision has τ t − 1 \tau_t-1 τ t − 1 prices. At a state where holding is feasible, hindsight’s thresholds are b h s = Δ V t + 1 h s ( y + 1 ; p > t ) b^{\mathrm{hs}}=\Delta V^{\mathrm{hs}}_{t+1}(y+1;\mathbf{p}_{>t}) b hs = Δ V t + 1 hs ( y + 1 ; p > t ) for buying and s h s = Δ V t + 1 h s ( y ; p > t ) s^{\mathrm{hs}}=\Delta V^{\mathrm{hs}}_{t+1}(y;\mathbf{p}_{>t}) s hs = Δ V t + 1 hs ( y ; p > t ) for selling. STARS uses their sample averages b ^ = λ ^ t + 1 ( y + 1 ) \widehat{b}=\widehat{\lambda}_{t+1}(y+1) b = λ t + 1 ( y + 1 ) and s ^ = λ ^ t + 1 ( y ) \widehat{s}=\widehat{\lambda}_{t+1}(y) s = λ t + 1 ( y ) . Throughout, a term corresponding to an unavailable action is omitted. If holding is infeasible, the action is forced and its compensation is zero.
For each buy or sell threshold, compensation is the distance from the price to hindsight’s threshold whenever the two decisions disagree.
We average in two stages. First fix the actual future p > t \mathbf{p}_{>t} p > t and the fresh scenario randomness ζ t \zeta_t ζ t , in addition to the past. All four thresholds are then fixed; only the independent current price is averaged. For a density f f f ,
E [ ∂ R t ( y , x t K ( y , p t ; ζ t ) ; p ≥ t ) ∣ F t − 1 , p > t , ζ t ] = ∫ b h s ∧ b ^ b h s ∨ b ^ ∣ b h s − p ∣ f ( p ) d p + ∫ s h s ∧ s ^ s h s ∨ s ^ ∣ s h s − p ∣ f ( p ) d p . (26) \mathbb{E}\left[\partial R_t\left(y,x_t^K(y,p_t;\zeta_t);\mathbf{p}_{\ge t}\right)\mid\mathcal{F}_{t-1},\mathbf{p}_{>t},\zeta_t\right]
=\int_{b^{\mathrm{hs}}\wedge\widehat{b}}^{b^{\mathrm{hs}}\vee\widehat{b}}\lvert b^{\mathrm{hs}}-p\rvert f(p)\,\mathrm{d}p
+\int_{s^{\mathrm{hs}}\wedge\widehat{s}}^{s^{\mathrm{hs}}\vee\widehat{s}}\lvert s^{\mathrm{hs}}-p\rvert f(p)\,\mathrm{d}p. \tag*{(26)} E [ ∂ R t ( y , x t K ( y , p t ; ζ t ) ; p ≥ t ) ∣ F t − 1 , p > t , ζ t ] = ∫ b hs ∧ b b hs ∨ b ∣ b hs − p ∣ f ( p ) d p + ∫ s hs ∧ s s hs ∨ s ∣ s hs − p ∣ f ( p ) d p . (26)
For a general law, use F ( d p ) F(\mathrm{d}p) F ( d p ) in place of f ( p ) d p f(p)\,\mathrm{d}p f ( p ) d p , with the buying interval [ b h s ∧ b ^ , b h s ∨ b ^ ) [b^{\mathrm{hs}}\wedge\widehat{b},b^{\mathrm{hs}}\vee\widehat{b}) [ b hs ∧ b , b hs ∨ b ) and the selling interval ( s h s ∧ s ^ , s h s ∨ s ^ ] (s^{\mathrm{hs}}\wedge\widehat{s},s^{\mathrm{hs}}\vee\widehat{s}] ( s hs ∧ s , s hs ∨ s ] . These conventions retain the rule of holding at an estimated threshold. A tie at a hindsight threshold has zero loss.
Second, average these areas over the independent actual and simulated futures. The result is E [ ∂ R t ( y , x t K ; p ≥ t ) ∣ F t − 1 ] \mathbb{E}[\partial R_t(y,x_t^K;\mathbf{p}_{\ge t})\mid\mathcal{F}_{t-1}] E [ ∂ R t ( y , x t K ; p ≥ t ) ∣ F t − 1 ] , as required by Proposition 4.4 .
For the calculations below, denote the mean thresholds by b ∘ = E [ b h s ∣ F t − 1 ] = λ t + 1 ( y + 1 ) b^{\circ}=\mathbb{E}[b^{\mathrm{hs}}\mid\mathcal{F}_{t-1}]=\lambda_{t+1}(y+1) b ∘ = E [ b hs ∣ F t − 1 ] = λ t + 1 ( y + 1 ) and s ∘ = E [ s h s ∣ F t − 1 ] = λ t + 1 ( y ) s^{\circ}=\mathbb{E}[s^{\mathrm{hs}}\mid\mathcal{F}_{t-1}]=\lambda_{t+1}(y) s ∘ = E [ s hs ∣ F t − 1 ] = λ t + 1 ( y ) . These are the thresholds of the mean-threshold rule π ∘ \pi^{\circ} π ∘ from § 4.4 , evaluated at this same inventory.
Proposition E.3. Condition on F t − 1 \mathcal{F}_{t-1} F t − 1 , let y = y t − 1 K y = y^{K}_{t-1} y = y t − 1 K , and suppose the hold action is feasible at y y y . Use the mean thresholds b ∘ b^\circ b ∘ and s ∘ s^\circ s ∘ defined above, and let K = K t ≥ 1 K = K_t \ge1 K = K t ≥ 1 .
(a) For a finite atomic law with support A 1 < ⋯ < A m A_1 < \cdots< A_m A 1 < ⋯ < A m and masses w 1 , … , w m w_1,\ldots,w_m w 1 , … , w m , the mean-threshold rule π ∘ \pi^\circ π ∘ has conditional expected compensation
E [ ∂ R t ( y , x t ∘ ( y , p t ) ; p ≥ t ) ∣ F t − 1 ] = ∑ i = 1 m w i { ( E [ ( b h s − A i ) + ∣ F t − 1 ] ∧ E [ ( A i − b h s ) + ∣ F t − 1 ] ) + ( E [ ( s h s − A i ) + ∣ F t − 1 ] ∧ E [ ( A i − s h s ) + ∣ F t − 1 ] ) } . (27) \mathbb{E}[\partial R_t(y,x_t^\circ(y,p_t);\mathbf{p}_{\ge t})\mid\mathcal{F}_{t-1}]
= \sum_{i=1}^{m} w_i \left\{
\left(\mathbb{E}[(b^{\mathrm{hs}}-A_i)^+\mid\mathcal{F}_{t-1}]\wedge\mathbb{E}[(A_i-b^{\mathrm{hs}})^+\mid\mathcal{F}_{t-1}]\right)
+ \left(\mathbb{E}[(s^{\mathrm{hs}}-A_i)^+\mid\mathcal{F}_{t-1}]\wedge\mathbb{E}[(A_i-s^{\mathrm{hs}})^+\mid\mathcal{F}_{t-1}]\right)
\right\}. \tag*{(27)} E [ ∂ R t ( y , x t ∘ ( y , p t ) ; p ≥ t ) ∣ F t − 1 ] = i = 1 ∑ m w i { ( E [( b hs − A i ) + ∣ F t − 1 ] ∧ E [( A i − b hs ) + ∣ F t − 1 ] ) + ( E [( s hs − A i ) + ∣ F t − 1 ] ∧ E [( A i − s hs ) + ∣ F t − 1 ] ) } . (27) With K K K simulated futures, STARS satisfies
E [ ∂ R t ( y , x t K ( y , p t ; ζ t ) ; p ≥ t ) ∣ F t − 1 ] ≤ 2 E [ ∂ R t ( y , x t ∘ ( y , p t ) ; p ≥ t ) ∣ F t − 1 ] + 40 3 e K . \mathbb{E}[\partial R_t(y,x_t^K(y,p_t;\zeta_t);\mathbf{p}_{\ge t})\mid\mathcal{F}_{t-1}]
\le2\mathbb{E}[\partial R_t(y,x_t^\circ(y,p_t);\mathbf{p}_{\ge t})\mid\mathcal{F}_{t-1}] + \frac{40}{3eK}. E [ ∂ R t ( y , x t K ( y , p t ; ζ t ) ; p ≥ t ) ∣ F t − 1 ] ≤ 2 E [ ∂ R t ( y , x t ∘ ( y , p t ) ; p ≥ t ) ∣ F t − 1 ] + 3 eK 40 . (b) For uniform prices on [ 0 , 1 ] [0,1] [ 0 , 1 ] , the expected compensation of STARS is exactly
E [ ∂ R t ( y , x t K ; p ≥ t ) ∣ F t − 1 ] = 1 + 1 / K 2 { Var ( b h s ∣ F t − 1 ) + Var ( s h s ∣ F t − 1 ) } . \mathbb{E}[\partial R_t(y,x_t^K;\mathbf{p}_{\ge t})\mid\mathcal{F}_{t-1}]
= \frac{1+1/K}{2}\left\{\operatorname{Var}(b^{\mathrm{hs}}\mid\mathcal{F}_{t-1})+\operatorname{Var}(s^{\mathrm{hs}}\mid\mathcal{F}_{t-1})\right\}. E [ ∂ R t ( y , x t K ; p ≥ t ) ∣ F t − 1 ] = 2 1 + 1/ K { Var ( b hs ∣ F t − 1 ) + Var ( s hs ∣ F t − 1 ) } . (c) Fix ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) , let B = ⌈ ρ T ⌉ B=\lceil\rho T\rceil B = ⌈ ρT ⌉ , and take F ∈ F β , Δ , ε 0 a c F\in\mathcal{F}^{\mathrm{ac}}_{\beta,\Delta,\varepsilon_0} F ∈ F β , Δ , ε 0 ac from Definition 2.4 , allowing Δ = 0 \Delta=0 Δ = 0 . Set α = 1 / ( β + 1 ) \alpha=1/(\beta+1) α = 1/ ( β + 1 ) and τ t = T − t + 1 \tau_t=T-t+1 τ t = T − t + 1 . There are constants C , c ρ > 0 C,c_\rho>0 C , c ρ > 0 , depending on F , ρ F,\rho F , ρ but not T T T , such that for K t ≥ τ t 2 K_t\ge\tau_t^2 K t ≥ τ t 2 ,
E [ ∂ R t ( y , x t K ; p ≥ t ) ∣ F t − 1 ] ≤ C { ( 1 y + 1 ) 1 + α + ( y + 1 τ t ) 1 + α + τ t − 1 + α 2 + ε T + 1 { y > B / 2 } } . (28) \mathbb{E}[\partial R_t(y,x_t^K;\mathbf{p}_{\ge t})\mid\mathcal{F}_{t-1}]
\le C\left\{\left(\frac{1}{y+1}\right)^{1+\alpha}
+\left(\frac{y+1}{\tau_t}\right)^{1+\alpha}
+\tau_t^{-\frac{1+\alpha}{2}}
+\varepsilon_T+1\{y>B/2\}\right\}. \tag*{(28)} E [ ∂ R t ( y , x t K ; p ≥ t ) ∣ F t − 1 ] ≤ C { ( y + 1 1 ) 1 + α + ( τ t y + 1 ) 1 + α + τ t − 2 1 + α + ε T + 1 { y > B /2 } } . (28) where ε T = C T 2 e − c ρ T \varepsilon_T=CT^2e^{-c_\rho T} ε T = C T 2 e − c ρ T . The same bound holds for the reference action x t ∘ ( y , p t ) x_t^\circ(y,p_t) x t ∘ ( y , p t ) .
For atomic prices, condition on p t = A i p_t=A_i p t = A i . If the mean-threshold rule buys, its expected buying loss is E [ ( A i − b h s ) + ∣ F t − 1 ] \mathbb{E}[(A_i-b^{\mathrm{hs}})^+\mid\mathcal{F}_{t-1}] E [( A i − b hs ) + ∣ F t − 1 ] ; otherwise it is E [ ( b h s − A i ) + ∣ F t − 1 ] \mathbb{E}[(b^{\mathrm{hs}}-A_i)^+\mid\mathcal{F}_{t-1}] E [( b hs − A i ) + ∣ F t − 1 ] . The mean threshold selects the smaller of these quantities. Selling gives the other minimum in (App.24). Lemma I.2 bounds the additional sampling loss at this same inventory.
For uniform prices, each integral in (App.23) is a triangle: the buying loss is ( b h s − b ^ ) 2 / 2 (b^{\mathrm{hs}}-\widehat{b})^2/2 ( b hs − b ) 2 /2 . Conditional independence and equal means give E [ ( b h s − b ^ ) 2 ∣ F t − 1 ] = ( 1 + 1 / K ) Var ( b h s ∣ F t − 1 ) \mathbb{E}[(b^{\mathrm{hs}}-\widehat{b})^2\mid\mathcal{F}_{t-1}]=(1+1/K)\operatorname{Var}(b^{\mathrm{hs}}\mid\mathcal{F}_{t-1}) E [( b hs − b ) 2 ∣ F t − 1 ] = ( 1 + 1/ K ) Var ( b hs ∣ F t − 1 ) ; selling is identical. This explains the variance connection with Bray [6 ] . Here the random threshold is the value of a stored unit subject to all future inventory constraints.
For continuous prices, Step 2 of Appendix § 10.26 combines the occupied-support area bound with the threshold moments in Lemma F.4 to prove (App.37). Lemma I.2 then gives part (c).
For scenario counts K 1 , … , K T K_1,\ldots,K_T K 1 , … , K T chosen in advance, sum the decomposition over feasible inventories Y t = { 0 , … , B ∧ ( T − t + 1 ) } \mathcal{Y}_t=\{0,\ldots,B\wedge(T-t+1)\} Y t = { 0 , … , B ∧ ( T − t + 1 )} :
Reg ( π K ; B , T , 0 ) = ∑ t = 1 T ∑ y ∈ Y t P ( Y t − 1 π K = y ) E p t , p > t , ζ t ( K t ) [ ∂ R t ( y , x t K t ( y , p t ; ζ t ) ; p ≥ t ) ] . (29) \operatorname{Reg}(\pi^K;B,T,0)=\sum_{t=1}^{T}\sum_{y\in\mathcal{Y}_t}\mathbb{P}(Y_{t-1}^{\pi^K}=y)\mathbb{E}^{(K_t)}_{p_t,p_{>t},\zeta_t}\left[\partial R_t(y,x_t^{K_t}(y,p_t;\zeta_t);p_{\geq t})\right]. \tag*{(29)} Reg ( π K ; B , T , 0 ) = t = 1 ∑ T y ∈ Y t ∑ P ( Y t − 1 π K = y ) E p t , p > t , ζ t ( K t ) [ ∂ R t ( y , x t K t ( y , p t ; ζ t ) ; p ≥ t ) ] . (29)
The inner expectation fixes y y y and averages fresh prices and scenarios. This is compensation-weighted occupation .
A random-walk representation of hindsight thresholds
The compensation identity reduces the next step to a distributional question: what is the law of Δ V τ B ( y ) \Delta V_\tau^B(y) Δ V τ B ( y ) ? We answer it by fixing a price level u u u and counting how many marginals exceed that price. Precisely, C τ B ( u ) = # { y : 1 ≤ y ≤ B ∧ τ , Δ V τ B ( y ) > u } C_\tau^B(u)=\#\{y:1\leq y\leq B\wedge\tau,\ \Delta V_\tau^B(y)>u\} C τ B ( u ) = # { y : 1 ≤ y ≤ B ∧ τ , Δ V τ B ( y ) > u } . The decreasing list and (App.20) imply
C 0 B ( u ) = 0 , C j + 1 B ( u ) = clip [ 0 , B ] ( C j B ( u ) + ζ j + 1 ) , P ( ζ j + 1 = 1 ) = 1 − F ( u ) . C_0^B(u)=0,\qquad C_{j+1}^B(u)=\operatorname{clip}_{[0,B]}(C_j^B(u)+\zeta_{j+1}),\qquad\mathbb{P}(\zeta_{j+1}=1)=1-F(u). C 0 B ( u ) = 0 , C j + 1 B ( u ) = clip [ 0 , B ] ( C j B ( u ) + ζ j + 1 ) , P ( ζ j + 1 = 1 ) = 1 − F ( u ) .
The signs are i.i.d. and prices are processed backward. A price above u u u increases the cutoff by one; a price at or below u u u decreases it. Thus { Δ V τ B ( y ) > u } = { C τ B ( u ) ≥ y } \{\Delta V_\tau^B(y)>u\}=\{C_\tau^B(u)\geq y\} { Δ V τ B ( y ) > u } = { C τ B ( u ) ≥ y } , including atomic prices. The count describes the hindsight problem on a hypothetical future; we will use its law to analyze the thresholds that determine STARS’s inventory movements.
We can also express the thresholds for every price law in uniform quantile coordinates. Set p j = F − 1 ( U j ) p_j=F^{-1}(U_j) p j = F − 1 ( U j ) , where F − 1 ( u ) = inf { p : F ( p ) ≥ u } F^{-1}(u)=\inf\{p:F(p)\geq u\} F − 1 ( u ) = inf { p : F ( p ) ≥ u } for 0 < u < 1 0<u<1 0 < u < 1 , with endpoint values defined by one-sided limits, is the quantile and U j U_j U j are i.i.d. uniform. Minimum and maximum commute with a nondecreasing function, so induction in (App.20) gives Δ V τ B ( y ) = F − 1 ( d τ B ( y ) ) \Delta V_\tau^B(y)=F^{-1}(d_\tau^B(y)) Δ V τ B ( y ) = F − 1 ( d τ B ( y )) , where d τ B ( y ) d_\tau^B(y) d τ B ( y ) is the marginal for the uniform future. It is one of the continuous observations U j U_j U j , hence has no atom at a fixed quantile or a discontinuity of F − 1 F^{-1} F − 1 .
Hitting and survival estimates
Remove the physical upper cap and omit the superscript B B B for those objects. For an ordinary walk S j S_j S j started at zero, write σ y = inf { j : S j = y } \sigma_y=\inf\{j:S_j=y\} σ y = inf { j : S j = y } and P a \mathbb{P}_a P a when its upward probability is a a a . Real marginal indices still satisfy 1 ≤ y ≤ τ 1\leq y\leq\tau 1 ≤ y ≤ τ .
Lemma F.1. Fix integers 1 ≤ y ≤ τ 1\leq y\leq\tau 1 ≤ y ≤ τ .
(a) For every price level u u u , P ( Δ V τ ( y ) > u ) = P 1 − F ( u ) ( σ y ≤ τ ) \mathbb{P}(\Delta V_\tau(y)>u)=\mathbb{P}_{1-F(u)}(\sigma_y\leq\tau) P ( Δ V τ ( y ) > u ) = P 1 − F ( u ) ( σ y ≤ τ ) .
(b) For 0 < a < 1 / 2 0<a<1/2 0 < a < 1/2 ,
P a ( σ y ≤ τ ) = ( a 1 − a ) y P 1 − a ( σ y ≤ τ ) ≤ ( a 1 − a ) y . (30) \mathbb{P}_a(\sigma_y\leq\tau)=\left(\frac{a}{1-a}\right)^y\mathbb{P}_{1-a}(\sigma_y\leq\tau)\leq\left(\frac{a}{1-a}\right)^y. \tag*{(30)} P a ( σ y ≤ τ ) = ( 1 − a a ) y P 1 − a ( σ y ≤ τ ) ≤ ( 1 − a a ) y . (30)
Proof. The lower-reflected recursion is C τ = max 0 ≤ j ≤ τ ( S τ − S j ) C_\tau= \max_{0 \le j \le\tau}(S_\tau- S_j) C τ = max 0 ≤ j ≤ τ ( S τ − S j ) . Reversing i.i.d. increments identifies its law with max j ≤ τ S j \max_{j \le\tau} S_j max j ≤ τ S j , giving the first identity in the lemma. A path first hitting y y y has y y y more upward than downward steps. Its likelihood ratio under a a a versus 1 − a 1-a 1 − a is ( a / ( 1 − a ) ) y (a/(1-a))^y ( a / ( 1 − a ) ) y . Sum these ratios over all first-hit paths by epoch τ \tau τ to obtain (App.27).
Lemma F.2. Fix integers τ , y ≥ 1 \tau, y \ge1 τ , y ≥ 1 .
(a) With absolute comparison constants c , C > 0 c, C > 0 c , C > 0 ,
P 1 / 2 ( σ y > τ ) = P ( − y ≤ S τ < y ) ≍ y τ + 1 ∧ 1. \mathbb{P}_{1/2}(\sigma_y > \tau) = \mathbb{P}(-y \le S_\tau< y) \asymp\frac{y}{\sqrt{\tau+1}} \wedge1. P 1/2 ( σ y > τ ) = P ( − y ≤ S τ < y ) ≍ τ + 1 y ∧ 1. (b) For every fixed sign probability and x ≥ 0 x \ge0 x ≥ 0 ,
P ( max j ≤ τ ( S j − E S j ) ≥ x ) ≤ e − x 2 / ( 2 τ ) . (31) \mathbb{P}\left(\max_{j \le\tau}(S_j-\mathbb{E}S_j) \ge x\right) \le e^{-x^2/(2\tau)}. \tag*{(31)} P ( j ≤ τ max ( S j − E S j ) ≥ x ) ≤ e − x 2 / ( 2 τ ) . (31) The same inequality holds for the negative centered walk.
(c) If a > 1 / 2 a > 1/2 a > 1/2 and y ≤ ( 2 a − 1 ) τ y \le(2a-1)\tau y ≤ ( 2 a − 1 ) τ , then
P a ( σ y > τ ) ≤ e − ( ( 2 a − 1 ) τ − y ) 2 / ( 2 τ ) . (32) \mathbb{P}_a(\sigma_y > \tau) \le e^{-((2a-1)\tau-y)^2/(2\tau)}. \tag*{(32)} P a ( σ y > τ ) ≤ e − (( 2 a − 1 ) τ − y ) 2 / ( 2 τ ) . (32)
Proof. Reflection after the first hit of y y y gives P ( σ y ≤ τ ) = P ( S τ ≥ y ) + P ( S τ > y ) \mathbb{P}(\sigma_y \le\tau) = \mathbb{P}(S_\tau\ge y) + \mathbb{P}(S_\tau> y) P ( σ y ≤ τ ) = P ( S τ ≥ y ) + P ( S τ > y ) ; symmetry proves the claimed fair-survival identity. A central binomial mass is of order ( τ + 1 ) − 1 / 2 (\tau+1)^{-1/2} ( τ + 1 ) − 1/2 . One direct verification at τ = 2 m \tau=2m τ = 2 m is 4 − m ( 2 m m ) = ∏ j = 1 m ( 1 − 1 / ( 2 j ) ) 4^{-m}\binom{2m}{m}=\prod_{j=1}^{m}(1-1/(2j)) 4 − m ( m 2 m ) = ∏ j = 1 m ( 1 − 1/ ( 2 j )) ; take logarithms, use − x − x 2 ≤ log ( 1 − x ) ≤ − x -x-x^2\le\log(1-x)\le-x − x − x 2 ≤ log ( 1 − x ) ≤ − x for x ≤ 1 / 2 x\le1/2 x ≤ 1/2 , and sum. At odd times multiply the previous central mass by ( 2 m + 1 ) / ( 2 m + 2 ) (2m+1)/(2m+2) ( 2 m + 1 ) / ( 2 m + 2 ) . There are y y y parity points in [ − y , y ) [-y,y) [ − y , y ) unless the support cuts them off, giving the upper bound. For y ≤ τ / 4 y\le\sqrt{\tau}/4 y ≤ τ /4 , all their masses are comparable to the central mass: their ratios are products of ( m − i + 1 ) / ( m + i ) (m-i+1)/(m+i) ( m − i + 1 ) / ( m + i ) at even times, or ( m − i + 1 ) / ( m + i + 1 ) (m-i+1)/(m+i+1) ( m − i + 1 ) / ( m + i + 1 ) at odd times, with at most τ / 4 \sqrt{\tau}/4 τ /4 factors. Their log ratios are bounded below by − C ∑ i ≤ τ / 4 i / τ ≥ − C ′ -C\sum_{i\le\sqrt{\tau}/4}i/\tau\ge-C' − C ∑ i ≤ τ /4 i / τ ≥ − C ′ . This gives the lower bound in this range; monotonicity in y y y extends it to the remaining range. Finitely many small τ \tau τ are absorbed in the constants.
For a sign X X X , the second derivative of its log moment-generating function is a tilted variance, at most one. Integrating twice yields E e λ ( X − E X ) ≤ e λ 2 / 2 \mathbb{E}e^{\lambda(X-\mathbb{E}X)}\le e^{\lambda^2/2} E e λ ( X − E X ) ≤ e λ 2 /2 . Stop the resulting nonnegative exponential supermartingale at the first centered crossing of x x x or epoch τ \tau τ . Its value at a crossing is at least e λ x − τ λ 2 / 2 e^{\lambda x-\tau\lambda^2/2} e λ x − τ λ 2 /2 , so the crossing probability is at most e − λ x + τ λ 2 / 2 e^{-\lambda x+\tau\lambda^2/2} e − λ x + τ λ 2 /2 . Taking λ = x / τ \lambda=x/\tau λ = x / τ proves (App.28). Negating the signs gives the lower tail; { σ y > τ } ⊂ { S τ < y } \{\sigma_y>\tau\}\subset\{S_\tau<y\} { σ y > τ } ⊂ { S τ < y } then gives (App.29).
Capacity and uniform-coordinate moments
The walk is simpler to analyze without the physical capacity. We therefore first bound how much removing that capacity changes a hindsight threshold. This is a comparison of hypothetical futures; the probability that the online inventory reaches the ceiling will be bounded separately.
Lemma F.3. Fix ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) and B = ⌈ ρ T ⌉ B = \lceil\rho T \rceil B = ⌈ ρT ⌉ . There are constants c ρ , C ρ > 0 c_\rho,C_\rho> 0 c ρ , C ρ > 0 such that, with ε T = C ρ T 2 e − c ρ T \varepsilon_T = C_\rho T^2 e^{-c_\rho T} ε T = C ρ T 2 e − c ρ T , the following hold uniformly over price laws, price levels, and τ ≤ T \tau\le T τ ≤ T .
(a) For real indices y ≤ τ ∧ ( B / 2 + 1 ) y \le\tau\wedge(B/2+1) y ≤ τ ∧ ( B /2 + 1 ) ,
0 ≤ P ( Δ V τ ( y ) > u ) − P ( Δ V τ B ( y ) > u ) ≤ ε T . 0 \le\mathbb{P}(\Delta V_\tau(y)>u)-\mathbb{P}(\Delta V_\tau^B(y)>u) \le\varepsilon_T. 0 ≤ P ( Δ V τ ( y ) > u ) − P ( Δ V τ B ( y ) > u ) ≤ ε T . (b) In the same index range, means and hinge expectations change by at most ε T \varepsilon_T ε T , and expectations of a bounded-variation function change by at most its total variation times ε T \varepsilon_T ε T .
(c) Capping lowers every real marginal stochastically, including outside the range in part (a).
Proof. Use the same signs in both count recursions; the capped count is smaller. With nonpositive drift, a discrepancy requires an upward excursion of height B B B over some interval. With nonnegative drift, differing tail events at y y y require a descent from B B B to below y y y : between the last visit to B B B and the first subsequent visit below y y y there is no reflection, and the interval sum is at most − ( B − y ) -(B-y) − ( B − y ) . After centering, both events are at least as unlikely as the corresponding zero-drift deviation. There are at most ( T + 1 ) 2 (T+1)^2 ( T + 1 ) 2 intervals, each of length at most T T T . Since B − y ≥ ρ T / 4 B-y \ge\rho T/4 B − y ≥ ρT /4 for sufficiently large T T T , (App.28) and a union bound give the claimed capacity-error bound. Enlarge its constant for smaller T T T . Integrate the tail difference for means/hinges; Stieltjes integration gives the bounded-variation assertion.
Lemma F.4. Fix h > 0 h>0 h > 0 . There is a constant C h < ∞ C_h<\infty C h < ∞ such that, for all τ ≥ 1 \tau\ge1 τ ≥ 1 and 1 ≤ y ≤ τ 1 \le y \le\tau 1 ≤ y ≤ τ ,
E ∣ d τ ( y ) − 1 / 2 ∣ h ≤ C h { y − h + ( y / ( τ + 1 ) ) h + ( τ + 1 ) − h / 2 } . \mathbb{E}\lvert d_\tau(y)-1/2\rvert^h \le C_h\{y^{-h}+(y/(\tau+1))^h+(\tau+1)^{-h/2}\}. E ∣ d τ ( y ) − 1/2 ∣ h ≤ C h { y − h + ( y / ( τ + 1 ) ) h + ( τ + 1 ) − h /2 } . For d τ B ( y ) d_\tau^B(y) d τ B ( y ) at y ≤ B / 2 + 1 y \le B/2+1 y ≤ B /2 + 1 , add $C_h\varepsilon_T.
Proof. For 0 < z < 1 / 2 0<z<1/2 0 < z < 1/2 , (App.27) gives P ( d τ ( y ) > 1 / 2 + z ) ≤ [ ( 1 / 2 − z ) / ( 1 / 2 + z ) ] y ≤ e − 4 y z \mathbb{P}(d_\tau(y)>1/2+z)\le[(1/2-z)/(1/2+z)]^y \le e^{-4yz} P ( d τ ( y ) > 1/2 + z ) ≤ [( 1/2 − z ) / ( 1/2 + z ) ] y ≤ e − 4 y z ; the last log ratio has derivative − 4 / ( 1 − 4 z 2 ) ≤ − 4 -4/(1-4z^2)\le-4 − 4/ ( 1 − 4 z 2 ) ≤ − 4 . On the lower side the tail is P 1 / 2 + z ( σ y > τ ) \mathbb{P}_{1/2+z}(\sigma_y>\tau) P 1/2 + z ( σ y > τ ) , bounded by one below z = y / τ z=y/\tau z = y / τ and by e − τ z 2 / 2 e^{-\tau z^2/2} e − τ z 2 /2 above it, using (App.29). Integrating h z h − 1 hz^{h-1} h z h − 1 against these two tails gives C h [ y − h + ( y / τ ) h + τ − h / 2 ] C_h[y^{-h}+(y/\tau)^h+\tau^{-h/2}] C h [ y − h + ( y / τ ) h + τ − h /2 ] , equivalent to the claim since τ ≥ 1 \tau\ge1 τ ≥ 1 . Finally ∣ z − 1 / 2 ∣ h \lvert z-1/2\rvert^h ∣ z − 1/2 ∣ h has total variation 2 ( 1 / 2 ) h 2(1/2)^h 2 ( 1/2 ) h ; apply Lemma F.3 in uniform coordinates.
Continuous prices: thresholds, inventory occupation, and regret
This appendix proves the continuous-price bounds outlined in § 4.4 . We analyze the mean-threshold rule π ∘ \pi^\circ π ∘ ; Appendix § 11.10 then transfers its guarantees to finite-scenario STARS.
Assumptions and results
We prove the continuous part of Theorem 4.3 , for the family in Definition 2.4 . Thus F F F is atomless on [ 0 , 1 ] [0,1] [ 0 , 1 ] and has a density bounded above by a finite constant M M M ; equivalently, its distribution function is M M M -Lipschitz. Using the median edges a − a^- a − , a + a^+ a + and gap Δ \Delta Δ from Definition 2.1 , write
g + ( q ) = F − 1 ( 1 / 2 + q ) − a + , g − ( q ) = a − − F − 1 ( 1 / 2 − q ) , 0 < q < 1 / 2. g_+(q)=F^{-1}(1/2+q)-a^+,\qquad g_-(q)=a^- - F^{-1}(1/2-q),\qquad0<q<1/2. g + ( q ) = F − 1 ( 1/2 + q ) − a + , g − ( q ) = a − − F − 1 ( 1/2 − q ) , 0 < q < 1/2.
Set g ± ( 0 ) = 0 g_{\pm}(0)=0 g ± ( 0 ) = 0 , use one-sided limits at q = 1 / 2 q=1/2 q = 1/2 , and put α = 1 / ( β + 1 ) ∈ ( 0 , 1 ] \alpha=1/(\beta+1)\in(0,1] α = 1/ ( β + 1 ) ∈ ( 0 , 1 ] . The local assumptions can be written explicitly: for some q 0 ∈ ( 0 , 1 / 2 ) q_0\in(0,1/2) q 0 ∈ ( 0 , 1/2 ) and constants c ± > 0 c_{\pm}>0 c ± > 0 ,
g ± ( q ) = c ± q α ( 1 + r ± ( q ) ) , 0 < q ≤ q 0 , g_{\pm}(q)=c_{\pm}q^\alpha(1+r_{\pm}(q)),\qquad0<q\le q_0, g ± ( q ) = c ± q α ( 1 + r ± ( q )) , 0 < q ≤ q 0 ,
∣ r ± ( q ) ∣ ≤ 1 2 , r ± ( q ) ⟶ 0 ( q ↓ 0 ) . (33) |r_{\pm}(q)|\le\frac{1}{2},\qquad r_{\pm}(q)\longrightarrow0\qquad(q\downarrow0). \tag*{(33)} ∣ r ± ( q ) ∣ ≤ 2 1 , r ± ( q ) ⟶ 0 ( q ↓ 0 ) . (33)
When α = 1 \alpha=1 α = 1 , additionally ∣ r + ( q ) ∣ + ∣ r − ( q ) ∣ = O ( q η ) |r_+(q)|+|r_-(q)|=O(q^\eta) ∣ r + ( q ) ∣ + ∣ r − ( q ) ∣ = O ( q η ) for some η > 0 \eta>0 η > 0 . Consequently g ± ( q ) ∼ c ± q α g_{\pm}(q)\sim c_{\pm}q^\alpha g ± ( q ) ∼ c ± q α for α < 1 \alpha<1 α < 1 , and g ± ( q ) = c ± q + O ( q 1 + η ) g_{\pm}(q)=c_{\pm}q+O(q^{1+\eta}) g ± ( q ) = c ± q + O ( q 1 + η ) for α = 1 \alpha=1 α = 1 . Uniform prices correspond to α = 1 \alpha=1 α = 1 , Δ = 0 \Delta=0 Δ = 0 , and g ± ( q ) = q g_{\pm}(q)=q g ± ( q ) = q . Other support gaps away from the median are permitted. We take T ≥ 2 T\ge2 T ≥ 2 in the auxiliary estimates below; when T = 1 T=1 T = 1 , the only feasible action is to hold, so both reference and sampled regret are zero.
All constants may depend on the fixed distribution, its regularity moduli, and ρ \rho ρ , but not on T T T . In particular, bounded support and (App.30) imply the useful global bound
g + ( q ) + g − ( q ) ≤ C q α , 0 ≤ q ≤ 1 / 2. g_+(q)+g_-(q)\le Cq^\alpha,\qquad0\le q\le1/2. g + ( q ) + g − ( q ) ≤ C q α , 0 ≤ q ≤ 1/2.
Lemma G.1. Fix ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) and an atomless distribution F F F with bounded density and the edge definitions and regularity assumptions above, including (App.30) and the quantitative remainder when α = 1 \alpha=1 α = 1 . Let α ∈ ( 0 , 1 ] \alpha\in(0,1] α ∈ ( 0 , 1 ] , y 0 = y T = 0 y_0=y_T=0 y 0 = y T = 0 , and B = ⌈ ρ T ⌉ B=\lceil\rho T\rceil B = ⌈ ρT ⌉ . There is a constant C = C ( F , ρ ) < ∞ C=C(F,\rho)<\infty C = C ( F , ρ ) < ∞ , which may depend on the regularity moduli but not on T T T , such that the reference rule π ∘ \pi^\circ π ∘ satisfies the following bounds.
(a) If Δ = 0 \Delta=0 Δ = 0 , then
Reg T ≤ C log 2 T 1 { α = 1 } + C T ( 1 − α ) / 2 1 { 0 < α < 1 } . \operatorname{Reg}_T\le C\log^2 T\mathbf{1}\{\alpha=1\}+CT^{(1-\alpha)/2}\mathbf{1}\{0<\alpha<1\}. Reg T ≤ C log 2 T 1 { α = 1 } + C T ( 1 − α ) /2 1 { 0 < α < 1 } . (b) If the fixed gap satisfies Δ > 0 \Delta>0 Δ > 0 , then
Reg T ≤ C T 1 / 4 log T 1 { α = 1 } + C T 1 / [ 2 ( 1 + α ) ] 1 { 0 < α < 1 } . \operatorname{Reg}_T\le CT^{1/4}\log T\mathbf{1}\{\alpha=1\}+CT^{1/[2(1+\alpha)]}\mathbf{1}\{0<\alpha<1\}. Reg T ≤ C T 1/4 log T 1 { α = 1 } + C T 1/ [ 2 ( 1 + α )] 1 { 0 < α < 1 } . No uniform constant over all distributions satisfying only the qualitative asymptotics is asserted.
Throughout this appendix, ( y t , x t ) (y_t,x_t) ( y t , x t ) denotes the reference trajectory. The finite-scenario algorithm is handled by Appendix § 11.10 .
Step 1: mean thresholds and their finite-horizon correction
We use the random-walk representation in Section F to quantify the inventory premium and its finite-horizon correction.
Let D τ , y D_{\tau,y} D τ , y denote the uncapped uniform-price hindsight marginal with τ \tau τ future observations and inventory index y y y . Write λ τ ( y ) = E F − 1 ( D τ , y ) \lambda_\tau(y) = \mathbb{E}F^{-1}(D_{\tau,y}) λ τ ( y ) = E F − 1 ( D τ , y ) for the uncapped dollar threshold and λ τ B ( y ) = E Δ V τ B ( y ) \lambda_\tau^B(y) = \mathbb{E}\Delta V_\tau^B(y) λ τ B ( y ) = E Δ V τ B ( y ) for its capped counterpart. Its purchase-probability coordinate is γ τ B ( y ) = F ( λ τ B ( y ) ) \gamma_\tau^B(y) = F(\lambda_\tau^B(y)) γ τ B ( y ) = F ( λ τ B ( y )) . An index is real only when 1 ≤ y ≤ ( τ ∧ B ) 1 \le y \le(\tau\wedge B) 1 ≤ y ≤ ( τ ∧ B ) . As in the algorithm, an unavailable action is omitted; later a missing threshold is assigned probability zero only to write the drift formula compactly. Here τ \tau τ is the horizon of the continuation problem. At decision epoch t t t , there are τ t = T − t + 1 \tau_t = T-t+1 τ t = T − t + 1 decisions left, so the thresholds used for the current action have continuation horizon τ t − 1 \tau_t-1 τ t − 1 .
The premium with a long future. The hitting representation in Lemma F.1 gives the limit D τ , y ⇒ 1 / 2 + Z y D_{\tau,y} \Rightarrow1/2 + Z_y D τ , y ⇒ 1/2 + Z y , where P ( Z y > z ) = R ( z ) y \mathbb{P}(Z_y > z) = R(z)^y P ( Z y > z ) = R ( z ) y for 0 < z < 1 / 2 0 < z < 1/2 0 < z < 1/2 and R ( z ) = ( 1 / 2 − z ) / ( 1 / 2 + z ) R(z) = (1/2-z)/(1/2+z) R ( z ) = ( 1/2 − z ) / ( 1/2 + z ) . Set A y = E g + ( Z y ) A_y = \mathbb{E}g_+(Z_y) A y = E g + ( Z y ) , λ ∞ ( y ) = a + + A y \lambda_\infty(y) = a^+ + A_y λ ∞ ( y ) = a + + A y , and γ ∞ ( y ) = F ( λ ∞ ( y ) ) \gamma_\infty(y) = F(\lambda_\infty(y)) γ ∞ ( y ) = F ( λ ∞ ( y )) . We use these limiting quantities to isolate the effect of a finite deadline on the thresholds. Stochastic monotonicity of the hitting probabilities and the capacity comparison imply
λ τ B ( y ) ≤ λ ∞ ( y ) , 1 2 < γ ∞ ( y ) < 1 , γ ∞ ( y + 1 ) ≤ γ ∞ ( y ) . \lambda_\tau^B(y) \le\lambda_\infty(y), \qquad\frac{1}{2} < \gamma_\infty(y) < 1, \qquad\gamma_\infty(y+1) \le\gamma_\infty(y). λ τ B ( y ) ≤ λ ∞ ( y ) , 2 1 < γ ∞ ( y ) < 1 , γ ∞ ( y + 1 ) ≤ γ ∞ ( y ) .
To justify convergence of the means despite possible jumps of F − 1 F^{-1} F − 1 , couple the marginal laws by inverse distribution functions. Their limit has a continuous law and F − 1 F^{-1} F − 1 has only countably many jumps; bounded convergence applies. The strict bounds on γ ∞ ( y ) \gamma_\infty(y) γ ∞ ( y ) follow because the limiting price marginal has positive mass arbitrarily close to a + a^+ a + and strictly above it, and is not concentrated at the largest support price.
The size of the premium follows by one tail integral. For every fixed h > 0 h > 0 h > 0 ,
E Z y h = ( a ) ∫ 0 1 / 2 h z h − 1 R ( z ) y d z = ( b ) Γ ( 1 + h ) ( 4 y ) h ( 1 + O h ( y − 2 ) ) . \mathbb{E}Z_y^h \mathrel{\overset{(a)}{=}} \int_0^{1/2} hz^{h-1}R(z)^y\,\mathrm{d}z \mathrel{\overset{(b)}{=}} \frac{\Gamma(1+h)}{(4y)^h}\left(1+O_h(y^{-2})\right). E Z y h = ( a ) ∫ 0 1/2 h z h − 1 R ( z ) y d z = ( b ) ( 4 y ) h Γ ( 1 + h ) ( 1 + O h ( y − 2 ) ) .
Here ( a ) (a) ( a ) is the tail-integral identity for a nonnegative variable, and ( b ) (b) ( b ) follows by substituting w = 4 y z w=4yz w = 4 y z and controlling the exponential approximation as follows. On 0 ≤ w ≤ y 0 \le w \le y 0 ≤ w ≤ y , the logarithmic series gives y log R ( w / ( 4 y ) ) = − w − E y ( w ) y\log R(w/(4y))=-w-E_y(w) y log R ( w / ( 4 y )) = − w − E y ( w ) with 0 ≤ E y ( w ) ≤ C w 3 / y 2 0 \le E_y(w) \le Cw^3/y^2 0 ≤ E y ( w ) ≤ C w 3 / y 2 . The integrand’s difference from e − w e^{-w} e − w is therefore at most C y − 2 w 3 e − w Cy^{-2}w^3e^{-w} C y − 2 w 3 e − w . Beyond y y y , both the remaining integral and the comparison tail are exponentially small, since R ( w / ( 4 y ) ) y ≤ e − w R(w/(4y))^y \le e^{-w} R ( w / ( 4 y ) ) y ≤ e − w . Integration proves the stated error.
Applying App.30 to this integral and then inverting the quantile expansion gives
A y ∼ c + Γ ( 1 + α ) ( 4 y ) − α , γ ∞ ( y ) = 1 2 + κ α 4 y + o ( y − 1 ) , 0 < α < 1 , A y = c + 4 y + O ( y − 1 − ν ) , γ ∞ ( y ) = 1 2 + 1 4 y + O ( y − 1 − ν ) , α = 1. (34) \begin{aligned}
A_y &\sim c_+\Gamma(1+\alpha)(4y)^{-\alpha}, &
\gamma_\infty(y) &= \frac{1}{2}+\frac{\kappa_\alpha}{4y}+o(y^{-1}), &
0 &< \alpha< 1,\\
A_y &= \frac{c_+}{4y}+O(y^{-1-\nu}), &
\gamma_\infty(y) &= \frac{1}{2}+\frac{1}{4y}+O(y^{-1-\nu}), &
\alpha&= 1. \tag*{(34)}
\end{aligned} A y A y ∼ c + Γ ( 1 + α ) ( 4 y ) − α , = 4 y c + + O ( y − 1 − ν ) , γ ∞ ( y ) γ ∞ ( y ) = 2 1 + 4 y κ α + o ( y − 1 ) , = 2 1 + 4 y 1 + O ( y − 1 − ν ) , 0 α < α < 1 , = 1. (34)
where ν = ( η ∧ 2 ) > 0 \nu=(\eta\wedge2)>0 ν = ( η ∧ 2 ) > 0 in the case α = 1 \alpha=1 α = 1 , and κ α = Γ ( 1 + α ) 1 / α \kappa_\alpha=\Gamma(1+\alpha)^{1/\alpha} κ α = Γ ( 1 + α ) 1/ α . For the first application, bracket g + ( q ) / ( c + q α ) g_+(q)/(c+q^\alpha) g + ( q ) / ( c + q α ) by 1 ± η 0 1\pm\eta_0 1 ± η 0 near zero; the complement has exponentially small probability. Then let η 0 ↓ 0 \eta_0\downarrow0 η 0 ↓ 0 . For the second, the quantitative remainder contributes O ( y − 1 − η ) O(y^{-1-\eta}) O ( y − 1 − η ) . Inversion uses F ( F − 1 ( u ) ) = u F(F^{-1}(u))=u F ( F − 1 ( u )) = u and the same two monotone quantile bounds; it remains valid across other support gaps. In particular,
c ( y + d ) − α ≤ A y ≤ C y − α , γ ∞ ( y ) ≤ 1 2 + C y (35) c(y+d)^{-\alpha}\le A_y\le Cy^{-\alpha},\qquad\gamma_\infty(y)\le\frac{1}{2}+\frac{C}{y} \tag*{(35)} c ( y + d ) − α ≤ A y ≤ C y − α , γ ∞ ( y ) ≤ 2 1 + y C (35)
for fixed c , C , d > 0 c,C,d>0 c , C , d > 0 .
For 0 < α < 1 0<\alpha<1 0 < α < 1 the important coefficient satisfies α < κ α < 1 \alpha<\kappa_\alpha<1 α < κ α < 1 . To check both strict inequalities, let X X X have Gamma density x α − 1 e − x / Γ ( α ) x^{\alpha-1}e^{-x}/\Gamma(\alpha) x α − 1 e − x /Γ ( α ) and let E E E be mean-one exponential. Strict Jensen gives 1 / Γ ( α ) = E X 1 − α < α 1 − α 1/\Gamma(\alpha)=\mathbb{E}X^{1-\alpha}<\alpha^{1-\alpha} 1/Γ ( α ) = E X 1 − α < α 1 − α and Γ ( 1 + α ) = E E α < 1 \Gamma(1+\alpha)=\mathbb{E}E^\alpha<1 Γ ( 1 + α ) = E E α < 1 . Taking α \alpha α th roots proves the claim. For uniform prices, the coefficient is exactly the critical one: γ ∞ ( y ) = 1 / 2 + 1 / ( 4 y ) + O ( y − 3 ) \gamma_\infty(y)=1/2+1/(4y)+O(y^{-3}) γ ∞ ( y ) = 1/2 + 1/ ( 4 y ) + O ( y − 3 ) .
The deadline correction. Let σ y \sigma_y σ y be the first passage to y y y of the walk in Lemma F.1 , and put S τ , y ( z ) = P 1 / 2 + z ( σ y > τ ) S_{\tau,y}(z)=\mathbb{P}_{1/2+z}(\sigma_y>\tau) S τ , y ( z ) = P 1/2 + z ( σ y > τ ) . Splitting the quantile at its median interval, and using the first-hit likelihood ratio from that lemma, gives the exact identity
λ ∞ ( y ) − λ τ ( y ) = Δ S τ , y ( 0 ) + ∫ ( 0 , 1 / 2 ] R ( z ) y S τ , y ( z ) d g + ( z ) + ∫ ( 0 , 1 / 2 ] S τ , y ( z ) d g − ( z ) . (36) \lambda_\infty(y)-\lambda_\tau(y)=\Delta S_{\tau,y}(0)+\int_{(0,1/2]}R(z)^yS_{\tau,y}(z)\,dg_+(z)+\int_{(0,1/2]}S_{\tau,y}(z)\,dg_-(z). \tag*{(36)} λ ∞ ( y ) − λ τ ( y ) = Δ S τ , y ( 0 ) + ∫ ( 0 , 1/2 ] R ( z ) y S τ , y ( z ) d g + ( z ) + ∫ ( 0 , 1/2 ] S τ , y ( z ) d g − ( z ) . (36)
Indeed the finite mean is a − + Δ [ 1 − S τ , y ( 0 ) ] + E g + ( ( D τ , y − 1 / 2 ) + ) − E g − ( ( 1 / 2 − D τ , y ) + ) a^-+\Delta[1-S_{\tau,y}(0)]+\mathbb{E}g_+((D_{\tau,y}-1/2)^+)-\mathbb{E}g_-((1/2-D_{\tau,y})^+) a − + Δ [ 1 − S τ , y ( 0 )] + E g + (( D τ , y − 1/2 ) + ) − E g − (( 1/2 − D τ , y ) + ) . The missing upper-tail probability is R ( z ) y S τ , y ( z ) R(z)^yS_{\tau,y}(z) R ( z ) y S τ , y ( z ) , while the lower-tail probability is S τ , y ( z ) S_{\tau,y}(z) S τ , y ( z ) ; integrate these tails. Quantile jumps cause no ambiguity because a uniform marginal, being one of finitely many continuous input prices, has no fixed atom.
The main estimate is
S τ , y ( z ) ≤ C y τ e − τ z 2 / 4 , 1 ≤ y ≤ τ 4 , 0 ≤ z < 1 / 2. (37) S_{\tau,y}(z)\le C\frac{y}{\sqrt{\tau}}e^{-\tau z^2/4},\qquad1\le y\le\frac{\sqrt{\tau}}{4},\quad0\le z<1/2. \tag*{(37)} S τ , y ( z ) ≤ C τ y e − τ z 2 /4 , 1 ≤ y ≤ 4 τ , 0 ≤ z < 1/2. (37)
We prove this by changing measure from the fair walk. Under that walk, the likelihood ratio for upward probability 1 / 2 + z 1/2+z 1/2 + z depends only on the terminal sum S τ S_\tau S τ : it is L z ( S τ ) = ( 1 − 4 z 2 ) τ / 2 ( 1 + 2 z 1 − 2 z ) S τ / 2 L_z(S_\tau)=(1-4z^2)^{\tau/2}\left(\frac{1+2z}{1-2z}\right)^{S_\tau/2} L z ( S τ ) = ( 1 − 4 z 2 ) τ /2 ( 1 − 2 z 1 + 2 z ) S τ /2 . On survival, S τ < y S_\tau<y S τ < y , and this likelihood is increasing in S τ S_\tau S τ . Consequently S τ , y ( z ) ≤ L z ( y ) S τ , y ( 0 ) S_{\tau,y}(z)\le L_z(y)S_{\tau,y}(0) S τ , y ( z ) ≤ L z ( y ) S τ , y ( 0 ) . Writing ℓ ( z ) = log L z ( y ) \ell(z)=\log L_z(y) ℓ ( z ) = log L z ( y ) , we have ℓ ( 0 ) = 0 \ell(0)=0 ℓ ( 0 ) = 0 , ℓ ′ ( 0 ) = 2 y \ell'(0)=2y ℓ ′ ( 0 ) = 2 y , and ℓ ′ ′ ( z ) = − 2 ( τ + y ) / ( 1 + 2 z ) 2 − 2 ( τ − y ) / ( 1 − 2 z ) 2 ≤ − τ \ell''(z)=-2(\tau+y)/(1+2z)^2-2(\tau-y)/(1-2z)^2\le-\tau ℓ ′′ ( z ) = − 2 ( τ + y ) / ( 1 + 2 z ) 2 − 2 ( τ − y ) / ( 1 − 2 z ) 2 ≤ − τ , since y ≤ τ / 2 y\le\tau/2 y ≤ τ /2 . Consequently,
ℓ ( z ) ≤ 2 y z − τ z 2 2 ≤ ( b ) 4 y 2 τ + τ z 2 4 ≤ ( c ) 1 4 − τ z 2 4 , \ell(z)\le2yz-\frac{\tau z^2}{2}\mathrel{\overset{(b)}{\le}}\frac{4y^2}{\tau}+\frac{\tau z^2}{4}\mathrel{\overset{(c)}{\le}}\frac14-\frac{\tau z^2}{4}, ℓ ( z ) ≤ 2 y z − 2 τ z 2 ≤ ( b ) τ 4 y 2 + 4 τ z 2 ≤ ( c ) 4 1 − 4 τ z 2 ,
where (a) integrates the bound on ℓ ′ ′ \ell'' ℓ ′′ twice using the initial values, (b) uses 2 y z ≤ 4 y 2 / τ + τ z 2 / 4 2yz\le4y^2/\tau+\tau z^2/4 2 y z ≤ 4 y 2 / τ + τ z 2 /4 , and (c) uses y ≤ τ / 4 y\le\sqrt{\tau}/4 y ≤ τ /4 . Lemma F.2 bounds the fair survival probability by C y / τ Cy/\sqrt{\tau} C y / τ , proving (App.34). For τ < 16 \tau<16 τ < 16 , the indicated range contains no admissible index.
Put r = 1 + α r=1+\alpha r = 1 + α . Since R y ≤ 1 R^y\le1 R y ≤ 1 , the two integrals in (App.33) are at most E [ g + ( Z − ) + g − ( Z − ) ] ≤ C E ( Z − ) α \mathbb{E}[g_+(Z^-)+g_-(Z^-)]\le C\mathbb{E}(Z^-)^\alpha E [ g + ( Z − ) + g − ( Z − )] ≤ C E ( Z − ) α , where Z − = ( 1 / 2 − D τ , y ) + Z^-=(1/2-D_{\tau,y})^+ Z − = ( 1/2 − D τ , y ) + . Integrating (App.34) against α z α − 1 d z \alpha z^{\alpha-1}dz α z α − 1 d z and substituting w = τ z w=\sqrt{\tau}z w = τ z therefore proves
0 ≤ λ ∞ ( y ) − λ τ B ( y ) ≤ C ( Δ y τ + y τ r / 2 ) + ε T , y ≤ ( ( τ / 4 ) ∧ ( B / 2 + 1 ) ) . (38) 0\le\lambda_\infty(y)-\lambda^B_\tau(y)\le C\left(\frac{\Delta y}{\sqrt{\tau}}+\frac{y}{\tau^{r/2}}\right)+\varepsilon_T,\qquad y\le\left((\sqrt{\tau}/4)\wedge(B/2+1)\right). \tag*{(38)} 0 ≤ λ ∞ ( y ) − λ τ B ( y ) ≤ C ( τ Δ y + τ r /2 y ) + ε T , y ≤ ( ( τ /4 ) ∧ ( B /2 + 1 ) ) . (38)
The substitution has a finite integral because α > 0 \alpha>0 α > 0 at zero and the tail is Gaussian. Capacity contributes at most ε T \varepsilon_T ε T by Lemma F.3 . When α = 1 \alpha=1 α = 1 , the same bound holds for every real y ≤ B / 2 + 1 y\le B/2+1 y ≤ B /2 + 1 : for y > τ / 4 y>\sqrt{\tau}/4 y > τ /4 , Lemma F.4 gives E Z − ≤ C ( y − 1 + y / τ + τ − 1 / 2 ) ≤ C ′ y / τ \mathbb{E}Z^-\le C(y^{-1}+y/\tau+\tau^{-1/2})\le C'y/\tau E Z − ≤ C ( y − 1 + y / τ + τ − 1/2 ) ≤ C ′ y / τ ; also S τ , y ( 0 ) ≤ C y / τ S_{\tau,y}(0)\le Cy/\sqrt{\tau} S τ , y ( 0 ) ≤ C y / τ . In particular,
0 ≤ λ ∞ ( y ) − λ τ B ( y ) ≤ C ( Δ y τ + y τ ) + ε T ( α = 1 ) . (39) 0\le\lambda_\infty(y)-\lambda^B_\tau(y)\le C\left(\frac{\Delta y}{\sqrt{\tau}}+\frac{y}{\tau}\right)+\varepsilon_T\qquad(\alpha=1). \tag*{(39)} 0 ≤ λ ∞ ( y ) − λ τ B ( y ) ≤ C ( τ Δ y + τ y ) + ε T ( α = 1 ) . (39)
Step 2: reduce compensation to small and large inventory costs
There are no prices inside a gap, so threshold distance alone can be misleading. For H F ( z ) = E ( z − p ) + H_F(z)=\mathbb{E}(z-p)^+ H F ( z ) = E ( z − p ) + , subtract its affine part across the median interval and set R F ( z ) = H F ( z ) − H F ( a − ) − 1 2 ( z − a − ) R_F(z)=H_F(z)-H_F(a^-)-\frac{1}{2}(z-a^-) R F ( z ) = H F ( z ) − H F ( a − ) − 2 1 ( z − a − ) . This nonnegative function is zero on [ a − , a + ] [a^-,a^+] [ a − , a + ] . At the upper quantile, its area is ∫ a + F − 1 ( 1 / 2 + q ) ( F ( u ) − 1 / 2 ) d u ≤ q g + ( q ) \int_{a^+}^{F^{-1}(1/2+q)}(F(u)-1/2)du\le qg_+(q) ∫ a + F − 1 ( 1/2 + q ) ( F ( u ) − 1/2 ) d u ≤ q g + ( q ) ; integrating 1 / 2 − F ( u ) 1/2-F(u) 1/2 − F ( u ) proves the corresponding lower-side bound. Hence R F ( F − 1 ( 1 / 2 ± q ) ) ≤ C q r R_F(F^{-1}(1/2\pm q))\le Cq^r R F ( F − 1 ( 1/2 ± q )) ≤ C q r . For an existing hindsight marginal W = Δ V τ B ( y ) W=\Delta V^B_\tau(y) W = Δ V τ B ( y ) , let D τ , y B D^B_{\tau,y} D τ , y B be its uniform-price counterpart. Then
J F ( W ) = ( a ) E R F ( W ) − R F ( E W ) ≤ ( b ) E R F ( W ) ≤ ( c ) C E ∣ D τ , y B − 1 / 2 ∣ r , J_F(W)\overset{(a)}{=}\mathbb{E}R_F(W)-R_F(\mathbb{E}W)\overset{(b)}{\le}\mathbb{E}R_F(W)\overset{(c)}{\le}C\mathbb{E}|D^B_{\tau,y}-1/2|^r, J F ( W ) = ( a ) E R F ( W ) − R F ( E W ) ≤ ( b ) E R F ( W ) ≤ ( c ) C E ∣ D τ , y B − 1/2 ∣ r ,
where (a) uses cancellation of affine terms in the Jensen-gap identity from Section E, (b) uses R F ≥ 0 R_F\ge0 R F ≥ 0 , and (c) uses quantile equivariance and the area bound R F ( F − 1 ( 1 / 2 ± q ) ) ≤ C q r R_F(F^{-1}(1/2\pm q))\le Cq^r R F ( F − 1 ( 1/2 ± q )) ≤ C q r .
Apply quantile equivariance and Lemma F.4 to the existing marginals at y y y and y + 1 y+1 y + 1 . With τ \tau τ continuation prices, the current decision and its continuation together have τ + 1 \tau+1 τ + 1 time steps. This gives
∂ R ˉ τ B ( y ) ≤ C { ( y + 1 ) − r + ( y + 1 τ + 1 ) r + ( τ + 1 ) − r / 2 + ε T } + 21 { y > B / 2 } . (40) \partial\bar{R}^B_\tau(y)\le C\left\{(y+1)^{-r}+\left(\frac{y+1}{\tau+1}\right)^r+(\tau+1)^{-r/2}+\varepsilon_T\right\}+2\mathbf{1}\{y>B/2\}. \tag*{(40)} ∂ R ˉ τ B ( y ) ≤ C { ( y + 1 ) − r + ( τ + 1 y + 1 ) r + ( τ + 1 ) − r /2 + ε T } + 2 1 { y > B /2 } . (40)
At y = 0 y=0 y = 0 only index one exists; at y ≥ 1 y\ge1 y ≥ 1 use y − r ≤ 2 r ( y + 1 ) − r y^{-r}\le2^r(y+1)^{-r} y − r ≤ 2 r ( y + 1 ) − r . Unavailable actions contribute no channel. Each channel has cost at most one, giving the displayed wall bound. A compulsory action has compensation zero, including the final epoch. At decision epoch t t t , we use this bound with τ = τ t − 1 \tau=\tau_t-1 τ = τ t − 1 .
To sum (App.37), we next control large inventories and then the weighted visits near zero.
Step 3: control the physical and terminal boundaries
The physical ceiling. From (App.32), the actual drift obeys E [ x t ∣ F t − 1 ] ≤ C / ( y t − 1 + 1 ) \mathbb{E}[x_t \mid\mathcal{F}_{t-1}] \le C/(y_{t-1}+1) E [ x t ∣ F t − 1 ] ≤ C / ( y t − 1 + 1 ) . At positive inventory this follows from γ τ t − 1 β ( y + 1 ) + γ τ t − 1 β ( y ) − 1 \gamma^{\beta}_{\tau_{t-1}}(y+1)+\gamma^{\beta}_{\tau_{t-1}}(y)-1 γ τ t − 1 β ( y + 1 ) + γ τ t − 1 β ( y ) − 1 with y = y t − 1 y=y_{t-1} y = y t − 1 ; absent purchases and forced sales can only decrease the drift. At zero enlarge C C C . For any integer m ≥ 1 m \ge1 m ≥ 1 , the binomial expansion and ∣ x t ∣ ≤ 1 |x_t| \le1 ∣ x t ∣ ≤ 1 give E [ y t 2 m − y t − 1 2 m ∣ F t − 1 ] ≤ C m ( 1 + y t − 1 2 m − 2 ) \mathbb{E}[y_t^{2m}-y_{t-1}^{2m} \mid\mathcal{F}_{t-1}] \le C_m(1+y_{t-1}^{2m-2}) E [ y t 2 m − y t − 1 2 m ∣ F t − 1 ] ≤ C m ( 1 + y t − 1 2 m − 2 ) . The linear term uses the drift bound; all higher powers have degree at most 2 m − 2 2m-2 2 m − 2 . The same inequality holds after stopping at the first visit above B / 2 B/2 B /2 , since every later increment is zero. Induction on m m m , summing over decision epochs, proves E y T ∧ σ 2 m ≤ C m ( T + 1 ) m \mathbb{E}y_{T\wedge\sigma}^{2m} \le C_m(T+1)^m E y T ∧ σ 2 m ≤ C m ( T + 1 ) m for that stopping time σ \sigma σ . On { σ ≤ T } \{\sigma\le T\} { σ ≤ T } the stopped inventory exceeds B / 2 B/2 B /2 . Thus
P ( max t ≤ T y t > B / 2 ) ≤ ( a ) E y T ∧ σ 2 m ( B / 2 ) 2 m ≤ ( b ) C m , ρ T − m , (41) \mathbb{P}\left(\max_{t\le T} y_t>B/2\right) \mathrel{\overset{(a)}{\le}} \frac{\mathbb{E}y_{T\wedge\sigma}^{2m}}{(B/2)^{2m}} \mathrel{\overset{(b)}{\le}} C_{m,\rho}T^{-m}, \tag*{(41)} P ( t ≤ T max y t > B /2 ) ≤ ( a ) ( B /2 ) 2 m E y T ∧ σ 2 m ≤ ( b ) C m , ρ T − m , (41)
where (a) is Markov’s inequality on the crossing event and (b) uses the stopped-moment bound and B ≥ ρ T B \ge\rho T B ≥ ρT . Thus reaching the upper half of the store is sufficiently unlikely along the reference path to contribute only a bounded regret term.
The shrinking terminal boundary. The terminal constraint requires a stronger estimate: inventory must decrease as the remaining horizon shrinks. Set L τ = 4 + log ( 1 + Δ τ α / 2 ) L_\tau=4+\log(1+\Delta\tau^{\alpha/2}) L τ = 4 + log ( 1 + Δ τ α /2 ) . The conclusion will be
E y t − 1 2 ≤ C τ t L τ t , τ t = T − t + 1. (42) \mathbb{E}y_{t-1}^{2}\le C\tau_tL_{\tau_t},\qquad\tau_t=T-t+1. \tag*{(42)} E y t − 1 2 ≤ C τ t L τ t , τ t = T − t + 1. (42)
It is C τ t C\tau_t C τ t when there is no gap, and at most C τ t ( 1 + log τ t ) C\tau_t(1+\log\tau_t) C τ t ( 1 + log τ t ) otherwise, including τ t = 1 \tau_t=1 τ t = 1 . Fix a real index y ≤ τ y\le\tau y ≤ τ and put v = y / τ v=y/\tau v = y / τ . Use θ 0 = 5 / 12 \theta_0=5/12 θ 0 = 5/12 and θ 1 = 1 / 3 \theta_1=1/3 θ 1 = 1/3 . At uniform test level 1 / 2 − θ 0 v 1/2-\theta_0v 1/2 − θ 0 v , the hypothetical walk has mean increment 2 θ 0 v 2\theta_0v 2 θ 0 v . Hitting y y y by time τ \tau τ requires its centered maximum to exceed ( 1 − 2 θ 0 ) y = y / 6 (1-2\theta_0)y=y/6 ( 1 − 2 θ 0 ) y = y /6 . Lemma F.2 therefore gives P ( D τ , y > 1 / 2 − θ 0 v ) ≤ e − y 2 / ( 72 τ ) \mathbb{P}(D_{\tau,y}>1/2-\theta_0v)\le e^{-y^2/(72\tau)} P ( D τ , y > 1/2 − θ 0 v ) ≤ e − y 2 / ( 72 τ ) and, at the median test level, P ( D τ , y > 1 / 2 ) ≤ e − y 2 / ( 2 τ ) \mathbb{P}(D_{\tau,y}>1/2)\le e^{-y^2/(2\tau)} P ( D τ , y > 1/2 ) ≤ e − y 2 / ( 2 τ ) . Retaining the median geometry when bounding the mean yields
λ τ ( y ) − a − ≤ A y + Δ e − y 2 / ( 2 τ ) − g − ( θ 0 v ) ( 1 − e − y 2 / ( 72 τ ) ) . (43) \lambda_\tau(y)-a^- \le Ay+\Delta e^{-y^2/(2\tau)}-g_-(\theta_0v)(1-e^{-y^2/(72\tau)}). \tag*{(43)} λ τ ( y ) − a − ≤ A y + Δ e − y 2 / ( 2 τ ) − g − ( θ 0 v ) ( 1 − e − y 2 / ( 72 τ ) ) . (43)
The median gap enters this estimate through the probability that the marginal remains above the upper gap edge; the other terms are the same as in the no-gap case. For all 0 < v ≤ 1 0<v\le1 0 < v ≤ 1 , the assumptions imply
g − ( θ 0 v ) − g − ( θ 1 v ) ≥ c v α , g − ( θ 0 v ) ≤ C v α . (44) g_-(\theta_0v)-g_-(\theta_1v)\ge cv^\alpha,\qquad g_-(\theta_0v)\le Cv^\alpha. \tag*{(44)} g − ( θ 0 v ) − g − ( θ 1 v ) ≥ c v α , g − ( θ 0 v ) ≤ C v α . (44)
For small v v v , choose the asymptotic error so that ( 1 − η 0 ) θ 0 α > ( 1 + η 0 ) θ 0 α (1-\eta_0)\theta_0^\alpha> (1+\eta_0)\theta_0^\alpha ( 1 − η 0 ) θ 0 α > ( 1 + η 0 ) θ 0 α . For v ≥ v 0 > 0 v \ge v_0 > 0 v ≥ v 0 > 0 , Lipschitz continuity of F F F gives the lower bound ( θ 0 − θ 1 ) v / M ≥ ( θ 0 − θ 1 ) v 0 1 − α v α / M (\theta_0-\theta_1)v/M \ge(\theta_0-\theta_1)v_0^{1-\alpha}v^\alpha/M ( θ 0 − θ 1 ) v / M ≥ ( θ 0 − θ 1 ) v 0 1 − α v α / M . The upper bound follows from the global edge estimate g + ( q ) + g − ( q ) ≤ C q α g_+(q)+g_-(q) \le Cq^\alpha g + ( q ) + g − ( q ) ≤ C q α .
Divide the three positive errors in (App.40) by v α v^\alpha v α , and write w = y / τ w=y/\sqrt{\tau} w = y / τ . Their bounds are, respectively, C w − 2 α Cw^{-2\alpha} C w − 2 α , Δ τ α / 2 w − α e − w 2 / 2 \Delta\tau^{\alpha/2}w^{-\alpha}e^{-w^2/2} Δ τ α /2 w − α e − w 2 /2 , and C e − w 2 / 72 Ce^{-w^2/72} C e − w 2 /72 . All are smaller than the margin in (App.41) when y ≥ K τ L τ y \ge K\sqrt{\tau L_\tau} y ≥ K τ L τ for a fixed sufficiently large K K K : the middle expression uses Δ τ α / 2 ≤ e L τ \Delta\tau^{\alpha/2} \le e^{L_\tau} Δ τ α /2 ≤ e L τ , and the others decrease with w w w . Hence λ τ ( y ) ≤ F − 1 ( 1 / 2 − y / ( 3 τ ) ) \lambda_\tau(y) \le F^{-1}(1/2-y/(3\tau)) λ τ ( y ) ≤ F − 1 ( 1/2 − y / ( 3 τ )) in this range. For the complementary range use γ τ B ( y ) ≤ γ ∞ ( y ) ≤ 1 / 2 + C / y \gamma_\tau^B(y) \le\gamma_\infty(y) \le1/2+C/y γ τ B ( y ) ≤ γ ∞ ( y ) ≤ 1/2 + C / y . Combining the two bounds, and increasing the constant if needed, gives γ τ B ( y ) ≤ 1 / 2 + C L τ + 1 / y − y / [ 3 ( τ + 1 ) ] \gamma_\tau^B(y) \le1/2+CL_{\tau+1}/y-y/[3(\tau+1)] γ τ B ( y ) ≤ 1/2 + C L τ + 1 / y − y / [ 3 ( τ + 1 )] . Capacity only lowers a real marginal. Missing thresholds set to zero also satisfy this bound: each relevant artificial index has y ≤ τ + 2 ≤ 3 ( τ + 1 ) / 2 y \le\tau+2 \le3(\tau+1)/2 y ≤ τ + 2 ≤ 3 ( τ + 1 ) /2 for τ ≥ 1 \tau\ge1 τ ≥ 1 , so the right side is nonnegative.
Condition on the predecision history and write y = y t − 1 > 0 y=y_{t-1}>0 y = y t − 1 > 0 . Use the preceding bound with continuation horizon τ t − 1 \tau_t-1 τ t − 1 . Independence of the new price gives
E [ y t 2 ∣ F t − 1 ] = ( a ) y 2 + 2 y { γ τ t − 1 B ( y + 1 ) + γ τ t − 1 B ( y ) − 1 } + E [ x t 2 ∣ F t − 1 ] ≤ ( b ) ( 1 − 4 3 τ t ) y 2 + C L τ t , \begin{aligned}
\mathbb{E}[y_t^2\mid\mathcal{F}_{t-1}] &\mathrel{\overset{(a)}{=}} y^2+2y\{\gamma^B_{\tau_t-1}(y+1)+\gamma^B_{\tau_t-1}(y)-1\}+\mathbb{E}[x_t^2\mid\mathcal{F}_{t-1}]\\
&\mathrel{\overset{(b)}{\le}} \left(1-\frac{4}{3\tau_t}\right)y^2+CL_{\tau_t},
\end{aligned} E [ y t 2 ∣ F t − 1 ] = ( a ) y 2 + 2 y { γ τ t − 1 B ( y + 1 ) + γ τ t − 1 B ( y ) − 1 } + E [ x t 2 ∣ F t − 1 ] ≤ ( b ) ( 1 − 3 τ t 4 ) y 2 + C L τ t ,
where ( a ) (a) ( a ) expands ( y + x t ) 2 (y+x_t)^2 ( y + x t ) 2 and uses the threshold formula for the conditional drift, and ( b ) (b) ( b ) substitutes the preceding bound on each threshold and uses x t 2 ≤ 1 x_t^2\le1 x t 2 ≤ 1 . At zero the next square is at most one, so the same upper bound holds after enlarging C C C . The coefficient is nonnegative for τ t ≥ 2 \tau_t\ge2 τ t ≥ 2 . Moreover, u L u ′ ≤ α / 2 ≤ 1 / 2 uL'_u\le\alpha/2\le1/2 u L u ′ ≤ α /2 ≤ 1/2 , so for τ ≥ 2 \tau\ge2 τ ≥ 2 ,
( τ − 1 ) L τ − 1 − ( τ − 4 / 3 ) L τ ≥ ( a ) 1 3 L τ − 1 2 L τ ≥ ( b ) 1 6 L τ . (\tau-1)L_{\tau-1}-(\tau-4/3)L_\tau\mathrel{\overset{(a)}{\ge}}\frac{1}{3}L_\tau-\frac{1}{2}L_\tau\mathrel{\overset{(b)}{\ge}}\frac{1}{6}L_\tau. ( τ − 1 ) L τ − 1 − ( τ − 4/3 ) L τ ≥ ( a ) 3 1 L τ − 2 1 L τ ≥ ( b ) 6 1 L τ .
where ( a ) (a) ( a ) integrates L u ′ ≤ 1 / ( 2 u ) L'_u\le1/(2u) L u ′ ≤ 1/ ( 2 u ) and uses ( τ − 1 ) log ( τ / ( τ − 1 ) ) ≤ 1 (\tau-1)\log(\tau/(\tau-1))\le1 ( τ − 1 ) log ( τ / ( τ − 1 )) ≤ 1 , and ( b ) (b) ( b ) uses L τ ≥ 4 L_\tau\ge4 L τ ≥ 4 . A sufficiently large constant A A A therefore makes the envelope A τ L τ A\tau L_\tau A τ L τ satisfy the preceding conditional second-moment recursion. Starting from y 0 = 0 y_0=0 y 0 = 0 , induction and the tower property prove (App.39) down to the penultimate inventory; the final compulsory action gives y T = 0 y_T=0 y T = 0 .
Step 4: bound compensation-weighted visits near zero
For f ( y ) = ( y + 1 ) − r f(y)=(y+1)^{-r} f ( y ) = ( y + 1 ) − r , we implement the potential argument outlined in § 4.4 . The following finite-horizon form of the comparison theorem of Glynn and Meyn [10 ] (Theorem 2.1) retains the terminal potential and applies to the time-varying inventory process.
Lemma G.2. Let ( y t ) t = 0 ℓ (y_t)_{t=0}^{\ell} ( y t ) t = 0 ℓ be an adapted inventory process taking values in { 0 , … , B } \{0,\ldots,B\} { 0 , … , B } , and let Ψ : { 0 , … , B } → [ 0 , ∞ ) \Psi:\{0,\ldots,B\}\to[0,\infty) Ψ : { 0 , … , B } → [ 0 , ∞ ) be finite-valued. Suppose c t , e t c_t,e_t c t , e t are nonnegative integrable quantities determined by F t − 1 \mathcal{F}_{t-1} F t − 1 and, for 1 ≤ t ≤ ℓ 1\leq t\leq\ell 1 ≤ t ≤ ℓ , E [ Ψ ( y t ) − Ψ ( y t − 1 ) ∣ F t − 1 ] ≤ − c t + e t \mathbb{E}[\Psi(y_t)-\Psi(y_{t-1})\mid\mathcal{F}_{t-1}]\leq-c_t+e_t E [ Ψ ( y t ) − Ψ ( y t − 1 ) ∣ F t − 1 ] ≤ − c t + e t almost surely. Then
E ∑ t = 1 ℓ c t ≤ E Ψ ( y 0 ) − E Ψ ( y ℓ ) + E ∑ t = 1 ℓ e t ≤ E Ψ ( y 0 ) + E ∑ t = 1 ℓ e t . \mathbb{E}\sum_{t=1}^{\ell}c_t\leq\mathbb{E}\Psi(y_0)-\mathbb{E}\Psi(y_\ell)+\mathbb{E}\sum_{t=1}^{\ell}e_t\leq\mathbb{E}\Psi(y_0)+\mathbb{E}\sum_{t=1}^{\ell}e_t. E t = 1 ∑ ℓ c t ≤ E Ψ ( y 0 ) − E Ψ ( y ℓ ) + E t = 1 ∑ ℓ e t ≤ E Ψ ( y 0 ) + E t = 1 ∑ ℓ e t . Proof. The tower property gives E c t ≤ E Ψ ( y t − 1 ) − E Ψ ( y t ) + E e t \mathbb{E}c_t\leq\mathbb{E}\Psi(y_{t-1})-\mathbb{E}\Psi(y_t)+\mathbb{E}e_t E c t ≤ E Ψ ( y t − 1 ) − E Ψ ( y t ) + E e t . Summing over t t t telescopes the potential and proves the first inequality. Its nonnegativity gives the second. The argument also holds conditional on the history at the start of a fixed block of decision epochs.
Our construction uses an increasing Φ \Phi Φ , whose positive expected change accounts for the visit cost. On a bounded inventory range, the function Ψ ( y ) = max 0 ≤ z ≤ B Φ ( z ) − Φ ( y ) \Psi(y)=\max_{0\leq z\leq B}\Phi(z)-\Phi(y) Ψ ( y ) = max 0 ≤ z ≤ B Φ ( z ) − Φ ( y ) is nonnegative and has the opposite drift. Thus the preceding lemma applies to c t = f ( y t − 1 ) c_t=f(y_{t-1}) c t = f ( y t − 1 ) whenever E [ Φ ( y t ) − Φ ( y t − 1 ) ∣ F t − 1 ] ≥ f ( y t − 1 ) − e t \mathbb{E}[\Phi(y_t)-\Phi(y_{t-1})\mid\mathcal{F}_{t-1}]\geq f(y_{t-1})-e_t E [ Φ ( y t ) − Φ ( y t − 1 ) ∣ F t − 1 ] ≥ f ( y t − 1 ) − e t . The next lemma constructs such a potential explicitly from lower bounds on the buying probabilities.
Lemma G.3. Consider a contiguous block of at most τ ˉ \bar{\tau} τ ˉ decision epochs. Suppose every threshold on edges 1 , … , J 1,\ldots,J 1 , … , J is real throughout the block and γ τ t − 1 B ( y ) ≥ b y ≥ 1 / 2 \gamma_{\tau_{t-1}}^{B}(y)\geq b_y\geq1/2 γ τ t − 1 B ( y ) ≥ b y ≥ 1/2 at each epoch t t t in the block, where b y < 1 b_y<1 b y < 1 are fixed numbers. Fix a nonnegative decreasing f f f , set π 0 = 1 \pi_0=1 π 0 = 1 and π j = ∏ i = 1 j b i / ( 1 − b i ) \pi_j=\prod_{i=1}^{j}b_i/(1-b_i) π j = ∏ i = 1 j b i / ( 1 − b i ) , and define its weighted mean by f ˉ = ∑ j = 0 J π j f ( j ) / ∑ j = 0 J π j \bar{f}=\sum_{j=0}^{J}\pi_jf(j)/\sum_{j=0}^{J}\pi_j f ˉ = ∑ j = 0 J π j f ( j ) / ∑ j = 0 J π j . Set G J = 0 G_J=0 G J = 0 and, for 0 ≤ j < J 0\leq j<J 0 ≤ j < J , set
G j = ∑ i = 0 j π i ( f ( i ) − f ˉ ) π j b j + 1 , Φ ( y ) = ∑ j = 0 ( y ∧ J ) − 1 G j . (45) G_j=\frac{\sum_{i=0}^{j}\pi_i(f(i)-\bar{f})}{\pi_jb_{j+1}},\qquad\Phi(y)=\sum_{j=0}^{(y\wedge J)-1}G_j. \tag*{(45)} G j = π j b j + 1 ∑ i = 0 j π i ( f ( i ) − f ˉ ) , Φ ( y ) = j = 0 ∑ ( y ∧ J ) − 1 G j . (45) Conditionally on any history at the start of the block,
E ∑ t i n b l o c k f ( y t − 1 ) ≤ τ ˉ f ˉ + Φ ( J ) . \mathbb{E}\sum_{t\ \mathrm{in\ block}}f(y_{t-1})\leq\bar{\tau}\,\bar{f}+\Phi(J). E t in block ∑ f ( y t − 1 ) ≤ τ ˉ f ˉ + Φ ( J ) . Proof. Every G j G_j G j is nonnegative: the weighted average of a decreasing f f f over an initial segment is at least its average f ˉ \bar{f} f ˉ over the whole segment. The identity π j b j + 1 = π j + 1 ( 1 − b j + 1 ) \pi_jb_{j+1}=\pi_{j+1}(1-b_{j+1}) π j b j + 1 = π j + 1 ( 1 − b j + 1 ) makes (App.42) telescope to
b y + 1 G y − ( 1 − b y ) G y − 1 = f ( y ) − f ˉ , 0 ≤ y ≤ J . (46) b_{y+1}G_y-(1-b_y)G_{y-1}=f(y)-\bar{f},\qquad0\leq y\leq J. \tag*{(46)} b y + 1 G y − ( 1 − b y ) G y − 1 = f ( y ) − f ˉ , 0 ≤ y ≤ J . (46) Omit the downward term at zero and the upward term at J J J ; the latter equation uses ∑ i = 0 J π i ( f ( i ) − f ˉ ) = 0 \sum_{i=0}^{J}\pi_i(f(i)-\bar{f})=0 ∑ i = 0 J π i ( f ( i ) − f ˉ ) = 0 . Thus the weighted partial sums in the construction give precisely the expected-increment identity needed to account for f ( y ) f(y) f ( y ) .
At a reference state y = y t − 1 < J y=y_{t-1}<J y = y t − 1 < J , we have
E [ Φ ( y t ) − Φ ( y t − 1 ) ∣ F t − 1 ] ≤ ( a ) γ τ t − 1 B ( y + 1 ) G y − ( 1 − γ τ t − 1 B ( y ) ) G y − 1 \mathbb{E}[\Phi(y_t)-\Phi(y_{t-1})\mid\mathcal{F}_{t-1}]\overset{(a)}{\leq}\gamma_{\tau_{t-1}}^{B}(y+1)G_y-(1-\gamma_{\tau_{t-1}}^{B}(y))G_{y-1} E [ Φ ( y t ) − Φ ( y t − 1 ) ∣ F t − 1 ] ≤ ( a ) γ τ t − 1 B ( y + 1 ) G y − ( 1 − γ τ t − 1 B ( y )) G y − 1
≥ b y + 1 G y − ( 1 − b y ) G y − 1 = f ( y ) − f ˉ , \ge b_{y+1}G_y-(1-b_y)G_{y-1} = f(y)-\bar{f}, ≥ b y + 1 G y − ( 1 − b y ) G y − 1 = f ( y ) − f ˉ ,
where (a) conditions on the independent current price, (b) uses the assumed lower bounds on the two thresholds and G j ≥ 0 G_j \ge0 G j ≥ 0 , and (c) is App.43. At zero the downward terms in this chain are omitted. At y = J y=J y = J the purchase term is zero, so no bound on edge J + 1 J+1 J + 1 is needed. Above J J J , Φ \Phi Φ is flat and f ( y ) ≤ f ( J ) ≤ f ˉ f(y) \le f(J) \le\bar{f} f ( y ) ≤ f ( J ) ≤ f ˉ , so the same inequality holds, even at a constrained boundary. Sum it and use the tower property. The potential telescopes on the reference trajectory; 0 ≤ Φ ≤ Φ ( J ) 0 \le\Phi\le\Phi(J) 0 ≤ Φ ≤ Φ ( J ) proves the claimed accounting bound.
The centering by f ˉ \bar{f} f ˉ enforces both boundary conditions: multiplying App.43 by π y \pi_y π y and summing over 0 ≤ y ≤ J 0 \le y \le J 0 ≤ y ≤ J makes the left side zero, so the right side must also sum to zero. The resulting potential Ψ ( y ) = Φ ( J ) − Φ ( y ) \Psi(y)=\Phi(J)-\Phi(y) Ψ ( y ) = Φ ( J ) − Φ ( y ) satisfies the comparison lemma with c t = f ( y t − 1 ) c_t=f(y_{t-1}) c t = f ( y t − 1 ) and e t = f ˉ e_t=\bar{f} e t = f ˉ .
Which inventories receive an upward drift? Group decision epochs according to their remaining continuation horizon: in a block with time scale τ ˉ \bar{\tau} τ ˉ , we have τ ˉ ≤ τ t − 1 < 2 τ ˉ \bar{\tau} \le\tau_t-1 < 2\bar{\tau} τ ˉ ≤ τ t − 1 < 2 τ ˉ . There are at most τ ˉ \bar{\tau} τ ˉ epochs in this block. In the threshold estimates below, write τ = τ t − 1 \tau=\tau_t-1 τ = τ t − 1 , so τ ˉ ≤ τ < 2 τ ˉ \bar{\tau} \le\tau< 2\bar{\tau} τ ˉ ≤ τ < 2 τ ˉ . For all sufficiently large τ ˉ \bar{\tau} τ ˉ and T T T , its indices up to J = ⌊ h τ ˉ ⌋ J=\lfloor h\sqrt{\bar{\tau}}\rfloor J = ⌊ h τ ˉ ⌋ are real and below B / 2 + 1 B/2+1 B /2 + 1 , where 0 < h < 1 / 4 0<h<1/4 0 < h < 1/4 is a fixed small constant. The mean split used in App.33 gives λ τ ( y ) − a − = Δ ( 1 − S τ , y ( 0 ) ) + A y − E τ , y \lambda_\tau(y)-a^-=\Delta(1-S_{\tau,y}(0))+A_y-E_{\tau,y} λ τ ( y ) − a − = Δ ( 1 − S τ , y ( 0 )) + A y − E τ , y , where 0 ≤ E τ , y ≤ C y τ ˉ − r / 2 0 \le E_{\tau,y} \le C y\bar{\tau}^{-r/2} 0 ≤ E τ , y ≤ C y τ ˉ − r /2 . Choose h h h so small that S τ , y ( 0 ) ≤ 1 / 4 S_{\tau,y}(0) \le1/4 S τ , y ( 0 ) ≤ 1/4 and the last error is at most A y / 4 A_y/4 A y /4 for y ≤ J y \le J y ≤ J . This is possible because A y ≥ c ( y + d ) − α A_y \ge c(y+d)^{-\alpha} A y ≥ c ( y + d ) − α and y ( y + d ) α τ ˉ − r / 2 ≤ C h r y(y+d)^\alpha\bar{\tau}^{-r/2} \le Ch^r y ( y + d ) α τ ˉ − r /2 ≤ C h r once τ ˉ \bar{\tau} τ ˉ is large. The capacity error is also at most A y / 4 A_y/4 A y /4 for sufficiently large T T T . Hence λ τ B ( y ) > a − \lambda_\tau^B(y)>a^- λ τ B ( y ) > a − and
γ τ B ( y ) ≥ 1 / 2 , 1 ≤ y ≤ J . \gamma_\tau^B(y)\ge1/2,\qquad1\le y\le J. γ τ B ( y ) ≥ 1/2 , 1 ≤ y ≤ J .
All fixed excluded remaining-time blocks contain only a bounded number of decision epochs and will contribute a constant.
There is stronger repulsion on a smaller band of width H = ⌊ ℓ ( τ ˉ ∧ ( τ / Δ ) 1 / r ) ⌋ H=\left\lfloor\ell\left(\sqrt{\bar{\tau}}\wedge(\sqrt{\tau}/\Delta)^{1/r}\right)\right\rfloor H = ⌊ ℓ ( τ ˉ ∧ ( τ /Δ ) 1/ r ) ⌋ , where the gap-dependent entry is infinite at Δ = 0 \Delta=0 Δ = 0 and ℓ > 0 \ell>0 ℓ > 0 is a small fixed constant with H ≤ J / 4 H\le J/4 H ≤ J /4 . Increase the fixed block-size cutoff so that H ≥ ( 2 ∨ d ) H\ge(2\vee d) H ≥ ( 2 ∨ d ) and taking integer parts changes these scales by only fixed factors.
If 0 < α < 1 0<\alpha<1 0 < α < 1 , choose α < κ < κ α \alpha<\kappa<\kappa_\alpha α < κ < κ α . The strict coefficient gap in App.31 implies A y − g + ( κ / [ 4 ( y + d ) ] ) ≥ c ∗ ( y + d ) − α A_y-g_+(\kappa/[4(y+d)])\ge c_*(y+d)^{-\alpha} A y − g + ( κ / [ 4 ( y + d )]) ≥ c ∗ ( y + d ) − α for all y ≥ 1 y\ge1 y ≥ 1 , with fixed d , c ∗ > 0 d,c_*>0 d , c ∗ > 0 . For large y y y this follows by comparing leading coefficients; increase d d d to cover the remaining finite set using A y > 0 A_y>0 A y > 0 . By App.35, choosing ℓ \ell ℓ smaller if needed makes the deadline error use less than half this slack, since Δ H r / τ ˉ \Delta H^r/\sqrt{\bar{\tau}} Δ H r / τ ˉ and H r τ ˉ − r / 2 H^r\bar{\tau}^{-r/2} H r τ ˉ − r /2 are bounded by fixed multiples of ℓ r \ell^r ℓ r . Therefore we may use the reference thresholds b y = 1 / 2 + κ / [ 4 ( y + d ) ] b_y=1/2+\kappa/[4(y+d)] b y = 1/2 + κ / [ 4 ( y + d )] for y ≤ H y\le H y ≤ H and b y = 1 / 2 b_y=1/2 b y = 1/2 for H < y ≤ J H<y\le J H < y ≤ J . Their weights satisfy
π j ≍ ( j + 1 ) κ ( 0 ≤ j ≤ H ) , π j ≍ H κ ( H < j ≤ J ) . (47) \pi_j\asymp(j+1)^\kappa\quad(0\le j\le H),\qquad
\pi_j\asymp H^\kappa\quad(H<j\le J). \tag*{(47)} π j ≍ ( j + 1 ) κ ( 0 ≤ j ≤ H ) , π j ≍ H κ ( H < j ≤ J ) . (47)
Indeed, the logarithm of b y / ( 1 − b y ) b_y/(1-b_y) b y / ( 1 − b y ) equals κ / ( y + d ) + O ( ( y + d ) − 3 ) \kappa/(y+d)+O((y+d)^{-3}) κ / ( y + d ) + O (( y + d ) − 3 ) . The error series is summable, and the harmonic sum differs from log ( j + 1 ) \log(j+1) log ( j + 1 ) by a bounded amount. Constants absorb the fixed shift and small indices.
For α = 1 \alpha=1 α = 1 , put e y = γ ∞ ( y ) − 1 / 2 e_y=\gamma_\infty(y)-1/2 e y = γ ∞ ( y ) − 1/2 and use b y = 1 / 2 + ( e y − A [ Δ y / τ ˉ + y / τ ˉ ] ) + b_y=1/2+(e_y-A[\Delta y/\sqrt{\bar{\tau}}+y/\bar{\tau}])^+ b y = 1/2 + ( e y − A [ Δ y / τ ˉ + y / τ ˉ ] ) + for y ≤ H y\le H y ≤ H ; again take b y = 1 / 2 b_y=1/2 b y = 1/2 for H < y ≤ J H<y\le J H < y ≤ J . These are lower bounds by (App.36), the Lipschitz property of F F F , and the protected-band lower bound γ τ B ( y ) ≥ 1 / 2 \gamma^B_\tau(y)\ge1/2 γ τ B ( y ) ≥ 1/2 ; enlarge A A A to absorb ε T \varepsilon_T ε T . The expansion of γ ∞ \gamma_\infty γ ∞ gives log [ γ ∞ ( y ) / ( 1 − γ ∞ ( y ) ) ] = 1 / y + O ( y − 1 − ν ) + O ( y − 3 ) \log[\gamma_\infty(y)/(1-\gamma_\infty(y))]=1/y+O(y^{-1-\nu})+O(y^{-3}) log [ γ ∞ ( y ) / ( 1 − γ ∞ ( y ))] = 1/ y + O ( y − 1 − ν ) + O ( y − 3 ) . The log-odds function has bounded derivative on [ 1 / 2 , γ ∞ ( 1 ) ] [1/2,\gamma_\infty(1)] [ 1/2 , γ ∞ ( 1 )] , while the total perturbation up to H H H is at most C ( Δ H 2 / τ ˉ + H 2 / τ ˉ ) ≤ C C(\Delta H^2/\sqrt{\bar{\tau}}+H^2/\bar{\tau})\le C C ( Δ H 2 / τ ˉ + H 2 / τ ˉ ) ≤ C . Thus these weights satisfy
π j ≍ j + 1 ( 0 ≤ j ≤ H ) , π j ≍ H ( H < j ≤ J ) . (48) \pi_j\asymp j+1 \quad(0\le j\le H), \qquad\pi_j\asymp H \quad(H<j\le J). \tag*{(48)} π j ≍ j + 1 ( 0 ≤ j ≤ H ) , π j ≍ H ( H < j ≤ J ) . (48)
From threshold protection to an occupation bound. Apply Lemma G.3 to f ( j ) = ( j + 1 ) − r f(j)=(j+1)^{-r} f ( j ) = ( j + 1 ) − r . For α < 1 \alpha<1 α < 1 , (App.44) gives
∑ j = 0 J π j ≥ c J H κ , ∑ j = 0 J π j f ( j ) ≤ C H κ − α , \sum_{j=0}^{J}\pi_j\ge cJH^\kappa,\qquad\sum_{j=0}^{J}\pi_jf(j)\le CH^{\kappa-\alpha}, j = 0 ∑ J π j ≥ c J H κ , j = 0 ∑ J π j f ( j ) ≤ C H κ − α ,
f ˉ ≤ C H − α / J , G j ≤ { C ( j + 1 ) − α , j < H , C H − α , H ≤ j < J . \bar f\le CH^{-\alpha}/J,\qquad
G_j\le
\begin{cases}
C(j+1)^{-\alpha}, & j<H,\\
CH^{-\alpha}, & H\le j<J.
\end{cases} f ˉ ≤ C H − α / J , G j ≤ { C ( j + 1 ) − α , C H − α , j < H , H ≤ j < J .
For the numerator, sum ( j + 1 ) κ − 1 − α (j+1)^{\kappa-1-\alpha} ( j + 1 ) κ − 1 − α below H H H and bound H κ ∑ j ≥ H ( j + 1 ) − 1 − α H^\kappa\sum_{j\ge H}(j+1)^{-1-\alpha} H κ ∑ j ≥ H ( j + 1 ) − 1 − α above it. The condition κ > α \kappa>\alpha κ > α is exactly what makes the first sum of order H κ − α H^{\kappa-\alpha} H κ − α . For G j G_j G j , drop the negative − f ˉ -\bar f − f ˉ term in its numerator and use b j + 1 ≥ 1 / 2 b_{j+1}\ge1/2 b j + 1 ≥ 1/2 . Summing the displayed increments gives Φ ( J ) ≤ C J H − α \Phi(J)\le CJH^{-\alpha} Φ ( J ) ≤ C J H − α , since H ≤ J H\le J H ≤ J . Consequently,
E ∑ t i n b l o c k ( y t − 1 + 1 ) − r ≤ ( a ) τ ˉ f ˉ + Φ ( J ) ≤ ( b ) C J H − α ≤ ( c ) C { τ ˉ ( 1 − α ) / 2 + Δ α / r τ ˉ 1 / ( 2 r ) } , α < 1. \mathbb{E}\sum_{t\ \mathrm{in\ block}}(y_{t-1}+1)^{-r}
\overset{(a)}{\le}\bar{\tau}\bar f+\Phi(J)
\overset{(b)}{\le}CJH^{-\alpha}
\overset{(c)}{\le}C\left\{\bar{\tau}^{(1-\alpha)/2}+\Delta^{\alpha/r}\bar{\tau}^{1/(2r)}\right\},\qquad\alpha<1. E t in block ∑ ( y t − 1 + 1 ) − r ≤ ( a ) τ ˉ f ˉ + Φ ( J ) ≤ ( b ) C J H − α ≤ ( c ) C { τ ˉ ( 1 − α ) /2 + Δ α / r τ ˉ 1/ ( 2 r ) } , α < 1.
where (a) is Lemma G.3, (b) uses the bounds on f ˉ \bar f f ˉ and Φ ( J ) \Phi(J) Φ ( J ) together with τ ˉ ≍ J 2 \bar{\tau}\asymp J^2 τ ˉ ≍ J 2 , and (c) substitutes the two scales in the definition of H H H . All comparisons are conditional on an arbitrary starting history. The sums just used follow by adding the first term to the appropriate integral on [ 1 , H ] [1,H] [ 1 , H ] or [ H , ∞ ) [H,\infty) [ H , ∞ ) ; no integral starts at zero.
For α = 1 \alpha=1 α = 1 , the same computation with (App.45) gives f ˉ ≤ C log H / ( J H ) \bar f\le C\log H/(JH) f ˉ ≤ C log H / ( J H ) and
G j ≤ { C log ( j + 2 ) / ( j + 1 ) , j < H , C log H / H , H ≤ j < J . G_j\le
\begin{cases}
C\log(j+2)/(j+1), & j<H,\\
C\log H/H, & H\le j<J.
\end{cases} G j ≤ { C log ( j + 2 ) / ( j + 1 ) , C log H / H , j < H , H ≤ j < J .
Consequently the same accounting bound is
E ∑ t in block ( y t − 1 + 1 ) − 2 ≤ C { log 2 H + τ ˉ H log H } . \mathbb{E}\sum_{t\ \text{in block}}(y_{t-1}+1)^{-2}\le C\left\{\log^{2}H+\frac{\sqrt{\bar{\tau}}}{H}\log H\right\}. E t in block ∑ ( y t − 1 + 1 ) − 2 ≤ C { log 2 H + H τ ˉ log H } .
The logarithmic square is simply the sum of log ( j + 2 ) / ( j + 1 ) \log(j+2)/(j+1) log ( j + 2 ) / ( j + 1 ) up to H H H . For a fixed positive gap, H ≍ Δ − 1 / 2 τ ˉ 1 / 4 H\asymp\Delta^{-1/2}\bar{\tau}^{1/4} H ≍ Δ − 1/2 τ ˉ 1/4 for all sufficiently large τ ˉ \bar{\tau} τ ˉ , and log H ≤ C τ ˉ / H \log H\le C\sqrt{\bar{\tau}}/H log H ≤ C τ ˉ / H . Thus the preceding block estimate is O F ( τ ˉ 1 / 4 log τ ˉ ) O_F(\bar{\tau}^{1/4}\log\bar{\tau}) O F ( τ ˉ 1/4 log τ ˉ ) . The finitely many earlier blocks contribute a distribution-dependent constant, giving the stated block rate for a positive gap.
Partition τ ≥ 1 \tau\ge1 τ ≥ 1 into dyadic blocks [ 2 l , 2 l + 1 ) [2^l,2^{l+1}) [ 2 l , 2 l + 1 ) . The first chronological block may be truncated; the accounting lemma allows that. Take expectations and sum the geometric series to obtain
E ∑ t = 1 T ( y t − 1 + 1 ) − r ≤ C { T ( 1 − α ) / 2 + Δ α / r T 1 / ( 2 r ) } , α < 1 , \mathbb{E}\sum_{t=1}^{T}(y_{t-1}+1)^{-r}\le C\left\{T^{(1-\alpha)/2}+\frac{\Delta^{\alpha/r}}{T^{1/(2r)}}\right\},\qquad\alpha<1, E t = 1 ∑ T ( y t − 1 + 1 ) − r ≤ C { T ( 1 − α ) /2 + T 1/ ( 2 r ) Δ α / r } , α < 1 ,
E ∑ t = 1 T ( y t − 1 + 1 ) − 2 ≤ C T 1 / 4 log T , α = 1 , Δ > 0. (49) \mathbb{E}\sum_{t=1}^{T}(y_{t-1}+1)^{-2}\le CT^{1/4}\log T,\qquad\alpha=1,\quad\Delta>0. \tag*{(49)} E t = 1 ∑ T ( y t − 1 + 1 ) − 2 ≤ C T 1/4 log T , α = 1 , Δ > 0. (49)
Both power exponents in the first line are positive. For the second line, bound the logarithm by log T \log T log T and sum the geometric series ∑ 2 l ≤ T 2 l / 4 ≤ C T 1 / 4 \sum_{2^l\le T}2^{l/4}\le CT^{1/4} ∑ 2 l ≤ T 2 l /4 ≤ C T 1/4 . The last epoch adds at most one.
No gap at the critical exponent: use the accounting rule globally. For α = 1 \alpha=1 α = 1 , Δ = 0 \Delta=0 Δ = 0 , restarting the accounting function on every block would charge repeatedly for its logarithmic sum. The finite-horizon error is now only C y / τ Cy/\tau C y / τ , so the same difference equation can instead be used once on the whole horizon.
Take b ˉ y = γ ∞ ( y ) \bar b_y=\gamma_\infty(y) b ˉ y = γ ∞ ( y ) , f ˉ = 0 \bar f=0 f ˉ = 0 , and no cutoff J J J . The construction in Lemma G.3 now uses π j = ∏ i = 1 j γ ∞ ( i ) / ( 1 − γ ∞ ( i ) ) \pi_j=\prod_{i=1}^{j}\gamma_\infty(i)/(1-\gamma_\infty(i)) π j = ∏ i = 1 j γ ∞ ( i ) / ( 1 − γ ∞ ( i )) and G j = ( ∑ i = 0 j π i ( i + 1 ) − 2 ) / ( π j γ ∞ ( j + 1 ) ) G_j=(\sum_{i=0}^{j}\pi_i(i+1)^{-2})/(\pi_j\gamma_\infty(j+1)) G j = ( ∑ i = 0 j π i ( i + 1 ) − 2 ) / ( π j γ ∞ ( j + 1 )) . Define Φ ( y ) = ∑ j = 0 y − 1 G j \Phi(y)=\sum_{j=0}^{y-1}G_j Φ ( y ) = ∑ j = 0 y − 1 G j . Exactly the same summable log-odds expansion gives π j ≍ j + 1 \pi_j\asymp j+1 π j ≍ j + 1 and 0 ≤ G j ≤ C log ( j + 2 ) / ( j + 1 ) 0\le G_j\le C\log(j+2)/(j+1) 0 ≤ G j ≤ C log ( j + 2 ) / ( j + 1 ) . Equation (App.43) still holds, now with f ( y ) = ( y + 1 ) − 2 f(y)=(y+1)^{-2} f ( y ) = ( y + 1 ) − 2 and f ˉ = 0 \bar f=0 f ˉ = 0 .
The actual thresholds are slightly smaller than these reference coefficients. By (App.36) and the Lipschitz property, 0 ≤ γ ∞ ( y ) − γ τ B ( y ) ≤ C y / ( τ + 1 ) + C ε T 0\le\gamma_\infty(y)-\gamma_\tau^B(y)\le Cy/(\tau+1)+C\varepsilon_T 0 ≤ γ ∞ ( y ) − γ τ B ( y ) ≤ C y / ( τ + 1 ) + C ε T for real indices y ≤ B / 2 + 1 y\le B/2+1 y ≤ B /2 + 1 . The same bound covers missing terminal indices y = τ + 1 , τ + 2 y=\tau+1,\tau+2 y = τ + 1 , τ + 2 , assigned threshold zero, because y / ( τ + 1 ) ≥ 1 y/(\tau+1)\ge1 y / ( τ + 1 ) ≥ 1 . Below the physical half-capacity, a purchase is not excluded by the physical ceiling; bounded small T T T are absorbed in the constants. Each threshold error multiplies a corresponding increment G y G_y G y or G y − 1 G_{y-1} G y − 1 in the expected change of Φ \Phi Φ . At epoch t t t , use y = y t − 1 y=y_{t-1} y = y t − 1 and continuation horizon τ t − 1 \tau_t-1 τ t − 1 to obtain
( y + 1 ) − 2 ≤ E [ Φ ( y t ) − Φ ( y t − 1 ) ∣ F t − 1 ] + C log ( y + 2 ) τ t + C ε T + C 1 { y > B / 2 } . (y+1)^{-2}\le\mathbb{E}\left[\Phi(y_t)-\Phi(y_{t-1})\mid\mathcal{F}_{t-1}\right]+C\frac{\log(y+2)}{\tau_t}+C\varepsilon_T+C1\{y>B/2\}. ( y + 1 ) − 2 ≤ E [ Φ ( y t ) − Φ ( y t − 1 ) ∣ F t − 1 ] + C τ t log ( y + 2 ) + C ε T + C 1 { y > B /2 } .
At zero omit the downward increment. Above B / 2 B/2 B /2 , boundedness of f f f and all G j G_j G j justifies the added constant wall charge. Sum up to t = T − 1 t=T-1 t = T − 1 . The potential telescopes on the actual path, and y T − 1 ≤ 1 y_{T-1}\le1 y T − 1 ≤ 1 makes its final value at most G 0 G_0 G 0 . Using (App.38) with m = 3 m=3 m = 3 yields
E ∑ t = 1 T ( y t − 1 + 1 ) − 2 ≤ ( a ) C + C log ( B + 2 ) ∑ t = 2 T τ − 1 + C T ε T + C T P ( max t y t > B / 2 ) ≤ ( b ) C log 2 T (50) \mathbb{E}\sum_{t=1}^{T}(y_{t-1}+1)^{-2}\overset{(a)}{\le} C+C\log(B+2)\sum_{t=2}^{T}\tau^{-1}+CT\varepsilon_T+CT\mathbb{P}\left(\max_t y_t>B/2\right)
\overset{(b)}{\le} C\log^2 T \tag*{(50)} E t = 1 ∑ T ( y t − 1 + 1 ) − 2 ≤ ( a ) C + C log ( B + 2 ) t = 2 ∑ T τ − 1 + C T ε T + C T P ( t max y t > B /2 ) ≤ ( b ) C log 2 T (50)
where (a) sums the conditional drift inequality by the tower property, telescopes Φ \Phi Φ , and adds at most one for the final epoch; (b) uses the harmonic-sum bound, B = ⌈ ρ T ⌉ B=\lceil\rho T\rceil B = ⌈ ρT ⌉ , T ε T = O ( 1 ) T\varepsilon_T=O(1) T ε T = O ( 1 ) , and (App.38) with m = 3 m=3 m = 3 . For the critical uniform case, applying the accounting identity over the whole horizon therefore gives the required logarithmic-square bound.
Step 5: sum the compensation and finish
We now sum the terms in (App.37) using the regret decomposition from Section E. The physical-wall error is bounded by (App.38), and T ε T = O ( 1 ) T\varepsilon_T=O(1) T ε T = O ( 1 ) . The inverse-inventory term is controlled by (App.46) or (App.47).
For the terminal-inventory term,
E ( y t − 1 + 1 τ t ) r ≤ ( a ) [ E ( y t − 1 + 1 ) 2 ] r / 2 τ t r ≤ ( b ) C τ t − r / 2 L τ t r / 2 (51) \mathbb{E}\left(\frac{y_{t-1}+1}{\tau_t}\right)^r\overset{(a)}{\le}\frac{\left[\mathbb{E}(y_{t-1}+1)^2\right]^{r/2}}{\tau_t^r}\overset{(b)}{\le}C\tau_t^{-r/2}L_{\tau_t}^{r/2} \tag*{(51)} E ( τ t y t − 1 + 1 ) r ≤ ( a ) τ t r [ E ( y t − 1 + 1 ) 2 ] r /2 ≤ ( b ) C τ t − r /2 L τ t r /2 (51)
where (a) is Jensen’s inequality with r / 2 ≤ 1 r/2\le1 r /2 ≤ 1 , and (b) uses ( y + 1 ) 2 ≤ 2 y 2 + 2 (y+1)^2\le2y^2+2 ( y + 1 ) 2 ≤ 2 y 2 + 2 and (App.39). With no gap, L τ = 4 L_\tau=4 L τ = 4 , so its sum and the separate fluctuation sum are O ( T ( 1 − α ) / 2 ) O(T^{(1-\alpha)/2}) O ( T ( 1 − α ) /2 ) for α < 1 \alpha<1 α < 1 , and O ( log T ) O(\log T) O ( log T ) for α = 1 \alpha=1 α = 1 . These follow from 1 + ∫ 1 T x − r / 2 d x 1+\int_1^T x^{-r/2}\,dx 1 + ∫ 1 T x − r /2 d x , treating r = 2 r=2 r = 2 separately. Combining with the corresponding occupation bounds gives the two no-gap claims in Lemma G.1 .
For a positive gap, L τ ≤ C log τ L_\tau\le C\log\tau L τ ≤ C log τ for τ ≥ 2 \tau\ge2 τ ≥ 2 , while the term at τ = 1 \tau=1 τ = 1 is bounded by a constant. When α < 1 \alpha<1 α < 1 , the sum in (App.48) is at most C T ( 1 − α ) / 2 ( log T ) r / 2 CT^{(1-\alpha)/2}(\log T)^{r/2} C T ( 1 − α ) /2 ( log T ) r /2 , which is dominated by C T 1 / ( 2 r ) CT^{1/(2r)} C T 1/ ( 2 r ) because
1 / [ 2 ( 1 + α ) ] − ( 1 − α ) / 2 = α 2 / [ 2 ( 1 + α ) ] > 0. 1/[2(1+\alpha)]-(1-\alpha)/2=\alpha^2/[2(1+\alpha)]>0. 1/ [ 2 ( 1 + α )] − ( 1 − α ) /2 = α 2 / [ 2 ( 1 + α )] > 0.
For α = 1 \alpha=1 α = 1 , it is O ( log 2 T ) O(\log^2 T) O ( log 2 T ) , dominated by T 1 / 4 log T T^{1/4}\log T T 1/4 log T . Adding (App.46) proves the two positive-gap claims and completes Lemma G.1 , which supplies the reference bounds. Appendix I adds at most M ∑ τ = 2 T τ − 1 ≤ M log T M\sum_{\tau=2}^{T}\tau^{-1}\le M\log T M ∑ τ = 2 T τ − 1 ≤ M log T for the specified finite sample counts, completing all continuous cases of Theorem 4.3 .
Finite atomic prices: a logarithmic buffer emerges automatically
For atomic prices, moving a threshold through an empty price interval does not change the trading decision. We therefore work directly with the compensation formula, which charges only for disagreements at support prices. For a hindsight marginal W W W , this formula is
J F ( W ) = ∑ i = 1 d w i ( E ( W − z i ) + ∧ E ( z i − W ) + ) (52) J_F(W)=\sum_{i=1}^{d}w_i\left(\mathbb{E}(W-z_i)^+ \wedge\mathbb{E}(z_i-W)^+\right) \tag*{(52)} J F ( W ) = i = 1 ∑ d w i ( E ( W − z i ) + ∧ E ( z i − W ) + ) (52)
where the fixed support and masses satisfy z 1 < ⋯ < z d z_1<\cdots<z_d z 1 < ⋯ < z d , w i > 0 w_i>0 w i > 0 , and ∑ i w i = 1 \sum_i w_i=1 ∑ i w i = 1 . Indeed, at z i z_i z i the identity follows from A − ( A − D ) + = A ∧ D A-(A-D)^+=A\wedge D A − ( A − D ) + = A ∧ D , with A = E ( W − z i ) + A=\mathbb{E}(W-z_i)^+ A = E ( W − z i ) + and D = E ( z i − W ) + D=\mathbb{E}(z_i-W)^+ D = E ( z i − W ) + . Only uncertainty that straddles an actual support price contributes.
This identity gives the reference charge at a specified inventory. Lemma I.2 bounds the sampled charge by twice this quantity plus C / K τ C/K_\tau C / K τ . Our task here is to determine how the reference charge varies with inventory. Appendix § 11.11 then controls its accumulation along the sampled inventory path, completing the atomic case of Theorem 4.3 . Here τ \tau τ denotes the number of prices in a continuation problem; at decision time t t t , this is τ t − 1 \tau_t-1 τ t − 1 , where τ t = T − t + 1 \tau_t=T-t+1 τ t = T − t + 1 includes the current decision.
Compensation at a given inventory when there is a median gap
Suppose F ( z j ) = 1 / 2 F(z_j)=1/2 F ( z j ) = 1/2 for some j < d j<d j < d . Write a − = z j a^-=z_j a − = z j , a + = z j + 1 a^+=z_{j+1} a + = z j + 1 , Δ = a + − a − > 0 \Delta=a^+-a^->0 Δ = a + − a − > 0 , μ − = w j \mu^-=w_j μ − = w j , and μ + = w j + 1 \mu^+=w_{j+1} μ + = w j + 1 . Assume first that μ + < 1 / 2 \mu^+<1/2 μ + < 1/2 , and set p ∗ = 1 / 2 + μ + p_* = 1/2+\mu^+ p ∗ = 1/2 + μ + , q ∗ = 1 / 2 − μ + q_*=1/2-\mu^+ q ∗ = 1/2 − μ + , and r = q ∗ / p ∗ ∈ ( 0 , 1 ) r=q_*/p_*\in(0,1) r = q ∗ / p ∗ ∈ ( 0 , 1 ) . The ordinary-walk representation in Lemma F.1 explains the special role of a + a^+ a + . For the tail above this atom, the ordinary walk has upward probability q ∗ < 1 / 2 q_*<1/2 q ∗ < 1/2 , so its probability of reaching level y y y is at most r y r^y r y . Immediately below the atom, the corresponding ordinary walk is fair, and its probability of not reaching y y y by time τ \tau τ is of order ( y / τ ) ∧ 1 (y/\sqrt{\tau})\wedge1 ( y / τ ) ∧ 1 . The lemma identifies these probabilities with one-time tails of the uncapped count process; Lemma F.3 controls the effect of the physical cap. The smaller of these two tail bounds controls compensation at a + a^+ a + .
Lemma H.1. Fix the finite atomic law F F F with positive median gap and ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) as above. There are constants c , C > 0 c,C>0 c , C > 0 , depending only on F F F and ρ \rho ρ , such that the following hold for every feasible y ≤ B / 2 y\le B/2 y ≤ B /2 and τ ≥ 1 \tau\ge1 τ ≥ 1 . Write ϵ T = C T 2 e − c ρ T \epsilon_T=CT^2e^{-c\rho T} ϵ T = C T 2 e − c ρT for the error from Lemma F.3 .
(a) If μ + < 1 / 2 \mu^+<1/2 μ + < 1/2 , there is a fixed s ∈ ( 0 , r ) s\in(0,r) s ∈ ( 0 , r ) , depending on F F F , such that
∂ R ‾ τ B ( y ) ≤ C [ ( r y ∧ y + 1 τ ) + s y + e − c τ + ϵ T ] . (53) \partial\overline{R}^{B}_{\tau}(y)\le C\left[\left(r^y\wedge\frac{y+1}{\sqrt{\tau}}\right)+s^y+e^{-c\tau}+\epsilon_T\right]. \tag*{(53)} ∂ R τ B ( y ) ≤ C [ ( r y ∧ τ y + 1 ) + s y + e − c τ + ϵ T ] . (53) (b) If μ + = 1 / 2 \mu^+=1/2 μ + = 1/2 , then ∂ R ‾ τ B ( y ) ≤ C ( e − c τ + ϵ T ) \partial\overline{R}^{B}_{\tau}(y)\le C(e^{-c\tau}+\epsilon_T) ∂ R τ B ( y ) ≤ C ( e − c τ + ϵ T ) .
Proof. Apply (App.49) to an existing marginal W = Δ V τ B ( ℓ ) W=\Delta V^B_\tau(\ell) W = Δ V τ B ( ℓ ) , where ℓ ∈ { y , y + 1 } \ell\in\{y,y+1\} ℓ ∈ { y , y + 1 } and ℓ ≤ B / 2 + 1 \ell\le B/2+1 ℓ ≤ B /2 + 1 . For z i ≤ a − z_i\le a^- z i ≤ a − , put d i = 1 − 2 F ( z i ) ≥ 0 d_i=1-2F(z_i)\ge0 d i = 1 − 2 F ( z i ) ≥ 0 . The walk for W > z i W>z_i W > z i has drift d i d_i d i ; the walk whose failure determines W < z i W<z_i W < z i has drift d i + 2 w i d_i+2w_i d i + 2 w i . If ℓ ≥ ( d i + w i ) τ \ell\ge(d_i+w_i)\tau ℓ ≥ ( d i + w i ) τ , a hit by any time v ≤ τ v\le\tau v ≤ τ in the first walk requires a centered upward deviation at least w i τ w_i\tau w i τ . If ℓ < ( d i + w i ) τ \ell< (d_i+w_i)\tau ℓ < ( d i + w i ) τ , failure to hit in the second requires a terminal downward deviation exceeding w i τ w_i\tau w i τ . The maximal and endpoint Hoeffding bounds, together with Lemma F.3 , give
E ( W − z i ) + ∧ E ( z i − W ) + ≤ e − w i 2 τ / 2 + ε T , z i ≤ a − . \mathbb{E}(W-z_i)^+ \wedge\mathbb{E}(z_i-W)^+ \le e^{-w_i^2\tau/2}+\varepsilon_T,\qquad z_i\le a^-. E ( W − z i ) + ∧ E ( z i − W ) + ≤ e − w i 2 τ /2 + ε T , z i ≤ a − .
We used that a positive part is at most its positivity probability, since prices lie in [ 0 , 1 ] [0,1] [ 0 , 1 ] . At the lowest support price, the downward positive part is zero.
At a + a^+ a + , Lemma F.1 gives E ( W − a + ) + ≤ r ℓ \mathbb{E}(W-a^+)^+\le r^\ell E ( W − a + ) + ≤ r ℓ , while
E ( a + − W ) + ≤ ( a ) P ( W ≤ a − ) ≤ ( b ) P 1 / 2 ( σ ℓ > τ ) + ε T ≤ ( c ) C ℓ / τ + ε T . \mathbb{E}(a^+-W)^+ \underset{(a)}{\le} \mathbb{P}(W\le a^-) \underset{(b)}{\le} \mathbb{P}_{1/2}(\sigma_\ell>\tau)+\varepsilon_T \underset{(c)}{\le} C\ell/\sqrt{\tau}+\varepsilon_T. E ( a + − W ) + ( a ) ≤ P ( W ≤ a − ) ( b ) ≤ P 1/2 ( σ ℓ > τ ) + ε T ( c ) ≤ C ℓ / τ + ε T .
where (a) uses the absence of support in ( a − , a + ) (a^-,a^+) ( a − , a + ) and the unit price range, (b) uses the fair queue at a − a^- a − and Lemma F.3 , and (c) applies Lemma F.2 . For every z i > a + z_i>a^+ z i > a + , the upward hinge is at most r i ℓ r_i^\ell r i ℓ , where r i = ( 1 − F ( z i ) ) / F ( z i ) < r r_i=(1-F(z_i))/F(z_i)<r r i = ( 1 − F ( z i )) / F ( z i ) < r . Choose s ∈ ( 0 , r ) s\in(0,r) s ∈ ( 0 , r ) larger than these finitely many ratios. Adding the hinges for the existing marginals at y y y and y + 1 y+1 y + 1 proves (App.50). At y = 0 y=0 y = 0 only the marginal at 1 1 1 exists; compulsory actions contribute zero. If μ + = 1 / 2 \mu^+=1/2 μ + = 1/2 , no price exceeds a + a^+ a + , whose hinge is then zero, so only the bounds for atoms at or below a − a^- a − remain.
The mean thresholds reveal a logarithmic reserve
We next identify the inventory levels at which the mean continuation value makes buying at a + a^+ a + preferable to holding. This shows how a logarithmic reserve arises from the scenario optimization. We also quantify the buying advantage, which will allow us to control the effect of sampling on these decisions.
Lemma H.2. Fix F F F and ρ \rho ρ as above, and suppose μ + < 1 / 2 \mu^+<1/2 μ + < 1/2 . Choose a sufficiently large fixed A A A . For a sufficiently large remaining-time scale τ ˉ ≥ 2 \bar{\tau}\ge2 τ ˉ ≥ 2 , define
h τ ˉ = ⌊ log ( τ / [ A log τ ˉ ] ) ∣ log r ∣ ⌋ − 1. h_{\bar{\tau}}=\left\lfloor\frac{\log(\sqrt{\tau}/[A\log\bar{\tau}])}{|\log r|}\right\rfloor-1. h τ ˉ = ⌊ ∣ log r ∣ log ( τ / [ A log τ ˉ ]) ⌋ − 1. The constants below and the cutoff on τ ˉ \bar{\tau} τ ˉ may depend on F F F , ρ \rho ρ , and A A A , but not on τ ˉ \bar{\tau} τ ˉ , τ \tau τ , or T T T .
(a) There is a constant c > 0 c>0 c > 0 such that, uniformly for τ ˉ ≤ τ < 2 τ ˉ \bar{\tau}\le\tau<2\bar{\tau} τ ˉ ≤ τ < 2 τ ˉ and existing y ≤ h τ ˉ + 1 y\le h_{\bar{\tau}}+1 y ≤ h τ ˉ + 1 , λ τ D ( y ) − a + ≥ c log τ ˉ / τ \lambda_\tau^D(y)-a^+\ge c\log\bar{\tau}/\sqrt{\tau} λ τ D ( y ) − a + ≥ c log τ ˉ / τ .
(b) h τ ˉ ≍ log τ ˉ h_{\bar{\tau}}\asymp\log\bar{\tau} h τ ˉ ≍ log τ ˉ and r h τ ˉ ≍ log τ ˉ / τ ˉ r^{h_{\bar{\tau}}}\asymp\log\bar{\tau}/\sqrt{\bar{\tau}} r h τ ˉ ≍ log τ ˉ / τ ˉ .
Proof. Let γ = z j + 2 − a + > 0 \gamma=z_{j+2}-a^+>0 γ = z j + 2 − a + > 0 . At price level a + + γ / 2 a^++\gamma/2 a + + γ /2 , likelihood reversal gives an upward-tail probability at least r y ( 1 − e − c τ ) r^y(1-e^{-c\tau}) r y ( 1 − e − c τ ) when y = O ( log τ ) y=O(\log\tau) y = O ( log τ ) : the reversed walk has fixed positive drift, so its failure probability is exponentially small. Fair survival bounds the negative part below a + a^{+} a + . Including the capacity error, therefore,
λ τ B ( y ) − a + ≥ c 1 r y − C 2 y / τ − C 3 ε T , y = O ( log τ ) . \lambda^{B}_{\tau}(y)-a^{+}\ge c_{1}r^{y}-C_{2}y/\sqrt{\tau}-C_{3}\varepsilon_{T},\qquad y=O(\log\tau). λ τ B ( y ) − a + ≥ c 1 r y − C 2 y / τ − C 3 ε T , y = O ( log τ ) .
At y = h τ ˉ + 1 y=h_{\bar{\tau}}+1 y = h τ ˉ + 1 , the definition gives r y ≥ A log τ ˉ / τ ˉ r^{y}\ge A\log\bar{\tau}/\sqrt{\bar{\tau}} r y ≥ A log τ ˉ / τ ˉ and y ≤ C log τ ˉ y\le C\log\bar{\tau} y ≤ C log τ ˉ . Choose A A A large, then a fixed cutoff on τ ˉ \bar{\tau} τ ˉ large enough to absorb the exponential error. This gives the stated margin; concavity extends it to smaller indices. The two scale estimates follow directly from h τ ˉ h_{\bar{\tau}} h τ ˉ 's definition. Increasing the cutoff ensures h τ ˉ ≥ 1 h_{\bar{\tau}}\ge1 h τ ˉ ≥ 1 and h τ ˉ + 1 < ( τ ˉ ∧ B ) h_{\bar{\tau}}+1<(\bar{\tau}\wedge B) h τ ˉ + 1 < ( τ ˉ ∧ B ) , since B ≥ ρ τ ˉ B\ge\rho\bar{\tau} B ≥ ρ τ ˉ .
Seeing the buffer in the four-price example. Give each price in { 0.2 , 0.4 , 0.6 , 0.8 } \{0.2,0.4,0.6,0.8\} { 0.2 , 0.4 , 0.6 , 0.8 } probability 1 / 4 1/4 1/4 , as in Example 2.3 . Here a + = 0.6 a^{+}=0.6 a + = 0.6 and r = 1 / 3 r=1/3 r = 1/3 . Without the capacity bound, W = Δ V τ ( y ) W=\Delta V_{\tau}(y) W = Δ V τ ( y ) takes only these four prices whenever 1 ≤ y ≤ τ 1\le y\le\tau 1 ≤ y ≤ τ . Therefore E W − 0.6 = 0.2 { P ( W > 0.6 ) − P ( W ≤ 0.4 ) − P ( W ≤ 0.2 ) } \mathbb{E}W-0.6=0.2\{\mathbb{P}(W>0.6)-\mathbb{P}(W\le0.4)-\mathbb{P}(W\le0.2)\} E W − 0.6 = 0.2 { P ( W > 0.6 ) − P ( W ≤ 0.4 ) − P ( W ≤ 0.2 )} . Let σ y \sigma_y σ y be the first time a sign walk starting at zero reaches y y y , and let the subscript on P \mathbb{P} P give its upward probability. Lemma F.1 identifies the three probabilities above with hitting at upward probability 1 / 4 1/4 1/4 , survival at 1 / 2 1/2 1/2 , and survival at 3 / 4 3/4 3/4 , respectively. Reversing the likelihood of the first walk gives
λ τ ( y ) − 0.6 = 0.2 [ 3 − y P 3 / 4 ( σ y ≤ τ ) − P 1 / 2 ( σ y > τ ) − P 3 / 4 ( σ y > τ ) ] . (54) \lambda_{\tau}(y)-0.6=0.2\left[3^{-y}\mathbb{P}_{3/4}(\sigma_y\le\tau)-\mathbb{P}_{1/2}(\sigma_y>\tau)-\mathbb{P}_{3/4}(\sigma_y>\tau)\right]. \tag*{(54)} λ τ ( y ) − 0.6 = 0.2 [ 3 − y P 3/4 ( σ y ≤ τ ) − P 1/2 ( σ y > τ ) − P 3/4 ( σ y > τ ) ] . (54)
For y = O ( log τ ) y=O(\log\tau) y = O ( log τ ) , Hoeffding's inequality gives P 3 / 4 ( σ y > τ ) = O ( e − c τ ) \mathbb{P}_{3/4}(\sigma_y>\tau)=O(e^{-c\tau}) P 3/4 ( σ y > τ ) = O ( e − c τ ) , since failure to hit requires the final walk position to be below y y y . Lemma F.2 bounds fair survival above and below by constant multiples of y / τ y/\sqrt{\tau} y / τ . The sign changes where 3 − y ≍ y / τ 3^{-y}\asymp y/\sqrt{\tau} 3 − y ≍ y / τ , hence at y = ( log τ ) / ( 2 log 3 ) − ( log log τ ) / log 3 + O ( 1 ) y=(\log\tau)/(2\log3)-(\log\log\tau)/\log3+O(1) y = ( log τ ) / ( 2 log 3 ) − ( log log τ ) / log 3 + O ( 1 ) . To obtain this expansion, take logarithms in the equation 3 − y = y / τ 3^{-y}=y/\sqrt{\tau} 3 − y = y / τ for its unique positive real solution. This first gives y ≍ log τ y\asymp\log\tau y ≍ log τ ; substituting back gives the stated expression. Shifting the solution by a sufficiently large fixed constant in either direction makes 3 − y / ( y / τ ) 3^{-y}/(y/\sqrt{\tau}) 3 − y / ( y / τ ) respectively larger or smaller than the fixed survival constants; the exponentially small terms in (App.51) do not change these signs. Monotonicity of λ τ ( y ) \lambda_{\tau}(y) λ τ ( y ) then locates its crossing within O ( 1 ) O(1) O ( 1 ) . The capacity error ε T \varepsilon_T ε T is negligible relative to log τ / τ \log\tau/\sqrt{\tau} log τ / τ at these indices.
At price 0.6 0.6 0.6 , the mean-threshold rule buys if λ τ ( y + 1 ) > 0.6 \lambda_{\tau}(y+1)>0.6 λ τ ( y + 1 ) > 0.6 , sells if λ τ ( y ) < 0.6 \lambda_{\tau}(y)<0.6 λ τ ( y ) < 0.6 , and holds when its two adjacent marginals straddle that price, including ties. The continuation values therefore generate the buffer endogenously. Appendix § 11.11 shows that the reserve remains effective with K t ≥ ( T − t + 1 ) 2 K_t\ge(T-t+1)^2 K t ≥ ( T − t + 1 ) 2 , although sampling can change the cutoff on a particular realization.
A crossing identity that applies to the sampled policy
To turn the local compensation bound into a regret bound, we need to relate visits at adjacent inventory levels. A purchase from y y y to y + 1 y+1 y + 1 and a sale from y + 1 y+1 y + 1 to y y y are opposite crossings of the same pair of levels. Over any consecutive block of decisions, their counts differ by at most one: every purchase must be followed by a sale before another purchase can cross that same pair of levels, and conversely. The difference is determined by the block’s initial and final inventories. We use this observation to express occupation in terms of the policy’s corrections to the actions prescribed by the static median-sign rule.
Use the fair signs ξ t = 1 { p t ≤ a − } − 1 { p t ≥ a + } \xi_t = \mathbf{1}\{p_t \le a^{-}\} - \mathbf{1}\{p_t \ge a^{+}\} ξ t = 1 { p t ≤ a − } − 1 { p t ≥ a + } and upward corrections u t = ( x t − ξ t ) + u_t = (x_t - \xi_t)^{+} u t = ( x t − ξ t ) + of any feasible online policy, including sampled STARS. On a consecutive block I = { a , … , c } I = \{a,\ldots,c\} I = { a , … , c } , define expected visits ν j = E ∑ t ∈ I 1 { y t − 1 = j } \nu_j = \mathbb{E}\sum_{t\in I}\mathbf{1}\{y_{t-1}=j\} ν j = E ∑ t ∈ I 1 { y t − 1 = j } and corrections A j = E ∑ t ∈ I u t 1 { y t − 1 = j } A_j = \mathbb{E}\sum_{t\in I}u_t\mathbf{1}\{y_{t-1}=j\} A j = E ∑ t ∈ I u t 1 { y t − 1 = j } . If C j + , C j − C_j^{+}, C_j^{-} C j + , C j − count expected upcrossings and downcrossings of j ↔ j + 1 j \leftrightarrow j+1 j ↔ j + 1 , cancellation gives
C j + − C j − = E [ 1 { y c ≥ j + 1 } − 1 { y a − 1 ≥ j + 1 } ] ∈ [ − 1 , 1 ] . C_j^{+} - C_j^{-} = \mathbb{E}\left[\mathbf{1}\{y_c \ge j+1\} - \mathbf{1}\{y_{a-1} \ge j+1\}\right] \in[-1,1]. C j + − C j − = E [ 1 { y c ≥ j + 1 } − 1 { y a − 1 ≥ j + 1 } ] ∈ [ − 1 , 1 ] .
Pointwise, 1 { x t = 1 } ≤ 1 { ξ t = 1 } + u t \mathbf{1}\{x_t=1\} \le\mathbf{1}\{\xi_t=1\} + u_t 1 { x t = 1 } ≤ 1 { ξ t = 1 } + u t and 1 { x t = − 1 } ≥ 1 { ξ t = − 1 } − u t \mathbf{1}\{x_t=-1\} \ge\mathbf{1}\{\xi_t=-1\} - u_t 1 { x t = − 1 } ≥ 1 { ξ t = − 1 } − u t . The current sign is fair independently of the past, hence C j + ≤ ν j / 2 + A j C_j^{+} \le\nu_j/2 + A_j C j + ≤ ν j /2 + A j and C j − ≥ ν j + 1 / 2 − A j + 1 C_j^{-} \ge\nu_{j+1}/2 - A_{j+1} C j − ≥ ν j + 1 /2 − A j + 1 . It follows that
ν j + 1 ≤ ν j + 2 + 2 ( A j + A j + 1 ) , ν j ≤ ν h + 2 ( j − h ) + 4 ∑ i = h j A i , j > h . (55) \begin{aligned}
\nu_{j+1} &\le\nu_j + 2 + 2(A_j + A_{j+1}), \\
\nu_j &\le\nu_h + 2(j-h) + 4\sum_{i=h}^{j} A_i,\qquad j>h. \tag*{(55)}
\end{aligned} ν j + 1 ν j ≤ ν j + 2 + 2 ( A j + A j + 1 ) , ≤ ν h + 2 ( j − h ) + 4 i = h ∑ j A i , j > h . (55)
Here (a) combines the preceding inequalities with crossing cancellation, and (b) sums over successive edges. The pointwise inequalities remain valid at compulsory sales and unavailable purchases.
Compensation when the median lies strictly inside an atom
The only remaining possibility is an atom a a a with F ( a − ) < 1 / 2 < F ( a ) F(a^{-}) < 1/2 < F(a) F ( a − ) < 1/2 < F ( a ) , where F ( a − ) = P ( p < a ) F(a^{-}) = \mathbb{P}(p<a) F ( a − ) = P ( p < a ) denotes a left limit. Buying or selling at this atom produces a fixed drift. We first show that compensation decays exponentially with the distance from the storage boundaries, up to an exponentially small remaining-horizon term. We then use the drift away from a costly boundary to bound its accumulated compensation under sampled STARS.
A count estimate with both storage boundaries. Let C t + 1 = clip [ 0 , B ] ( C t + ξ t + 1 ) C_{t+1} = \operatorname{clip}_{[0,B]}(C_t+\xi_{t+1}) C t + 1 = clip [ 0 , B ] ( C t + ξ t + 1 ) , C 0 = 0 C_0=0 C 0 = 0 , with upward probability p > 1 / 2 p>1/2 p > 1/2 . If p < 1 p<1 p < 1 , put δ = 2 p − 1 \delta=2p-1 δ = 2 p − 1 and r p = ( 1 − p ) / p r_p=(1-p)/p r p = ( 1 − p ) / p . For 1 ≤ y ≤ B 1\le y\le B 1 ≤ y ≤ B and y < δ τ y<\delta\tau y < δ τ ,
P ( C τ < y ) ≤ e − ( δ τ − y ) 2 / ( 2 τ ) + r p B − y . (56) \mathbb{P}(C_\tau<y)\le e^{-(\delta\tau-y)^2/(2\tau)}+r_p^{B-y}. \tag*{(56)} P ( C τ < y ) ≤ e − ( δ τ − y ) 2 / ( 2 τ ) + r p B − y . (56)
To prove this, write S t = ∑ i = 1 t ξ i S_t=\sum_{i=1}^{t}\xi_i S t = ∑ i = 1 t ξ i . The upper-reflected process is
Z τ = S τ − max 0 ≤ j ≤ τ ( S j − B ) + = S τ ∧ ( B + min 0 ≤ j ≤ τ ( S τ − S j ) ) . Z_\tau=S_\tau-\max_{0\le j\le\tau}(S_j-B)^{+}
=S_\tau\wedge\left(B+\min_{0\le j\le\tau}(S_\tau-S_j)\right). Z τ = S τ − 0 ≤ j ≤ τ max ( S j − B ) + = S τ ∧ ( B + 0 ≤ j ≤ τ min ( S τ − S j ) ) .
Substitution verifies Z t + 1 = B ∧ ( Z t + ξ t + 1 ) Z_{t+1}=B\wedge(Z_t+\xi_{t+1}) Z t + 1 = B ∧ ( Z t + ξ t + 1 ) , Z 0 = 0 Z_0=0 Z 0 = 0 . Adding lower reflection can only increase the process, so C τ ≥ Z τ C_\tau\ge Z_\tau C τ ≥ Z τ . Thus C τ < y C_\tau<y C τ < y requires either S τ < y S_\tau<y S τ < y or a suffix sum below − ( B − y ) -(B-y) − ( B − y ) . Hoeffding bounds the first event; reversal of the signs and the negative-drift hitting formula bound the second by r p B − y r_p^{B-y} r p B − y . The weaker exponent B − y B-y B − y covers the strict integer inequality. If p = 1 p=1 p = 1 , C τ = τ ∧ B C_\tau=\tau\wedge B C τ = τ ∧ B deterministically, and the failure probability is zero at every existing index.
Local compensation is concentrated near the walls. For constants c , C > 0 c,C>0 c , C > 0 and every feasible y y y , τ ≥ 1 \tau\ge1 τ ≥ 1 ,
∂ R ˉ τ B ( y ) ≤ C { e − c y + e − c ( B − y ) + e − c τ } . (57) \partial\bar{R}^{B}_{\tau}(y)\le C\{e^{-cy}+e^{-c(B-y)}+e^{-c\tau}\}. \tag*{(57)} ∂ R ˉ τ B ( y ) ≤ C { e − cy + e − c ( B − y ) + e − c τ } . (57)
The lower-wall term is unnecessary if no support price exceeds a a a ; the upper-wall term is unnecessary if no price is below a a a . We prove the bound for each existing marginal W = Δ V τ B ( ℓ ) W=\Delta V^{B}_{\tau}(\ell) W = Δ V τ B ( ℓ ) , ℓ ∈ { y , y + 1 } \ell\in\{y,y+1\} ℓ ∈ { y , y + 1 } , by treating support prices below, at, and above the median atom separately. For z i < a z_i<a z i < a , put d i = 1 − 2 F ( z i ) > 0 d_i=1-2F(z_i)>0 d i = 1 − 2 F ( z i ) > 0 . If ℓ ≥ ( d i + w i ) τ \ell\ge(d_i+w_i)\tau ℓ ≥ ( d i + w i ) τ , maximal Hoeffding makes the upward hinge at most e − w i 2 τ / 2 e^{-w_i^2\tau/2} e − w i 2 τ /2 . If ℓ < ( d i + w i ) τ \ell<(d_i+w_i)\tau ℓ < ( d i + w i ) τ , apply (App.53) to the walk immediately below z i z_i z i , whose drift is d i + 2 w i d_i+2w_i d i + 2 w i , to make the downward hinge at most e − w i 2 τ / 2 + e − c i ( B − ℓ ) e^{-w_i^2\tau/2}+e^{-c_i(B-\ell)} e − w i 2 τ /2 + e − c i ( B − ℓ ) . If that walk has upward probability one, its downward hinge is instead zero.
At a a a , put δ − = 1 − 2 F ( a − ) > 0 \delta_-=1-2F(a^-)>0 δ − = 1 − 2 F ( a − ) > 0 . Its upward hinge is at most e − c ℓ e^{-c\ell} e − c ℓ , because 1 − F ( a ) < 1 / 2 1-F(a)<1/2 1 − F ( a ) < 1/2 . When ℓ ≥ δ − τ / 2 \ell\ge\delta_-\tau/2 ℓ ≥ δ − τ /2 , this is at most e − c ′ τ e^{-c'\tau} e − c ′ τ ; otherwise (App.53) bounds the downward hinge by e − c ′ τ + e − c ( B − ℓ ) e^{-c'\tau}+e^{-c(B-\ell)} e − c ′ τ + e − c ( B − ℓ ) . If a a a is an extreme support price, its hinge minimum is zero. At every atom above a a a , the upward hinge is at most e − c i ℓ e^{-c_i\ell} e − c i ℓ by negative-drift hitting. Sum these finitely many bounds in (App.49) and add the existing marginals at y y y and y + 1 y+1 y + 1 to obtain (App.54). Index shifts change only constants; compulsory actions cost zero. This also verifies the stated omissions of wall terms.
It remains to bound how often sampled STARS visits these costly boundary regions. Appendix J proves the required occupation bounds directly for the sampled trajectory, accounting for empirical ties and terminal restrictions.
The effect of finitely many scenarios
We now account for the finite scenarios used by STARS. Sampling can change both the current action and all subsequent inventories, so we track its effect along the inventory path. Write π K \pi^K π K for STARS with K t K_t K t fresh shared scenarios at epoch t t t . As before, π ∘ \pi^\circ π ∘ denotes the population-threshold reference rule: it replaces each scenario average by its expectation, uses thresholds λ τ t − 1 B ( y ) \lambda^{B}_{\tau_{t-1}}(y) λ τ t − 1 B ( y ) at epoch t t t , where τ t = T − t + 1 \tau_t=T-t+1 τ t = T − t + 1 , and holds at ties. For continuous prices, we compare the online rewards of the two policies. We then prove a second bound, valid for arbitrary price laws, on compensation at the inventories visited by the sampled policy.
Proposition I.1. Fix an M M M -Lipschitz distribution F F F . Let K t ≥ 1 K_t \ge1 K t ≥ 1 be chosen from the past before observing p t p_t p t , and use K t K_t K t shared fresh i.i.d. futures independent of the current price and actual future. Then
Reg T ( π K ) ≤ Reg T ( π ∘ ) + M E ∑ t = 1 T − 1 K t − 1 / 2 . \operatorname{Reg}_T(\pi^K) \le\operatorname{Reg}_T(\pi^\circ) + M\mathbb{E}\sum_{t=1}^{T-1} K_t^{-1/2}. Reg T ( π K ) ≤ Reg T ( π ∘ ) + M E t = 1 ∑ T − 1 K t − 1/2 . In particular K t ≥ ( T − t + 1 ) 2 K_t \ge(T-t+1)^2 K t ≥ ( T − t + 1 ) 2 adds at most M log T M\log T M log T , preserving all the continuous-class rates.
Proof. First bound the value of one additional unit under the reference policy. Let J τ ( y ) J_\tau(y) J τ ( y ) be the expected reward of the fixed reference rule π ∘ \pi^\circ π ∘ starting at y y y with τ \tau τ decision epochs left, still ending at zero. The continuation value J τ J_\tau J τ is defined by following this fixed online policy. Run this policy from adjacent feasible inventories on the same prices. Decreasing thresholds imply that the higher process’s action is no larger than the lower one’s. A crossing would require a purchase at z z z and a sale at z + 1 z+1 z + 1 , hence a price both below and above the same threshold λ τ − 1 B ( z + 1 ) \lambda^B_{\tau-1}(z+1) λ τ − 1 B ( z + 1 ) when τ \tau τ decisions remain. Holding at ties prevents this too. Walls remove outward actions; if the upper state is on the terminal boundary, it must sell and the lower state cannot buy. The distance therefore stays one or becomes zero. Until coalescence the actions agree; at coalescence the upper action is one less. Both end at zero, so coalescence occurs, and their reward difference is exactly the price at that epoch. Consequently
0 ≤ J τ ( y + 1 ) − J τ ( y ) ≤ 1 , ∣ Q τ ( y , p , x ) − Q τ ( y , p , z ) ∣ ≤ ∣ x − z ∣ , (58) 0 \le J_\tau(y+1)-J_\tau(y) \le1,\qquad\lvert Q_\tau(y,p,x)-Q_\tau(y,p,z)\rvert\le\lvert x-z\rvert, \tag*{(58)} 0 ≤ J τ ( y + 1 ) − J τ ( y ) ≤ 1 , ∣ Q τ ( y , p , x ) − Q τ ( y , p , z )∣ ≤ ∣ x − z ∣ , (58)
where Q τ ( y , p , x ) = − p x + J τ − 1 ( y + x ) Q_\tau(y,p,x)=-px+J_{\tau-1}(y+x) Q τ ( y , p , x ) = − p x + J τ − 1 ( y + x ) . The second inequality follows by summing the first between feasible residual inventories; the reward difference lies between − p ( x − z ) -p(x-z) − p ( x − z ) and ( 1 − p ) ( x − z ) (1-p)(x-z) ( 1 − p ) ( x − z ) when x > z x>z x > z . We use Q Q Q to evaluate a chosen action followed by the fixed reference rule.
Next compare the actions at the sampled policy’s current inventory. Condition on its pre-price history, including y y y and K = K t K=K_t K = K t , and write τ = τ t \tau=\tau_t τ = τ t for the number of remaining decisions. Let X X X be the reference action at that state and X ^ \widehat{X} X the STARS action. Shared scenarios keep the two empirical thresholds ordered. Each is an average of K K K variables in [ 0 , 1 ] [0,1] [ 0 , 1 ] , so its variance is at most 1 / ( 4 K ) 1/(4K) 1/ ( 4 K ) and its mean absolute error at most 1 / ( 2 K ) 1/(2\sqrt{K}) 1/ ( 2 K ) by Cauchy–Schwarz. In the next display, λ b = λ τ − 1 B ( y + 1 ) \lambda_b=\lambda^B_{\tau-1}(y+1) λ b = λ τ − 1 B ( y + 1 ) and λ s = λ τ − 1 B ( y ) \lambda_s=\lambda^B_{\tau-1}(y) λ s = λ τ − 1 B ( y ) are the existing population thresholds, and their hats denote the corresponding shared-scenario sample means. Independence of the current price and the M M M -Lipschitz CDF give
E [ ∣ X − X ^ ∣ ∣ past ] ≤ ( a ) E [ ∣ F ( λ b ) − F ( λ ^ b ) ∣ + ∣ F ( λ s ) − F ( λ ^ s ) ∣ ∣ past ] \mathbb{E}[\lvert X-\widehat{X}\rvert\mid\text{past}]
\overset{(a)}{\le} \mathbb{E}[\lvert F(\lambda_b)-F(\widehat{\lambda}_b)\rvert+\lvert F(\lambda_s)-F(\widehat{\lambda}_s)\rvert\mid\text{past}] E [∣ X − X ∣ ∣ past ] ≤ ( a ) E [∣ F ( λ b ) − F ( λ b )∣ + ∣ F ( λ s ) − F ( λ s )∣ ∣ past ]
≤ ( b ) M E [ ∣ λ b − λ ^ b ∣ + ∣ λ s − λ ^ s ∣ ∣ past ] ≤ ( c ) M / K . (59) \overset{(b)}{\le} M\mathbb{E}[\lvert\lambda_b-\widehat{\lambda}_b\rvert+\lvert\lambda_s-\widehat{\lambda}_s\rvert\mid\text{past}]
\overset{(c)}{\le} M/\sqrt{K}. \tag*{(59)} ≤ ( b ) M E [∣ λ b − λ b ∣ + ∣ λ s − λ s ∣ ∣ past ] ≤ ( c ) M / K . (59)
where (a) integrates the buy and sell disagreement intervals using independence of the current price and scenarios, (b) applies the M M M -Lipschitz property of F F F , and (c) uses the two mean absolute error bounds 1 / ( 2 K ) 1/(2\sqrt{K}) 1/ ( 2 K ) proved above. Missing channels have zero error, forced actions agree, and ties are null under the continuous price law.
Finally sum the reward differences along the sampled path. Using the fixed-policy equation J τ ( y ) = E p Q τ ( y , p , X ) J_\tau(y) = \mathbb{E}_p Q_\tau(y,p,X) J τ ( y ) = E p Q τ ( y , p , X ) , we obtain
∣ J τ ( y ) − E [ − p t X ^ + J τ − 1 ( y + X ^ ) ∣ past ] ∣ ≤ ( a ) E [ ∣ Q τ ( y , p t , X ) − Q τ ( y , p t , X ^ ) ∣ ∣ past ] ≤ ( b ) E [ ∣ X − X ^ ∣ ∣ past ] ≤ ( c ) M K t − 1 / 2 . \begin{aligned}
\left|J_\tau(y)-\mathbb{E}\left[-p_t\widehat{X}+J_{\tau-1}(y+\widehat{X})\mid\text{past}\right]\right|
&\overset{(a)}{\leq}\mathbb{E}\left[\left|Q_\tau(y,p_t,X)-Q_\tau(y,p_t,\widehat{X})\right|\mid\text{past}\right]\\
&\overset{(b)}{\leq}\mathbb{E}\left[|X-\widehat{X}|\mid\text{past}\right]\overset{(c)}{\leq}MK_t^{-1/2}.
\end{aligned} J τ ( y ) − E [ − p t X + J τ − 1 ( y + X ) ∣ past ] ≤ ( a ) E [ Q τ ( y , p t , X ) − Q τ ( y , p t , X ) ∣ past ] ≤ ( b ) E [ ∣ X − X ∣ ∣ past ] ≤ ( c ) M K t − 1/2 .
where (a) uses the fixed-policy equation and ∣ E Z ∣ ≤ E ∣ Z ∣ |\mathbb{E}Z|\leq\mathbb{E}|Z| ∣ E Z ∣ ≤ E ∣ Z ∣ , (b) applies (App.55), and (c) applies (App.56) at the empirical state. At the last epoch, the terminal target forces the same action for both policies, so the terminal summand is zero. Take expectations and sum along the empirical path. The J J J terms telescope to J T ( 0 ) J_T(0) J T ( 0 ) since J 0 ( 0 ) = 0 J_0(0)=0 J 0 ( 0 ) = 0 . This bounds the difference of expected online rewards; subtracting from the common hindsight benchmark proves the proposition. The asserted schedule uses ∑ τ = 2 T 1 / τ ≤ log T \sum_{\tau=2}^{T}1/\tau\leq\log T ∑ τ = 2 T 1/ τ ≤ log T . □
The Lipschitz assumption bounds the probability that sampling changes an action. At an atom, this probability can remain large even when the threshold estimate is accurate. A change in action can nevertheless have a small cost if its mean advantage is close to zero. We use this observation to bound compensation directly, without a continuity assumption.
Lemma I.2. Let F F F be any law on [ 0 , 1 ] [0,1] [ 0 , 1 ] . Conditional on the pre-price history, fix a feasible inventory y y y , a continuation length τ = τ t − 1 = T − t \tau=\tau_{t-1}=T-t τ = τ t − 1 = T − t , and an integer K = K t ≥ 1 K=K_t\geq1 K = K t ≥ 1 chosen from that history. The K K K shared scenario futures are i.i.d., independent of the current price and actual future. Let ∂ R ‾ ~ τ , K B ( y ) \partial\widetilde{\overline{R}}_{\tau,K}^{B}(y) ∂ R τ , K B ( y ) be the expected marginal compensation of the resulting STARS action, averaging over all three sources of randomness. Let ∂ R ‾ B ( y ) \partial\overline{R}^{B}(y) ∂ R B ( y ) be the local compensation of the population-threshold reference rule, as in Proposition E.2 . There is an absolute constant C < ∞ C<\infty C < ∞ such that ∂ R ‾ ~ τ , K B ( y ) ≤ 2 ∂ R ‾ B ( y ) + C / K \partial\widetilde{\overline{R}}_{\tau,K}^{B}(y)\leq2\partial\overline{R}^{B}(y)+C/K ∂ R τ , K B ( y ) ≤ 2 ∂ R B ( y ) + C / K . The assertion includes atoms and empirical or population ties. Forced actions have zero compensation.
Proof. First separate the sampling error from the reference compensation. Condition also on the current price p p p . For an existing buy channel, put Z = W − p Z=W-p Z = W − p , where W = Δ V B ( y + 1 ) W=\Delta V^{B}(y+1) W = Δ V B ( y + 1 ) is the actual future marginal. Its K K K scenario copies are Z 1 , … , Z K Z_1,\ldots,Z_K Z 1 , … , Z K ; write Z ‾ = K − 1 ∑ j = 1 K Z j \overline{Z}=K^{-1}\sum_{j=1}^{K}Z_j Z = K − 1 ∑ j = 1 K Z j , A = E Z + A=\mathbb{E}Z^{+} A = E Z + , D = E ( − Z ) + D=\mathbb{E}(-Z)^{+} D = E ( − Z ) + , and m = E Z = A − D m=\mathbb{E}Z=A-D m = E Z = A − D . These expectations are conditional on the fixed history and price. Holding at ties makes the buy indicator 1 { Z ‾ > 0 } \mathbf{1}\{\overline{Z}>0\} 1 { Z > 0 } . The actual future is independent of the scenarios, so its expected compensation in this channel is
L K = E [ Z + − Z 1 { Z ‾ > 0 } ] = ( a ) A − m P ( Z ‾ > 0 ) . L_K=\mathbb{E}\left[Z^{+}-Z\mathbf{1}\{\overline{Z}>0\}\right]\overset{(a)}{=}A-m\mathbb{P}(\overline{Z}>0). L K = E [ Z + − Z 1 { Z > 0 } ] = ( a ) A − m P ( Z > 0 ) .
Here (a) subtracts the chosen channel’s gain from hindsight’s positive gain, and (b) uses independence of the actual future and scenarios. If m > 0 m>0 m > 0 , this equals D + m P ( Z ‾ ≤ 0 ) D+m\mathbb{P}(\overline{Z}\leq0) D + m P ( Z ≤ 0 ) ; if m < 0 m<0 m < 0 , it equals A + ( − m ) P ( Z ˉ > 0 ) A + (-m)\mathbb{P}(\bar{Z} > 0) A + ( − m ) P ( Z ˉ > 0 ) ; if m = 0 m = 0 m = 0 , it equals A = D A = D A = D . The reference channel cost is A ∧ D A \wedge D A ∧ D . Thus the additional compensation is the absolute mean advantage multiplied by the probability that the scenarios give it the wrong sign. In particular, a population tie adds no expected compensation, regardless of the sampled action.
Next bound the cost of a wrong-sign estimate. Suppose first that m > 0 m > 0 m > 0 , and put v = Var ( Z ) v = \operatorname{Var}(Z) v = Var ( Z ) . Since Z ∈ [ − p , 1 − p ] ⊆ [ − 1 , 1 ] Z \in[-p,1-p] \subseteq[-1,1] Z ∈ [ − p , 1 − p ] ⊆ [ − 1 , 1 ] , we have ∣ Z − m ∣ ≤ 1 |Z-m| \le1 ∣ Z − m ∣ ≤ 1 and v ≤ E Z 2 ≤ E ∣ Z ∣ = m + 2 D v \le\mathbb{E}Z^2 \le\mathbb{E}|Z| = m + 2D v ≤ E Z 2 ≤ E ∣ Z ∣ = m + 2 D . If m ≤ D m \le D m ≤ D , the extra term above is at most D D D . If m > D m > D m > D , then v ≤ 3 m v \le3m v ≤ 3 m , and the one-sided Bernstein inequality gives
m P ( Z ˉ ≤ 0 ) ≤ m exp ( − K m 2 2 ( v + m / 3 ) ) ≤ m e − 3 K m / 20 ≤ 20 3 e K . m\mathbb{P}(\bar{Z} \le0) \le m\exp\left(-\frac{Km^2}{2(v+m/3)}\right) \le me^{-3Km/20} \le\frac{20}{3eK}. m P ( Z ˉ ≤ 0 ) ≤ m exp ( − 2 ( v + m /3 ) K m 2 ) ≤ m e − 3 K m /20 ≤ 3 eK 20 .
Step (a) applies Bernstein to the independent centered variables Z j − m Z_j-m Z j − m , whose absolute values are at most one and whose variances equal v v v . Step (b) substitutes v ≤ 3 m v \le3m v ≤ 3 m . Step (c) maximizes u e − 3 K u / 20 ue^{-3Ku/20} u e − 3 K u /20 over u ≥ 0 u \ge0 u ≥ 0 . For v = 0 v = 0 v = 0 the wrong-sign probability is zero, so the same bound holds. If m < 0 m < 0 m < 0 , apply this argument to − Z -Z − Z : its negative-part expectation is A A A , and its nonpositive sample-mean event contains { Z ˉ > 0 } \{\bar{Z} > 0\} { Z ˉ > 0 } . Thus in all cases L K ≤ 2 ( A ∧ D ) + 20 / ( 3 e K ) L_K \le2(A \wedge D) + 20/(3eK) L K ≤ 2 ( A ∧ D ) + 20/ ( 3 eK ) .
For a sell channel take Z = p − Δ V τ B ( y ) Z = p - \Delta V_{\tau}^{B}(y) Z = p − Δ V τ B ( y ) instead. Selling again occurs exactly when its sample mean is positive, and the same proof applies. Shared scenarios preserve the ordering of the two marginal thresholds, so the mutually exclusive channel indicators describe a feasible maximizing action. Integrating the fixed-price inequalities over F F F , their reference costs sum to ∂ R ˉ τ B ( y ) \partial\bar{R}_{\tau}^{B}(y) ∂ R ˉ τ B ( y ) by Proposition E.2 . Summing the at most two existing channels gives the lemma, for example with C = 40 / ( 3 e ) C = 40/(3e) C = 40/ ( 3 e ) . Unavailable channels are omitted. At a compulsory-action state both policies and hindsight take that action, so compensation is zero; this includes the terminal epoch τ = 0 \tau= 0 τ = 0 .
Along the actual STARS trajectory, the tower property and the pathwise compensation identity therefore give
Reg T ( π K ) ≤ 2 E ∑ t = 1 T ∂ R ˉ τ t − 1 B ( y τ t − 1 π K ) + C E ∑ t = 1 T K t − 1 . \operatorname{Reg}_T(\pi^K) \le2\mathbb{E}\sum_{t=1}^{T}\partial\bar{R}_{\tau_{t-1}}^{B}(y_{\tau_{t-1}}^{\pi^K}) + C\mathbb{E}\sum_{t=1}^{T}K_t^{-1}. Reg T ( π K ) ≤ 2 E t = 1 ∑ T ∂ R ˉ τ t − 1 B ( y τ t − 1 π K ) + C E t = 1 ∑ T K t − 1 .
For K t ≥ ( T − t + 1 ) 2 K_t \ge(T-t+1)^2 K t ≥ ( T − t + 1 ) 2 , the last sum is at most 1 + ∫ 1 ∞ u − 2 d u = 2 1+\int_1^\infty u^{-2}\,du=2 1 + ∫ 1 ∞ u − 2 d u = 2 . The remaining task is to bound the first sum along the sampled inventory path. Appendix J provides this occupation bound for finite atomic prices.
Finite scenarios for atomic prices
We now combine the local compensation bounds with control of the inventory path to prove the atomic case of Theorem 4.3 . Throughout this appendix, y t , x t y_t,x_t y t , x t are the sampled STARS trajectory, τ t = T − t + 1 \tau_t = T-t+1 τ t = T − t + 1 is the number of remaining decisions including the current one, and K t ≥ τ t 2 K_t \ge\tau_t^2 K t ≥ τ t 2 is measurable before the current price arrives. Thus the continuation after the current action contains τ t − 1 \tau_t-1 τ t − 1 prices. We use τ \tau τ for a generic continuation length and substitute τ = τ t − 1 \tau=\tau_t-1 τ = τ t − 1 when applying a continuation bound at time t t t . All constants may depend on the fixed finite law and ρ \rho ρ , but not on the sampling schedule or T T T . We take T ≥ 2 T\ge2 T ≥ 2 below; at T = 1 T=1 T = 1 , the only feasible action is to hold and the regret is zero.
Lemma I.2 bounds the loss from one decision: the conditional charge is at most 2 ∂ R ˉ τ t − 1 B ( y t − 1 ) + C / K t 2\partial\bar{R}^{B}_{\tau_t-1}(y_{t-1})+C/K_t 2 ∂ R ˉ τ t − 1 B ( y t − 1 ) + C / K t . Since ∑ t K t − 1 ≤ 2 \sum_t K_t^{-1}\le2 ∑ t K t − 1 ≤ 2 , we need only bound the reference charge at these sampled states. We first handle a median gap, then a median strictly inside an atom.
A median gap: inventory protection under sampled thresholds
Use a − , a + , μ + , r , s a^{-},a^{+},\mu^{+},r,s a − , a + , μ + , r , s from Appendix § 11.6 . When μ + < 1 / 2 \mu^{+}<1/2 μ + < 1/2 , the reference local bound there has profile f τ ˉ ( j ) = ( r j ∧ ( ( j + 1 ) / τ ) ) + s j f_{\bar{\tau}}(j)=(r^j\wedge((j+1)/\sqrt{\tau})) + s^j f τ ˉ ( j ) = ( r j ∧ (( j + 1 ) / τ )) + s j on a block τ ˉ ≤ τ t − 1 < 2 τ ˉ \bar{\tau}\le\tau_t-1<2\bar{\tau} τ ˉ ≤ τ t − 1 < 2 τ ˉ . Thus τ ˉ \bar{\tau} τ ˉ specifies the remaining-time scale of the block. We show that the same block occupation bound holds for sampled STARS. To do so, we identify inventory regions where the empirical thresholds preserve the direction of the reference decisions with high probability. We will establish the strict inequality above a − a^{-} a − on the region defined below, which is large enough for the occupation bound.
Fix c ∗ = 7 / 2 c_{*}=7/2 c ∗ = 7/2 and, for sufficiently large τ \tau τ , put H τ = ⌊ c ∗ τ log τ ⌋ H_{\tau}=\lfloor\sqrt{c_{*}\tau\log\tau}\rfloor H τ = ⌊ c ∗ τ log τ ⌋ and J τ = ⌈ A log τ ⌉ J_{\tau}=\lceil A\log\tau\rceil J τ = ⌈ A log τ ⌉ , with a fixed sufficiently large A A A . Take a fixed cutoff τ 0 ≥ 2 \tau_{0}\ge2 τ 0 ≥ 2 large enough that H τ + 2 < ( τ ∧ ( B / 2 ) ) H_{\tau}+2<(\tau\wedge(B/2)) H τ + 2 < ( τ ∧ ( B /2 )) for τ ≥ τ 0 \tau\ge\tau_{0} τ ≥ τ 0 ; this is possible uniformly in T ≥ τ T\ge\tau T ≥ τ , since B ≥ ρ τ B\ge\rho\tau B ≥ ρ τ . Constants below cover smaller τ \tau τ .
Lemma J.1. Fix the finite atomic law F F F with positive median gap and ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) as above. There are constants A , τ 0 , c , C > 0 A,\tau_0,c,C>0 A , τ 0 , c , C > 0 , depending only on F F F and ρ \rho ρ , such that, with δ τ = C exp ( − c τ 1 / 5 ) \delta_\tau=C\exp(-c\tau^{1/5}) δ τ = C exp ( − c τ 1/5 ) , the following bounds hold uniformly over existing indices, K ≥ ( τ + 1 ) 2 K\ge(\tau+1)^2 K ≥ ( τ + 1 ) 2 , and τ ≥ τ 0 \tau\ge\tau_0 τ ≥ τ 0 . They also hold conditionally at the current inventory, because the scenarios are fresh and independent of the past.
(a) If y ≥ J τ y\ge J_\tau y ≥ J τ , then P ( λ ^ τ B ( y ) ≥ a + ) ≤ δ τ \mathbb{P}(\widehat{\lambda}^{B}_{\tau}(y)\ge a^{+})\le\delta_\tau P ( λ τ B ( y ) ≥ a + ) ≤ δ τ .
(b) If y ≤ H τ y\le H_\tau y ≤ H τ , then P ( λ ^ τ B ( y ) ≤ a − ) ≤ δ τ \mathbb{P}(\widehat{\lambda}^{B}_{\tau}(y)\le a^{-})\le\delta_\tau P ( λ τ B ( y ) ≤ a − ) ≤ δ τ .
(c) If μ + < 1 / 2 \mu^{+}<1/2 μ + < 1/2 , the logarithmic buffer h τ ˉ h_{\bar{\tau}} h τ ˉ in Lemma H.2 can be chosen so that, uniformly for τ ˉ ≤ τ < 2 τ ˉ \bar{\tau}\le\tau<2\bar{\tau} τ ˉ ≤ τ < 2 τ ˉ and y ≤ h τ ˉ + 1 y\le h_{\bar{\tau}}+1 y ≤ h τ ˉ + 1 , P ( λ ^ τ B ( y ) ≤ a + ) ≤ C e − c τ ˉ \mathbb{P}(\widehat{\lambda}^{B}_{\tau}(y)\le a^{+})\le Ce^{-c\bar{\tau}} P ( λ τ B ( y ) ≤ a + ) ≤ C e − c τ ˉ .
Proof. Above the buffer, sampling rarely prevents a sale. For W = Δ V τ B ( y ) W=\Delta V^{B}_{\tau}(y) W = Δ V τ B ( y ) , the gap and fair-walk representation give
a + − E W ≥ Δ P ( W ≤ a − ) − E ( W − a + ) + ≥ c ( ( y / τ ) ∧ 1 ) − r y . a^{+}-\mathbb{E}W\ge\Delta\mathbb{P}(W\le a^{-})-\mathbb{E}(W-a^{+})^{+}\ge c((y/\sqrt{\tau})\wedge1)-r^{y}. a + − E W ≥ Δ P ( W ≤ a − ) − E ( W − a + ) + ≥ c (( y / τ ) ∧ 1 ) − r y .
The second line uses Lemma F.2 ; capping the queue only increases its failure probability. If μ + = 1 / 2 \mu^{+}=1/2 μ + = 1/2 , the upward hinge is zero and the r y r^{y} r y term is omitted. Choose A A A so that, at y = J τ y=J_{\tau} y = J τ , the right side is at least c log τ / τ c\log\tau/\sqrt{\tau} c log τ / τ for large τ \tau τ . Monotonicity in y y y gives the same lower bound for larger indices. Hoeffding for K K K independent variables in [ 0 , 1 ] [0,1] [ 0 , 1 ] then bounds the first probability by exp ( − c τ log 2 τ ) \exp(-c\tau\log^{2}\tau) exp ( − c τ log 2 τ ) . Below H τ H_{\tau} H τ , the scenarios detect the value of buying. The fair walk has the moderate-deviation bound
P 1 / 2 ( σ y ≤ τ ) ≥ c τ − c ∗ / 2 / log τ , y ≤ H τ . \mathbb{P}_{1/2}(\sigma_y \le\tau) \ge c\tau^{-c_*/2}/\sqrt{\log\tau}, \qquad y \le H_{\tau}. P 1/2 ( σ y ≤ τ ) ≥ c τ − c ∗ /2 / log τ , y ≤ H τ .
We prove this estimate directly, keeping track of its polynomial exponent because it determines the required sample size. For even τ = 2 m \tau= 2m τ = 2 m and parity-admissible z = 2 ℓ z = 2\ell z = 2 ℓ , the ratio of the binomial mass at z z z to its central mass is ∏ i = 1 ℓ ( m − i + 1 ) / ( m + i ) \prod_{i=1}^{\ell}(m-i+1)/(m+i) ∏ i = 1 ℓ ( m − i + 1 ) / ( m + i ) . Using log ( 1 − u ) ≥ − u − u 2 \log(1-u) \ge-u-u^2 log ( 1 − u ) ≥ − u − u 2 for 0 ≤ u ≤ 1 / 2 0 \le u \le1/2 0 ≤ u ≤ 1/2 and log ( 1 + u ) ≤ u \log(1+u) \le u log ( 1 + u ) ≤ u gives a log ratio at least − ℓ 2 / m − C ℓ 3 / m 2 -\ell^2/m-C\ell^3/m^2 − ℓ 2 / m − C ℓ 3 / m 2 . For odd τ = 2 m + 1 \tau= 2m+1 τ = 2 m + 1 and z = 2 ℓ + 1 z = 2\ell+1 z = 2 ℓ + 1 , the corresponding product is ∏ i = 1 ℓ ( m − i + 1 ) / ( m + i + 1 ) \prod_{i=1}^{\ell}(m-i+1)/(m+i+1) ∏ i = 1 ℓ ( m − i + 1 ) / ( m + i + 1 ) , with log ratio at least − ℓ ( ℓ + 1 ) / m − C ( ℓ + 1 ) 3 / m 2 -\ell(\ell+1)/m-C(\ell+1)^3/m^2 − ℓ ( ℓ + 1 ) / m − C ( ℓ + 1 ) 3 / m 2 . Thus in either parity, uniformly for z = O ( τ log τ ) z = O(\sqrt{\tau\log\tau}) z = O ( τ log τ ) , the mass at z z z is at least c τ − 1 / 2 exp ( − z 2 / ( 2 τ ) − o ( 1 ) ) c\tau^{-1/2}\exp(-z^2/(2\tau)-o(1)) c τ − 1/2 exp ( − z 2 / ( 2 τ ) − o ( 1 )) ; the central mass is bounded below by c / τ c/\sqrt{\tau} c / τ by the binomial estimate in Lemma F.2 . There are at least c τ / log τ c\sqrt{\tau/\log\tau} c τ / log τ admissible positions between H τ H_{\tau} H τ and H τ + ⌊ τ / log τ ⌋ + 2 H_{\tau}+\lfloor\sqrt{\tau/\log\tau}\rfloor+2 H τ + ⌊ τ / log τ ⌋ + 2 . For each, z 2 / ( 2 τ ) ≤ ( c ∗ / 2 ) log τ + C z^2/(2\tau) \le(c_*/2)\log\tau+C z 2 / ( 2 τ ) ≤ ( c ∗ /2 ) log τ + C . Summing their masses and using { S τ ≥ y } ⊂ { σ y ≤ τ } \{S_{\tau} \ge y\} \subset\{\sigma_y \le\tau\} { S τ ≥ y } ⊂ { σ y ≤ τ } proves the bound.
For y ≤ H τ y \le H_{\tau} y ≤ H τ , the capacity comparison and the positive drift of the count immediately below a − a^- a − now give q : = P ( W > a − ) ≥ c τ − 7 / 4 / log τ q := \mathbb{P}(W > a^-) \ge c\tau^{-7/4}/\sqrt{\log\tau} q := P ( W > a − ) ≥ c τ − 7/4 / log τ and d : = P ( W < a − ) ≤ C e − c τ d := \mathbb{P}(W < a^-) \le Ce^{-c\tau} d := P ( W < a − ) ≤ C e − c τ . The capacity error C T 2 e − c ρ T CT^2e^{-c\rho T} C T 2 e − c ρT is absorbed into C e − c ′ τ Ce^{-c'\tau} C e − c ′ τ uniformly in T ≥ τ T \ge\tau T ≥ τ . Put X = W − a − X = W-a^- X = W − a − . Its positive values are at least Δ \Delta Δ , so m : = E X ≥ Δ q − d ≥ Δ q / 2 m := \mathbb{E}X \ge\Delta q-d \ge\Delta q/2 m := E X ≥ Δ q − d ≥ Δ q /2 beyond a fixed cutoff. Also Var ( X ) ≤ E X 2 ≤ q + d ≤ 2 q \operatorname{Var}(X) \le\mathbb{E}X^2 \le q+d \le2q Var ( X ) ≤ E X 2 ≤ q + d ≤ 2 q and m ≤ q m \le q m ≤ q . Bernstein, with centered increments bounded by one, yields
P ( λ ^ τ B ( y ) ≤ a − ) ≤ exp ( − K m 2 2 ( Var ( X ) + m / 3 ) ) ≤ e − c K q ≤ exp ( − c τ 1 / 4 log τ ) . \mathbb{P}(\widehat{\lambda}^{B}_{\tau}(y) \le a^-) \le\exp\left(-\frac{Km^2}{2(\operatorname{Var}(X)+m/3)}\right) \le e^{-cKq} \le\exp\left(-\frac{c\tau^{1/4}}{\sqrt{\log\tau}}\right). P ( λ τ B ( y ) ≤ a − ) ≤ exp ( − 2 ( Var ( X ) + m /3 ) K m 2 ) ≤ e − cK q ≤ exp ( − log τ c τ 1/4 ) .
This is at most C e − c ′ τ 1 / 5 Ce^{-c'\tau^{1/5}} C e − c ′ τ 1/5 after changing constants. Since the preceding estimate decreases with K K K , the bound holds for every K ≥ ( τ + 1 ) 2 K \ge(\tau+1)^2 K ≥ ( τ + 1 ) 2 .
Below the logarithmic buffer, the upper median atom induces a purchase. The proof of Lemma H.2 gives λ τ B ( y ) − a + ≥ c 1 r y − C 2 y / τ − C 3 ε T \lambda^B_{\tau}(y)-a^+ \ge c_1r^y-C_2y/\sqrt{\tau}-C_3\varepsilon T λ τ B ( y ) − a + ≥ c 1 r y − C 2 y / τ − C 3 εT for y = O ( log τ ) y=O(\log\tau) y = O ( log τ ) . Choose the fixed constant in h τ ˉ h_{\bar{\tau}} h τ ˉ large enough that at y = h τ ˉ + 1 y=h_{\bar{\tau}}+1 y = h τ ˉ + 1 this is at least c log τ ˉ / τ ˉ c\log\bar{\tau}/\sqrt{\bar{\tau}} c log τ ˉ / τ ˉ . Concavity extends the margin to smaller indices. Hoeffding and K ≥ τ ˉ 2 K \ge\bar{\tau}^2 K ≥ τ ˉ 2 give the last claim.
Use the sampled decision probabilities to bound visits. Suppose μ + < 1 / 2 \mu^+<1/2 μ + < 1/2 . On a block I I I with τ ˉ ≤ τ t − 1 < 2 τ ˉ \bar{\tau}\le\tau_t-1<2\bar{\tau} τ ˉ ≤ τ t − 1 < 2 τ ˉ , put h = h τ ˉ h=h_{\bar{\tau}} h = h τ ˉ and d τ ˉ = C e − c τ ˉ d_{\bar{\tau}}=Ce^{-c\bar{\tau}} d τ ˉ = C e − c τ ˉ . Below h h h , sampled purchases have conditional probability at least p ∗ − d τ ˉ p_*-d_{\bar{\tau}} p ∗ − d τ ˉ , and sales from the next state have probability at most q ∗ + d τ ˉ q_*+d_{\bar{\tau}} q ∗ + d τ ˉ . This follows by conditioning on the fresh scenarios in Lemma J.1 and then on the independent current price. At y = h y=h y = h , the conditional expected upward correction is at least 2 μ + ( 1 − d τ ˉ ) 2\mu^+(1-d_{\bar{\tau}}) 2 μ + ( 1 − d τ ˉ ) .
Let ν j , A j \nu_j,A_j ν j , A j be the visits and upward corrections defined in Appendix H, now for the sampled trajectory. Crossing cancellation gives ν j ≤ r τ ˉ ν j + 1 + 1 / ( p ∗ − d τ ˉ ) \nu_j\le r_{\bar{\tau}}\nu_{j+1}+1/(p_*-d_{\bar{\tau}}) ν j ≤ r τ ˉ ν j + 1 + 1/ ( p ∗ − d τ ˉ ) below h h h , where r τ ˉ = ( q ∗ + d τ ˉ ) / ( p ∗ − d τ ˉ ) = r + O ( d τ ˉ ) r_{\bar{\tau}}=(q_*+d_{\bar{\tau}})/(p_*-d_{\bar{\tau}})=r+O(d_{\bar{\tau}}) r τ ˉ = ( q ∗ + d τ ˉ ) / ( p ∗ − d τ ˉ ) = r + O ( d τ ˉ ) . Since h = O ( log τ ˉ ) h=O(\log\bar{\tau}) h = O ( log τ ˉ ) , r τ ˉ ℓ ≤ C r ℓ r_{\bar{\tau}}^\ell\le Cr^\ell r τ ˉ ℓ ≤ C r ℓ for 0 ≤ ℓ ≤ h 0\le\ell\le h 0 ≤ ℓ ≤ h , and r τ ˉ r_{\bar{\tau}} r τ ˉ is bounded away from one. Thus ν j ≤ C r h − j ν h + C \nu_j\le Cr^{h-j}\nu_h+C ν j ≤ C r h − j ν h + C . Above h h h , the pointwise correction inequalities giving (App.52) are unchanged by sampling. In particular, ν j ≤ ν h + 2 ( j − h ) + 4 ∑ i = h j A i \nu_j\le\nu_h+2(j-h)+4\sum_{i=h}^{j}A_i ν j ≤ ν h + 2 ( j − h ) + 4 ∑ i = h j A i . Multiply these inequalities by f ˉ τ ˉ ( j ) \bar{f}_{\bar{\tau}}(j) f ˉ τ ˉ ( j ) and sum. Below h h h , use f ˉ τ ˉ ( j ) ≤ ( j + 1 ) / τ ˉ + s j \bar{f}_{\bar{\tau}}(j) \le(j+1)/\sqrt{\bar{\tau}}+s^j f ˉ τ ˉ ( j ) ≤ ( j + 1 ) / τ ˉ + s j and the geometric sums ∑ j ≤ h r h − j ( j + 1 ) ≤ ( h + 1 ) / ( 1 − r ) \sum_{j\le h}r^{h-j}(j+1)\le(h+1)/(1-r) ∑ j ≤ h r h − j ( j + 1 ) ≤ ( h + 1 ) / ( 1 − r ) and ∑ j ≤ h r h − j s j ≤ r h / ( 1 − s / r ) \sum_{j\le h}r^{h-j}s^j\le r^h/(1-s/r) ∑ j ≤ h r h − j s j ≤ r h / ( 1 − s / r ) . Above h h h , use f ˉ τ ˉ ( j ) ≤ 2 r j \bar{f}_{\bar{\tau}}(j)\le2r^j f ˉ τ ˉ ( j ) ≤ 2 r j and interchange the finite sums. These steps give
∑ t ∈ I E f ˉ τ ˉ ( y t − 1 ) ≤ C + C ( ( h + 1 ) / τ ˉ + r h ) ν h + C r h ∑ i A i ≤ C + C log τ ˉ τ ˉ E ∑ t ∈ I u t \begin{aligned}
\sum_{t\in I}\mathbb{E}\bar{f}_{\bar{\tau}}(y_{t-1})\le C+C\left((h+1)/\sqrt{\bar{\tau}}+r^h\right)\nu_h+Cr^h\sum_i A_i \\
&\le C+C\frac{\log\bar{\tau}}{\sqrt{\bar{\tau}}}\mathbb{E}\sum_{t\in I}u_t
\end{aligned} t ∈ I ∑ E f ˉ τ ˉ ( y t − 1 ) ≤ C + C ( ( h + 1 ) / τ ˉ + r h ) ν h + C r h i ∑ A i ≤ C + C τ ˉ log τ ˉ E t ∈ I ∑ u t
Step (a) uses 2 μ + ( 1 − d τ ˉ ) ν h ≤ ∑ i A i 2\mu^+(1-d_{\bar{\tau}})\nu_h\le\sum_i A_i 2 μ + ( 1 − d τ ˉ ) ν h ≤ ∑ i A i and the buffer estimates h ≍ log τ ˉ h\asymp\log\bar{\tau} h ≍ log τ ˉ , r h ≲ log τ ˉ / τ ˉ r^h\lesssim\log\bar{\tau}/\sqrt{\bar{\tau}} r h ≲ log τ ˉ / τ ˉ . The constant term includes the uniformly bounded ( h + 1 ) 2 / τ ˉ (h+1)^2/\sqrt{\bar{\tau}} ( h + 1 ) 2 / τ ˉ . This is the required sampled block bound.
Bounding the accumulated corrections
The block estimate reduces our task to controlling the upward corrections to the static median-sign rule, whose proposed trades form a symmetric random walk. We separate the corrections that occur in the protected inventory regions from the rare exceptions. This will allow us to compare their accumulated number with the fair walk’s running minimum.
Write ξ t = 1 { p t ≤ a − } − 1 { p t ≥ a + } \xi_t=1\{p_t\le a^-\}-1\{p_t\ge a^+\} ξ t = 1 { p t ≤ a − } − 1 { p t ≥ a + } , S t = ∑ i ≤ t ξ i S_t=\sum_{i\le t}\xi_i S t = ∑ i ≤ t ξ i , and u t = ( x t − ξ t ) + u_t=(x_t-\xi_t)^+ u t = ( x t − ξ t ) + , ℓ t = ( ξ t − x t ) + \ell_t=(\xi_t-x_t)^+ ℓ t = ( ξ t − x t ) + . The signs remain i.i.d. fair and independent of the pre-price history. With U t = ∑ i ≤ t u i U_t=\sum_{i\le t}u_i U t = ∑ i ≤ t u i , L t = ∑ i ≤ t ℓ i L_t=\sum_{i\le t}\ell_i L t = ∑ i ≤ t ℓ i , the exact identity is y t = S t + U t − L t y_t=S_t+U_t-L_t y t = S t + U t − L t .
For τ t − 1 ≥ τ 0 \tau_t-1\ge\tau_0 τ t − 1 ≥ τ 0 , call an upward correction exceptional if y t − 1 > J τ t − 1 y_{t-1}>J_{\tau_{t-1}} y t − 1 > J τ t − 1 , and a downward correction exceptional if y t − 1 + 1 ≤ H τ t − 1 y_{t-1}+1\le H_{\tau_{t-1}} y t − 1 + 1 ≤ H τ t − 1 . Declare all corrections with τ t − 1 < τ 0 \tau_{t-1}<\tau_0 τ t − 1 < τ 0 exceptional. For τ ≥ τ 0 \tau\ge\tau_0 τ ≥ τ 0 , Lemma J.1 bounds each exceptional event’s conditional probability by δ τ \delta_\tau δ τ . Indeed, an upper-half price must be sold when the sampled sell threshold is below a + a^+ a + , and a lower-half price must be bought when the sampled buy threshold is above a − a^- a − and y + 1 ≤ H τ y+1\le H_\tau y + 1 ≤ H τ ; all those purchases are feasible. Set δ τ = 1 \delta_\tau=1 δ τ = 1 below the cutoff. Consequently ∑ τ ≥ 0 ( τ + 1 ) q δ τ < ∞ \sum_{\tau\ge0}(\tau+1)^q\delta_\tau<\infty ∑ τ ≥ 0 ( τ + 1 ) q δ τ < ∞ for every fixed q q q .
Let U T b a d U_T^{\mathrm{bad}} U T bad count exceptional upward corrections with their magnitudes. Then E U T b a d ≤ 2 ∑ τ δ τ ≤ C \mathbb{E}U_T^{\mathrm{bad}}\le2\sum_\tau\delta_\tau\le C E U T bad ≤ 2 ∑ τ δ τ ≤ C .
For each t t t , after the most recent nonexceptional upward correction before or at t t t , all upward corrections through t t t are included in U b a d U^{\mathrm{bad}} U bad . The inventory identity and monotonicity of L L L therefore give the pathwise bound
max t ≤ T y t ≤ J T + 2 + 2 max t ≤ T ∣ S t ∣ + U T b a d . \max_{t\le T}y_t\le J_T+2+2\max_{t\le T}|S_t|+U_T^{\mathrm{bad}}. t ≤ T max y t ≤ J T + 2 + 2 t ≤ T max ∣ S t ∣ + U T bad .
If there is no such correction, the bound follows directly from y t ≤ S t + U t b a d y_t\le S_t+U_t^{\mathrm{bad}} y t ≤ S t + U t bad . Since J T = O ( log T ) J_T=O(\log T) J T = O ( log T ) and B ≥ ρ T B\ge\rho T B ≥ ρT , maximal Hoeffding and Markov’s inequality imply
T P ( max t ≤ T y t > B / 2 ) ≤ C T e − c T + C ( T / B ) E U T b a d ≤ C . T\mathbb{P}\left(\max_{t\le T}y_t>B/2\right)\le CT e^{-cT}+C(T/B)\mathbb{E}U_T^{\mathrm{bad}}\le C. T P ( t ≤ T max y t > B /2 ) ≤ C T e − c T + C ( T / B ) E U T bad ≤ C .
Thus the contribution of visits above half capacity is bounded by a constant when summed over the horizon.
Separate runs by downward corrections. Put M t = max j ≤ t ( − S j ) M_t = \max_{j\le t}(-S_j) M t = max j ≤ t ( − S j ) and D t = U t − M t D_t = U_t - M_t D t = U t − M t . Nonnegative inventory and nondecreasing U U U imply D t ≥ 0 D_t \ge0 D t ≥ 0 . We show E D t ≤ C log T \mathbb{E}D_t \le C\log T E D t ≤ C log T for every deterministic t ≤ T t \le T t ≤ T . Before the first downward correction, the last nonexceptional upward correction and the inventory identity bound the total upward corrections by M t + J T + 2 + U t b a d M_t + J_T + 2 + U_t^{\mathrm{bad}} M t + J T + 2 + U t bad .
Every subsequent interval begins just after a downward-correction epoch j j j and ends at the next such epoch (or the horizon). Within that interval there are no further downward corrections. If i i i is its last nonexceptional upward-correction epoch before t t t , then y i − 1 ≤ J τ i − 1 ≤ J τ j − 1 y_{i-1} \le J_{\tau_{i-1}} \le J_{\tau_{j-1}} y i − 1 ≤ J τ i − 1 ≤ J τ j − 1 . Put Z j = max 0 ≤ r ≤ τ j − 1 ( − S j + r + S j ) Z_j = \max_{0\le r\le\tau_{j-1}}(-S_{j+r} + S_j) Z j = max 0 ≤ r ≤ τ j − 1 ( − S j + r + S j ) . The inventory identity then gives
nonexceptional upward corrections in this interval ≤ ( J τ j − 1 + 2 − y j + Z j ) + . \text{nonexceptional upward corrections in this interval} \le\left(J_{\tau_{j-1}} + 2 - y_j + Z_j\right)^+. nonexceptional upward corrections in this interval ≤ ( J τ j − 1 + 2 − y j + Z j ) + .
Exceptional upward corrections before i i i enter with a negative sign in this upper bound and may be dropped; later ones are charged to U b a d U^{\mathrm{bad}} U bad . If no such i i i exists, the interval contributes zero.
For a nonexceptional downward correction, y j ≥ H τ j − 1 − 2 y_j \ge H_{\tau_{j-1}} - 2 y j ≥ H τ j − 1 − 2 . Conditional on F j \mathcal{F}_j F j , the future fair signs give P ( Z j > z ∣ F j ) ≤ e − z 2 / ( 2 ( τ j − 1 ) ) \mathbb{P}(Z_j > z \mid\mathcal{F}_j) \le e^{-z^2/(2(\tau_{j-1}))} P ( Z j > z ∣ F j ) ≤ e − z 2 / ( 2 ( τ j − 1 )) for z ≥ 0 z \ge0 z ≥ 0 by the exponential-martingale maximal inequality. Take a τ = H τ − J τ − 4 a_\tau= H_\tau- J_\tau- 4 a τ = H τ − J τ − 4 . For large τ \tau τ , a τ ≥ τ a_\tau\ge\sqrt{\tau} a τ ≥ τ and a τ 2 / ( 2 τ ) ≥ ( 13 / 8 ) log τ a_\tau^2/(2\tau) \ge(13/8)\log\tau a τ 2 / ( 2 τ ) ≥ ( 13/8 ) log τ , since H τ 2 / ( 2 τ ) ∼ ( 7 / 4 ) log τ H_\tau^2/(2\tau) \sim(7/4)\log\tau H τ 2 / ( 2 τ ) ∼ ( 7/4 ) log τ and J τ = O ( log τ ) J_\tau= O(\log\tau) J τ = O ( log τ ) . Tail integration therefore gives
E [ ( Z j − a τ j − 1 ) + ∣ F j ] ≤ ∫ a τ j − 1 ∞ e − z 2 / ( 2 ( τ j − 1 ) ) d z ≤ τ j − 1 a τ j − 1 e − a τ j − 1 2 / ( 2 ( τ j − 1 ) ) ≤ C ( τ j − 1 ) − 9 / 8 . \mathbb{E}\left[(Z_j-a_{\tau_{j-1}})^+ \mid\mathcal{F}_j\right] \le\int_{a_{\tau_{j-1}}}^{\infty} e^{-z^2/(2(\tau_{j-1}))}\,dz \le\frac{\tau_j-1}{a_{\tau_{j-1}}}e^{-a_{\tau_{j-1}}^2/(2(\tau_{j-1}))} \le C(\tau_j-1)^{-9/8}. E [ ( Z j − a τ j − 1 ) + ∣ F j ] ≤ ∫ a τ j − 1 ∞ e − z 2 / ( 2 ( τ j − 1 )) d z ≤ a τ j − 1 τ j − 1 e − a τ j − 1 2 / ( 2 ( τ j − 1 )) ≤ C ( τ j − 1 ) − 9/8 .
The middle inequality follows by replacing 1 1 1 in the integrand by z / a τ j − 1 z/a_{\tau_{j-1}} z / a τ j − 1 and integrating the derivative of the exponential. The estimate bounds the upward corrections over the entire run, and its sum over j j j is finite. A run attached to an exceptional downward epoch instead costs at most 2 ( τ j − 1 ) 2(\tau_j-1) 2 ( τ j − 1 ) ; its expected contribution is at most 2 ( τ j − 1 ) δ τ j − 1 2(\tau_j-1)\delta_{\tau_{j-1}} 2 ( τ j − 1 ) δ τ j − 1 . Summing the initial interval, all later intervals, and U b a d U^{\mathrm{bad}} U bad proves the claimed bound on E D t \mathbb{E}D_t E D t . For each deterministic j j j , we condition on F j \mathcal{F}_j F j and bound the cost using the entire future fair-walk maximum. Summing these bounds covers all possible downward-correction epochs.
We now incorporate the compensation weights from the block estimate. For deterministic nonnegative weights nondecreasing in chronological time, substitute U t = M t + D t U_t = M_t + D_t U t = M t + D t and sum by parts:
∑ t = 1 t ∗ w t u t = ∑ t = 1 t ∗ w t ( M t − M t − 1 ) + w t ∗ D t ∗ − ∑ t < t ∗ ( w t + 1 − w t ) D t . \sum_{t=1}^{t_*} w_tu_t = \sum_{t=1}^{t_*} w_t(M_t-M_{t-1}) + w_{t_*}D_{t_*} - \sum_{t<t_*}(w_{t+1}-w_t)D_t. t = 1 ∑ t ∗ w t u t = t = 1 ∑ t ∗ w t ( M t − M t − 1 ) + w t ∗ D t ∗ − t < t ∗ ∑ ( w t + 1 − w t ) D t .
Since D t ≥ 0 D_t \ge0 D t ≥ 0 , taking expectations gives
E ∑ t = 1 t ∗ w t u t ≤ ∑ t = 1 t ∗ w t E ( M t − M t − 1 ) + w t ∗ E D t ∗ . \mathbb{E}\sum_{t=1}^{t_*} w_tu_t \le\sum_{t=1}^{t_*}w_t\mathbb{E}(M_t-M_{t-1}) + w_{t_*}\mathbb{E}D_{t_*}. E t = 1 ∑ t ∗ w t u t ≤ t = 1 ∑ t ∗ w t E ( M t − M t − 1 ) + w t ∗ E D t ∗ .
The fair-walk record estimate is
E ( M t − M t − 1 ) = ( a ) 1 2 P ( max j ≤ t − 1 S j = 0 ) = ( b ) 1 2 2 − ( t − 1 ) ( t − 1 ⌊ ( t − 1 ) / 2 ⌋ ) ≤ ( c ) C t . \mathbb{E}(M_t-M_{t-1}) \overset{(a)}{=} \frac{1}{2}\mathbb{P}\left(\max_{j\le t-1} S_j=0\right) \overset{(b)}{=} \frac{1}{2}2^{-(t-1)}\binom{t-1}{\lfloor(t-1)/2\rfloor} \overset{(c)}{\le} \frac{C}{\sqrt{t}}. E ( M t − M t − 1 ) = ( a ) 2 1 P ( j ≤ t − 1 max S j = 0 ) = ( b ) 2 1 2 − ( t − 1 ) ( ⌊( t − 1 ) /2 ⌋ t − 1 ) ≤ ( c ) t C .
Here (a) requires an independent downward sign at the previous minimum and reverses the preceding signs, (b) is fair reflection, and (c) is the central-binomial bound in Lemma F.2. If τ t − 1 ≥ τ 0 \tau_{t-1}\ge\tau_0 τ t − 1 ≥ τ 0 and w t ≤ C log ( τ t − 1 ) / τ t − 1 w_t\le C\log(\tau_{t-1})/\sqrt{\tau_{t-1}} w t ≤ C log ( τ t − 1 ) / τ t − 1 , this estimate and ∑ t = 1 T − 1 [ t ( T − t ) ] − 1 / 2 ≤ 4 \sum_{t=1}^{T-1}[t(T-t)]^{-1/2}\le4 ∑ t = 1 T − 1 [ t ( T − t ) ] − 1/2 ≤ 4 bound the first term by C log T C\log T C log T . The weights are uniformly bounded, so the second term has the same order. This gives the required weighted-correction bound, with only a fixed number of final epochs excluded.
Finish the median-gap case. For μ + < 1 / 2 \mu^+<1/2 μ + < 1/2 , partition τ t − 1 ≥ τ 0 \tau_{t-1}\ge\tau_0 τ t − 1 ≥ τ 0 into dyadic blocks and use Lemma I.2, the local bound (App.50), and the sampled block bound above. There are O ( log T ) O(\log T) O ( log T ) blocks. Their correction weights log τ ˉ / τ ˉ \log\bar{\tau}/\sqrt{\bar{\tau}} log τ ˉ / τ ˉ are nondecreasing in chronological time beyond a fixed cutoff and bounded by C log ( τ t − 1 ) / τ t − 1 C\log(\tau_{t-1})/\sqrt{\tau_{t-1}} C log ( τ t − 1 ) / τ t − 1 . The weighted estimate bounds their total cost by C log T C\log T C log T . The terms ∑ T e − c τ \sum_T e^{-c\tau} ∑ T e − c τ , T ε T T\varepsilon_T T ε T , T P ( max y t > B / 2 ) T\mathbb{P}(\max y_t>B/2) T P ( max y t > B /2 ) , ∑ t K t − 1 \sum_t K_t^{-1} ∑ t K t − 1 , and the final τ 0 \tau_0 τ 0 epochs each cost a constant. Hence Reg T ( π K ) ≤ C log T \operatorname{Reg}_T(\pi^K)\le C\log T Reg T ( π K ) ≤ C log T . If μ + = 1 / 2 \mu^+=1/2 μ + = 1/2 , the stronger local bound in Lemma H.1 omits f τ ˉ f_{\bar{\tau}} f τ ˉ altogether, so the same ceiling and sampling estimates even give Reg T ( π K ) ≤ C \operatorname{Reg}_T(\pi^K)\le C Reg T ( π K ) ≤ C .
A strict median atom: protecting logarithmic boundary regions
When the median lies strictly inside an atom, local compensation decays exponentially away from either boundary, up to an exponentially small remaining-horizon term. It therefore suffices to control occupation in logarithmic-width boundary regions. We show that sampled STARS has a fixed drift away from each costly boundary throughout the corresponding region, and then apply crossing balance.
Suppose F ( a − ) < 1 / 2 < F ( a ) F(a^-)<1/2<F(a) F ( a − ) < 1/2 < F ( a ) . If prices above a a a exist, put r + = ( 1 − F ( a ) ) / F ( a ) ∈ ( 0 , 1 ) r_+=(1-F(a))/F(a)\in(0,1) r + = ( 1 − F ( a )) / F ( a ) ∈ ( 0 , 1 ) ; otherwise omit every lower-wall term. If prices below a a a exist, put r − = F ( a − ) / ( 1 − F ( a − ) ) ∈ ( 0 , 1 ) r_-=F(a^-)/(1-F(a^-))\in(0,1) r − = F ( a − ) / ( 1 − F ( a − )) ∈ ( 0 , 1 ) ; otherwise omit every upper-wall term. The support-sensitive version of (App.54) is
∂ R ‾ τ B ( y ) ≤ C { r + y + r − B − y + e − c τ } . \partial\overline{R}^{B}_{\tau}(y)\le C\{r_+^y+r_-^{B-y}+e^{-c\tau}\}. ∂ R τ B ( y ) ≤ C { r + y + r − B − y + e − c τ } .
To verify the exponents, at prices above a a a the upward hinge has geometric ratio ( 1 − F ( z i ) ) / F ( z i ) ≤ r + (1-F(z_i))/F(z_i)\le r_+ ( 1 − F ( z i )) / F ( z i ) ≤ r + . At prices below a a a , the two Hoeffding cases in the proof of (App.54) give an exponential-in-τ \tau τ term and an upper-reflection term with ratio F ( z i − ) / ( 1 − F ( z i − ) ) ≤ r − F(z_i^-)/(1-F(z_i^-))\le r_- F ( z i − ) / ( 1 − F ( z i − )) ≤ r − . For an existing marginal at ℓ ∈ { y , y + 1 } \ell\in\{y,y+1\} ℓ ∈ { y , y + 1 } , if ℓ ≥ [ 1 − 2 F ( a − ) ] τ / 2 \ell\ge[1-2F(a^-)]\tau/2 ℓ ≥ [ 1 − 2 F ( a − )] τ /2 , the upward hinge at a a a is exponentially small in τ \tau τ ; otherwise its downward hinge is at most C e − c τ + r − B − ℓ Ce^{-c\tau}+r_-^{B-\ell} C e − c τ + r − B − ℓ by (App.53). If a a a is an extreme price, the hinge minimum there is zero. Summing the finitely many hinges for the existing marginals at y y y and y + 1 y+1 y + 1 proves the display. Shifting an index changes only constants.
Fix a block τ ˉ ≤ τ t − 1 < 2 τ ˉ \bar{\tau} \le\tau_t - 1 < 2\bar{\tau} τ ˉ ≤ τ t − 1 < 2 τ ˉ , of length at most τ ˉ \bar{\tau} τ ˉ . In the following threshold bounds, take τ = τ t − 1 \tau= \tau_t - 1 τ = τ t − 1 and W = Δ V τ B ( y ) W = \Delta V^B_\tau(y) W = Δ V τ B ( y ) for an existing marginal. For a required lower-wall term choose h + = ⌊ 3 log τ ˉ / ( 2 ∣ log r + ∣ ) ⌋ h_+ = \lfloor3\log\bar{\tau}/(2|\log r_+|)\rfloor h + = ⌊ 3 log τ ˉ / ( 2∣ log r + ∣ )⌋ . For y ≤ h + + 1 y \le h_+ + 1 y ≤ h + + 1 , likelihood reversal for the count above a a a gives P ( W > a ) ≥ c r + y \mathbb{P}(W > a) \ge cr_+^y P ( W > a ) ≥ c r + y ; its reversed walk has positive drift and, because y = O ( log τ ˉ ) y = O(\log\bar{\tau}) y = O ( log τ ˉ ) , hits y y y by τ \tau τ except with exponentially small probability. The capacity error is also exponentially small. The count immediately below a a a has positive drift, so P ( W < a ) ≤ C e − c τ ˉ \mathbb{P}(W < a) \le C e^{-c\bar{\tau}} P ( W < a ) ≤ C e − c τ ˉ at these indices by (App.53), using B ≥ ρ τ ˉ B \ge\rho\bar{\tau} B ≥ ρ τ ˉ . The nearest upper support spacing is positive. Consequently the mean of W − a W-a W − a is at least c r + y cr_+^y c r + y and its variance at most C r + y Cr_+^y C r + y . Bernstein and K ≥ τ ˉ 2 K \ge\bar{\tau}^2 K ≥ τ ˉ 2 show
P ( Λ ^ τ B ( y ) ≤ a ) ≤ e − c K r + y ≤ C e − c τ ˉ , y ≤ h + + 1. \mathbb{P}(\widehat{\Lambda}^B_\tau(y) \le a) \le e^{-cKr_+^y} \le C e^{-c\sqrt{\bar{\tau}}}, \qquad y \le h_+ + 1. P ( Λ τ B ( y ) ≤ a ) ≤ e − cK r + y ≤ C e − c τ ˉ , y ≤ h + + 1.
For the upper wall choose h − = ⌊ 3 log τ ˉ / ( 2 ∣ log r − ∣ ) ⌋ h_- = \lfloor3\log\bar{\tau}/(2|\log r_-|)\rfloor h − = ⌊ 3 log τ ˉ / ( 2∣ log r − ∣ )⌋ . At B − y ≤ h − + 1 B-y \le h_- + 1 B − y ≤ h − + 1 , the negative hinge has a useful lower bound even when τ \tau τ is close to y y y . The capped count immediately below a a a has stationary probabilities π i = ( 1 − r − ) r − B − i / ( 1 − r − B + 1 ) \pi_i = (1-r_-)r_-^{B-i}/(1-r_-^{B+1}) π i = ( 1 − r − ) r − B − i / ( 1 − r − B + 1 ) , 0 ≤ i ≤ B 0 \le i \le B 0 ≤ i ≤ B . Detailed balance verifies this formula, and the clipped-update coupling is monotone. Starting the count at zero therefore makes it stochastically no larger than a stationary copy. It follows that q : = P ( W < a ) ≥ π y − 1 ≥ ( 1 − r − ) r − B − y + 1 q := \mathbb{P}(W < a) \ge\pi_{y-1} \ge(1-r_-)r_-^{B-y+1} q := P ( W < a ) ≥ π y − 1 ≥ ( 1 − r − ) r − B − y + 1 . Meanwhile P ( W > a ) ≤ r + y ≤ C e − c τ ˉ \mathbb{P}(W > a) \le r_+^y \le C e^{-c\bar{\tau}} P ( W > a ) ≤ r + y ≤ C e − c τ ˉ if upper prices exist, and is zero otherwise. The nearest lower support spacing gives E ( a − W ) ≥ c q \mathbb{E}(a-W) \ge cq E ( a − W ) ≥ c q and Var ( a − W ) ≤ C q \operatorname{Var}(a-W) \le Cq Var ( a − W ) ≤ C q for large τ ˉ \bar{\tau} τ ˉ . Bernstein thus gives
P ( Λ ^ τ B ( y ) ≥ a ) ≤ e − c K q ≤ C e − c τ ˉ , B − y ≤ h − + 1 , \mathbb{P}(\widehat{\Lambda}^B_\tau(y) \ge a) \le e^{-cKq} \le C e^{-c\sqrt{\bar{\tau}}}, \qquad B-y \le h_- + 1, P ( Λ τ B ( y ) ≥ a ) ≤ e − cK q ≤ C e − c τ ˉ , B − y ≤ h − + 1 ,
at existing indices. Here stationarity is used to bound the auxiliary count that represents a hindsight threshold; occupation of the time-varying trading inventory is controlled next.
Bound boundary occupation by crossing balance. At lower-wall edges, the outward purchase probability is at least p + = F ( a ) − d τ ˉ p_+ = F(a)-d_{\bar{\tau}} p + = F ( a ) − d τ ˉ and the inward sale probability is at most q + = 1 − F ( a ) + d τ ˉ q_+ = 1-F(a)+d_{\bar{\tau}} q + = 1 − F ( a ) + d τ ˉ , where d τ ˉ = C e − c τ ˉ d_{\bar{\tau}} = C e^{-c\sqrt{\bar{\tau}}} d τ ˉ = C e − c τ ˉ . Their ratio is r + + O ( d τ ˉ ) r_+ + O(d_{\bar{\tau}}) r + + O ( d τ ˉ ) ; its powers through h + h_+ h + are at most C r + j Cr_+^j C r + j . Crossing cancellation therefore gives ν j ≤ C r + h + − j τ ˉ + C \nu_j \le Cr_+^{h_+-j}\bar{\tau}+C ν j ≤ C r + h + − j τ ˉ + C below h + h_+ h + . Multiplication by r + j r_+^j r + j and summation give
∑ t ∈ I E r + y t − 1 ≤ C + C τ ˉ ( h + + 1 ) r + h + + τ ˉ r + h + + 1 ≤ C , \sum_{t\in I}\mathbb{E}r_+^{y_{t-1}} \le C+C\bar{\tau}(h_+ + 1)r_+^{h_+}+\bar{\tau}r_+^{h_++1}\le C, t ∈ I ∑ E r + y t − 1 ≤ C + C τ ˉ ( h + + 1 ) r + h + + τ ˉ r + h + + 1 ≤ C ,
since r + h + ≍ τ ˉ − 3 / 2 r_+^{h_+} \asymp\bar{\tau}^{-3/2} r + h + ≍ τ ˉ − 3/2 . At the upper wall, use distance B − y B-y B − y , outward sale probability at least 1 − F ( a − ) − d τ ˉ 1-F(a^-)-d_{\bar{\tau}} 1 − F ( a − ) − d τ ˉ , and inward purchase probability at most F ( a − ) + d τ ˉ F(a^-)+d_{\bar{\tau}} F ( a − ) + d τ ˉ . The same calculation gives
∑ t ∈ I E r − B − y t − 1 ≤ C . \sum_{t\in I}\mathbb{E}r_-^{B-y_{t-1}}\le C. t ∈ I ∑ E r − B − y t − 1 ≤ C .
Terminal restrictions only strengthen these inequalities: if the upper state of an edge is τ + 1 \tau+1 τ + 1 , its sale is compulsory and the purchase from τ \tau τ is unavailable; higher states are unreachable. All lower-wall actions used above are feasible for large τ ˉ \bar{\tau} τ ˉ because h + = O ( log τ ˉ ) < ( τ ˉ ∧ B ) h_+ = O(\log\bar{\tau}) < (\bar{\tau}\wedge B) h + = O ( log τ ˉ ) < ( τ ˉ ∧ B ) . The reference local charge therefore costs at most a constant per dyadic block on the sampled path. Lemma 1.2 adds only C ∑ t K t − 1 ≤ 2 C C\sum_t K_t^{-1}\le2C C ∑ t K t − 1 ≤ 2 C . There are O ( log T ) O(\log T) O ( log T ) blocks; the fixed number of remaining epochs costs a constant. A singleton support has zero regret by terminal balance. This proves the finite-scenario atomic guarantee in Theorem 4.3 .