#6 - Reevaluating Safety Stock Amidst Supply Chain Challenges
Julien Vigneau
Senior Manager - Data & AI for Supply Chain - Planning - Forecasting - Performance
The views and opinions expressed in this newsletter are solely my own and do not represent those of Kingfisher Group or any of its banners. This content is not influenced by any external organization or entity. I have not received any benefits or compensation from third parties
Introduction
Welcome back, supply chain innovators! ?? With the recent disruptions in the Red Sea linked to the ongoing Israel-Palestine conflict, the importance of robust safety stock strategies has never been clearer. With Castorama, we were compelled to reassess our safety stock levels to navigate these challenges effectively. Together with Thomas Coffin and Thibault Triscos , we delved into how our current Replenishment Solution calculates store safety stock. But what we discovered was disappointing—a black box with minimal documentation from our solution provider. This lack of transparency sparked an idea: what if I reworked everything from scratch to truly understand and optimize our safety stock strategy? ??
In this edition, I’m excited to take you through a comprehensive exploration of safety stock, stripping away the complexity and unveiling the essential principles. I promise to guide you step by step, ensuring I don’t lose 99% of my readers before chapter 2 ??! Whether you’re new to safety stock or looking to refine your approach, this deep dive will offer valuable insights to help you better manage uncertainty in today’s volatile supply chain landscape.
Chapter 1: What is Safety Stock?
Safety stock is the extra inventory a company holds to protect against the inherent variability in demand and supply ??. This stock buffer is crucial in preventing stockouts—situations where items are unavailable for sale—by compensating for unexpected fluctuations in demand or in supply. The fundamental goal of safety stock is to ensure that businesses can continue to meet customer demand even when disruptions occur, maintaining smooth operations and customer satisfaction.
In the retail industry, safety stock plays an especially vital role due to the unique challenges faced by this industry, like demand fluctuations ?? and supply uncertainties due to long lead times, complex routes, hundreds of thousands of articles, thousands of vendors, and stores ??.
Chapter 2: Key Factors Influencing Safety Stock Levels
Several key factors determine the appropriate level of safety stock in a retail supply chain. Understanding these factors helps ensure that your safety stock is neither excessive nor insufficient, striking the right balance between availability and cost ??.
Chapter 3: Optimizing Safety Stock with AI and Operational Research
Traditional methods for calculating safety stock rely on simple statistical models and historical data ??. While effective to a degree, these methods often fall short in dynamically adapting to the complexities and uncertainties of modern supply chains.
Today, AI and operational research techniques offer advanced approaches to optimize safety stock, reducing excess inventory while ensuring high service levels.
Chapter 4: Safety Stock Mathematical Framework
In this chapter, we dive into the mathematical foundation of safety stock calculation, building on the concepts weve discussed. Our goal is to ensure that safety stock is optimized to balance service levels with inventory costs.
4.1 - Safety Stock calculation based on Service Level Target
Lets define the following variables :
Service Level (????): The desired probability of not running out of stock during the lead time.
Z-Score (Z): The Z-score corresponds to the desired service level (????) and is determined by the demand distribution. For a normal distribution, the Z-score maps the service level to a specific point on the standard normal distribution curve.
Average Lead Time Demand (μL): The mean expected demand during the lead time. Best is using ML sales forecasting and ML lead time forecasting to get it.
Standard Deviation of Lead Time Demand (σL): The variability in demand during the lead time.
On-Time Adjustment Factor (OTAF): Accounts for lead time variability due to the supplier’s On-Time performance. It is calculated as: OTAF=(1?OTnbsp;Percentage)/OT Percentage
Standard Deviation of In-Full Deliveries (??????): Represents the variability due to partial vendor deliveries in quantities. To calculate it, you would typically analyze historical data on orders placed versus quantities received. And use ML OTIF predictions.
Z'-Score (Z'): The Z'-score corresponds to the desired service level (????) and is determined by the In Full distribution.
Safety Stock Formula
The optimized safety stock (SS) model I suggest is calculated as follows:
SS=Z × σL ×(1+OTAF) + Z' x σIF
This formula accounts for demand variability, lead time variability, and the reliability of suppliers in terms of both timing and quantity. SS will cover the risk of running out of stock with the targeted service level. If I make my self-criticism, OTAF impact could be assessed through a distribution calculation, but anyway this model looks optimized enough.
4.2 - Safety Stock calculation based on Operational Research solving the min total cost equation!
To balance inventory holding costs and stockout costs, the safety stock total cost TC(SS) is modeled as:
TC(SS)=H×SS+P×G(SS)
Where:
H is the holding cost per unit typically including logistics cost, capital cost and stock depreciation.
领英推荐
P is the penalty cost per unit of stockout typically including the lost margins
G(SS) is the expected shortage based on the safety stock level and on the lead time demand
Understanding Expected Shortage
The expected shortage G(SS) represents the number of demand units that cannot be fulfilled (sales lost) when demand during the replenishment lead time exceeds the sum of the average demand during lead time μL and the safety stock SS. In other words, G(SS) is the average quantity of lost sales when demand x surpasses the threshold μL+SS
Probability of Demand Exceeding the threshold μL+SS
To express the probability that demand exceeds the safety level, we denote P(x>μL+SS). This implies that sales may potentially be lost if demand exceeds this threshold, as available stock would be insufficient.
Using the Standard Normalized Variable
To determine this probability and the expected shortage amount, we introduce the standardized normal variable z=(x?μL)/σL, where σL is the standard deviation of demand during the lead time. This normalized variable translates the safety stock level into a probability measure!
The Loss Function L(z)
The loss function L(z) is used to estimate the expected shortage based on demand distribution. It expresses this shortage as a fraction of the standard deviation σL and is defined as follows:
L(z)=z->∞∫(x?z)??(x)?dx
where ?(x) is the probability density function of the demand distribution. This calculation essentially determines the average gap between actual demand and the threshold μL+SS when demand exceeds this threshold.
For a normal distribution, L(z) can also be expressed as:
L(z)=?(z)?z×(1?Φ(z))
where Φ(z) is the cumulative distribution function of the normal distribution.
Final Formula for Expected Shortage
Using the loss function and we can calculate the expected shortage G(SS) as:
G(SS)=σL×L(z)
This formula allows us to estimate the number of units in stockout by multiplying the probability of exceeding the threshold by the demand’s standard deviation
Resolution of the Optimal Safety Stock (OSS) when the demand is considered a normal distribution!
The Optimal Safety Stock can be resolve using a computer, but in the case of a normal demand, it's analytical doable!
Analytically, solving the min total cost is finding the case where the derived dTC(SS)/d(SS) = 0 So using the integral form of L(z) and Leibniz's rule for derivation, dL(z) / dSS = ??(z)/σL.
Therefore dTC(SS)/d(SS) = H?P×?(z)
Setting this equal to zero to find the minimum: H=P×?(z*)
To recap, we introduced the standardized variable z=(x?μL) / σL and now we know z?, the value that achieves the optimal balance of costs. We also introduced the x = μL+SS as the threshold above which sales may be lost. Thus, the optimal safety stock OSS can be expressed as:
OSS = x??μL
OSS = z?×σL where ?(z?)=H/P with ?(z) as the probability density function of the standard normal distribution.
Limitations of the Normal Distribution Model
The ratio H/P can theoretically exceed the maximum value of 1/racine(2π) ≈0.3989, the peak of the normal distribution’s density function ?(z). In this case, the safety stock equation has no solution, meaning no level of safety stock would satisfy both the holding cost H and the stockout cost P simultaneously.
This scenario can indicate:
Conclusion: Wrapping Up the Safety Stock Journey
Congratulations! ?? You did it—you’ve navigated through the intricacies of safety stock, from foundational concepts to complex mathematical modelization. If you’re reading this, it means you’ve survived the complexity of this publication and made it to the finish line ??.
To celebrate, why not drop a “I did it!” in the comments below? And while you’re at it, I’d love to hear about your own safety stock strategies. Whether you rely on traditional methods, cutting-edge AI, or a mix of both, I’m always eager to learn from the experiences of fellow supply chain enthusiasts. So, share your thoughts, strategies, or just a thumbs-up—let’s keep the conversation going!
Looking forward to your insights, and until the next edition, keep innovating!