AI + Business & FinanceIndustry projectE-commerce operations

From forecast to warehouse: judging demand predictions by what they cost

A team of five students connected demand forecasting to inventory and delivery decisions for an e-commerce marketplace. In a 13-week simulation, the best forecast cut cost 2.2–3.8% while filling 94% of demand.

ConcentrationAI + Business & Finance
FormatOn-Campus Experience (OCE) poster
WhenAugust 2026 · Team of 5
Project LeadResearcher in Operations and Applied Machine Learning
WeeklyRidge3 methods compared1 · Forecast demandOptimizeStage A4-week replenishment2 · Plan stockOptimizeStage Bafter demand appears3 · Fulfill orders
Illustration of the team's method. Each week the plan is re-forecast and re-optimized, and only the first week is carried out.
112,634Order lines from a public e-commerce dataset
2.2–3.8%Lower simulated cost than the baseline forecasts
94%Of demand filled with the best forecast
13 weeksRolling test, re-planned every week
Abstract

Inventory has to be placed before demand is known. Order too much and capital sits in warehouses; order too little and deliveries slip. Using 86 weeks of Brazilian e-commerce orders from Olist (112,634 order lines across 10 categories and 5 regions), this team compared three demand forecasts and fed each into a two-stage optimization: a four-week replenishment plan and a weekly fulfillment allocation across six candidate hubs. Over a 13-week rolling backtest, a Ridge regression forecast gave the lowest simulated total cost, 2.2–3.8% below the simpler baselines, at a 94.0% fill rate. The team argues forecasts should be judged by cost, inventory and service, not forecast error alone. Results are from simulation and do not represent Olist's actual operations.

Keywords · demand forecasting · inventory optimization · mixed-integer programming · fulfillment · e-commerce · rolling backtest

The team

Who did this work

5 students · 4 universities · 4 different fields
Beijing Foreign Studies University
Economics / Finance · Junior
ResearchGoal: Graduate school
Concentration focus
AI + Business & Finance
South China University of Technology
Engineering · Junior
IndustryGoal: Build skills and portfolio
Concentration focus
AI + Physical Intelligence
Minzu University of China
Arts · Sophomore
ResearchGoal: Graduate school
Concentration focus
AI + Business & Finance
South China University of Technology
Master's student
IndustryGoal: Industry internship or job
Concentration focus
AI + Business & Finance
Xi'an Jiaotong University
Engineering · Junior
ResearchGoal: Publish research
Concentration focus
AI + Physical Intelligence · AI + Business & Finance

Students are not named. Year of study is as of fall 2026. Direction and goal come from each student's own program plan.

Background

1Stock has to be placed before demand shows up

An online marketplace decides weeks ahead how much of each category to hold in each regional hub. Overestimate demand and money is tied up in stock. Underestimate it and orders run out or ship late.

Forecasting and inventory planning are often handled separately, and forecasts are graded on error alone. The team asked whether a better forecast actually lowers operating cost once it drives real inventory and delivery decisions [1, 2].

Method

2Forecast, plan, fulfill, repeat

  1. Prepared the data. 86 weeks of Olist orders [4], grouped into 50 demand series: 10 product categories across 5 regions.
  2. Compared three forecasts. Last week's demand, a four-week moving average, and a pooled Ridge regression with lagged demand, trend, seasonality and category and region indicators [3].
  3. Added a safety buffer. Planning demand is the forecast plus half of the forecast's holdout error, so the plan accounts for how wrong the forecast tends to be.
  4. Planned stock (Stage A). A four-week replenishment model that minimizes procurement, shipping risk, holding, shortage and service-gap cost.
  5. Fulfilled orders (Stage B). Once actual demand appears, a capacity-limited model allocates stock from six hubs to regions, with a soft 90% regional service target.
  6. Rolled forward. Carried out only the first week of each plan, then re-forecast and re-optimized, for 13 weeks.
Results

3The most accurate forecast was also the cheapest to run

