A company’s total inventory is built up of many different parts such as strategic stock, anticipation stock, safety stock, cycle stock, unplanned stock. The cycle stock is the one most connected to the demand forecast; it is expected to be sold as the forecast becomes real demand. Safety stock on the other hand is extra stock to deal with the variability of the demand or supply. As such, it is not always linked to forecasting accuracy.
The most common way of calculating the safety stock uses, among other things, the variance of historical demand to calculate the safety stock. Further, it applies a service level factor based on the assumption of the demand being normally distributed. (This assumption has its well-documented limitations which we will not get into here.) The assumption of normal distribution also makes the average demand a good estimate for expected demand in the future.
Learn More: An Approach to Setting Forecast Accuracy Targets
Now a modern business typically has a better estimate for the expected demand, which is the forecast. Why spend time and money developing a good forecast, only to use the average demand as the estimate of expected demand in the future. One recommendation is that people calculate the variance based on the forecast error and not based on mean demand. This is demonstrated below in terms of the formula of variance, which is the square of standard deviation. If xi represents the actual demand in period i, then the formula is:
When a company is involved in forecasting, one can calculate the error ei = xi – fi, where xi, fi, and ei represent the actuals, forecast, and the error respectively for period i. The recommended formula for variance then becomes:
When one uses the second formula, the safety stock is calculated from the variance of the forecast error. As a result, one can expect that the safety stock values will go up and down as the forecast error goes up and down. There is a theoretical basis to this as well. Standard deviation is related to MAD. Further, MAD is related to WMAPE, which is one way of measuring forecast error. Specifically:
Now, these relationships are dependent on the distribution of the demand data. However, demand streams could have different statistical distributions. Instead of relying on one or another statistical distribution, we decided to test this relationship with data empirically using regression. We calculated the safety stock using the formula above and simulated it with different forecast errors. Below are the results for the first data set.
Learn More: How Forecastable is Your Data?
The regression results did show a very strong relationship between safety stock and forecast error with the statistical significance approaching 99.99%.
In the above regression, we disallowed the intercept (the constant term). Below are the results when the intercept is included.
It is worth noting that the intercept was a small amount with a significantly lower statistical significance (by way of the t-statistic). In both cases, the total safety stock has a strong relationship to the forecast error. As forecast error increases, safety stock increases.
Below are the results for two other data sets.
Data set 2: Without Intercept:
Data set 2: With Intercept:
Data set 3: Without Intercept
Data set 3: With Intercept
In both data set 2 and 3, the coefficient of the factor (forecast error) was very significant, just as in data set 1.
This is an interesting, although not completely unexpected outcome. We strongly encourage practitioners to experiment with calculating safety stock using this formula, especially if they have confidence in their forecast. This will then have an incremental ROI on their demand planning and forecasting.
Do you calculate safety stock using this technique? What has your experience been? Please share in the comments below.
About the Author: Sujit Singh
As COO of Arkieva, Sujit manages the day-to-day operations at Arkieva such as software implementations and customer relationships. He is a recognized subject matter expert in forecasting, S&OP, and inventory optimization. Sujit received a Bachelor of Technology degree in Civil Engineering from the Indian Institute of Technology, Kanpur, and an M.S. in Transportation Engineering from the University of Massachusetts. Throughout the day don’t be surprised if you find him practicing his cricket technique before a meeting.
About the Author: Manjeeth Vijayan
Manjeeth A Vijayan is a Senior Consultant at Arkieva, India. He is responsible for analyzing client’s supply chain processes, configuring and implementing Arkieva software, thereby, helping clients improve efficiencies in their supply chain planning. He received a Bachelor Of Technology degree and went on to earn his masters in Industrial Engineering from the National Institute Of Industrial Engineering, India. He is also an APICS certified CPIM (Master Planning of Resources) certificate holder. Other than supply chain, traveling and hiking excite him these days.