← Back to the blog

Top 5 AI algorithms applied in retail

A practical look at the five families of algorithms that actually move the needle in retail pricing, assortment and supply chain decisions.

2 min readby Gustavo Sappia

Abstract visualisation of a retail data network

Retail generates more decisions per week than any team can review by hand. These are the five families of algorithms that carry most of the weight in a modern retail stack — and, just as important, what each one is not good for.

1. Demand forecasting

Demand forecasting curve over time

Time series models estimate how much of an item will sell, in a given store, in a given week. Everything downstream depends on this being right: replenishment, promotions and pricing all consume the forecast.

What it is not good for: explaining why demand moved. A forecast that is accurate and inexplicable is still hard to act on.

2. Price elasticity estimation

Price elasticity curve relating price to demand

Elasticity tells you how demand reacts to a price change. It is the difference between “we lowered the price and sold more” and “we lowered the price and made less money”.

What it is not good for: items with almost no price history. Elasticity needs variation to be estimated, and a product that never changed price has not told you anything yet.

3. Clustering

Stores grouped into clusters by demand pattern

Not every store behaves the same. Clustering groups stores by demand pattern so that decisions can be made per group rather than per store — precise enough to matter, coarse enough to manage.

What it is not good for: replacing judgement about formats. The algorithm finds statistical similarity, not commercial intent.

4. Optimization

Optimisation surface with constraints

Once you can predict demand and reaction to price, the remaining problem is choosing the best combination under real constraints: margin floors, price families, competitive rules.

What it is not good for: anything where the constraints are not written down. An optimizer respects the rules it is given, not the ones that live in someone’s head.

5. Anomaly detection

Anomaly detected in a data series

Catalogues break. Prices get loaded wrong, costs arrive duplicated, a store stops reporting. Anomaly detection is unglamorous and it prevents more losses than any of the above.


None of these five is useful alone. A forecast without anomaly detection predicts on broken data; an optimizer without elasticity optimizes against a guess. What makes a retail stack work is the five of them feeding each other — and a team that knows what each one cannot do.