Home / Case studies / Ecommerce

[ Case study ]

The forecasting build where we took the AI back out

How we built demand forecasting and reorder recommendations for an Amazon seller, discovered the language model couldn’t do the maths, and replaced it with arithmetic that could be checked.

Farahim A. · Amazon seller · Consumer products

11

SKUs forecast across 12 months

4.3x

peak seasonal swing absorbed

25

hours to a working first version

2

forecast models, the second one better

Before

Reorder quantities decided by feel against a spreadsheet of last year’s sales.

The system

Sales data pulled on a schedule, normalised for seasonality, output as recommendations.

After

A reorder sheet and a supplier facing view, with maths anyone can audit.

The problem

Getting reorder quantities wrong costs money in both directions. Order short and you go out of stock in December, which on a marketplace also costs you ranking. Order long and your cash is sitting in a warehouse.

  • Reorder decisions made from raw sales exports, by hand, per product
  • December demand running several times the annual average on some products
  • The sales platform exporting no cost of goods and no adjustable date ranges
  • Prior year data distorted by stockouts and by products that launched mid year
  • No single view of what to order, in what quantity, in which month

The interesting part

The language model couldn’t do this job

The original scope had a model reading the sales history and producing the forecast. We built it, tested it against known figures, and it was wrong in ways that weren’t consistently wrong, which is the worst kind.

So we took it out. Forecasting became deterministic arithmetic: a baseline from the mean of prior year monthly units, each month projected forward with a growth uplift, and a per month multiplier derived by dividing the projection by the baseline. That multiplier is the seasonality index, and on some products December runs between two and four times baseline.

The model stayed in the pipeline for the job it is good at, which is cleaning messy export data into a consistent shape. It was removed from the job it is bad at, which is arithmetic you have to trust.

Deliverable one

The forecast, and then the better forecast

Version 160/40 blend
SignalPrior year and recent
ProblemStockouts skewed it
LifetimeThree months
First modelSixty percent prior year same period, forty percent trailing three months.
Version 2Smoothed
SignalTrailing three months
Smoothing5 month centred average
Normalised toAnnual mean
Rebuilt at the client’s requestRecent demand leads, smoothed, then normalised.

The rebuild happened because the client pushed back on the first version with a specific, correct objection. That is the value of shipping something auditable rather than something opaque.

Deliverable two

Delivered where the work already happens

1Pull salesexport2Clean andnormalise3Apply seasonalitymultipliers4Write reordersheet5Split bysupplier

Output lands in a spreadsheet, because that is where inventory decisions were already being made and moving people into a new tool for a weekly task is how tools go unused. A date range toggle was added after launch, then a supplier facing view breaking forecast quantity down by item and month, then a tab that nets inbound purchase orders against the recommendations so nothing gets ordered twice.

What changed, stated plainly

The seller got a reorder recommendation per SKU per month, built on maths they can open and check, absorbing seasonal swings of up to four times baseline. Three of those four post launch additions were built after the invoice was paid.

The honest limitation: in the first ordering cycle the client ordered different quantities than the tool recommended, because the prior year data it learned from was distorted by stockouts and by products that had launched partway through the year. That is a real constraint of forecasting from one year of uneven history, and no modelling choice fixes it. The second version reduced the dependence on that year, which helped.

“I worked with agencies before, most would never do work after we make payment. You did keep your promise of helping us.”

Farahim A. · Amazon seller

Built on

MakeGoogle WorkspaceOpenAISellerboardAppSheet

Forecasting should be checkable, not magical

If a system tells you what to order, you should be able to open it and see why.