How lost sales are calculated
Three steps. Find the stockout day, measure the rate on days with stock, write a loss against every stockout day. Each step hides a trap, and the first, the one least talked about, is the hardest.
Lost Sales · 2 / 5
Monday morning, before the regional meeting in Ankara. Pelin has been on the phone to Banu; they are going to ask the supplier to account for the delay. One question is left in the meeting room.
“How many sales of that sweatshirt did we miss on Sunday?” says Pelin. “Can we put a number on it?”
Pars writes three lines on the whiteboard:
- Find the stockout dayA day on which a product open for sale in a store or channel was not on the shelf at all. Lost sales happen on these days..
- Measure the rate on days with stock.
- Write a loss against every stockout day.
“Is that it?” says Veli.
“That’s it. But every step has a trap in it.”
Step one: the stockout day
A loss only arises on a stockout day: a day when the product should be on sale in that store but is not on the rail. There are two kinds. The day opens empty, or it opens with stock and sells out during the day.
“Is that hard to find?” says Ali. “We look at the stock report.”
“Which stock report?” says Pars. “Lumoda gives store stock once a week, on Monday morning. In between, deliveries come in, sales happen, returns come back. We build the daily stock ourselves.”
Add and subtract the week’s movements, in order, to the Monday snapshot and every day’s opening stock comes out. The next Monday’s snapshot tells you whether the sum is right: for every store and size, it also records on how many days of the past week there was stock on the rail. The daily stock we build matches that figure in 9,667,961 of 9,667,974 cell-weeks. 99.9999%.
In Lumoda’s three years there are 69,380,499 cell-days on which a loss can be written. A cell means one size in one store (or online). Of these, 11,827,814 opened empty and 803,908 sold out during the day. In all, 18.2% of the days are stockout days. In the last year, 21.0% in stores and 39.8% online.
The words “on which a loss can be written” matter. Days when the product is not in that store’s range, the store is closed, or the product has not yet gone on sale or has long since come off sale are not counted. The absence of a product that should not be on the rail is not a loss.
“For us this step was quick,” says Pars. “In a real company it’s the step that takes longest. Most systems don’t keep daily stock. Even when they do, there are count discrepancies, transfers booked on one side only, deliveries recorded late. Get the stockout day wrong and the number comes out wrong, however good the next two steps are.”
Step two: the rate on a day with stock
“Step two is easy,” says Pelin. “We take the average sales of the days with stock.”
“Which days with stock?” says Pars.
Not every day sells the same. Pars writes the day’s character on the board.
Day of the week. In Lumoda’s stores the weekend sells 1.54 times as much as a weekday. Online there is no difference: 0.99.
Special days. The Friday of Black Friday sells 1.843 times an ordinary day, even after the effect of the discount is taken out. On a bank holiday, sales are 0.70 of an ordinary day.
Price. A promotion day sells more. Measuring the effect of price is not as easy as it looks; it takes up part of the third article.
The product’s age. A seasonal product sells fast in its first weeks, then slows down. This is the product’s life cycle curveThe curve showing how a product's sales rise and fade from the week it enters the store.. A continuity product’s curve is flat; a seasonal product’s is not.
“So you can’t treat a Saturday with stock and a Tuesday without it as the same,” says Pars. “First you turn every in-stock day’s sales into an ordinary day, then you scale up or down to the conditions of the stockout day.”
We learnt these characters from the 38,484,293 in-stock cell-days of Lumoda’s first two years. The third year was kept aside to measure against.
There is one more trap. If a size has been missing for weeks, that size has no in-stock days of its own. Then you look at the rate of the product’s other sizes and at that size’s share within the product. If Ali’s S is missing, the past sales of the other sizes say something about the S.
Why you look both ways
Something is bothering Veli.
“A forecast looks ahead. We’re looking back, aren’t we?”
“Lost sales aren’t a forecast,” says Pars. “They’re an estimate made after the event. We have both the before and the after of the stockout day. We look at both.”
One reason is the life cycle curve. If the product is slowing down, a sum that looks only backwards overstates the stockout day’s demand. One that looks only forwards understates it. The middle of the two sides is the best witness.
“And what if the stock never came back?” says Ali.
“Then we look only backwards and extend it with the life cycle curve. That situation has a name of its own; we’ll come back to it in the fourth article.”
Step three: writing the loss
On a day that opens empty it is easy: the whole of that day’s expected demand is lost. At Ankara 4 that Sunday, expected demand for Ali’s size was 0.75 units, and for Veli’s 2.76. The day opened empty, so that is the loss.
“You can’t sell 0.75 of a sweatshirt,” says Ali.
“Not on one day. But you add these small numbers up over every day, every size, every store. In the sweatshirt’s week, online included, it comes to 1,530 units.”
A day that sells out is subtler. It opened with three units, and all three sold. We know demand was at least three. We suspect it was more, because the rail emptied early. But how much more? There is a way to work it out that is right on paper. In the third article we will explain why that right way overstates.
What’s hard in your data
Of this article’s three steps, the one people talk about most is the second. How to measure the rate, which model is better, whether to use machine learning. The next article is about that too.
But in your data the hard one is most likely step one. At Lumoda building the daily stock was a quick job, because every movement is recorded and almost every record is consistent. In a real chain this step takes weeks, and even at the end you cannot always answer with confidence “was the rail really empty in this store on this day?” Where you cannot find the stockout day, lost sales cannot be calculated. Only guessed at. 🙂