The Big Data Newsvendor: Practical Insights from Machine Learning: The L2-Regularized Feature-Based Newsvendor Rule Generalizes with a Bound Free of the Number of FeaturesResearch Paper
Motivation
The newsvendor problem is the basic model of inventory under uncertain demand. A decision maker orders units before demand is observed, and pays a unit backordering cost for each unit of unmet demand and a unit holding cost for each unit left over. When the demand distribution is known, the optimal order is a quantile of it. In practice the distribution is unknown and the decision maker holds historical data, often including features: observable covariates such as the day of the week, the weather or a recent sales trend, recorded alongside each past demand.
Rudin and Vahn (MIT Sloan Working Paper 5036-13, version of February 6, 2014, from MIT DSpace; published as Ban and Rudin, Operations Research 67(1), 2019, doi:10.1287/opre.2018.1757) propose to learn the order quantity directly as a linear function of the features, by minimizing the empirical newsvendor cost over the training data, with or without a regularization penalty. Their question is the one any data-driven decision rule must answer: how much worse can the learned rule do on new data than it did on the data it was fitted to? When the number of features is comparable to the sample size ("big data"), a bound that grows with says nothing, and the paper's Theorem 2 gives one for the regularized rule that does not depend on .
This mission formalizes that bound, Theorem 2 of the working paper, together with the results its proof is assembled from. All page and result numbers refer to the 2014 working paper, not to the published article.
Setting
Cost. For an order and a demand , the newsvendor cost is
Write .
Data. A data point is a pair of a feature vector and a demand . Features lie in a domain inside the ball , and demands lie in . A sample consists of independent draws from an unknown probability distribution concentrated on .
Rules and risks. A vector defines the linear decision rule . Its true risk and empirical risk are
The regularized algorithm (NV-reg). For a parameter , the rule minimizes
The objective is strictly convex, so the minimizer is unique. Following Appendix B of the paper, the rules the algorithm outputs on samples from are assumed to map into (the paper's ): the learned order quantity is never negative and never exceeds the demand cap.
Uniform stability. An algorithm is uniformly stable with parameter if removing one observation from any sample changes the loss of its output at any test point by at most (Bousquet and Elisseeff's Definition 6, the paper's Definition 1).
Formalization targets
Goal: Theorem 2 (p. 9)
For every and , with probability at least over ,
The dimension appears nowhere in the bound.
Milestones, in the order of the proof (p. 32)
- Lemma 5 (p. 28). For , , and the bound is attained.
- Display (31) (p. 31). is convex in its first argument and -Lipschitz in it, i.e. -admissible in the sense of Definition 2.
- Theorem 5 (p. 31), Bousquet and Elisseeff's Theorem 22: regularization in a reproducing kernel Hilbert space with a -admissible loss and kernel bound has uniform stability . This is an existing platform statement, referenced rather than restated.
- Theorem 4 (p. 30). (NV-reg) is uniformly stable with parameter .
- Theorem 6 (p. 31). Any algorithm with uniform stability and loss in satisfies, with probability at least ,
Significance
The result. Theorem 2 bounds the generalization gap of the regularized feature-based newsvendor rule at rate with constants that depend on the costs, the demand cap, the feature radius and , but not on the number of features. It gives a theoretical basis for regularizing when is not small, and it indicates how to scale with the feature radius. The companion bound for the unregularized rule (Theorem 1) grows linearly in .
Formalizing it. The theorem is proved in the paper, but its proof is short and relies on cited results: Theorem 5 and Theorem 6 are stated with references to Bousquet and Elisseeff and no proof of their own, and the paper's Theorem 6 is a two-sided variant of Bousquet and Elisseeff's Theorem 12 that is only sketched. None of these results has a machine-checked proof. A formalization produces a checked two-sided stability-to-generalization theorem for general algorithms (reusable for any stable learner), a checked stability bound for a regularized piecewise-linear loss, and the newsvendor bound itself, with the constants the proof actually supports.
Difficulty
The bound is not a uniform-convergence argument: the class of linear rules on has complexity growing with , so any bound that holds simultaneously for all rules in the class depends on . The bound must exploit the specific rule produced by the algorithm. The two analytic steps that carry this are the stability of the regularized minimizer, which needs a strong-convexity comparison between the full and the leave-one-out objective, and a concentration inequality of bounded-differences type for a function of the whole sample whose differences are controlled only through stability.
The leave-one-out comparison is a known pitfall. If the leave-one-out problem is run literally on points it carries the weight , and the comparison argument then gives twice the constant of Theorem 4. The stated constant holds for the leave-one-out objective that keeps the weight , which is the form of Theorem 5.
Formalization scope
Representation. Features are EuclideanSpace ℝ (Fin p), rules are vectors acting by the inner product, and data points live in EuclideanSpace ℝ (Fin p) × ℝ. The cost is the published newsboy loss with overage cost and underage cost ; the empirical and true risks are the published empirical and generalization errors, and the (NV-reg) objective and its -weighted leave-one-out version are the published regularized objectives of Bousquet and Elisseeff. The regularizer is (the display prints both and ; the text calls the problem a quadratic program). "With probability at least " is stated as: the event on which the gap exceeds the bound has measure at most under the product measure .
Standing assumptions and pinned hypotheses.
- , , , .
- is a probability measure giving full mass to , with on (§3, p. 9; the page writes the ball as , while Theorem 2's " as the largest possible value of " and Theorem 5's note fix the reading).
- The algorithm is any map whose value minimizes the (NV-reg) objective, measurable in (Appendix B: "all functions are measurable").
- The range assumption of Appendix B: for samples from , for .
- The last constant is , the loss bound from Lemma 5 that the proof feeds into Theorem 6; display (6) prints there.
- The convention that all sets are countable, and the intercept convention , are not imposed.
Trivializing formalization ruled out. The range assumption is quantified only over feature vectors in and over samples drawn from ; stated over the whole ball , it would force (both and would lie in ) and the goal would be nearly empty.
What is needed and reusable. McDiarmid's two-sided bounded-differences inequality under product measures; integrability of bounded measurable losses; existence and properties of minimizers of strongly convex objectives on ; the comparison argument behind Theorem 5. Theorem 6 is stated for an arbitrary data space and hypothesis space and is reusable for any uniformly stable algorithm. Contributions to the Theorem 5 reference and to McDiarmid's inequality benefit other missions as well.
Selected references
- C. Rudin and G.-Y. Vahn, The Big Data Newsvendor: Practical Insights from Machine Learning, MIT Sloan School Working Paper 5036-13, version of February 6, 2014 (MIT DSpace). The version formalized here.
- G.-Y. Ban and C. Rudin, The Big Data Newsvendor: Practical Insights from Machine Learning, Operations Research 67(1):90–108, 2019. https://doi.org/10.1287/opre.2018.1757
- O. Bousquet and A. Elisseeff, Stability and Generalization, Journal of Machine Learning Research 2:499–526, 2002. https://jmlr.org/papers/v2/bousquet02a.html
- C. McDiarmid, On the method of bounded differences, Surveys in Combinatorics, London Math. Soc. Lecture Note Series 141, 148–188, 1989. https://doi.org/10.1017/CBO9781107359949.008