Stochastic Predictive Analytics for Stocks in the Newsvendor Problem
Pedro A. Pury
TL;DR
This work addresses stockout forecasting within the Newsvendor setting by modeling the time evolution of inventory stock without presupposing a fixed demand distribution. It builds a stochastic, Markovian stock process with state probabilities P(n,k) and a first-passage stockout distribution P(0,k), and derives closed-form recurrences for both generic and parametric demand forms (Deterministic, Poisson, Binomial, Negative Binomial) as well as a naive frequentist alternative. The framework is validated on a large e-commerce dataset (MercadoLibre MELI) using the Ranked Probability Score to assess full distribution forecasts, demonstrating robust performance even with very short training histories and offering a practical, low-cost forecasting tool for inventory managers. The work also provides a mechanism to quantify frustrated sales and discusses extensions to incorporate cross-SKU effects, contributing to interpretable, scalable stockout forecasting in real-world marketplaces.
Abstract
This work addresses a key challenge in inventory management by developing a stochastic model that describes the dynamic distribution of inventory stock over time without assuming a specific demand distribution. Our model provides a flexible and applicable solution for situations with limited historical data and short-term predictions, making it well-suited for the Newsvendor problem. We evaluate our model's performance using real-world data from a large electronic marketplace, demonstrating its effectiveness in a practical forecasting scenario.
