How much to reorder: fresh food demand forecast and reorder plan for 100 store-product pairs

Case study on a public dataset from China · Updated

We forecast daily units sold (normalized) for each of 100 store-product pairs 7 days ahead from a public dataset. In testing on past data, the selected method (the 4castPlannr Engine with extra inputs) was off by 12.7% of actual volume on average, 15% less error than repeating the same weekday last week. On data the plan never saw, the recommended plan cost $101 (0.2%) less than ordering the forecast plus 15%, using example costs.

Read this first

  • The costs and limits in the plan (unit cost, shortage cost, holding cost, waste cost, shelf life, lead time, pack size, moq, shelf capacity, budget) are example values chosen to show the method. With your business, we use your numbers.

The request

"Forecast daily demand for each store-and-product for the next 7 days (counting sales we lost when shelves were empty) and tell me how much to reorder so we stop running out without throwing food away."

The request, written the way a business owner would ask it.

The forecast

We expect about 20,046 units sold (normalized) over the next 7 days across all 100 series, about 2,864 per day on average.

Line chart of daily units sold (normalized): the actual history, the forecast for the next 7 days with its 80% range, and what actually happened in those days.
The forecast for the next 7 days, with the range it expects 8 times out of 10. The dotted line is what really happened.
Small line charts of the largest series in the data with their forecasts and 80% ranges.
The largest series, each with its own forecast.

How accurate was it?

We hid the most recent stretch of history, forecast it using only what came before, and compared with what really happened. We did that 5 times, each time 7 days ahead, for every method below. "Off by" means: add up how far each forecast missed across all 100 store-product pairs, and divide by the total of what really happened.

The selected method, the 4castPlannr Engine, also given discounts, holidays, rainfall and temperature as extra inputs, was typically off by about 13%. That is 15% closer than simply repeating the same weekday last week, which was off by about 15%.

How far off each method typically was in testing, lower is better
MethodKindTypically off byActual inside 80% range
4castPlannr Engine with extra inputs Selected4castPlannr Engine12.7%87%
Theta methodClassic14%82%
4castPlannr Engine4castPlannr Engine14.3%83%
Exponential smoothingClassic14.8%85%
Repeat last seasonSimple rule14.9%88%
Repeat the last valueSimple rule17.7%87%
Line chart comparing past forecasts with actual units sold (normalized) over 5 test runs of 7 days each, made using only the data available at the time.
Back-testing: 5 times we hid the next 7 days, forecast them, and compared with what happened.
Bar chart of the typical error of each forecasting method in testing. The selected method had 12.7% error; repeating the same weekday last week had 14.9%.
Typical error of each method in testing, as a share of actual volume. Lower is better.

Reality check on data no model saw

Before running anything, we set aside the final 700 days of the data (from 2024-06-25). Nothing in the testing above or the method choice could see them. Here is how every method did on that stretch.

The selected method was the most accurate here too: off by about 10%.

How far off each method was on the held-back 700 days
MethodOff by
4castPlannr Engine with extra inputs Selected10.4%
Theta method10.4%
Exponential smoothing11.2%
Repeat last season11.7%
4castPlannr Engine12.1%
Repeat the last value12.2%

The plan

Recommended: order 19,266 units across 100 store-product pairs in 700 orders over the next 7 days. Expected total cost $44,457, 0.4% less than ordering the forecast plus 15%.

Why this plan: it balances the cost of running short ($3.50 per unit) against holding stock ($0.05 per unit per day), waste after the shelf life, within the cash budget.

Expected outcome: 93.0% of demand served, 323 units wasted, versus 92.5% served and 293 wasted with the rule of thumb.

Reality check: this plan was made as of Jun 25, 2024 without seeing later data. Replayed on what actually happened, it cost $43,473 against $43,573 for the rule of thumb: a measured saving of $101 (0.2%).

Chart of the recommended plan compared with ordering the forecast plus 15%, drawn against forecast demand and its range and actual demand.
Daily reorder plan for the top 100 store-product pairs: the recommended plan next to ordering the forecast plus 15%. The chart shows one of them as an example. Costs and limits are example values.

