Results

How an initial allocation's success is measured

An initial allocation's outcome shows at the end of the season, mixed up with other decisions. Which measure says what, how much of the gap is its own doing, does it hold on other customer streams, what does a plan by cluster give, and what does the single pack cost?

Initial Allocation · 6 / 6

For five articles we took the initial allocation apart: who gets it, how much, and how much stays in the warehouse. We built the arms and raced them with the same stock. Now we add it all up.

Measuring an initial allocation has one hard side. The outcome of the decision does not show straight away. It shows when the season is over, but by then replenishment, repeat orders and markdown have all come into play. Telling which part of the end-of-season table is the initial allocation’s own doing is a job of its own.

What to look at when the season ends

We used six measures.

Availability. On what percentage of the days with demand for a size in a physical store was that size on the rail? We measure it for the whole season and, separately, for the first four weeks.

Lost sales rate. Unmet demand as a share of total demand. Only the referee sees it; no arm uses it when deciding. The Lost Sales series explains how demand lost while the rail is empty is estimated in the field.

Full-price 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.. How much of the stock sold without being marked down.

Markdown. The amount of the markdowns, gross. It says how much was marked down, not the profit.

Gross profit. What is left of net sales once the cost of goods is taken off. Markdown is gross, gross profit is a net amount; the two do not add up.

Stock left at the end of the season. Stock left in the stores and in the warehouse when the season closes, as a percentage of all the stock that came into the chain.

The main arms all send the same stock (without holding back any extra stock in the warehouse, uncapped):

EqualLumoda (plan share)Store’s past shareModelOracle
Availability67.62%68.98%69.51%70.41%71.23%
First 4 weeks96.13%96.47%96.62%96.87%97.30%
Lost sales rate37.72%35.10%35.05%33.31%31.60%
Full-price STR51.33%52.69%52.85%53.99%54.41%
Stock left at the end of the season22.23%19.77%19.65%17.74%17.06%
MarkdownTRY 48,307,748TRY 49,133,132TRY 49,482,072TRY 49,640,390TRY 49,270,893
Gross profitTRY 519,113,339TRY 534,433,105TRY 535,147,736TRY 550,029,513TRY 563,610,800

In the first four weeks everyone looks good: the worst is 96.13%, the best 97.30%. The gap opens during the season. Over the whole season equal is at 67.62% and the oracle at 71.23%. Anyone who measures the initial allocation by availability in the first weeks misses most of that gap.

The markdown row does not follow the order of the other rows. The model marks down a little more than Lumoda, on all five customer streams too. In gross profit, though, it is clearly ahead. The arm that sells more stock may also be selling more in the markdown period; we did not separate that. It shows well that the markdown amount cannot be a measure of success on its own.

How much of the gap is the initial allocation’s doing?

Lumoda’s repeat order rule looks at how much of the stock sent to the stores has sold, and so does its markdown rule. When the initial allocation changes, both react. Does an arm’s gap come from its own decision, or from the RPT and markdown that decision set off?

To separate them we ran the arms once more, this time taking the RPT orders and the markdown rates exactly as they were in Lumoda’s run. On this fixed schedule the total stock is the same too. The gap on the fixed schedule is the initial allocation’s direct effect; the rest is the reaction’s part. In availability, against Lumoda, in points:

TotalDirectReaction
Equal−1.36−1.01−0.35
Store’s past share+0.53+0.56−0.03
Model+1.43+1.430.00
Oracle+2.25+1.96+0.29

In the store’s past share and in the model, almost all of the gap comes from the initial allocation itself. The reaction’s part shows only at the two ends: in the equal split, RPT and markdown make the damage a little bigger; in the oracle, they add a little to the gain. So in this case the gap between the model and the plan is not explained by repeat orders and markdown; it is explained by the allocation itself.

We can separate this only because Lumoda is a synthetic chain. Pars sums it up in one sentence:

“The initial allocation has no referee; even when the season is over, you have to separate what was its doing.”

Does it hold on other customer streams?

All these results come from a single customer stream. We built four more streams in the same world and ran the five arms again on each. On every path the store’s past share and the model learn again from that path’s history, and the oracle uses that path’s hidden truth.

Let me state one limit up front. The paths change only the customer stream: which customer comes on which day and buys what, and whether they switch to another product when they cannot find theirs. The products’ success is the same on every path. So this test is against chance, not against a season in which the products take off differently.

