Explore: A One-Time Buy for Your Own Item

Chapter 7, Single-Period Stochastic Inventory

This page solves the newsvendor problem of Chapter 7 for an item you describe: the quantity to have available for one period, what it is expected to leave over and fall short by, and what it is expected to cost and earn. It starts from the belt’s final buy under the normal model; Reset returns to it. The page runs in your browser and records nothing. Its formulas are a restatement in JavaScript of the book’s code, and they are tested against that code.

What This Page Assumes

  • One period, one decision. A single order is placed before demand is seen, unsold units are salvaged at the end, and unmet demand is lost.
  • The costs. A selling price \(s\), a unit cost \(c\), a salvage value \(v\), and an optional penalty \(\pi\) per unit short beyond the lost margin, so that \(c_{u} = s - c + \pi\) and \(c_{o} = c - v\). Both must be positive; when one is not, the page says what the model’s answer would be and why it signals a mis-stated problem.
  • The demand. A Poisson, negative binomial, normal, gamma or lognormal distribution, given by its mean and variance (the Poisson by its mean alone), or built from a per-period mean and variance over several independent periods, whose means and variances add. A negative binomial needs a variance above its mean. The discrete families are limited to a mean of 50,000 units.
  • Stock on hand. Units already held count toward the level, and the order is the level less the stock on hand, never negative.
NoteFor anything else, use the software

Fitting a distribution to a demand history, estimating the answer by simulation, several items sharing a budget or a shelf, and salvage rules no formula takes are in the code the chapter teaches, in Using the Software, and the chapter’s workbook fits and solves the same model sheet by sheet.

Your Item

The first plot is the demand distribution function, with the critical ratio as a dashed red line and the optimal quantity, the gray vertical line, where the function first reaches it. The red dot is your quantity.

The second plot is the expected cost against the quantity available, with your quantity as the red dot.

Things to Try

  1. Press Use the optimal quantity. The page builds the belt’s fourteen-week demand from the fitted weekly mean of 33.2404 and variance of 613.0387, and orders 475.18 belts, the chapter’s answer.
  2. Change the family to the negative binomial: the order becomes 469. Change it to the Poisson, which ignores the variance: the order falls to 467, because a Poisson with this mean is far less spread than the data.
  3. Choose one period instead of fourteen, with the normal. A normal with the weekly mean and variance puts about 9% of its probability below zero, which is why the chapter rejected it for weekly demand.
  4. Set the salvage value to $50, the unit cost. Then \(c_{o} = 0\), and the page explains why it refuses.