Where does the demand go?
How much of a cut option's demand moves to its neighbour? We try to read it from stockouts, without cutting anything. The method finds zero where there is no move, but it sees the real move as too small: below the truth in 16 of 17 subcategories.
Narrowing the Collection · 3 / 6
If we take an option out of the collection, how much of its demand moves to neighbouring options? The value of a cut rests on that number, but in the field it is never measured: a cut option leaves no record. In this article we try to read the share without cutting anything, from the stockouts in past sales, and we compare what we read with the hidden truth of the data.
The transfer share
When an option is not on the rail, some of the customers who come in for it buy a neighbouring option. We call that substitutionA customer who cannot find the product they want buying another one instead. The sale stays with the company, so not all unmet demand counts as lost., and the share of customers who do it the transfer share. The neighbour here is something specific: an option in the same store, the same subcategory and the same price segment.
At Lumoda this share is set by how the data is built, and it varies by subcategory: 0.200 for Coat, Jacket and Trench Coat, 0.400 for T-shirt and Sweatshirt, the others in between. The move happens in a single round: a customer who cannot move does not look for a second way; they leave. The share is a ceiling: a customer can only move to a neighbour that is on the rail that day.
The two options from the first article show this well, in the published data. The black chinos’ subcategory is Trousers, with a true share of 0.300. When they were cut they had 28 neighbours left, and 29.84% of their demand moved to them: almost the whole ceiling. The beige silk scarf’s subcategory is Scarf, with a true share of 0.250. It had a single neighbour; only 4.48% of its demand moved. The two ceilings are close to each other; the two neighbourhoods are not.
In the second article, on the published data’s path, 15.47% of the demand for the options the rule cut had moved to a neighbour in winter, and 15.78% in summer. But that number was measured after the cut. What we need to know at the moment of the decision is how much will move before we cut.
Stockouts: a natural experiment
There are no options cut in the past, but there are plenty that sold out. When an option sells out in a store and is off the rail for a few days, it behaves in that store as if it had been cut. If its neighbours’ sales go up on those days, the rise comes from the customers who came in for it.
The estimate is built in four steps:
- Event. The day an option sells out in a store. First the window of the two weeks before it sold out, then the window of the days it is off the rail, two weeks at most.
- Stable neighbours. The neighbours on the rail on every day of both windows. The difference in sales is read from them alone; a neighbour that arrives or sells out in between spoils the difference.
- Control. The neighbours’ sales also change for other reasons: the season, a campaign, the product’s age. The same neighbours’ course in the other stores gives that change. The excess sales are the part above what was expected.
- Dose. The sold-out option’s unmet demand: its rate on the days it was on the rail in the last four weeks, times the number of days it was off the rail.
The share is the excess sales of all the events divided by the dose of all the events. The heart of the idea is a few lines:
# the idea of sku_rationalisation/demand_transfer.py (simplified, for one subcategory)
lift, dose = 0.0, 0.0
for event in events: # an option sold out in a store
peers = event.stable_peers # on the rail throughout both windows
before = sales(peers, event.before) # while the option was on the rail
after = sales(peers, event.after) # while it was not
expected = before * event.control_ratio # the same neighbours in the other stores
lift += after - expected # excess sales that came to the neighbours
dose += event.rate * event.days_off # the option's unmet demand
share = lift / dose
The real code corrects two more things. The neighbours’ sales also move as the other neighbours empty and refill; that goes into the dose too. And an option can sell out in many stores on the same days; then the neighbours in the other stores also receive moved demand and are no use as a control. The code tries to take both into account.
The estimate looks only at the events of the 365 days before the moment of decision. If a subcategory has at least 200 events, its own share is used; if not, the chain share from the pool of all events.
The placebo first
Before looking at the truth, we tested whether the method makes up a move that does not exist. We ran the same sum over windows in which the option never sold out. There is no move there; the right answer is zero.
The result is −0.002 in the winter season and +0.006 in the summer season; both from more than ten thousand windows. The method finds zero when idle; the share it finds where there is a move is not the echo of something that is not there. That is a precondition, not proof of accuracy: a method that gets zero right can still measure the real move short.
Against the truth
Because Lumoda is synthetic, we know every subcategory’s true share. The estimate never saw it; the truth is there only to mark the exam paper. On the published data’s path, the result:
| Winter season | Summer season | |
|---|---|---|
| Chain share | 0.112 | 0.063 |
| Weighted mean of the estimate | 0.110 | 0.073 |
| Weighted mean of the truth | 0.298 | 0.302 |
| Subcategories where the estimate falls below the truth | 16/17 | 16/17 |
| Mean absolute gap | 0.157 | 0.199 |
The weight is each subcategory’s unmet demand in the stockouts.
The estimate is far below the truth. The chain share is 0.38 of the truth’s weighted mean in winter and 0.21 in summer. In sixteen of the seventeen subcategories the estimate stays low.
The one exception is Shirt: the estimate is above the truth in both seasons. The largest gap is in T-shirt (winter) and Sweatshirt (summer): the estimate is zero, the truth 0.400. In Trousers the estimate is zero in both seasons, the truth 0.300. Scarf is 0.128 in both seasons, against a truth of 0.250.
In the subcategory where 29.84% of the black chinos’ demand moved to a neighbour in the published data, the share read from stockouts is zero.
This is not the luck of one path. We measured the result on all five customer streams too. On all five paths, in both seasons, the estimate is below the truth in at least sixteen of the seventeen subcategories. The mean absolute gap is between 0.138 and 0.215.
This case did not take apart why it comes out low. How the control is built, how the sold-out option’s rate is estimated, which stable neighbours are chosen: each of them can move the share, and we did not measure which one moves it which way, or by how much.
Did the low estimate change the decision?
If the estimate is low, a method that uses it sees the cost of a cut as larger than it is: it thinks less of the demand will move to a neighbour. So it shies away from cutting.
The model we build in the fourth article uses this estimate. We also ran an oracle that knows the true share, with the same sum. Neither cuts a single option in either season. In this collection the estimate’s error did not change the decision: in both arms every option’s carry sum comes out larger than its cut sum. We will see why in the fourth article, as we build the sum.
That does not mean the estimate is good. In a collection where demand falls short of plan, the same error could keep an option that ought to be cut.
There is one more gap. The estimate gives a single share per subcategory. The difference between the first article’s two options, though, lies less in the share than in the neighbourhood: their true shares are close, their realised moves are not. A subcategory share does not say how many neighbours an option has in its own store. The sum in the fourth article carries this gap too; it may think more of a thinly neighboured option’s demand will move than really does.
The limits of the share
Let us state plainly the assumption this measurement rests on. The transfer share is part of how Lumoda is built. It is not a finding about real customers.
In that world the move happens in a single round: a customer who cannot find a neighbour leaves. And it happens only within the same store, the same subcategory and the same price segment. A real customer does other things too. They buy shorts instead of trousers, go to another store or online, or wait for next season. Each of these can make the true share larger or smaller than the one we measure here.
There is one more assumption: the customer looking for a cut option behaves like a customer looking for a sold-out product. In the field the two may not be the same. Nobody looks for a colour they have never seen; they look at what is in the window. Then the share read from stockouts may make a cut’s move look smaller than it is. We cannot test this at Lumoda.
What is hard in your own data
You do not have the true share. You can test the method with a placebo; you cannot test its accuracy. The “truth” row of the table in this article is never filled in in the field.
To recognise an event you need to know, for every store, whether every option was on the rail every day. If the stock record is wrong, a product that is not on the rail looks as if it is there, and the event is never counted. Whether an option counts as “on the rail” while its sizes run out one by one is a decision too.
Neighbours sell out together, too. In the season’s busiest weeks, when an option sells out, the ones next to it are selling out as well; no stable neighbours remain, and the event drops out. The events that remain may drift towards the quiet weeks.
The only way to measure a cut’s move directly is to try the cut: send an option to some stores not at all, and compare them with the others. The price is being ready to lose sales in those stores.
Suppose we knew the share. A cut would still need a sum: what do I earn if I carry the option, what do I earn if I cut it? In the fourth article we build that sum.