A retailer or manufacturing SMB sets replenishment from past sales. Classic OR problem: time-series forecasting plus inventory policy.
In plain words
Sound familiar?
- We carry 500-5,000 SKUs; at the start of each month the purchasing manager orders in a spreadsheet using the last three months' average.
- Some products sit on shelves for six months (dead stock) while popular items run out by Wednesday (stockouts) at the same time.
- We have seasonality (holidays, back-to-school, summer/winter) but planning is manual; there is no systematic method.
- Our inventory turnover is below the sector benchmark; working capital is locked in stock.
- Supplier lead times run four to eight weeks; we do not know how much buffer to keep when placing an order.
- When we add a new product to the catalogue we cannot forecast it; we either over-order or skip it.
- Our ERP or commerce platform has a 'forecast' module but it misses seasonality and we do not trust it.
Why it matters
How it's solved
Technical depth
How it's solved
Technical depthOne-liner: Forecast fast-movers (sell every day) with seasonality, slow-movers (a few per week) with a moving average, and intermittent items (mostly zero days) with a separate method โ applying one formula to all flattens the seasonals (you stock out on campaign days) and overshoots on the intermittent ones.
This problem sits at the intersection of operations research (a discipline that uses math and computing to solve business-decision problems) and statistical learning. Two coupled sub-problems: Demand Forecasting (point plus interval forecast of future demand) and Inventory Policy (forecast-driven order quantity, reorder point, safety stock). The solution has three stages:
1. Modelling. Data preparation: at least eighteen to twenty-four months of SKU-level daily or weekly sales. Gap filling, outlier handling, stockout-period reconstruction (zero sales during a stockout is not real demand and must be corrected). Seasonal index and trend decomposition. SKU classification: fast movers (A), medium (B), slow (C), intermittent (mostly zero days). Each class needs a different method.
2. Solver-driven decision. Method choice follows SKU class: A class โ SARIMA or Holt-Winters (time-series methods that capture seasonality plus trend); B class โ ETS (state-space exponential smoothing); C class โ simple moving average or naive; intermittent โ Croston method (a special model for items with mostly-zero days) or TSB. Modern automatic model selection picks the method per SKU. Inventory policy on top: (s, S) reorder point and max stock level, or (R, Q) periodic review with fixed order quantity. Safety stock is computed from the target service level (commonly ninety-five to ninety-eight percent) together with lead-time variability.
3. Field integration. Output is a weekly SKU-level order recommendation feeding the purchasing workflow. ERP or WMS handles the order-creation step. Weekly or daily rolling retrain. Tracking of MAPE, WAPE and bias with exception alerts for high-error SKUs. Manual override for promotions, launches, supply shocks. Monthly KPI dashboard on service level and inventory turnover.
Alternatives
Spreadsheet plus purchasing manager experience
FreeZero licence
Who it fits: Very small portfolio (<200 SKUs), low seasonality
- + Zero software cost
- + Flexible and fast
- + Manager knows the catalogue
- โ Weak at seasonality and trend
- โ Control collapses past 500 SKUs
- โ Stockout history is not corrected
- โ No consistent record
Local ERP forecast module
Enterprise60,000โ200,000 TRY licence plus 12,000โ35,000 TRY/year maintenance (TR market observation)
Who it fits: Mid-size SMB (200-2,000 SKUs)
- + Local language support, tax-compliant
- + Integrated with existing ERP
- + Basic moving average plus seasonality
- โ Usually no ARIMA or Holt-Winters
- โ No intermittent demand method
- โ Inventory policy is a fixed rule
- โ No automatic model selection
International supply-chain planning suite
Enterprise80,000โ400,000 EUR licence plus 15,000โ60,000 EUR/year
Who it fits: Large retailer or multi-site manufacturer (2,000+ SKUs)
- + ARIMA, ETS, Croston, hierarchical reconciliation
- + Automatic model selection
- + Inventory policy optimisation included
- โ Expensive
- โ Six to twelve month rollout
- โ Local tax and returns workflow needs custom work
Open-source time-series libraries plus custom build
Open SourceFree licence; in-house build 10-18 weeks or 250K-750K TRY consultancy
Who it fits: SMB or e-commerce with an in-house tech team
- + No licence cost
- + Open-source time-series libraries are mature
- + Inventory policy is fully customisable
- โ Requires in-house statistician or OR engineer
- โ ERP integration is a separate project
- โ Continuous maintenance
Recommendation
Ask in the meeting
- Which forecasting methods do you offer (ARIMA, ETS, Holt-Winters, Croston, hierarchical)?
- Do you select the method automatically per SKU, or is one method applied to the whole portfolio?
- Do you support an intermittent-demand method (Croston or similar) for SKUs with mostly zero sales days?
- How does your module correct historical stockout periods to recover real demand?
- Are inventory policy parameters (s, S) or (R, Q) computed automatically or entered by hand?
- How are promotions, campaigns and new-product launches incorporated into the forecast?
- Can we measure bias and WAPE on twelve-to-sixteen weeks of real sales during the pilot? How is success defined?
- If we leave you, how do we extract SKU-level forecast history, model parameters and order recommendations?
Technical details
Editor’s note
This problem is commonly called “how much should I order”, “stock control” or “merchandise planning”. In the academic literature it is studied as Demand Forecasting, Time Series Forecasting and Inventory Policy Optimization. Without these concepts you cannot tell a ‘sales report’ (history view) apart from a ‘demand forecast’ (a point estimate with a confidence interval) when buying an ERP or planning tool. The first only shows the past; the second produces a decision.
The most-skipped point in the field: forecast accuracy is not the goal โ minimising inventory cost is. Many SMBs chase low MAPE, but bias (systematic over- or under-forecast) hurts inventory far more than variance. A model with fifteen percent bias costs much more than a twenty-five-percent-MAPE model that is unbiased. Worse: weeks with stockouts in history mask true demand โ a model trained on uncorrected data systematically under-forecasts. Censored-demand correction is the hidden critical step.
Step-by-step path โ for the SMB
Stage 1 โ Measure before you plan. At least eighteen to twenty-four months of SKU-level sales: daily or weekly granularity, channel split (store, e-commerce, wholesale), price history, promotion calendar, stockout days. ABC analysis: the top twenty percent of SKUs usually account for eighty percent of sales โ invest model effort here. The long tail can stay on simple methods.
Stage 2 โ Extract the knowledge capital. Supplier lead times (mean plus standard deviation), order multiples (pallet, case), warehouse capacity constraints, target service level (decide with the leadership: ninety-five or ninety-eight percent), seasonal calendar, promotion plan, new-product launch process. This knowledge capital shapes the inventory policy more than the forecast itself.
Stage 3 โ Pilot. Twelve to sixteen weeks. Start with fifty to one hundred fifty fast-moving SKUs in a single warehouse or store group. Success criteria fixed up front: WAPE down thirty percent, absolute bias under five percent, fill rate up four points, inventory turnover up fifteen percent. Model output appears as a suggestion to the purchasing manager โ the human still signs off.
Stage 4 โ Scale-up. Four to eight months across all SKUs and locations. Weekly automatic retrain. ERP or WMS handles order creation. Monthly KPI dashboard: WAPE, bias, fill rate, turnover, dead-stock ratio. High-error SKU list reviewed every week.
Risks โ what can go wrong
- Stockout masking. SKUs with extended stockout history train into systematic under-forecasts and persistent stockouts. Censored-demand correction is mandatory.
- Over-parameterisation on thin data. New products or intermittent SKUs do not support deep models. SKU classification plus method matching is required.
- Promotions and launches. A model trained on the past treats promotion periods as normal demand. Promotion calendars must be separated and manual override must exist.
- Service-level fantasy. Targeting ninety-nine percent fill rate roughly doubles safety stock versus ninety-five percent. The target must be set jointly with finance and operations.
Technical view of the solution method
| Approach | Typical scale | Solve time | Guaranteed optimum? |
|---|---|---|---|
| Naive methods (moving average, last period) | Very small portfolio | instant | No, baseline |
| Holt-Winters (triple exponential smoothing) | Seasonal A and B class SKUs | seconds | No, good baseline |
| ARIMA / SARIMA (Box-Jenkins) | Mid-to-large A class SKUs | minutes | Local optimum |
| ETS (state-space exponential smoothing) | Automatic selection across portfolio | minutes | Local optimum |
| Croston / TSB (intermittent demand) | SKUs with mostly zero days | seconds | Classical standard |
| Machine learning (gradient boosting on lag features) | Very large portfolio plus external data | hours of training | No, experimental |
Objective function choice:
- Objective 1 โ Minimise forecast error: MAPE, WAPE, RMSE, MASE. Used at model-selection stage.
- Objective 2 โ Minimise stockout count: Service-level oriented; pushes safety stock up.
- Objective 3 โ Minimise total inventory cost: Carrying cost plus stockout penalty plus order cost together.
- Objective 4 โ Maximise fill rate / service level: Customer-focused under a budget constraint.
Multi-objective: weighted sum or goal programming. In most practical deployments Objective 3 (total inventory cost) is the operational objective while Objective 4 (fill rate) becomes a constraint.
Academic sources
Listed in the sources field of the frontmatter.
Sources
- Box, G. E. P. and Jenkins, G. M. (1970). Time Series Analysis: Forecasting and Control. Holden-Day. Foundational reference for the ARIMA methodology.
- Hyndman, R. J. and Khandakar, Y. (2008). Automatic time series forecasting: The forecast package for R. Journal of Statistical Software, 27(3), 1โ22. Modern reference for automatic model selection.
- Croston, J. D. (1972). Forecasting and stock control for intermittent demands. Journal of the Operational Research Society, 23(3), 289โ303. Original intermittent-demand paper.
- Silver, E. A., Pyke, D. F. and Peterson, R. (1998). Inventory Management and Production Planning and Scheduling. Wiley. Standard reference on inventory policy.
- YรK Thesis Centre โ keyword: ‘demand forecasting’ or ‘inventory management’ โ 100+ theses from Turkish academia. tez.yok.gov.tr
Glossary
- Demand Forecasting
- Quantitatively predicting future demand using history, seasonality, events, and external signals.
- Time Series Forecasting
- Statistical modelling field for predicting future values from observations ordered in time; covers ARIMA, ETS and state-space models.
Related problems
Dozens of SKUs from the Same Supplier โ At What Frequency Do I Order Each So Trucks and Stock Cost Are Minimum Together?
This page is for an SMB wholesaler, importer or manufacturer pulling 50-500 SKUs from the same supplier โ typically across 3-15 main suppliers. The weekly question is the same: from this supplier, which products should ship today and which can wait until next week? If every product triggers its own order, the same supplier ends up sending three trucks and three customs filings a week; one truck, one customs filing and one setup cost can cover all of it if the groups are right. Manual planning falls apart past 50 SKUs: some weeks a half-empty truck, others three back-to-back orders โ fixed costs come back as 5-15% of unit product cost.
Stock Is Not Clearing as the Season Ends โ When and How Deep Should I Mark Down So That Margin Holds and Dead Stock Stays Low?
This page is for you if you run a seasonal-collection fast-fashion retailer, a 30-100 store apparel/shoes/accessories chain, or a fresh-food chain (greengrocer, bakery, butcher). The classic pain: a 200-1,000 SKU collection sells for 4-12 weeks and then the unsold stock becomes a problem โ discount too early and you erode the gross margin, discount too late and you sit on a pile of dead stock at the end of the season. The decision: which item, when, and by what percentage to mark down? In a mid-size fashion chain run on gut-feel rules, 20-35% of end-of-season stock ends up as salvage; a proper markdown schedule lifts the gross margin by 5-15%, cuts dead stock by 20-30%, and adds 15-60 million TRY of operating margin a year on a typical revenue base.