arXiv:2609.06083cs.LGSep 2026

Manuscript Offprint

arXiv:2609.06083

Learning to Price and Stock Under Contextual and Censored Demand

Zean Han, Zezhen Ding, Jiheng Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

To make optimal joint pricing and inventory control decisions is a critical challenge for modern retailers. In practice, retailers face changing market conditions where demands are influenced by various contextual factors, while simultaneously dealing with the difficulty of lost sales that obscure true demand information. However, existing approaches often fail to account for both contextual information and censored demand observations. We address this gap by presenting a framework where we model demand as a linear combination of basis functions with unknown coefficients, allowing for adaptive pricing and inventory decisions that respond to changing contexts. We propose an efficient algorithm to achieve regret bound O(KTlog⁡T)\mathcal{O}(K\sqrt{T}\log T) under concave revenue conditions and O(K2/3T2/3(log⁡T)1/2)\mathcal{O}(K^{2/3}T^{2/3}(\log T)^{1/2}) for the general case, with matching lower bounds confirming optimality. Extensive numerical experiments across diverse scenarios demonstrate our algorithm's effectiveness.

1 Introduction

In recent years, joint pricing and inventory control has gained significant attention from both academia and industry. Leading retailers increasingly leverage data science to drive innovation in pricing strategies, inventory management, and supply chain optimization. This growing interest is reflected in comprehensive surveys [Chen and Simchi-Levi, 2012; Yano and Gilbert, 2004; Petruzzi and Dada, 1999a]. However, a critical gap remains: most existing models overlook the role of censored demand and contextual information, which are essential for adaptive decision-making. In this paper, we address this gap by studying the optimal joint pricing and inventory control strategy with lost sales that incorporates contextual information, aiming to bring theory closer to real-world applications.

In this paper, we study a joint pricing and inventory control problem with contextual information and lost sales over a finite horizon of TT periods. At the start of each period, the seller

observes contextual information that influences customer demand. The demand function is modeled as a linear combination of KK basis functions with unknown coefficients, plus an independent random noise term. Using the observed context and an estimated demand function, the seller simultaneously sets the selling price and inventory level, with replenishment taking effect immediately. After making the decisions, only the censored demand, i.e., the minimum between actual demand and available inventory, is observed as unmet demand are lost. Leftover inventory carries over to the next period, incurring a linear holding cost, while unmet demand results in a linear lost penalty cost. The objective is to maximize profit, defined as sales revenue minus inventory holding and lost sales costs, across the TT-period horizon.

Our problem introduces several interconnected challenges that complicate both theoretical analysis and practical implementation. First, the presence of censored demand obstructs direct observation of true demand signals, necessitating the development of unbiased estimators for the demand function while mitigating inherent biases from incomplete data. Second, the inclusion of contextual factors result in the problem being dynamic, thus traditional optimization methods which lead to static policies become inapplicable. Both the pricing and inventory decisions must adapt to contextual information in order to achieve optimality. Finally, when applying our methodology to models beyond the combination of the basis functions, approximation errors arise due to structural mismatches between idealized model and real-world dynamics, demanding rigorous error quantification and robustness guarantees. Together, these challenges necessitate a novel integration of censored data correction, context-aware online optimization, stochastic inventory control, and error-bounded approximation techniques.

Our contributions can be summarized as followings:

  1. Context-Aware Pricing and Inventory Optimization. We propose a framework for joint pricing and inventory management (see Table 1) where decisions adapt to contextual information, with both pricing and inventory policies responding to changing contexts.

  2. Algorithmic Framework and Regret Analysis. We propose an easy-to-implement algorithm addressing censored demand, dynamic contexts, and stochastic inventory dynamics. Under concave revenue,

*Corresponding author.

PaperContextCensored DemandUpper BoundLower BoundAssumptions
[Chen et al., 2019]NoNoT\sqrt{T}N/A—
[Chen et al., 2021]NoYesT12+νT^{\frac{1}{2}+\nu}N/Alog⁡T\sqrt{\log T}-differentiable, concave
[Chen et al., 2024]NoYesT\sqrt{T}N/ATwice-differentiable, concave
[Chen et al., 2024]NoYesT35T^{\frac{3}{5}}T35T^{\frac{3}{5}}Twice-differentiable
OursYesYesT25T^{\frac{2}{5}}T25T^{\frac{2}{5}}Differentiable
OursYesYesT\sqrt{T}N/ATwice-differentiable, concave

Note: The regrets listed above omit constant factors and poly(log⁡T\log T) terms. Here, ν=13ln⁡T+0.25ln⁡T\nu = \frac{1}{\sqrt{3\ln T}} + \frac{0.25}{\sqrt{\ln T}}.

Table 1. Comparison of Regret Bounds under Joint Pricing and Inventory Control Problems

our method achieves O(KTlog⁡T)\mathcal{O}(K\sqrt{T}\log T) regret, matching the lower bound. Without concavity, we derive O(K2/3T2/3(log⁡T)1/2)\mathcal{O}(K^{2/3}T^{2/3}(\log T)^{1/2}) regret and prove a lower bound Ω(T(m+1)/(2m+1))\Omega(T^{(m+1)/(2m+1)}) in Theorem 4.4 for mm-th differentiable revenue functions, establishing minimax optimality (see Table 1).

  1. Inventory Feasibility. To address infeasible target inventory levels from contextual information, we develop a queueing-theoretic method using stochastic recursion to bound regret from inventory mismatches, ensuring stable performance under stochasticity.

References (40)