Explainer

Successful by what measure?

Five questions to ask of a success number: compared with what, who chose the denominator, when was the measure chosen, when did you look, and did it happen only once? Each question has an example from the site's series.

Algorithm Success · 2 / 3

When you see a number that says an algorithm works, what should you ask it? That is this article’s question. The meeting in the last article had four numbers, and all four were right. None of them was miscalculated; each was answering the wrong question.

The series on this site asked these questions one by one, each for its own decision. Here I gather them in one place. There are five questions, and each one has an example that really happened in a series.

1. Compared with what?

A decision’s success is never measured on its own; it is measured against something. There are two comparisons, and both are needed.

The first is the baseline: today’s method. A new method has to beat the thing it will replace, not zero. That is why every series on the site ran Lumoda’s own decision as an arm and raced the new method against it with the same stock.

The second is what would have happened had the decision not been made. Stock a transfer sells at the receiving store might have sold at the sending store too. In the Broken-Size Transfer series the expert’s rule won 1,122 units of sales at the receiving store and lost 581 units at the sending store. The outlet and online took back most of what was left. The 97.8% the field saw became the 17.8% the chain saw.

The same thing happens inside the model’s own sums. In the Block Transfer series the model assumed that, on average, 84.2% of the block it moved would sell at the receiving store. Looking at the eight weeks after the decision, that ratio came out at 15.4%. Had the stock stayed at the sending store, at most 10.5% of it would have sold. A gap of over forty points in the model’s eyes is 4.9 points in the data.

Then there is the question of how much of the difference comes from the decision itself. In the Initial Allocation series, when the initial allocation changed, repeat orders and markdown reacted to it. We ran the arms once more with those two decisions held fixed. All of the model’s +1.43-point lead over Lumoda came from the allocation itself. Of the equal split’s −1.36-point shortfall, on the other hand, −0.35 points were the reaction’s share.

2. Who chose the denominator?

Most ratios are divided by a denominator, and the denominator is often the method’s own decision.

In the Warehouse to Store series the number of brokenAn option's size set breaking up; its main measure is the net broken-size rate, the number of broken sizes divided by the number of sizes. pairs ranked the arms and made the worst arm look the best: LightGBM only had the fewest, with 7,530 broken pairs. A broken pair is a pair with stock; a completely empty rail does not count. Under this arm, 3,918 pairs were completely empty at the end of the four months. Put the broken pairs over the pairs in stock and the ranking turned round: 85.0% of this arm’s pairs were broken, the most broken of the three arms. Days to sale fell into the same trap. It counts only the units that sold; a method that sends little stock sells fast.

In Block Transfer the same mistake came out in another guise. At the store the stock leaves, the STRSTR; the percentage of the stock a store received that has sold. In fashion retail the figure that matters is the part sold at full price. was 29.1%; at the store it goes to, 84.8%. The gap is striking, but part of it is the selection rule itself: the sending store was chosen because it had plenty of stock, so by definition its STR was low. The receiving store was chosen because its rail had emptied, so by definition its STR was high.

Warehouse to Store’s sentence sums this question up: before you look at a measure, ask who sets its denominator. A measure whose denominator is the customer’s demand cannot be moved by the method. That is why availability and lost sales come first.

3. When did you choose the measure?

The same arms line up in a different order under a different measure. The series that shows this most clearly is Markdown Calendar. Three calendars, the two seasons added together:

LumodaCoverage ruleOptimisation
Season contribution867.53892.44891.16
MarkdownA permanent cut in a product's price during the season. A calendar decision, not a rate; which product, which week, which step. It speeds up sales and lowers revenue per unit. cost86.97278.92313.03
Gross profit1,021.27985.61977.25
Dead stockStock left in the warehouse after the season and the outlet window are over, which will never sell. at cost136.1975.5368.45

TRY million.

Someone looking at gross profit picks Lumoda’s calendar. Gross profit deducts the cost of the stock that sold; the cost of the stock that did not sell sits in the warehouse and never shows up on that line. Someone looking at markdown cost picks the same calendar. Season contribution, which counts what sold and what did not together, puts the other two calendars in front.

In the Life-Cycle Curve series the measure turned the ranking upside down. The arm that knows the true curve was flawless on accuracy, by definition. Fed into the same markdown rule, it lowered season contribution against today’s method on five paths out of five; the median is TRY −2.72 million. But the same arm left less stock at the end of the season: on the published path, dead stock fell from 145,028 to 134,921. Which measure you look at decided which curve won.

Choose the measure after you have seen the result, and the measurement tells you what you want to hear. In the Store Grouping series, three reasonable measures picked three different groupings. Someone looking at stability would have picked a split whose agreement with the true customer profiles is 0.055; someone looking at year-to-year agreement, the sales volume grade, whose agreement is 0.035. The split whose agreement is 1.000 came first on none of the three measures.

The rule is simple: write the measure down before you make the decision. Choose a single measure and, if you can, make it a money measure that counts what sold and what did not together. Do not throw the others away; they tell you where that number came from.

4. When did you look?

A decision’s effect does not show straight away. Look early and you miss it.

In Initial Allocation, over the first four weeks of the season, the five arms’ availability lay between 96.13% and 97.30%. Over the whole season, between 67.62% and 71.23%. In the first weeks the rails have just been filled; it is the rest of the season that tells the arms apart.

In the Size and Pack series we expected the opposite. ReplenishmentSending warehouse stock to stores at regular intervals, according to sales. In the trade it is also shortened to AR or repl; RPT is something else. corrects the pack’s mistake during the season, we thought, so the gap would stay in the first weeks, and we put the headline on the first four weeks. The gap grew. The three-type twelve-unit pack cut size loss by 8.7 points in the first four weeks and by 14.6 points over the whole season.

The window has another end too. Block Transfer’s eight-week window closed before markdown started. It could not see what became of the broken sets not moved by the end of the season; the series left that line blank. What falls outside the window is not taken as zero; it is written down as not measured.

5. Did it happen only once?

The result of a single season may be the luck of that stream of customers. Most of the series ran four more customer streams in the same world; with the published stream, five paths. They printed two numbers: on how many paths the method is ahead, and the path median of the difference.

Those two numbers told apart two results that looked alike. In Initial Allocation the model was ahead of Lumoda on five paths out of five; median +1.45 points. That is a finding. In Markdown Calendar the optimisation was ahead of the coverage rule on only two of the five paths; median TRY −0.28 million. That is a dead heat.

Five paths have a limit too: they change only the stream of customers. They do not test against a season in which the products take off differently. They are insurance against chance, not against another year.

The hard part in your data

You can ask four of the five questions of your own data. You can see the denominator, write the measure down in advance, widen the window, and repeat the result over several seasons.

The hard one is the first. In these series we knew what would have happened had the decision not been made, because we could live the same season twice. In your chain a season happens once. You cannot apply today’s method and the new one to the same stock and the same customers. The sending store’s loss, the end-of-season value of the stock that did not sell and the customer who found the rail empty and walked away are written in no report.

How that comparison can be built in the field is the subject of the next article. 🙂

By Sabri Suyunu