Carry or cut
Two worlds for every option: what do I earn if I carry it, what do I earn if I cut it? We build the sum and run it on Lumoda's collection. The model cuts no option, nor does the oracle that knows the true share: the profit on the stock that will sell always weighs more.
Narrowing the Collection · 4 / 6
Does carrying an option earn more, or cutting it? In the second article the rule cut without ever asking that question, looking only at the plan. In this article we build a sum that asks it option by option, run it on Lumoda’s collection and compare the result with two oracles that know the truth. The short version: the model cuts no option at all. Why it does not says a great deal about the arithmetic of a cut.
Two worlds
Think of two worlds for one option.
If I carry it. Stock is bought for the option up to its plan; call it q. S units of it sell. Every unit sold leaves m in gross profit. The q − S units that do not sell are left over at the end of the season and are written off at their cost price a.
If I cut it. No stock is bought. Of the customers looking for the S units the option would have sold, a share p move to neighbouring options and leave those options’ profit. The rest is lost.
In Banu’s words: if I carry it, I get the profit on the stock I will sell and lose the money on the stock I will not. If I cut it, I never buy the stock I would not have sold, but of the profit on the stock I would have sold, I keep only the part that moves to a neighbour. Whichever is bigger wins.
The difference between the two worlds is one line:
net = m·S − a·(q − S) − p·m·S
If net is below zero, cutting pays. There is a subtlety in the formula. If demand exceeds the stock bought, the same share p of the excess moves to a neighbour in both worlds: a carried option sells out too, and then the customer looks at the one next to it. That is why the difference arises only in the S units that sell from the option’s own stock.
The heart of the code is a few lines. The snippet is simplified from the
working code under cases/sku-rationalisation/.
# sku_rationalisation/model.py, value (simplified, for one option)
def cut(q, a, m, p, S):
if_carried = S * (a + m) - a * q # units sold leave profit, the rest is written off at cost
if_cut = p * S * m # p of S moves to a neighbour, with its profit
return if_carried - if_cut < 0 # cut if net is negative
A cut does one more thing. Extra stock is bought for the neighbours, as much as the demand expected to move to them. The rule did not do this; the model does.
Three inputs
The sum has three inputs, and all three come from the data up to the day the decision is made. That day is the day the season’s first order goes to the supplier; no row after it enters the sum. We will come back to that day in the fifth article.
Profit (m). The gross profit per unit of past options in the same subcategory and price segment.
Transfer share (p). The share read from stockouts in the third article, a single number per subcategory.
Expected sales (S). The hardest. We do not know how much the option will sell; all we have is its plan. The model looks at the past: in closed seasons, what fraction of its plan did each option sell? The spread of that ratio, applied to this season’s option’s plan, gives an expectation. At the winter season’s decision there are 210 closed options with a known plan; the chain mean of the sales-to-plan ratio is 1.073, and capped at the plan the mean is 0.932. At the summer decision it is 420 options, 1.083 and 0.935.
The capped ratio matters, because the sum counts only the stock bought in the first order: S can be at most q. Sales above plan come from the extra buy of the repeat order; we will come back to that below. So on average the model expects an option to sell nine-tenths of its plan.
The model does not cut
In both seasons, on all five paths, the model cuts none of the 210 options. The arm becomes Lumoda itself.
The reason is in the formula. When the share that will not sell is small, a·(q − S) stays small. m·S, though, is large, and p·m·S takes back only part of it. The profit on the stock that will sell, the part that does not move to a neighbour, outweighs the cost of the stock that will not, for every option. In other words, every option’s carry sum comes out larger than its cut sum.
Let us state the trade-off plainly. Cutting an option you expect to sell nine-tenths of its plan means giving up the profit on those nine-tenths, less what moves to a neighbour, to save the cost of the other tenth. In this collection that trade does not pay for any option.
There is a second thing. The model applies the same ratio spread to every option in a subcategory. So an option’s net is proportional to its plan: a small plan, a small net, but its sign does not change. The model cannot tell “small plan” from “weak”; but unlike the rule, it does not mistake one for the other either. Knowing which option will sell less than its plan is a separate piece of knowledge.
Two oracles
To measure what knowing the truth is worth, we ran the same sum with two oracles. The oracle that knows the transfer share uses every subcategory’s true share. The oracle that knows demand knows every option’s true demand; for it, S is the smaller of demand and plan.
| In the published data | What it knows | Winter: lowest net | Summer: lowest net | Options cut, winter / summer |
|---|---|---|---|---|
| Model | Estimated share, expectation from plan | TRY 57,418 | TRY 69,470 | 0 / 0 |
| Oracle that knows the share | True share | TRY 32,295 | TRY 59,630 | 0 / 0 |
| Oracle that knows demand | True demand | TRY −632,655 | TRY 72,867 | 1 / 0 |
The share oracle’s lowest net is smaller than the model’s: the true share is bigger, so a cut is cheaper. Even so, it cuts no option. The estimation error of the third article did not change the decision in this collection.
In the demand oracle’s sum a rule falls out by itself. If demand exceeds plan, S = q and net comes down to m·q·(1 − p). That is always positive; so cutting an option whose demand is bigger than its plan never pays. The only options that can be cut are those whose demand falls short of their plan. In the published data, demand exceeds plan for 175 of the 210 options in the winter season, and for 182 in summer. Of the 35 options in winter whose demand falls short of plan, only one has a negative net. That option’s plan is 7,250 units and its true demand 2,415: 0.33 of its plan. In summer there are 27 candidates, and none has a negative net.
Where the sum leans
The sum is kept simple on purpose in several places. The way it leans splits two ways.
Those that pull towards cutting:
- The carry side does not count sales above plan. The profit on stock added during the season with a repeat orderRPT; reordering from the supplier a product that is selling better than expected in-season. It is not a shipment from the warehouse to stores. (RPT) is not in the sum.
- Expected sales are read from past sales. Sales fall short of demand; a product that sold out records no sale.
- The cut side ignores the chance that the extra stock bought for the neighbours goes unsold. The extra units are counted as always selling.
- The share is a single number per subcategory and does not know how many neighbours the option has in its own store. For a thinly neighboured option it can see too much move. The first article’s scarf is an example: its subcategory’s estimated share is 0.128, and in the published data what really moved when it was cut was 4.48%.
The one that pulls towards carrying:
- The transfer share is low on average. The model sees too little move and shies away from cutting.
Most of the leanings pull towards cutting; the model still does not cut. The two oracles that know the truth end up where the model does. The share oracle never cuts; the demand oracle cuts one option in winter (two on one of the five paths) and none in summer. The result is not a by-product of the estimate; this collection carries itself.
The extra stock bought for a cut option’s neighbours is in the sum too. For the option it cuts in winter, the demand oracle asks, in the published data, for 470 extra units for 8 neighbouring options, and the suppliers’ capacity covers all of it.
What is hard in your own data
The profit input is the easiest. Most chains have the turnover and the cost price of past sales.
Expected sales are hard. The history you have is a sales history, not a demand history. The sales of an option that could have sold more than its plan are capped by the stock you bought. So the ratio of plan sold makes demand look smaller than it is for the options in the tail and those that sell out early.
The transfer share is the hardest. As we saw in the third article, there is no truth in the field against which to check the estimate. And the sum hangs directly on this number: the bigger the share, the smaller the cost of a cut; if the share is wrong, the decision slides the wrong way.
And this sum looks at one option at a time. If two options from a group are cut together, the neighbourhood thins for both at once, and the move shrinks for both. A per-option net does not see that. In the sixth article we will work out a separate option-level account, after the cut, for the options the rule cut, and set it against the measured gap.
The sum is ready; who uses it, when and how deep is a separate question. That is the subject of the fifth article.