In availability, five paths:

ComparisonPaths aheadPath median of the difference
Equal − Lumoda0/5−1.36 points
Store’s past share − Lumoda5/5+0.71 points
Model − Lumoda5/5+1.45 points
Model − store’s past share5/5+0.85 points
Oracle − model5/5+0.82 points
Oracle − Lumoda5/5+2.25 points

The order never changes: on five paths out of five, oracle, model, store’s past share, plan, equal. The model is also ahead of Lumoda on five paths out of five in stock left, lost sales rate, full-price STR and gross profit; in the markdown amount it is behind on all five.

The oracle’s limit

The oracle shows what would happen if we knew the hidden truth: every store gets stock in proportion to its true demand in the first six weeks. There is no such knowledge in real life. But it shows what knowing the share almost perfectly is worth with the same stock: at the median of the paths, 2.25 points ahead of Lumoda. It has not been proved that allocating in proportion to demand is the best; this is not a hard ceiling but a yardstick.

The model closes more than half of that gap. And the oracle’s own gain is small: 2.25 points even with an almost perfect share. Knowing the share correctly does not change what happens in the rest of the season.

A plan by cluster

In the third article we saw that pooling stores into clusters gained nothing for fine similarity. So what does a plan that takes its share from the cluster’s history give at the end of the season? This is the real question of the Store Grouping series. We ran four of that series’ groupings here with the same stock: region, sales volume grade, the grid of the two (Lumoda’s own groups) and clusters found by machine learning from the sales mix, sales-mix clusters for short. The fifth arm clusters by the stores’ hidden profile (that series’ answer key). Like the oracle, this arm is a yardstick; in real life this profile is not known. The share is worked out the same way as the store’s past share in the third article, only from the cluster’s history rather than the store’s. That series explains how the clusters are built.

Lumoda’s store plan in the table is the arm this series has called Lumoda or the plan share from the start: Lumoda’s published, store-by-store plan. It is not a grouping.

On the published stream, uncapped and with the same initial allocation stock:

ShareAvailabilityStock leftShare errorGross profit
Lumoda’s store plan68.98%19.77%0.235TRY 534,433,105
Cluster: Lumoda’s groups (region × sales volume grade)69.35%20.08%0.238TRY 533,564,172
Cluster: sales volume grade69.19%20.44%0.241TRY 531,930,817
Cluster: region69.35%19.74%0.236TRY 532,789,729
Cluster: sales mix (machine learning)69.53%19.65%0.230TRY 534,816,112
Cluster: answer key (hidden profile)69.51%19.55%0.231TRY 534,298,578
Store’s past share69.51%19.65%0.229TRY 535,147,736
Model (LightGBM)70.41%17.74%0.171TRY 550,029,513

The plan by sales-mix cluster sits in the same place as the store’s own past share in availability: 69.53% against 69.51%. In share error and gross profit it is a little behind. The answer-key arm does not beat the store’s past share either. The model is clearly ahead of both.

The sales-mix clusters beat Lumoda’s groups by 0.2 points in availability, and the groups beat Lumoda’s store plan by 0.4 points. The sales-mix clusters’ gross profit is TRY 1,251,940 more than the groups’. Lumoda’s groups, for their part, are TRY 868,933 behind the store plan in gross profit despite their lead in availability.

The plan by sales volume grade adds little to Lumoda’s store plan. It is a little ahead in availability, 69.19% against 68.98%. But its share error is worse, it leaves more stock, and its gross profit is TRY 2,502,288 lower. The region too is behind the store plan in gross profit; even the answer-key arm is very slightly behind.

Five paths, availability. In this table the differences are to one decimal; the Store Grouping series gives the same comparisons with the same numbers.

ComparisonPaths aheadPath median of the difference
Sales-mix cluster − Lumoda’s store plan5/5+0.6 points
Sales-mix cluster − Lumoda’s groups5/5+0.2 points
Lumoda’s groups − Lumoda’s store plan5/5+0.4 points
Sales-mix cluster − store’s past share3/50.0 points
Sales-mix cluster − model0/5−0.9 points
Answer key − sales-mix cluster2/50.0 points

