How the decision is made
Cover, STR and shelf life; and why eyeballing it cannot carry 149,600 decisions.
Block Transfer · 2 / 7
A mentor of mine told me the first rule of automation years ago: before you hand a decision over to a machine, watch how that decision is made by hand, in slow motion. What does the person look at, in what order, and what makes them give up? If you cannot write that down, what you are automating is not a decision, it is a rush.
In the previous article we saw the problem: broken sets, haggling on the phone, and that confession at nine in the evening: “why did we pick these forty? I don’t know.” This article is that week slowed down. We will open up, one by one, what goes through Ali’s head while solving a pair. No formulas; the formulas come in the next article. But by the end of this one you will already know what they are going to say.
Thursday morning, the whiteboard
The morning after the crisis Pelin comes over to Ali’s desk with a coffee. The lorry is loaded this evening, but the rest of the list will not get done by hand anyway, so Pelin spends the morning asking how this job ought to be done. The intention is plain, and Pelin does not beat about the bush:
“You solved forty pairs yesterday. What was going through your head on each one? Teach me; I want to understand what I missed when I built the plan.”
Ali draws two boxes on the whiteboard, writes Istanbul 18 above one and Malatya 1 above the other, and draws an arrow between them.
“The whole job is three questions about this arrow,” Ali says. “Who receives? Who gives? And is this arrow worth drawing? Let’s take them in order.”
Who receives? “Isn’t selling” and “can’t sell” are not the same
“The first reflex is to look at the sales report,” says Ali. “But the sales report lies to you. How many S and M did Istanbul 18 sell of that jumper on Saturday? None. According to the report, this jumper ‘isn’t selling’ in S and M there. What actually happened? Three customers tried it, couldn’t find their size and walked out with nothing. The product isn’t failing to sell, it can’t sell, because there are no S or M.”
Two signals tell these apart. The first is the broken size setAn 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.: if the set is broken, the drop in sales is the rail’s fault, not demand’s. The second is lost salesThe part of demand that arrives while stock is out, does not become a sale and does not switch to another product. It is not recorded, so it cannot be measured, only estimated.: a customer who walks out without finding their size is never recorded at any till. What you call demand is censored: you see only as much as the stock allows. When you look for a store to receive, you look not for “sells little” but for “something is stopping it selling”: a store with a high rate of sale, a broken set and customers walking out empty-handed. This series uses a narrow definition of a broken set: a set counts as broken if one of the core sizes is at zero; the general definition is in the What is a broken size? article.
Who gives? Not lots of stock, but a long life
“And the store that gives?” asks Pelin. “The one with the most stock?”
“That’s the first mistake everybody makes,” says Ali. “Stock units on their own tell you nothing. Malatya 1 has 103 of that jumper. Is that a lot? Adana 3 has 104 and sells 18 a week: it hasn’t even got six weeks’ worth left, and if you take from it you leave it short. Malatya sells 9.60 a week. Roughly the same stock means 10.7 weeks of life there.”
The name of that division is coverCurrent stock divided by the rate of sale; it says how many weeks of sales the stock will last.: the stock on hand divided by the rate of sale; the number you get says how many weeks the stock will last. Divide Malatya’s 103 jumpers by 9.60 a week and you get 10.7; divide Adana’s 104 by 18 and you get 5.8. The giving store is chosen by cover, not by stock units: the same number of units can mean a completely different life.
“It also has a sibling that looks backwards,” Ali adds: 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.. “Cover looks forward from today: how many weeks will this stock last? STR looks from the past to today: how much of what I sent this store has sold? Malatya was sent 154 of this option and has sold 51: 33.1%. At Istanbul 18 the same rate is 89.8%. The two say the same thing from two ends: Malatya was given more of this jumper than it can sell.”
Pelin looks at the board:
“Then you’d work out Istanbul 18’s cover too… There are 21 jumpers on the rail. Since S and M ran out, sales must be dropping. As sales drop, cover grows; if the break lasts long enough, sales go to zero, and dividing by zero… it comes out infinite? So Istanbul 18 looks overstocked?”
“There you go,” says Ali. “You’ve found the most dangerous number on the board. A broken set stops selling, once sales stop cover heads for infinity, and if you look at it blindly Istanbul 18 tells you ‘take stock from here’. Before you look at a number you need to know why it is that number: read cover without the broken set and the scales work backwards. When this jumper was on its rail, Istanbul 18 was selling 33.60 a week; at that rate 21 jumpers won’t last even a week.”
Not one line, but two thresholds
“Something’s bothering me,” says Pelin. “If cover picks both the store that receives and the one that gives, isn’t one line enough? Say six weeks: above it you give, below it you receive. Wouldn’t that work?”
“No,” says Ali. “It sounds tidy, but that line folds two separate questions into one. What I ask the sending store is: can it spare this stock? What I ask the receiving store is something quite different: does it really need this stock? One measures plenty, the other scarcity. A single line can’t measure both.”
Instead of one line Ali writes two numbers on the board: 14 and 6.
“In the trade the sentence is always put the same way,” Ali says: “stock is pulled from 14 weeks’ cover to 6 weeks’ cover. 14 is the threshold for plenty at the sending store; 6 is the ceiling for scarcity at the receiving store. Different numbers because they are different questions. The stores in between neither send nor receive; you don’t touch them at all.”
Pelin notes the numbers, then puts the pen down:
“So what if I raise both? Whoever has 18 weeks’ cover gives, whoever has 14 receives. Wouldn’t that be more cautious? I wouldn’t leave anyone short.”
“It looks that way on paper,” says Ali. “But ask yourself this: what’s missing at a store with 14 weeks of stock? Nothing. That rail’s customers find their size; that rail is already selling. Send it another carton and what opens up? Nothing; the stock just changes places. Tightening the sending side makes you look cautious, but loosen the ceiling on the receiving side and the lorry still fills up, only this time with cartons that solve nothing.”
Ali could not have put this in numbers that morning; it was an intuition on a whiteboard. At the end of the series, when we run the same stock snapshot with the two sets of thresholds, the intuition gets its numbers. The lorry really does fill up again: the plan that gives from 18 and receives to 14 moves a little more stock than the plan that gives from 14 and receives to 6, and on paper earns 2.3% more. Where Ali turns out to be right is the customer: the 18/14 plan rescues fewer of the customers who would have walked out empty-handed.
In this series we will call the share of those customers a plan rescues lost sales capture: how many of the customers who will really walk out empty-handed in the weeks after the decision would this plan have rescued? A customer who walks out never reaches the till, so this loss cannot be measured, only estimated; how it is estimated is the subject of the Lost Sales series. Because Lumoda is a synthetic chain, we can test how good the estimate is against the true loss hidden inside the data. By the estimate, the 18/14 plan rescues 2.65% of the loss and the 14/6 plan 3.10%; counted against the true loss, 2.31% and 2.72%. Both measures point the same way. The rates are small because the denominator is the chain’s whole loss over those weeks, while a transfer only helps options that have a surplus somewhere. What matters here is not the size but the direction.
Pelin picks the pen up again:
“So the two ends have to be set separately.”
“And they do different jobs,” says Ali. “The threshold on the sending side sets the size of the plan, the ceiling on the receiving side its aim. Loosen the ceiling too far and the arrow gets drawn to a store whose rail is already full.”
We will see a more surprising side of the dial at the end of the series: opening the ceiling on the receiving side grows the money by two-thirds but adds almost nothing for the customers who walk out empty-handed. Money and customers sit on the same dial, but they do not turn together.
The scales
“We’ve found who receives and who gives,” says Pelin. “Is the arrow drawn?”
“Not yet. Every arrow has two pans. In one pan, the sales to be won at Istanbul 18: if the set is made whole, how many a week will it turn over? In the other pan, two costs: what would have sold had that stock stayed at Malatya (Malatya sells this jumper too, if slowly), and the move itself: carton, carriage, and the work of receiving it in store and getting it onto the rail. If one pan doesn’t outweigh the other, you don’t draw that arrow. Most arrows fall at this point anyway.”
And above the scales there is something that sits like a dial: shelf life. With twelve weeks to the end of the season you weigh the pans calmly. With four weeks left everything changes: a broken set that is not moved can no longer wait for markdown; it waits for the outlet price. As the season’s close gets nearer, the needle tips towards “move it”. That was the maths of yesterday’s panic too: a broken set that misses the last lorry before markdown goes into markdown broken.
Around the edge of the pans there are rules as well; Ali writes them in the corner of the board, one by one:
- Cooling: do not touch a rail that took a delivery last week; a rate you measure before the stock has settled is not a rate.
- Minimum shipment: you do not send a lorry for two units; either you gather enough to be worth it or you leave it.
- Capacity: neither the receiving store’s stockroom nor its rail is endless.
- Line rule: outlet stock does not go to a full-price store; remember from the last article: possible in the maths, not in the trade.
Why “block”?
“There’s one thing I still haven’t asked,” says Pelin. “What are we sending Istanbul 18? Just S and M?”
“What Istanbul 18 is missing today is S and M. At this rate L will soon run out too: there are nine L on the rail. Send a single size and you create two broken sets in two stores: you pulled the M from Malatya, and now Malatya is broken too. That’s why the arrow doesn’t carry a single size; it carries a meaningful part of the set, the whole of it if possible, as a block.” That is the block in the series’ name: the unit of the transfer is not the size, it is the block. We saw in the first article why the decision is made at option level; the block is what that decision looks like on the lorry.
How the trade gets this wrong
Ali puts three crosses in the empty corner of the board:
First mistake: “take it from whoever has the most stock.” Stock units are not surplus; cover is. On this jumper Adana 3 has one more than Malatya. Whoever goes by units strips the fast store that hasn’t even got six weeks’ worth left, and leaves alone the slow store with over ten weeks of life.
Second mistake: looking at pairs one at a time. The best sending store for Istanbul 18 may be Malatya 1; but the same morning Ankara 3 has also run out of M, and on the scales Malatya’s block weighs exactly the same for Ankara 3. Istanbul 18 is Ali’s, Ankara 3 is Veli’s; Ali and Veli are after the same carton. Draw Istanbul 18’s arrow first and you may leave Ankara 3 with no solution. Arrows can be right one by one and wrong in total, which is why this is not a pair problem but a network problem. Every arrow drawn without looking at the network eats into another arrow’s chances.
Third mistake: whoever shouts gets priority. Yesterday’s forty pairs. A manager who makes a lot of noise is not a signal; the signal is the scales on the board. Working by hand, the scales get tired and hand over to the phone; we saw that yesterday too.
Setting up the same scales 149,600 times
Pelin looks at the board for a long while:
“None of this is actually hard. Cover is a division, STR is a ratio, the pans are adding and taking away. What’s hard?”
“The numbers,” says Ali. “These scales take ten minutes to set up for one pair. Lumoda has 80 stores and 1,870 options: 149,600 cells. 2,687 of them are broken, on top of that there’s dead stock, stock piled up… And the snapshot is renewed every Monday. I can set up these scales forty times a day; we tried yesterday, you know how it went. I can’t set them up a hundred and fifty thousand times. But if I can describe the scales, I don’t have to be the one setting them up.”
Let’s give the sentence its name: a transfer decision is the answer to three questions: who receives (high rate of sale, broken set, customers walking out), who gives (long cover, low STR, not cooling) and is it worth moving (do the sales won outweigh the sales lost and the cost of moving, in the shadow of shelf life). What we call the algorithm is asking these three questions, rules and all, of all 149,600 cells at once. No less, and no more.
In the next article we will turn what is on the whiteboard into maths: the pans will become an objective function, the rules in the corner constraints. It will look frightening, but it won’t be, because you already know what every symbol stands for on the board. The scales are the same scales; only the one setting them up changes 🙂