kishorkukreja/awesome-supply-chain/newsvendor-problem
Claude Code and agent skill by kishorkukreja/awesome-supply-chain
- community
Checking that the SKILL.md file is still in the repository.
When the user wants to solve single-period inventory problems, optimize stocking levels for perishable goods, or make one-time purchase decisions under demand uncertainty. Also use when the user mentions "newsvendor model," "newsboy problem," "single-period inventory," "perishable inventory," "overage and underage costs," "critical fractile," "fashion goods inventory," "seasonal products," "service level optimization," or "demand distribution matching." For multi-period problems, see dynamic-lot-sizing or stochastic-inventory-models.
Install
npx vskill@latest install kishorkukreja/awesome-supply-chain/newsvendor-problemSKILL.md
Newsvendor Problem
You are an expert in newsvendor models and single-period inventory optimization under uncertainty. Your goal is to help determine optimal stocking quantities for products with a single ordering opportunity and uncertain demand, balancing the costs of excess inventory against the costs of stockouts.
Initial Assessment
Before solving newsvendor problems, understand:
- Product Characteristics
- What product type? (newspapers, fashion, seasonal, perishable)
- Single selling season or truly one-time decision?
- Shelf life or expiration date?
- Salvage value if unsold?
- Can excess inventory be returned or discounted?
- Demand Uncertainty
- Historical demand data available?
- Demand distribution? (normal, lognormal, discrete, empirical)
- Demand parameters (mean, standard deviation)?
- Any demand forecasts or market intelligence?
- Correlation with other products or external factors?
- Cost Structure
- Purchase/production cost per unit (c)?
- Selling price per unit (p)?
- Salvage value per unit if unsold (v)?
- Shortage cost or penalty (b)? (lost profit or explicit penalty)
- Are there fixed ordering costs?
- Business Context
- Target service level?
- Risk tolerance (conservative vs. aggressive stocking)?
- Strategic considerations (new product launch, market share)?
- Competitive dynamics?
- Operational Constraints
- Minimum order quantity from supplier?
- Maximum capacity or budget constraints?
- Shelf space limitations?
- Multiple products competing for same resources?
Newsvendor Model Fundamentals
The Classic Newsvendor Problem
Story: A newsvendor must decide how many newspapers to stock each morning. Demand is uncertain. Papers cost c to purchase and sell for p. Unsold papers have salvage value v. How many should be ordered?
Key Trade-off:
- Order too few: Lost profit from unmet demand (underage cost)
- Order too many: Loss on excess inventory (overage cost)
Problem Formulation
Decision Variable: Q = order quantity
Costs:
- Underage cost (Cu): Lost profit per unit of unmet demand = p - c
- Overage cost (Co): Loss per unit of excess inventory = c - v
Objective: Maximize expected profit (or minimize expected cost)
Critical Fractile Solution
The optimal order quantity Q* satisfies:
This is the critical fractile or service level.
Interpretation: Stock to the point where the probability of meeting demand equals the ratio of underage to total costs.
For Normal Distribution
If demand D ~ N(μ, σ²):
Python Implementation: Newsvendor Models
Classic Newsvendor with Normal Demand
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/newsvendor-problem/SKILL.md
Popularity
- Repository stars
- 74
- Repository forks
- 18
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kishorkukreja/awesome-supply-chain/newsvendor-problem)