Forecast Error

Objective

After completing this lesson, you will be able to understand forecast error fundamentals.

Comparing Forecast to Actual Sales

The figure describes the Comparing Forecasts to Actual Sales.

What is Forecast Error?

Forecast error is the difference between forecast and actual sales.

What is Forecast Error Variability?

Variability is the quality of being variable in the time. In this context, the forecast error variability is the measure of the forecast error fluctuations over time.

What is Demand Variability?

This is the measure of demand fluctuations over time.

Demand variability and forecast error variability are outputs of the calculation. When the best-fit method is analyzed, finding a best fit for historical sales can ignore exiting time-varying forecasts. This search considers forecast error rather than only demand variability. This method connects planning with execution through a realistic and sophisticated calculation.

On the slide, we can see two results from the calculation:

When the Demand Variability on this example is 1.05, based on the historical data for demand, we see a soft positive trend higher than one. On the other hand, we see that the Forecast Error represents 32% of missed values over time.

Accurately Quantify Demand Uncertainty, Forecast Accuracy, and Bias

The figure describes the Accurately Quantify Demand Uncertainty, Forecast Accuracy, and Bias.

When the forecast error is calculated, a demand characterization is needed to understand how demand signals behave overtime. These demand signals can be frequent, intermittent, or seasonal.

Before running a forecast error calculation, the time-series can be analyzed to add missing values, to identify outliers, or to determine distortions within the forecast.

Forecast Error Calculation Flow Chart

The figure describes the Forecast Error Calculation Flow Chart.

The forecast error calculation starts with a question: Do we need to check the demand signals to identify intermittency?

  • If no, that means that we are dealing with a frequent demand where we can apply filtering and outlier detection. Then we can estimate a bias, and finally, we calculate the coefficient of variability.
  • If yes, we have to verify whether we are dealing with a seasonal demand or with a completely intermittent demand. If we are treating a seasonal demand, we have to check whether the forecast timing is good or not. Finally, if we prove that the demand is intermittent, we calculate the K-period sales and forecast to cluster the demand signals.

Filtering

The figure describes the Filtering.

What is Filtering?

In case there are missing values, the algorithm recognizes periods with no data and can recompute forecast error CV based solely on periods with sales and forecasts, therefore, as a result explained on the slide, the forecast error CV can change from 0.90 to 0.42.

Calculation Settings

  • Replace null values by zero: If you select this checkbox, the system replaces null values with zeroes. The algorithms disregard periods that have null values for either forecast or sales because it cannot calculate using null values.
  • Start history from first sales period: If you select this checkbox, the system takes the first period where data for sales history exists and uses this period as the first period in the calculation of forecast errors.

Outlier Detection

Bias Estimation and Correction

The figure describes the Bias Estimation and Correction.

How can we estimate the bias and how can we correct it?

A positive bias reflects a tendency to inflate forecasts, resulting in overestimation of forecast error CV and excess inventory.

In addition, a negative bias reflects a tendency to deflate forecasts, resulting in service level misses from holding less than required inventory.

On the example, we see a strong change within the forecast error CV, with bias correction from 1.2 to 0.74.

Calculation Settings

  • Adjust bias of forecast: determines whether the system applies the bias adjustment to historical forecasts in the calculation of forecast error.
  • Bias adjustment method: determines the types of forecast bias adjustment (adjust positive bias, adjust negative bias, adjust positive and negative bias.
  • Bias confidence interval: determines level of confidence required in estimating bias.
  • Maximum positive bias value: specifies the upper bound limit for the bias.
  • Minimum negative bias value: specifies the lower bound limit for the bias.

Intermittent Demand

The figure describes the Intermittent Demand.

When do we have an intermittent demand?

Stocking point classified as intermittent if:

  • No positive sales history
  • Average demand interval (ADI) exceeds intermittent demand interval (IDI)
  • Not classified as seasonal
  • Does not have sufficient forecast timing accuracy

In the example, both forecast and sales are:

  • Positive in 10 weeks
  • Past positive sales in 10 weeks
  • Past positive forecast in 52 weeks
  • If we compare the user input for the forecast timing accuracy of 0.5 to 10, divided by the maximum value between 10 and 52, we come to 0,1923, which is less than 0,5. Therefore, the forecast timing accuracy is not sufficient, that is, we are dealing with an intermittent demand.
The figure describes the Intermittent Demand.

How can we calculate aggregate sales and forecast?

The average sales interval (ADI) is used to determine how many weeks of sales and forecasts to aggregate. On the slide, the example shows an ADI of 5, so sales and forecasts are summed across 5 periods. CV calculation algorithm is then used on 5-periods sales and forecasts, including filtering, outlier detection, and bias detection.

Forecast Coefficient of Variation (CV)

The figure describes the Forecast Coefficient of Variation.

How can we calculate the forecast coefficient of variation?

  • 1) Mean absolute percentage error (MAPE) multiplied by a factor
  • 2) The division of mean absolute deviation (MAD) by a maximum between two values (average forecast and average sales), multiplied by a factor

The CV can be calculated through two options:

MAPE can be useful to determine the forecast accuracy. Depending on the circumstances a Weighted MAPE can be calculated, considering the forecast or the sales as a reference factor. The equations used by the algorithm are presented on the slide, where F represents the forecast and S represents the sales, both changing over time (i).

Why should we use the coefficient of variation (CV)?

In time phased planning, we need to scale historical variability relative to the future forecast. CV is a constant scaling factor to calculate the time phased forecast error standard deviation.

Calculation Settings

  • Default CV Value: defines the default coefficient of variation (CV), when CV cannot be calculated with the provided data.
  • Maximum CV Value: defines the maximum CV for CV.
  • Basis of percentage error: determines whether forecast or actual is used as the basis in calculating the percentage error.
  • Default percentage error for one period: specifies the default percentage error for a period, where both historical forecast and sales are zero.
  • Maximum percentage error for one period: specifies the maximum percentage error for a period, where forecast error is strictly greater than zero and the basis value of percentage error is zero.
  • CV computation method: Choose aMAD or MAPE-based calculation.

Inventory: Calculate Forecast Error at the Right Granularity

The figure describes the calculation of the forecast error at the right granularity for inventory.

On the slide, we see different stock keeping units (SKUs) within a product family. For every SKU, the forecast and sales are listed specifically. We can also identify differences and similitude, comparing SKUs to the product family, Cereals, in terms of Error and Error %.