Quantcast
Channel: Business Data Insights
Viewing all articles
Browse latest Browse all 5

Demand forecasting – Part 1

$
0
0

I’d like to take an initial look at an innovative forecasting methodology using exponential smoothing models.  Forecasts, as the saying goes (applied to models in general) are always wrong but often useful.  This is especially true for long lead-time items or cases where there is known trends, seasonality, promotions, etc.   The better a business can forecast demand for it’s products, both a specific amount and the error associated with that amount, the more profitable it may become.

There are two main families of forecasting models used in business; exponential smoothing and ARIMA models.  Both are designed to capture the “signal” of historical demand patterns and extrapolate the pattern forward, though have different strengths and weaknesses.  There are also a number of types of models within each family, such as single, double, and triple exponential smoothing models.  Add to that the infinite range of parameter values that can be applied to the models and you quickly have a difficult problem of selecting the best model for a given set of demand data.

This where Rob Hyndman and his colleagues in Australia have done us a great service with the development of the “forecast” package for the open source software tool “R”.  Dr. Hyndman combined advanced state space modeling techniques and information theory to develop an automatic forecasting methodology (referred to here as “ETS”) for selecting the optimal exponential smoothing model out of 30 different options.  He codes the models from the “forecast” package with the letters “E”, “T”, “S” for error, trend, and seasonal.   He also adds the designation “M” (multiplicative), “A” (additive), “Md” (multiplicative damped), or “Ad” (additive damped) to further specify how the model captures the data’s dynamics.

Here’s an example to illustrate how it works.  The following is taken from the M3 international forecasting competition held in 2000 (Series N1893).  It deplays both trending and seasonal behavior over a span of 3 years.  However, with only the first year of history, the ETS algorithm only generates a flat line forecast (in blue with the shaded region for error) for the next 12 months (1988):
  82-83

The “ETS(M,N,N)” indicates an exponential smoothing model with no trend or seasonality detected but only an error term being used.

After adding another year’s worth of data (1989), we see seasonality being modeled along with error:
82-85
Finally, with a third year added to the first two, we detect both a trend (“A”) and seasonality (“M”) along with error:
82-86

Also worth noting is how the accuracy measurements in the upper left-hand corner of the charts got smaller from the first to the third forecasts.  These measurements (MAPE for “mean absolute percentage error” and MASE for “mean absolute scaled error”) indicate improving accuracy when they get smaller (which will be covered in detail in a future blog).  The lesson to learn here is that when you have an item with stable demand, forecasting models get more accurate with more data history.

The next post will cover adding the ARIMA model family into our forecasting process.

Viewing all articles
Browse latest Browse all 5

Trending Articles