Without a referee
Ten series' report cards in one table: which method won by what measure, and which ended level. Then the real question: when a season happens only once, how do you measure an algorithm's success in a real chain?
Algorithm Success · 3 / 3
Every series on this site raced a new method against today’s method and wrote up the result. What let us do that was something the field never has: a referee. In this article we look first at what that referee is, then at the ten series’ report cards, and last at what can be measured when there is no referee.
Lumoda’s referee
Lumoda is a synthetic chain and I generated its data. That gave us three things.
Living the same season twice. Every arm played the season from the start: the same customers, the same stock, the same prices. Only the decision under test changed. That is why we could see what the broken-size transfer cost the sending store.
The hidden truth. The customer who found the rail empty and walked away, each store’s true size shift, the customer profiles. No method ever saw these; they were there only to mark the exam paper.
Five paths. Five separate customer streams in the same world. We used them to test whether a result was luck.
A real chain has none of the three. A season happens once, the customer who finds the rail empty is recorded nowhere, and you have a single stream of customers.
Ten series’ report cards
Each series’ result, on the measure it chose, for the new method against today’s method or its closest rival:
| Series | Comparison | Measure | Result |
|---|---|---|---|
| Lost Sales | Simple, Machine learning | Cell error (WAPE) | 47.1% against 58.0%; Simple ahead |
| Block Transfer | Greedy plan, at the measured ratios | Net profit, low / medium cost | TRY 974,205 / TRY −278,799 |
| Broken-Size Transfer | The expert’s rule, free optimisation | Net, medium cost | TRY 0.0 million / TRY +2.4 million |
| Repeat Order | Allocating the arriving RPT: today’s allocation, in-stock-day rate | Far East RPTs’ autumn-winter loss | From TRY 19,697,766 to TRY 10,899,477 |
| Warehouse to Store | Rule, LightGBM + floor, Lumoda | Availability | 65.10% / 65.00% / 73.87% |
| Initial Allocation | Model, Lumoda’s plan | Availability, five paths | +1.45 points, 5/5 |
| Store Grouping | Sales-mix cluster, the store’s past share | Availability, five paths | 0.0 points, 3/5 |
| Size and Pack | Three-type twelve-unit pack, Lumoda’s pack | Season gross profit | TRY +11,077,966 |
| Markdown Calendar | Optimisation, coverage rule | Season contribution, five paths | TRY −0.28 million, 2/5 |
| Life-Cycle Curve | The true curve, today’s method | Season contribution, five paths | TRY −2.72 million, 5/5 |
Let us read the table once more, by the kind of method.
There are three places where the more complex method clearly won. In Initial Allocation the model that forecasts store by store beat the plan on five paths out of five. In Broken-Size Transfer the optimisation clearly beat the expert’s rule in money. In Size and Pack the designed packs beat the single pack.
There are places where it did not win, too. In Lost Sales machine learning lost to Simple. In Warehouse to Store LightGBM was ahead on the forecast but did not improve the result; on the lost sales rate, the effect of the policy was 2.09 times that of the forecast. In Markdown Calendar the optimisation ended level with a well-built rule. In Store Grouping the cluster added nothing to the store’s own history. In Life-Cycle Curve a stock rule that never uses the curve beat, on every path, the arm that knows the true curve.
My reading is this: the method’s complexity did not decide the winner. Some of the winning methods took into account something the old method left out: the expert’s rule did not look at the cost of carrying stock, the single pack did not look at the store’s size curve. Most of the losers, on the other hand, read the same information by a more complex route.
One warning about the table itself, too. The rows do not use the same measure and do not add up. Each one answers its own series’ question.
What to do without a referee
You cannot bring the referee back. But each of the series left something behind that can be done in the field too.
Take today’s rule as the baseline. Compare the new method not with zero but with the thing it will replace; at the same stock level if you can. In Warehouse to Store Lumoda’s rule was ahead, but it carried more stock. At the same stock, most of the gap closed.
Write the measure down in advance. A single measure, before you make the decision. A money measure that counts what sold and what did not together is the one that misleads least. Keep the other numbers for diagnosis.
Set a control group aside. The only way to see the sending store’s loss is to deliberately not apply the decision to some of the products or stores. That has a price: you accept losing sales on those products. It has a trap too: when price is set chain-wide and products sell in each other’s place, the test group’s decision moves the control group’s sales as well.
Go back. Go to the decision day a year earlier, make the decision again with only the data up to that day, and compare it with what happened. That is how the Size and Pack series chose its size curve; Life-Cycle Curve suggests finding the places where the curve is wrong in a consistent direction this way in the field.
Estimate the loss and read it at the right level. The customer who finds the rail empty and walks away is not recorded, but can be estimated. Lost Sales’ Simple method missed one product’s week in one store by 47.1%, and the whole chain’s week by 10.4%. Trust the estimate in the total, not in the cell.
Keep apart what you measured, what you assumed and what you do not know. In Block Transfer’s benefit sum, gross profit was a measured line and the cost of holding stock an assumed one; what became of the unmoved stock at the end of the season could not be measured. Do not count what you do not know in your favour as prudence; leave it blank.
The hard part in your data
None of this is technically hard. The hard part is making measurement a habit of the company.
Every desk keeps its own number, and that number makes its own job look good. Allocation’s report has no sending store in it; markdown’s report has no unsold stock in it. A shared measure means someone giving up their own desk’s number.
A control group means accepting lost sales, and few accept that at the end of the season. Writing the measure down in advance means not changing it if the result does not come out as expected. Testing backwards needs that day’s data kept as it was that day; systems often do not keep yesterday’s snapshot of stock.
And measurement is not an analysis done once and finished. The method makes decisions every week; its success has to be measured again every season.
The question we started with
At the end of the meeting Banu had asked: everyone in this room won, so who lost?
Nobody had lost. Ali’s 97.8% was right, but what the transfer earned the chain was 17.8%. Veli’s seven days were right, but customers found their size less often. Pelin’s markdown was right, but the unsold stock was pulling the contribution down. Every number was right at its own desk; none of them looked at the world in which the decision was not made.
After ten series, this is what stays with me. Building an algorithm is often the easy part of the job. The hard part is showing that it really works: saying, before you make the decision, what you are comparing it with, what you are holding fixed and what you are looking at. If you cannot say that, what you have is a success number, not success. 🙂