newsvendor-problem

Calculate optimal order quantities using the newsvendor model with demand distributions.

56|16|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill newsvendor-problem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: newsvendor-problem
Source: https://github.com/kishorkukreja/awesome-supply-chain/tree/main/skills/newsvendor-problem
Command: npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill newsvendor-problem

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, scipy, pandas, matplotlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps businesses make optimal stocking decisions for products with uncertain demand and a single ordering opportunity, balancing the costs of overstocking against the risks of stockouts.

Core Features & Use Cases

  • Single-Period Optimization: Determines the ideal quantity to order for items with a limited selling window (e.g., seasonal goods, perishable items).
  • Cost Balancing: Calculates the optimal order quantity by considering purchase costs, selling prices, salvage values, and shortage costs.
  • Demand Uncertainty Modeling: Supports various demand distributions (normal, discrete, etc.) to accurately reflect market variability.
  • Use Case: A fashion retailer can use this Skill to decide how many units of a new jacket style to order for the upcoming season, given uncertain customer demand and end-of-season clearance prices.

Quick Start

Use the newsvendor-problem skill to calculate the optimal order quantity for a product with a cost of $40, selling price of $100, salvage value of $10, and normally distributed demand with a mean of 200 and standard deviation of 50.

Frequently Asked Questions about newsvendor-problem

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate optimal stocking levels for single-period inventory under demand uncertainty?

To calculate optimal stocking levels for single-period inventory under demand uncertainty, compute the critical fractile by balancing overage and underage costs, then apply it to your demand distribution (normal, lognormal, uniform, exponential, or discrete) to find the ideal order quantity.

What is the newsvendor model and when should I use it for inventory optimization?

The newsvendor model determines optimal order quantities for single-period inventory problems with uncertain demand. Use it for perishable items or seasonal goods to balance overstock costs against stockout risks when you have limited selling windows.

How do I factor salvage value and shortage costs into demand uncertainty modeling?

Factor salvage value and shortage costs into demand uncertainty modeling by incorporating purchase costs, selling prices, and salvage values into the critical fractile calculation, which determines the optimal order quantity that minimizes expected overage and underage losses.

Can I use Python and SciPy to perform sensitivity analysis on expected profits for perishable goods?

Yes, you can use Python with SciPy, NumPy, and Pandas to perform sensitivity analysis on expected profits for perishable goods. The skill provides visualization tools using matplotlib to analyze how variations in demand parameters and costs affect optimal stocking decisions.

Does this approach support discrete empirical demand distributions for seasonal inventory?

Yes, the approach supports discrete empirical demand distributions for seasonal inventory alongside normal, lognormal, uniform, and exponential distributions. This allows you to model market variability accurately using historical sales data rather than theoretical curves.

What are the limitations of using critical fractile calculations for supply chain operations research?

Critical fractile calculations for supply chain operations research are limited to single-period inventory optimization and assume known cost parameters. They do not handle multi-period replenishment policies or dynamic demand forecasting scenarios requiring continuous inventory control.