Real industry case · demand planning & forecasting

At Which Level Should an FMCG Business Forecast?

Finance plans the total, key account managers plan customers, category teams plan categories, and replenishment planners plan every customer × SKU. With Optimentors, we used hierarchical forecasting to show which level of the product–customer tree each of those numbers should come from. The answer is packaged as a decision app that a planning team can point at its own ERP data.

ContextReal industry case · Optimentors · FMCG client · 2024
Analytics stages
QualitativeDescriptiveDiagnosticPredictivePrescriptiveSoftware
Technology
Pythonpandas / NumPyNixtla statsforecasthierarchicalforecastStreamlitPlotlySQLAlchemy
ResultCustomer × SKU forecast accuracy of 82.8% instead of 75.6% from a top-down split, worth about 29% less safety stock at the same service level.
Stakeholder engagement · business problem

Every planning team needed a different number

Optimentors · 2024 · FMCG sell-in demand, S&OP process.

An FMCG demand plan is read at five or six levels at once. Each team forecasting its own level gives numbers that don’t add up, so the S&OP meeting ends up reconciling spreadsheets. The common fix is to forecast the total and split it down by historical mix. That is coherent, but nobody had checked what it costs at the level where stock is actually positioned.

Planning levelWho uses itDecision
Total businessFinance, S&OP executive reviewRevenue plan, capacity
CustomerKey account managementCustomer business plans
Category › Sub-category › SegmentCategory and brand teamsPromotions, portfolio, production plan
Customer × SKUDemand and replenishment plannersReplenishment, safety stock, DRP

The question from the business was simple: at which level should we forecast?

Data · descriptive analysis

0.9 million sell-in lines, one hierarchy

Daily shipments, June 2023 – July 2024, bucketed to weeks.
910k
daily sell-in lines
12
customers
1,970
SKUs
8,274
customer × SKU series

Each line carries a five-level path: Customer › Category › Sub-category › Segment › SKU. Aggregating that tree gives about 10,200 series across the levels, each weekly and with partial edge weeks removed.

Diagnostic · forecastability

The top is smooth, the tail is not

Syntetos–Boylan demand classes (ADI / CV²) and an ABC Pareto analysis.

That is the textbook setting where the level you forecast at matters: good signal at the top, noise at the bottom, and the replenishment decision at the bottom.

Predictive modelling · hierarchical forecasting

Forecast at every level, derive every other level

Top-down, middle-out and bottom-up, tested against each other.
Top-downForecast the total and split it by the recent 13-week mix.
Middle-outForecast a middle level, sum it up and split it down.
Bottom-upForecast every customer × SKU and sum.

The research phase used Nixtla’s statsforecast (AutoARIMA, seasonal naïve) and hierarchicalforecast, which provides bottom-up, top-down, MinTrace, optimal combination and ERM reconciliation. For the deliverable, the level-selection logic was rebuilt as a vectorised pandas engine. For each forecast level it produces an exponential-smoothing forecast, then derives every planning level: by summing when the planning level is higher, and by splitting on recent mix when it is lower. The 6 × 6 back-test over 8,274 series runs in about three seconds.

Hierarchical demand forecasting app: introduction to top-down, middle-out and bottom-up; recommendation; demand landscape; level-accuracy heatmap; drill-down and planning forecast export
The decision app, shown on synthetic demo data: method intro, recommendation, forecastability, accuracy heatmap, drill-down and forecast export.
Prescriptive · level selection

Forecast where you plan. Never split down to SKU.

8-week hold-out, forecast accuracy = 1 − WAPE, exponential smoothing.
Planning levelBest forecast levelAccuracyTop-downGain
Total businessany97.5%97.5%0.0
CustomerCategory97.1%96.8%+0.3
CategoryCategory94.8%93.7%+1.1
Sub-categorySub-category91.8%88.9%+2.9
SegmentSegment89.7%85.8%+3.9
Customer × SKUSKU82.8%75.6%+7.2
  1. At the top, the level doesn’t matter. Total-business accuracy is 97.5% whichever level is forecast. Finance can use any coherent plan.
  2. The cost of splitting grows as you go down. Each level of top-down split loses accuracy, from 1 point at category to 7 points at customer × SKU.
  3. Rule for the planning process: forecast at the level where the decision is made, and roll up from there. Forecast bias stays within ±0.5% at every level.
Software delivery

A decision app a planning team can point at its own data

Streamlit · schema-agnostic · connects to files or the data warehouse.
DataERP / DWH via SQLAlchemy, CSV, Parquet
Enginepandas, NumPy
InterfaceStreamlit, Plotly
ResearchNixtla statsforecast, hierarchicalforecast

All results on this page come from the client’s real sell-in data. Client data stays private. The recording and the public repository use a synthetic FMCG demo dataset with the same structure.

Business value

What it’s worth

One coherent number per team, and less stock where stock is held.
+7.2 pts
customer × SKU accuracy vs top-down
≈29%
less safety stock, same service level
97.5%
total-business accuracy
~3 s
to back-test 8k series

Safety stock scales with forecast error. Cutting customer × SKU WAPE from 24.4% to 17.2% means roughly 29% less buffer stock for the same service level, and the S&OP meeting starts from one coherent plan rather than reconciling spreadsheets.