Ridge regression30.9%4-week moving average34.1%Last week34.7%0%40% error (WAPE)
Figure 1. One-week forecast error (WAPE; lower is better) for the three forecasts. Redrawn from the team's poster.
ScenarioResult
Ridge forecast, 13-week backtestLowest simulated total cost, 94.0% fill rate
Ridge vs. simpler forecasts2.2–3.8% lower simulated cost
No safety bufferFill rate drops to 86.0%
Full safety buffer (1x error)Fill rate rises to 98.8%
Two-week lead timeSimulated cost rises about 9%
Hub capacity ±20%No change; capacity was not the constraint
Table 1. Key results and sensitivity checks from the team's 13-week rolling backtest. All figures are from simulation.
A gap the team flagged. The moving-average forecast gave a slightly higher fill rate than Ridge despite costing more. And even with the best forecast, the North region filled only 67.9% of demand, below the 90% target. The team's takeaway: judge a forecast by cost, inventory and service together, not by error alone.
From the team's poster

4The poster

The team's poster from the On-Campus Experience. Student names and an event photo are blurred.

The team poster with names blurred
Figure 2. The full poster.
Poster panel: forecast-to-optimization method
Figure 3. Method panel: the forecast feeds a planning model (Stage A) and a fulfillment model (Stage B).
Poster panel: key results from the 13-week backtest
Figure 4. Results panel: forecast error, 13-week cost by forecast, and fill rate by region.
Limitations

5What this does not show

  • All costs and service levels come from simulation, not from a live operation.
  • Network, cost and lead-time inputs are scenarios; the results do not represent Olist's actual operations.
  • Demand is planned at category and region level, not for individual products.
  • Delivery risk is based on smoothed historical rates.
Skills and fit

6What this work shows the team can do

Demand forecastingMixed-integer optimizationLinking prediction to decisionsRolling backtestsSensitivity analysisOperations trade-offs
Project Lead
PL

Researcher in Operations and Applied Machine Learning

Operations Management Researcher at MIT Sloan. Works on algorithmic equity and applied optimization. Studied Industrial and Systems Engineering at Georgia Tech.

The team built the forecasts and the optimization models and ran the backtest. The Project Lead worked with the team during the on-campus program and reviewed the models.

Good fit for applications in

Operations research · Supply chain · Business analytics

An end-to-end model that ties a forecast to a cost a manager cares about reads well in both industry and graduate applications.

Project Lead review

7What the Project Lead observed

After the project, the Project Lead wrote an evaluation of each student and placed each one on a four-level scale. This section shows the highest level reached on the team. The notes below describe the team's project. Individual ratings are not published.

Highest level on this team

System-Level Insight

  1. 1Foundational Application
  2. 2Applied Reasoning
  3. 3Independent Problem Solving
  4. 4System-Level Insight

Level 4 of 4: anticipates broader implications, risks or downstream effects, and connects technical decisions to real-world impact.

Framing the problem
Connected uncertain demand to inventory preparation and fulfillment performance, and tied the work to its business cost: overstock, shortages and delivery delays.
Decisions and trade-offs
Specified decision variables, objectives, constraints and assumptions, weighed procurement, inventory, transport, shortage and service costs, and checked how forecasts entered both optimization stages.
Evidence and testing
Used a simple last-week forecast as a benchmark and compared all forecasts by their downstream effect, not only by error.
Limits and risk
Separated the original Olist data from derived parameters and simulated assumptions, and checked whether simulated costs were reasonable before interpreting them for managers.

Where the Project Lead pushed further. Explain where the cost weights come from, define the error metric (WAPE) on first use, and interpret the key results rather than only report them.

Source: the Project Lead's written evaluations, August 2026.

References

References

  1. Bertsimas, D. & Kallus, N. (2020). From predictive to prescriptive analytics. Management Science, 66(3), 1025–1044.
  2. Elmachtoub, A. N. & Grigas, P. (2022). Smart "predict, then optimize." Management Science, 68(1), 9–26.
  3. Hyndman, R. J. & Athanasopoulos, G. (2021). Forecasting: Principles and Practice (3rd ed.). OTexts.
  4. Olist. Brazilian E-Commerce Public Dataset by Olist.
AI+X team project (2026). Demand forecasting and inventory-fulfillment optimization for e-commerce operations. AI in Operations Strategy – Amazon Project, On-Campus Experience, August 2026. blendedlearn.org/outcome-ecommerce-demand-inventory
Build work like this

Join the AI in Operations Strategy – Amazon Project

This outcome came out of this project. Work with an operations researcher on a real supply-chain problem, and leave with something you can open and show.