M3-Competition for time series forecasting, other data
From original source:
-----
The 3003 series of the M3-Competition were selected on a quota basis to include various types of time series data (micro, industry, macro, etc.)
and different time intervals between successive observations (yearly, quarterly, etc.). In order to ensure that enough data were available to
develop an adequate forecasting model it was decided to have a minimum number of observations for each type of data.
This minimum was set as 14 observations for yearly series (the median length for the 645 yearly series is 19 observations),
16 for quarterly (the median length for the 756 quarterly series is 44 observations), 48 for monthly (the median length for the 1428 monthly
series is 115 observations) and 60 for 'other' series (the median length for the 174 'other' series is 63 observations). Table 1 shows the
classification of the 3003 series according to the two major groupings described above. All the time series data are strictly positive; a test
has been done on all the forecasted values: in the case of a negative value, it was substituted by zero. This avoids any problem in the various
MAPE measures.
As in the M-Competition, the participating experts were asked to make the following numbers of forecasts beyond the available data they had been
given: six for yearly, eight for quarterly, 18 for monthly and eight for the category 'other'. Their forecasts were, subsequently, compared by
the authors (the actual values referred to such forecasts were not available to the participating experts when they were making their forecasts
and were not, therefore, used in developing their forecasting model). A presentation of the accuracy of such forecasts together with a discussion
of the major findings is provided in the next section.
-----
There are 4 columns:
id_series: The id of the time series.
time_step: The time step on the time series.
covariate_0: Covariate values of the time series, tied to the 'id_series'. Not interested in forecasting, but can help with the forecasting task.
value_0: The values of the time series, which will be used for the forecasting task.
Preprocessing:
1 - Melted the data, obtaining columns 'time_step' and 'value_0'.
2 - Dropped nan values.
The nan values correspond to time series that are shorter than the time series with maximum lenght, there are no nans in the middle of a time series.
3 - Dropped columns 'N', 'NF', 'Starting Year' and renamed column 'Series' to 'id_series' and 'Category' to 'covariate_0'.
These values can be recreated in preprocessing steps if needed. N was the total number of observations. NF was the required number of forecast values
to be forecasted for each time series, for the 'other' dataset it was always 8. Therefore, if one wants to evaluate their model to be compared with
other models from the original competition, the last 8 values of each time series are considered the test dataset.
4 - Casted 'time_step' to int, 'value_0' to float, and defined 'id_series' and 'covariate_0' as 'category'.