The HPF Procedure
IDM Statement
IDM options;
The IDM statement specifies an intermittent demand model. An intermittent demand series can be analyzed in two ways: individually modeling both demand interval and size component or jointly modeling these components by using the average demand component (demand size divided by demand interval). The IDM statement specifies the two smoothing models to be used to forecast the demand interval component (INTERVAL= option) and the demand size component (SIZE= option) or specifies the single smoothing model to be used to forecast the average demand component (AVERAGE= option). Therefore, two smoothing models (INTERVAL= and SIZE= options) must be specified or one smoothing model (AVERAGE= option) must be specified. Only one statement can be specified.
The following examples illustrate typical uses of the IDM statement:
/* default specification */
idm;
/* demand interval model only specification */
idm interval=(transform=log);
/* demand size model only specification */
idm size=(method=linear);
/* Croston's Method */
idm interval=(method=simple)
size =(method=simple);
/* Log Croston's Method */
idm interval=(method=simple transform=log)
size =(method=simple transform=log);
/* average demand model specification */
idm average=(method=bestn);
The default specification uses both the INTERVAL= option and SIZE= option defaults for the decomposed (Croston’s) demand model and the AVERAGE= option defaults for the average demand model.
The following example illustrates how to automatically choose the decomposed demand model by using MAPE as the model selection criterion:
idm interval=( method=simple transform=auto criterion=mape )
size =( method=simple transform=auto criterion=mape );
forecast sales / model=idm criterion=mape;
The preceding statements fit two forecast models (simple and log simple exponential smoothing) to both the demand interval and size components. The forecast model that results in the lowest in-sample MAPE for each component is used to forecast the component.
The following example illustrates how to automatically choose the average demand model by using MAPE as the model selection criterion:
idm average=(method=simple transform=auto criterion=mape);
forecast sales / model=idm;
The preceding statements fit two forecast models (simple and log simple exponential smoothing) to the average demand component. The forecast model that results in the lowest in-sample MAPE is used to forecast the component.
Combining the two preceding examples, the following example illustrates how to automatically choose between the decomposed demand model and the average demand model by using MAPE as the model selection criterion:
idm interval=(method=simple transform=auto criterion=mape)
size =(method=simple transform=auto criterion=mape)
average =(method=simple transform=auto criterion=mape);
forecast sales / model=idm criterion=mape;
The preceding statements automatically select between the decomposed demand model and the average demand model as described previously. The forecast model that results in the lowest in-sample MAPE is used to forecast the series.
The following options can be specified in the IDM statement: