Technical

How much to hold back in the warehouse

Holding back works, and the worse your initial share, the more it works. Its value hardly depended on the replenishment that shared it out; the replenishment rule itself moved availability more than the hold-back ratio. Holding back by uncertainty did not beat a fixed ratio.

Initial Allocation · 5 / 6

For three articles we talked about the “who” question. In those articles the arms sent the same stock in the initial allocation (apart from the cap); the only thing that changed was which store the stock went to. The total stock over the season did change a little from arm to arm, through the repeat order’s reaction. In this article we move on to the third question: how much should stay in the warehouse?

How much does Lumoda really hold back?

Lumoda’s rule is clear: seventy per cent of the initial buy goes out in the initial allocation, thirty per cent waits in the warehouse. In the second article we saw what that sentence means by size. The single pack sends almost all of the smallest size to the stores, and the stock left in the warehouse is mostly the third and fourth sizes.

There is something else. In five-size products the seventy per cent the rule asks for is exactly the limit of the stock that can be packed. The moment the smallest size runs out, no more packs can be made. So in these products Lumoda is not really saying “I hold back thirty per cent”; it is saying “I send everything that can be packed”. What stays in the warehouse is stock that does not fit into a pack. For a one-size accessory the pack is six units of the same size; there it is not packing but the rule’s seventy per cent that decides what stays in the warehouse.

That is why in this series we define the hold-backKeeping part of the packs that could go out in the initial allocation in the warehouse instead of sending them to stores. This stock goes out as sales come in. ratio not against the initial buy but against the packs that could be sent that day. The U of the second article was that number. An arm holds back the share t of U and sends the rest. By this definition Lumoda as it is today is at t = 0%: it sends every pack that can be sent. When we say t = 30%, the initial allocation drops from 824,165 units to 576,291; the stock in between stays in the warehouse, of every size, in the pack’s proportions.

The hold-back axis

Let us start with Lumoda’s own plan share and Lumoda’s own replenishment, and change only t:

tInitial allocation (units)AvailabilityFirst 4 weeksStock left at the end of the seasonOnline sales (units)
0%824,16568.98%96.47%19.77%237,708
15%699,90070.11%96.94%18.77%271,462
30%576,29170.85%97.14%17.77%288,620
45%452,55871.32%97.14%17.66%297,636

Availability rises as t rises: by 1.87 points from 0% to 30%, by 2.34 points to 45%. The stock left at the end of the season falls too.

In the second article I mentioned a fear: a chain that keeps its stock in the warehouse opens the season with empty rails. Here, up to 45%, that does not happen. Availability in the first four weeks also rises slightly with t. Even with less stock sent, the rail stays full in the first weeks, and in the weeks after that the stock in the warehouse can go to the store that turns out to need it.

Let me note two things honestly. The first is online. At Lumoda online sales are served from the same warehouse; when more stock stays in the warehouse, online sells more. At t = 30% online sales rise by 50,912 units. Part of what holding back gains is not in the stores but online.

The second is the repeat order. Lumoda’s RPT rule looks at how much of the stock sent to the stores has sold. Send less and that ratio rises, and the rule places more RPT orders: 343,680 units at t = 0%, 389,120 at t = 30%. The total stock in the chain also rises from 1,515,866 units to 1,560,786. So in the hold-back comparison the stock is not exactly the same. How much of the gain comes from this extra RPT we did not separate in this case. The Repeat Order series explains how the RPT works.

The worse the share, the more holding back rescues

We also ran the same axis with the fourth article’s model, the share that came out best this season:

Sharet = 0%t = 30%Difference
Lumoda (plan share)68.98%70.85%+1.87
Model70.41%71.35%+0.94

The value of holding back depends on the quality of the initial share. The arm with the poor share gains twice as much from holding back. The logic is simple too: the more wrong the first decision, the more valuable the stock waiting in the warehouse to correct it.

Pars puts it like this:

“The stock you hold back is the second chance you give the first decision’s mistake; and it’s replenishment that uses the second chance.”

Remember the coverage cap in the third article. All of its gain came from the stock it left in the warehouse: +1.13 points in the store’s past share, +0.94 in the model. The cap was a hold-back rule without knowing it.

Who shares out the stock you hold back?

The second half of Pars’s sentence matters. The stock waiting in the warehouse goes to the stores during the season through replenishment. The value of holding back ought to depend on how well that replenishment works.

Lumoda’s replenishment looks at the next four weeks of the plan; it sends no stock to a cell past its first four weeks that has sold nothing in the last four weeks. To test this we built a second, simple replenishment inside the case. It is called ros: it divides the last two weeks’ sales by the number of days in stock in those days, builds a four-week target, and takes off the stock on the rail and in transit. There is no dead-stock gate. It works only on this case’s products; on the other products it falls back on Lumoda’s rule (base(view)):

# initial_allocation/policy.py (RosReplenishment.__call__)
def __call__(self, view) -> np.ndarray:
    request = np.array(self.base(view), dtype=np.int64, copy=True)
    request[self._game_cell] = 0
    c = np.flatnonzero(self.cells(view))
    if c.size:
        target = _ceil(self.rate(view, c) * constants.ROS_TARGET_DAYS)
        on_hand = np.asarray(view.store_stock, dtype=np.int64)[c] + np.asarray(view.in_transit, dtype=np.int64)[c]
        request[c] = np.maximum(target - on_hand, 0)
    return request

Do not read this as the outcome of the Warehouse to Store series. There a replenishment rule was carefully built and measured; this is a simple rule built only to ask this question.

