arXiv:2608.30944cs.LGAug 2026

Manuscript Offprint

arXiv:2608.30944

Nonparametric Contextual Pricing and Inventory Learning under Censored Demand

Zean Han, Jing Liang, Ruihan Lin, Zezhen Ding, Jiheng Zhang

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

ABSTRACT

In online retailing, when a product sells out, a retailer often sees only the units sold, not how many customers would have bought it had inventory been available. However, the inventory level determines how much demand is revealed, and this information can influence subsequent decisions and future profits. We study an online selling problem in which, in each round, the seller observes a market context and then makes pricing and stocking decisions based on censored sales data from previous rounds. The challenge is to learn a context-dependent pricing and stocking policy without assuming a particular formula for demand or observing realized profit. To overcome this difficulty, we propose a Mean-Calibrated Kernel UCB (MCK-UCB) algorithm that turns each incomplete sales record into a reliable guide for both inventory and price decisions, using data from past rounds with similar market conditions. This design allows us to learn while serving customers, without a separate exploration phase or the need to recover all demand hidden by stockouts. We prove the minimax optimality of the proposed algorithm, with strictly faster rates when expected profit varies more smoothly with price. Comprehensive numerical experiments have been conducted to confirm the effectiveness of the proposed algorithm.

1 INTRODUCTION

Online retailers must repeatedly decide how much to charge and how much inventory to make available, often while demand is still being learned. When a product sells out, the retailer typically sees only the units sold, not how many customers would have bought the product had inventory been available. The sales record is therefore incomplete precisely when demand is strongest. Moreover, inventory affects not only current revenue but also what the seller can learn for future decisions. This missing-demand problem is a familiar obstacle in lost-sales settings (Besbes & Muharremoglu, 2013; Chen et al., 2021; 2024).

The problem becomes more realistic, and harder, when market conditions change. The same price may be attractive in one season, product category, or local market and unattractive in another. These market contexts arrive over time, and the seller cannot know in advance how customers in each context would respond to every possible price and inventory level. At the same time, the sales records available for learning are shaped by the seller's own earlier stocking decisions: whenever inventory was too low, part of the demand was hidden.

Prior work has addressed important parts of this problem. Censored pricing–inventory models have been studied when the seller repeatedly faces the same demand environment (Chen et al., 2021; 2024). Feature-based inventory models show how censored sales can guide stocking decisions (Ding et al., 2024). Recent contextual pricing–inventory studies also use rich market information, but often start from historical data available before the policy is deployed (Tang et al., 2025; Hu et al., 2026). The online case considered here is different: the seller must learn from the censored records produced by its own past price and inventory decisions.

We study this problem in a nonparametric contextual setting, where demand may vary flexibly with both context and price. The seller cannot pool all past sales as if they came from the same market

  • Equal contribution. † Corresponding author.

condition, but also cannot run a separate experiment to reveal the full demand curve at every context. This leads to the following central question:

How can a seller learn a context-dependent pricing and stocking policy when demand is censored by inventory decisions and no parametric demand model is available?

We answer this question through three contributions.

  1. An observable learning signal under sales censoring. Sales-only feedback creates an identification problem: raw sales cannot be directly interpreted as either true demand or realized profit. We overcome this difficulty by constructing an observable learning signal from the sales record and end-of-period inventory. The signal uses stockouts and leftover inventory to guide stocking decisions, and uses the consistently visible part of sales as a reference for comparing prices. Intuitively, the seller need not recover the demand hidden by stockouts; it only needs the decision-relevant information that remains visible.

  2. Context-aware learning with censored sales. Building on this observable signal, we develop the Mean-Calibrated Kernel UCB (MCK-UCB) algorithm for joint pricing and stocking. The algorithm pools observations only across nearby market contexts, profiles inventory where needed, and learns prices from the same censored sales collected while serving customers. This lets the seller adapt to changing market conditions without running a separate demand-revealing experiment for every context.

  3. Minimax-optimal regret rates. We prove matching upper and lower bounds for the proposed method. Under Lipschitz price values, the minimax regret is Θ~(Td+2αd+3α)\widetilde{\Theta}\left(T^{\frac{d+2\alpha}{d+3\alpha}}\right), while under twice-smooth price values it becomes Θ~(T2d+3α2d+6α)\widetilde{\Theta}\left(T^{\frac{2d+3\alpha}{2d+6\alpha}}\right). These rates quantify the cost of contextual variation: higher context dimension makes learning harder, while smoother variation across contexts allows faster information sharing.