Forecast Formulas in detail

You can set these functions in Forecast Method Properties > Calculation Setup.

Moving Average

Forecast calculation with formula Moving Average projects the values in the forecast period based upon the average demand (sales) over a specific number of preceding periods, that is, weeks or months. The number of preceding periods used in the forecast calculation is referred to as n. The number of periods used determines how quickly the forecast will react to changes in actual trends and how sensitive it is to random variations. The more periods included will result more stable method for random variations but will also react slowly to real trends. Moving Average is calculated based on:

dmp_Moving Average

In M3 BE, a various number of hybrids of Moving Average exist. In M3 DMP, one formula replaces these due to a more dynamic and flexible set up feature. This is solved by introducing the concept Offset periods and Offset years. You can determine the first historical period to use in the forecast calculation when calculating the Moving Average based upon n number of calculation periods. For example, if you calculate the next period forecast as the average actual demand of the preceding, same, and following period from the preceding year, the Offset period is set to 11 and Number of calculation periods to 3. The use of Offset period in combination with various values of n provides endless possibilities to calculate the moving average.

dmp_Moving Average_2

Centered Weighted Moving Averages (CWMA)

A weighted average is any average that has multiplying factors to give different weights to different data points.

dmp_CWMA

DMP uses a table of predefined smoothing constants depending on the selected weight function. It includes the most used variations including the weight functions of Spencer and Henderson.

These Weighted Moving Average Functions options are available:

  • 3x3 MA
  • 5x5 MA
  • Spencer 15 MA
  • Spencer 21 MA
  • Henderson 5 MA
  • Henderson 9 MA
  • Henderson 13 MA
  • Henderson 23 MA

This table shows the commonly used weights in the weighted moving average, where S=Spencer’s weighted moving average and H=Henderson’s weighted moving average:

a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11
3-MA 0.333 0.333
5-MA 0.200 0.200 0.200
2x12-MA 0.083 0.083 0.083 0.083 0.083 0.083 0.042
3x3-MA 0.333 0.222 0.111
3x5-MA 0.200 0.200 0.133 0.067
S15-MA 0.231 0.209 0.144 0.066 0.009 -0.016 -0.019 -0.009
S21-MA 0.171 0.163 0.134 0.094 0.051 0.017 -0.006 -0.014 -0.014 -0.009 -0.003
H5-MA 0.558 0.294 -0.073
H9-MA 0.330 0.267 0.119 -0.010 -0.041
H13-MA 0.240 0.214 0.147 0.066 0.000 -0.028 -0.019
H23-MA 0.148 0.138 0.122 0.097 0.068 0.039 0.013 -0.005 -0.015 -0.016 -0.011 -0.004

Centered Moving Averages (CMA)

The Centered Moving Average is a specific form of Centered Weighted Moving Average, where the smoothing constants are the same, except for the start and end if the length is an equal number.

Name a0 a1 a2
2 CMA 0.5 0.25
3 CMA 0.333 0.333
4 CMA 0.25 0.25 0.125
5 CMA 0.2 0.2 0.2

The weight function for CMA is defined by specifying the number of calculation periods (>=2).

Exponential Smoothing

Exponential Smoothing calculates the forecast based on the previous demand and forecast of the period. To achieve this, Offset periods is set to 1. You can also elaborate and use different Offset periods depending on purpose. The Smoothing constant - Alpha, α, is a value between zero (0) and one (1). The higher the α, the faster the method reacts to changes in demand. This model is good for non-seasonal data that is fairly level, not trend.

dmp_Exponential Smoothing

Exponential Smoothing of two period values

The formula weights the average demand of the last 25 percent of the total number of calculation periods with the average demand for n number of periods. The formula uses the smoothing constant α which determines how strongly the forecast responds to changes in demand.

The values of 0.2 and 0.3 are reasonable smoothing constants. These values indicate that the current forecast should be adjusted to 20 to 30 percent for the error in the prior forecast.

dmp_Exponential Smoothing of two period values

For example, Exponential Smoothing with n = 4 and α = 0.3 and latest number of calculation periods = 1, which is used to calculate M.

dmp_Exponential Smoothing of two period values_2

Adaptive Exponential Smoothing

Adaptive Exponential Smoothing is similar to basic exponential smoothing where the latest base demand value is weighted with a smoothing constant. In adaptive exponential smoothing, the smoothing constant is calculated every time a new forecast is made.

dmp_Adaptive Exponential Smoothing

The smoothing constant is recalculated using this equation:

dmp_Adaptive Exponential Smoothing_2

In order to control and follow up forecast precision, two types of measurements are used, Mean Absolute Deviation (MAD) and Mean Error (Forecast error, AVER). These measure the deviation between forecast and actual demand. You can calculate the Mean Error and MAD in three ways:

Method 1: Exponential Smoothing

dmp_Adaptive Exponential Smoothing_3

Method 2: Mean F/C deviation

dmp_Adaptive Exponential Smoothing_4

Method 3: Mean Demand deviation

dmp_Adaptive Exponential Smoothing_5