We ran all four combinations on the same axis:

ShareReplenishmentt = 0%t = 30%Value of holding back
Lumoda (plan share)Lumoda68.98%70.85%+1.87
Lumoda (plan share)ros72.66%74.27%+1.61
ModelLumoda70.41%71.35%+0.94
Modelros73.92%74.76%+0.84

Two things show. First, the value of holding back hardly depends on the replenishment: a little smaller under ros, but at the same level. Second, in availability in the physical stores the replenishment itself makes a bigger difference than holding back. With the same share and the same t, ros is ahead of Lumoda’s replenishment: by +3.68, +3.67, +3.42 and +3.13 points with the plan share; by +3.51, +3.47, +3.41 and +3.08 points with the model (t = 0%, 15%, 30%, 45%). Over three points at every level of hold-back.

Where part of that gap comes from is clear too. ros is keener to send the stock in the warehouse to the stores; less is left for online. With the plan share, at t = 0% online sales fall from 237,708 units to 180,750. We measure availability in the physical stores; online is separate.

On other measures the picture changes. With the plan share and Lumoda’s replenishment, raising t from 0% to 30% adds TRY 32,324,346 to gross profit and 2.31 points to full-price STR, and cuts the stock left at the end of the season by 2.00 points. Switching the replenishment to ros at t = 0%, on the other hand, raises gross profit from TRY 534,431,649 to TRY 540,706,283, lowers full-price STR from 52.69% to 52.37%, and cuts the stock left by 1.09 points. In gross profit and in full-price STR, holding back gains more than changing the replenishment.

There is a limit, too. With the model share and ros together, 45% is too much: availability is highest at t = 30% (74.76%) and slips back at t = 45% (74.61%); the stock left at the end of the season rises by 1.28 points at t = 45% compared with t = 0%. Under Lumoda’s replenishment the stock left makes the same turn: with the model share, 17.06% at t = 30%, 17.79% at t = 45%. There, though, availability keeps rising: from 71.35% to 71.53%.

Holding back by uncertainty

Up to here t was the same for every option. Can it be done more cleverly? The idea: hold back little of the products we are sure about and a lot of the ones we are not. The average still stays at 30%.

To measure uncertainty we used the disagreement between two methods: the more the store’s past share and the model’s share part ways on a product, the more uncertain that product is. The hold-back ratio grows or shrinks with that measure’s ratio to its mean:

# initial_allocation/calibration.py (hold_curve)
ratio = np.where(known, value / mean, 1.0)
t = np.clip(tbar * ratio ** float(gamma), 0.0, 2 * tbar)

In the game season t varied by product between 0.04 and 0.57, with a weighted mean of 30%. Against it stands an arm with the same share that holds back a fixed 30%. Here too the stock is not exactly the same: the arm that holds back by uncertainty got a little more RPT (397,410 against 391,170 units; total stock 1,568,433 against 1,562,677).

Fixed 30%By uncertainty
Initial allocation (units)576,291576,225
Availability71.35%71.38%
Stock left at the end of the season17.06%17.29%
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.55.54%55.16%

+0.03 points in availability: so small it is hardly a difference. In stock left and in full-price STR, holding back by uncertainty is behind. Here it did not work.

The likely reason is the measure. In calibration, this uncertainty measure’s rank correlation (Spearman) with how wrong the share really was is only 0.107. And it was the best of the three measures we tried; the others’ correlation came out at −0.030 or could not be worked out. The measure can hardly pick out the product we will get wrong, and holding back by a measure that cannot pick it out does no better than holding back a fixed amount. Also, we chose the curve’s steepness in calibration with a capped model, while in the game the base was uncapped. There the gap between the steepnesses was 0.03 points anyway; we did not test the choice again.

What changes by size?

Holding back has one more effect. With the single pack, almost none of the smallest size stayed in Lumoda’s warehouse (0.0%). Hold back 30% of U with the model share and 30.1% of the smallest size waits in the warehouse: the packs held back leave every size in the warehouse in the pack’s proportions. What this does to the size loss we measure in the sixth article.

Notes on honesty

The “best share” in this article was chosen in the game season, and the hold-back comparisons were measured in the same season. These are in-sample measurements, not a test of a decision made for a future season.

In this series we do not use the first wave’s early sales in the decision for the second and third waves. The cost: the arms do not learn during the season; they go into every wave with what they knew at the start of the season.

What is hard in your data

The first thing is the warehouse and online selling from the same stock. At Lumoda that relationship is open and measurable: stock held back in the warehouse is sold online. In your chain the online warehouse may be separate, or the two channels’ priorities in the same warehouse may not be tied to a written rule. Then it becomes unclear whether “holding back in the warehouse” means a reserve set aside for the stores or online’s stock.

The second is how clever the replenishment is. Here the value of holding back hardly depended on which replenishment shared the stock out. But the replenishment rule itself moved on-shelf availability more than the hold-back ratio did, partly out of online’s share. How much to hold back and how to share out what is held back are two separate decisions; in your chain too they need to be measured separately, or one’s gain gets written into the other’s column.

The third is the definition itself. “We hold back thirty per cent” is a sentence everyone in the chain knows. But against the initial buy, or against the packs that can be sent? In total, or by size? Setting the hold-back ratio without asking that question is setting something you have not measured.

In the last article we add all of this up at the end of the season: which measure says what, how much of the gap is the initial allocation’s own doing, and what the size mismatch costs.

By Sabri Suyunu