The sales-mix clusters are ahead of both Lumoda’s store plan and Lumoda’s groups on five paths out of five; in stock left and in share error too. Lumoda’s groups beat the store plan in availability on five paths out of five, but in stock left on only one path, and in share error on none. Against the store’s past share the result is level: on the three paths where they are ahead the gap is close to zero, 0.0 to one decimal; on the two paths where they are behind, −0.3 points. In share error they are not ahead on any of the five paths. The answer-key arm is ahead on two paths, but there too the gap is close to zero; it does not part ways with the sales-mix clusters.

So the plan by sales-mix cluster is better than both Lumoda’s store plan and its own groups, but it catches up with the store’s own history; it does not beat it. Even the best structure clustering could reach does not beat it; then again, in this data the sales-mix clusters are already almost the same as the answer key (agreement 0.959 over 69 stores; identical over the 67 stores clustered, the only difference being Izmir 2), so these two arms were not expected to part ways. In this case the store’s own history seems to know already what its cluster’s average knows. The cluster has a different role in a store with no history of its own: a new store takes its share from its cluster, whereas in the store’s past share it counts as an average store. We did not measure the effect of this separately in this series.

The cost of the single pack

A large part of the loss has to do not with the store but with the size. We measured it like this: the part of unmet demand that falls on days when that size was not on the rail while another size of the same product was on the rail in the same store. The customer finds the product but not their size. This is the counterpart, in lost sales, of the broken size set in the Warehouse to Store series.

At Lumoda 42.3% of the loss is of this kind; a loss of 14.85 points against demand. In all eight runs that send every pack that can be sent, this share is between 42.3% and 43.9%: the plan share twice (Lumoda’s own run and its version fitted to U), equal, the store’s past share, the model and the oracle; and the plan share and the model once more with the ros replenishment. No arm that changes the “who” reduces the size loss, not even the oracle.

The only thing that reduces it is holding back. In the seventeen runs that hold stock back in the warehouse the share is between 28.7% and 39.0%. The lowest is the arm that holds back 45% of U (the most packs that can be sent) with the model share: 28.7%. Holding back 30% with the model share gives 32.6%; the capped model, that is, with the stock the cap secretly leaves in the warehouse, 32.8%. When packs are held back in the warehouse, stock of every size stays there in the pack’s proportions; there is stock to complete a size that sells out during the season.

The real solution, though, is in another decision: the pack itself. At Lumoda the size set of five-size products has a single pack, 1-2-2-1-1. We saw it in the second article: the initial buy is not split across sizes in that ratio, the smallest size runs out first, and what stays in the warehouse is mostly the third and fourth sizes. Which store gets packs with which size mix is the subject of the “Size analysis (prepack optimisation)” algorithm in the map’s Assortment Planning stage. This series measured the cost of that decision; it did not solve it. The Size and Pack series rebuilds what goes into the pack.

Where do these measurements fall short?

The honesty list, all in one place.

In-sample choice. The “best share” (the model) and the hold-back comparisons were chosen in the game season and measured in the same season. These are in-sample measurements, not a test of a decision made for a future season. We did the calibration in the previous spring-summer season, without looking at the game season.

The paths are only the customer stream. The same order on five paths out of five, with the products’ success held fixed. This test does not say what would happen in a season in which a product takes off differently.

The oracle is not real. It is the “if we knew the hidden truth” arm. No such arm can be built in real life; here it is only a yardstick. Nor has it been proved that a proportional share is the best allocation. The same goes for clustering by the answer key, that is, by the hidden profile: in a real chain the stores’ hidden profile is not known.

Two of the calibration’s choices were scored with the referee. Our choice to switch the cap on, and the steepness of the uncertainty curve, come from simulations of the previous spring-summer season. We scored those simulations on availability measured against hidden demand. We did not look at the game season, but there is no such referee in the field; in a real chain these two choices would have to be tested some other way.

The uncertainty curve was chosen with another base. We chose the steepness of holding back by uncertainty in calibration with a capped model, while in the game the base was uncapped. We did not test the choice again.

No early read. We did not use the first wave’s sales in the decision for the second and third waves. The arms do not learn during the season.

We built no transfers. Store-to-store transfers are one more way of correcting an initial allocation’s mistake. In this series there are only Lumoda’s own small manual transfers (3,551 units in Lumoda’s run). The Block Transfer series tells how stock that went to the wrong store is rescued.

