Multi-Armed Bandits for a Retail Problem

Mikhail Budylin, Anton Denisov28 Dec 2023

Problem

A retail chain often does not know how demand reacts to a price, a discount or a bonus. A new product may have been sold at one price only. Splitting stores equally between all options, as in an A/B test, loses profit on the bad ones. Offline stores also allow a price change only once a week, by at most 10%, and each price-tag change costs labor and printing.

Example from the article: a product sold at a single price of 100 (500 units); sales at 80, 90, 110 and 120 are unknown.

Solution in brief

Each candidate price is a bandit arm and the weekly profit of a store is its reward. A simulator of 100 stores with Poisson demand and both price limits compares seven strategies by share of optimal prices, regret and number of price changes. Thompson sampling had the lowest regret everywhere, and UCB+QBC was the other winner. Greedy found the best price often but at a high regret.

Questions this case answers
  • How to find the best option from a fixed set of actions with unknown response while losing as little reward as possible during the search
  • How to compare exploration strategies offline on a simulator with a known optimum when changes between rounds are limited in size and frequency
  • How to choose a price, discount or bonus size when the sales history contains only one price?
  • How to compare bandit strategies for store pricing before running them in real stores?

Tools and methods

  • Bandit strategies (greedy, epsilon-greedy, epsilon-decay, softmax, UCB) — pick prices
  • UCB with Query by Committee — explores where fitted curves disagree
  • Thompson sampling — Gamma posterior of margin per price
  • Pricing simulator (Monte Carlo) — Poisson demand with elasticity
  • SciPy assignment solver — cuts price-tag changes
  • scikit-learn random forest — one of seven curves in UCB+QBC
Continue reading — it's free

Google or a one-time email code. No password.