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 will replace these due to a more dynamic and flexible set up feature. This is solved by introducing the concept Offset periods and Offset years. This makes it possible to determine the first historical period to be used in the forecast calculation when calculating the Moving Average based upon n number of calculation periods. For example, if you want to 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. DMP 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

Centered Moving Averages (CMA)

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.

dmp_CMA

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 periods demand and forecast. 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 value between zero (0) and one (1). The higher the α, the faster will the method react to changes in demand. This model is good for non-seasonal data that is fairly level, that is, not trend.

dmp_Exponential Smoothing

Exponential Smoothing of two period values

The formula weights the average demand of the last 25% 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% 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 (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 absoluted 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. Only Beta needs to be defined. Calculation Initialization Point defined on Data Set 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 either Offset Periods or Offset Years or a combination of the two.

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 demand for the previous period. If Offset Periods is equal to eleven (11) the forecast preceding period is equal to the demand for the same period last year. In 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 demand is sporadic or intermittent, the exponent smoothing often produces stock level that are too low. Croston’s Method improve the exponential smoothing by first estimating the average size of demand (Z) and then in a second step (X), the average interval between demands. Croston’s Method is very useful when forecasting spare parts or equipment where demand is batches to replenishment of inventories and when demand appear random or with irregular patterns and when there are in many 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 have shown 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

The method takes both trend and seasonality into consideration. A seasonal index has been 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.