Markdown is gross, gross profit is net. The two money rows do not measure the same thing; they do not add up.

One chain, one season. The Collection products of a single spring-summer season at Lumoda. Another product mix, another store network may give other results.

Turn the dial yourself

The dial below brings two things together: the share source of the initial allocation (plan share, equal for every store, the store’s past share, LightGBM forecast) and the share held back in the warehouse (0%, 15% or 30% of U, the most packs that can be sent). Every number comes from real runs on the published customer stream. When the page opens they are all ready; nothing is calculated in the browser.

The dial shows five measures: availability, full-price STR, stock left at the end of the season, lost sales rate and replenishment units.

Share source of the initial allocation
Share held back in the warehouse
Availability (%)
69
Full-price STR (%)
52.7
Left at end of season (%)
19.8
Lost sales (%)
35.1
Replenishment (units)
370,692
Availability (%)
70.1
Full-price STR (%)
54
Left at end of season (%)
18.8
Lost sales (%)
33.5
Replenishment (units)
477,899
Availability (%)
70.8
Full-price STR (%)
55
Left at end of season (%)
17.8
Lost sales (%)
32.3
Replenishment (units)
583,690
Availability (%)
67.6
Full-price STR (%)
51.3
Left at end of season (%)
22.2
Lost sales (%)
37.7
Replenishment (units)
374,572
Availability (%)
69.5
Full-price STR (%)
53.3
Left at end of season (%)
19.8
Lost sales (%)
34.9
Replenishment (units)
488,736
Availability (%)
70.4
Full-price STR (%)
54.6
Left at end of season (%)
18.5
Lost sales (%)
33.4
Replenishment (units)
593,207
Availability (%)
69.5
Full-price STR (%)
52.9
Left at end of season (%)
19.6
Lost sales (%)
35
Replenishment (units)
368,760
Availability (%)
70.4
Full-price STR (%)
54.1
Left at end of season (%)
18.6
Lost sales (%)
33.4
Replenishment (units)
475,386
Availability (%)
71
Full-price STR (%)
55
Left at end of season (%)
17.7
Lost sales (%)
32.3
Replenishment (units)
582,112
Availability (%)
70.4
Full-price STR (%)
54
Left at end of season (%)
17.7
Lost sales (%)
33.3
Replenishment (units)
363,599
Availability (%)
71
Full-price STR (%)
55
Left at end of season (%)
17.4
Lost sales (%)
32.3
Replenishment (units)
467,760
Availability (%)
71.3
Full-price STR (%)
55.5
Left at end of season (%)
17.1
Lost sales (%)
31.6
Replenishment (units)
574,005

Every combination came with the page; nothing is fetched from a server.

While you play with the dial, watch this. As the hold-back grows, the gap between the arms narrows. At a hold-back of 0% the model is 1.4 points ahead of Lumoda, at 15% 0.9, at 30% 0.5. The equal split’s shortfall on the dial also comes down from 1.4 points to 0.4 points. The dial shows the levels to one decimal; in the runs themselves this shortfall comes down from 1.36 points to 0.49 points. The stock waiting in the warehouse closes part of the initial share’s mistake during the season; replenishment carries it to the store. The price shows in replenishment units: with the plan share, as the hold-back goes from 0% to 30%, replenishment rises from 370,692 units to 583,690 units. The rest of the season carries the first decision’s load.

The question we started with

There were 415 dresses sitting in Izmir 4’s stockroom, and Erzurum 2 wanted more. Ali had said “the plan says so”, and nobody had done anything outside the rule.

Six articles later, this is what we have. The plan share is better than equal; the plan knows something. The store’s past share is only a little better than the plan, because both know the same thing. Taking the share from sales-mix clusters is better than both the plan and Lumoda’s own groups, but it does not beat the store’s own history. A model that forecasts store by store is ahead of the plan with the same stock, on five paths out of five. Even knowing the share almost perfectly does not solve the whole season. Holding stock back in the warehouse works, and the worse your share, the more it works. And a large part of the loss is somewhere no “who” decision can touch: in the sizes of the pack.

The initial allocation is the decision made before the product has seen a single sale. It can be made better. But to know how well you made it, you have to separate, when the season is over, what was its doing. That was the real job of this series. 🙂

By Sabri Suyunu