Plan against the rule of thumb

The rule of thumb here is ordering the forecast plus 15%. We compare both ways: the expected cost over many possible futures from the forecast, and a replay of both plans on what actually happened.

Cost saved by the plan, compared with ordering the forecast plus 15% (example costs)
ComparisonSaved by the planPercent
Expected, over forecast scenarios$1820.4%
Replayed on what actually happened$1010.2%
Bar chart of total cost for the recommended plan and the rule of thumb, both expected over the forecast scenarios and replayed on the actual data. On the actual data the plan was $101 cheaper.
Total cost of the plan against the rule of thumb. Lower is better. Example costs.
What the plan assumed
InputValueWhere it came from
Unit cost2 ($/unit)Example value
Shortage cost3.5 ($/unit)Example value
Holding cost0.05 ($/unit/day)Example value
Waste cost0.25 ($/unit)Example value
Shelf life2 (days)Example value
Lead time1 (days)Example value
Pack size6 (units)Example value
Moq2 (packs)Example value
Shelf capacity90 (units)Example value
Budget6,000 ($/day)Example value

What the engine noticed in the data

  • Forecast made as of Jun 25, 2024: 2,100 later rows were hidden from the models and used afterwards to check the forecast.
  • Ignored column 'activity_flag': it is constant, so it would not be known in advance.
  • The level of the data changed recently (639 / 589: recent level is 1.7x the level before 2024-06-08). Older history may be less relevant.

Technical details

Data
FreshRetailNet-50K (Dingdong Inc.), China. 100 store-product pairs, daily, from 2024-03-28 to 2024-06-25.
How we prepared the data
Out of 50,000 store-and-product series, the engine keeps the 100 with the highest sales. The official evaluation week (Jun 26 to Jul 2, 2024) is hidden with as_of and used as the reality check. Discounts, holidays and promotions in that week are treated as known in advance (they are planned). Sales are normalized by the publisher (not real units), and stock-outs censor demand; v1 forecasts observed sales, not lost demand. The reorder plan treats forecast sales as demand, so it inherits that censoring; costs, pack sizes, shelf space and the daily budget are example values.
Testing
5 tests on past data, each 7 days ahead.
Methods
4castPlannr Engine with extra inputs, Theta (smoothed trend line), 4castPlannr Engine, Exponential smoothing (ETS), Seasonal naive (repeat the last cycle), Naive (repeat the last value).
Plan
Daily reorder plan for the top 100 store-product pairs. Optimization status: ok, solver: optimal.
Reproduce
The case folder, spec and outputs are in the 4castPlannr repository under cases/freshretailnet-50k/.
For the data people

Rolling-origin backtest with 5 cutoffs. "Off by" is WAPE (weighted absolute percentage error: total absolute error divided by total actual volume). MASE for the selected method: 0.91 (below 1 beats a seasonal naive forecast on the training data).

Data source and license

Wang, Y. et al. (2025). FreshRetailNet-50K: A Stockout-Annotated Censored Demand Dataset for Latent Demand Recovery and Forecasting in Fresh Retail. arXiv:2505.16319. Data by Dingdong-Inc, CC BY 4.0.

License: CC BY 4.0. Source: original data. The forecasts and charts on this page are derived from that data and carry the same attribution.

Have a decision like this?

This case is an example of inventory reorder for wholesale distributors. Send us your own export and question, and we will run the same tests on your data.

Related case studies

  • Online store revenue

    A public UK online retailer's order lines turned into a 30-day daily revenue forecast for the Christmas peak, checked against what actually happened.

    United Kingdom · off by about 28% · 28% closer than repeating last season

  • Wholesale orders for 500 store-product pairs

    Iowa's public liquor sales: 8-week forecasts for the 500 biggest store-product pairs. Many items sell in bursts, so the result was flagged for review.

    Iowa, United States · off by about 65% · 25% closer than repeating last season