Based on a time series history of a random variable representing demand for at least one of a good and a service as a function of at least one controllable demand driver, obtain a quantile regression function that estimates a quantile of a demand distribution function; obtain a mixed- and/or super-quantile regression function that estimates conditional value at risk; and obtain a regression function that estimates mean of the demand distribution function. Joint optimization of: inventory of the at least one of a good and a service, and the at least one controllable demand driver, is undertaken based on the quantile regression function and the mixed- and/or super-quantile regression function, to obtain an optimal value for the at least one controllable demand driver and an implied optimal value for a stocking level. One or more exogenous demand drivers can optionally be taken into account.
STATEMENT OF GOVERNMENT RIGHTS
 This invention was made with Government support under Contract No.: DE-OE0000190 awarded by the Department of Energy. The Government has certain rights in this invention.