Factor Description
dmp_Adaptive Exponential Smoothing_table1 Mean absolute deviation for period (i)
α Smoothing constant for exponential smoothing in period (i)

dmp_Adaptive Exponential Smoothing_table2

The absolute amount of a difference (without minus sign)

dmp_Adaptive Exponential Smoothing_table3

Base demand during period (i)

dmp_Adaptive Exponential Smoothing_table4

Base forecast for period (i)

dmp_Adaptive Exponential Smoothing_table5

Average demand for (n) periods
i Period number
n Number of periods included in calculating the mean
Note: Alpha is adaptive and calculated automatically from the deviation (CDev).

Adaptive-response-rate SES (Trigg & Leach)

The Adaptive-response-rate single exponential smoothing, also known as Trigg & Leach’s method, is also a hybrid of exponential smoothing but where α is calculated based upon the smoothed forecast error and smoothed absolute forecast error. Parameter Beta is the smoothing constant applied to the trend in forecast versus demand.

dmp_Adaptive-response-rate SES

Note: Alpha is adaptive and calculated automatically. You only need to define the Beta. Calculation Initialization Point defined on Dataset Properties is where the adaption starts from, giving the formulas a change to get a better starting estimate for Alpha. Applying additional trend is not common since this method already uses the ‘Beta’ trend smoothing constant to estimate how it adapts. You can apply the seasonality when appropriate.

Forecast as demand from preceding period

The forecast for the next period is equal to actual demand n periods back in time. You can use Offset Periods, Offset Years, or both.

dmp_Forecast as demand from preceding period

For example, if Offset Periods is equal to zero (0), the forecast for the preceding period is equal to the demand for the previous period. If the Offset Periods is equal to eleven (11), the forecast preceding period is equal to the demand for the same period last year. On the last example, you can set Offset Years = 1 and Offset Periods = 0.

Croston’s Method

Exponential smoothing is often used to forecast demand for inventory in stock management. However, if the demand is sporadic or intermittent, the exponent smoothing usually produces stock levels that are too low. Croston’s Method improves the exponential smoothing by estimating the average size of demand (Z) and the average interval between demands (X). Croston’s Method is useful when forecasting spare parts or equipment where demand is in batches for replenishment of inventories, when the demand appears random or with irregular patterns, and when there are several periods with zero demand.

Initialization

dmp_Croston’s Method

Iteration over periods i and using q as the interval between last two periods of demand.

dmp_Croston’s Method_2

Forecast, which is estimated by Z considering average interval X, is calculated either as constant (average) or sporadic.

  • Sporadic: Forecast is distributed according to the mean interval X

    dmp_Croston’s Method_3

  • Constant (average): Forecast is distributed according to the mean interval X

    dmp_Croston’s Method_4

Croston’s – Modified Method

Studies show that in some cases you can estimate the forecast better by using a modified version of Croston’s Method that considers the effects of the last two periods of demands, especially if the interval between demands is changing.

Initialization same as Croston’s Method

dmp_Croston’s – modified Method

Iteration over periods i and using q as the interval between last three periods of demand

dmp_Croston’s – modified Method_2

Forecast is calculated either as constant (average) or sporadic.

  • Sporadic: Forecast is distributed according to the mean interval X

    dmp_Croston’s – modified Method_3

  • Constant (average): Forecast is distributed according to the mean interval X

    dmp_Croston’s – modified Method_4

Period Relation

The Period Relation forecast algorithm calculates the forecast equal to the relation between previous x number of periods and the same x number of periods last year multiplied with the average demand for y number of periods last starting with the current period previous year.

dmp_Period Relation

For example, = p 12 (number of months per year) = A 2 = n 4

dmp_Period Relation_2

dmp_Period Relation_3

Holt’s Linear Method

Holt’s Linear Method is an extension of exponential smoothing to take into account a possible linear trend. This model is good for non-seasonal data with a trend. There are two smoothing constants α and β. It follows the equations:

dmp_Holts Linear Method

Holt-Winters trend and seasonality method

This method takes both trend and seasonality into consideration. A seasonal index is added to the equation.

dmp_Holt-Winters trend and seasonality method

Where s is the seasonality period length.

dmp_Holt-Winters trend and seasonality method_2

dmp_Holt-Winters trend and seasonality method_3

Extrapolation of Holt-Winter

For extrapolation, the last season range is repeated and Trending (B in period 24) is added.

dmp_Extrapolation of Holt-Winter

At the End Calculation Point (P=25), the forecast is calculated with m=1.

  • Forecast26 = (L24+B24*2)*S22
  • Forecast27 = (L24+B24*3)*S23
  • Forecast28 = (L24+B24*4)*S24
Note: 
  • Alpha determines how fast the algorithm adapts to leveling and to some degree this leveling influence seasonality as well.
  • Beta determines how fast the algorithm adapts to trending.
  • Gamma determines how fast the algorithm adapts to seasonality. Lower gamma allows the algorithm to remember more strongly.
    • Gamma = 0 means only the initial seasonality is used.
    • Gamma = 1 means only the latest period range is used.