Statistical vs Machine Learning vs Deep Learning Modeling for Time Series Forecasting
Over recent decades, Machine Learning (ML) and, its subdomain, Deep Learning (DL) based algorithms have achieved remarkable success in various areas, such as image processing, natural language understanding, and speech recognition. However, ML algorithms haven’t quite had the same widely known and unquestionable superiority when it comes to forecasting applications in the time series domain. While ML algorithms have to overcome the challenges in modeling the noni.i.d. nature of data inherent in the time series domain, statistical models excel in this setting and provide explicit means to model time series structural elements, such as trend and seasonality.
In this article, we will do a deep dive into literature and recent time series competitions to do a multifaceted comparison between Statistical, Machine Learning, and Deep Learning methods for time series forecasting.
Note: This is a longform article. If you need a TL;DR, feel free to skip to the last section named Takeaways.
What’s the difference between Statistical and Machine Learning forecasting models?
Before continuing, we should define what “statistical” and “machine learning” models are in the context of forecasting. This distinction is not always trivial because a majority of machine learning algorithms are maximum likelihood estimators meaning that they are statistical in nature. Similarly, traditional statistical models, such as autoregressive models, can be specified as linear regression on lags of the series, and linear regression is mostly considered a machine learning algorithm. So to distinguish between the two, we will use the following definition proposed by various researchers ^{1}^{2}.
A statistical model prescribes the datagenerating process, for example, an autoregressive (AR) model only looks at the relationship between lags of a series and its future values. Whereas a machine learning model learns this relationship thus being more generic, for example, a neural network creates its own features using nonlinear combinations of its inputs. ML methods, in contrast to statistical ones, are also more datahungry. While the completely nonlinear and assumptionfree estimation of ML forecasts (e.g., in terms of trend and seasonality) let the data speak for themselves, it also demands a large volume of data for effectively capturing the dynamics and interconnections of the data. Moreover, many statistical methods have developed excellent heuristics that allow even novices to create reasonable models with a few function calls, determining a good approach for ML modeling is more experimental^{3}.
Comparisons based on the forecasting literature
“Statistical and Machine Learning forecasting methods: Concerns and ways forward” by Makridakis et al.
One of the earliest and most popular empirical studies that compared Statistical and ML methods was done by Makridakis et al ^{4}. In their 2018 paper, they used a set of 1045 monthly (univariate) time series sampled from the dataset used in the M3 competition to evaluate performances of 8 traditional statistical (Seasonal Random Walk, SES, Holt & Damped Exponential Smoothing, Comb: average of SES, Holt, and Damped, Theta, ARIMA, and ETS) and 10 ML methods (MLP, BNN, RBF, GRNN, KNN, CART, SVR, GP, RNN, and LSTM) on multistep ahead forecasting task.
To generate multihorizon forecasts from ML models, they considered three approaches: iterative, multinode output, multinetwork forecasting, and for preprocessing the input, they considered detrending, deseasonalizing, boxcox power transformation, a combination of the three, as well as directly using the original data. They also considered using mean, median, or mode over the outputs of multiple models trained with different hyperparameter initializations and reported the results from the most appropriate alternatives. The following figure shows the overall sMAPE (symmetric Mean Absolute Percentage Error) values averaged over 18 onestepahead forecasts for all the models they considered. Similar conclusions were drawn for the case of multistepahead forecasts.
Summary
As seen above, the six most accurate methods were statistical. Even the Naïve 2 (seasonal random walk) baseline was shown to be more accurate than half of the ML methods. Through additional experiments, they also showed that the ML models, specially LSTMs, overfitted the data during training but had a worse performance during the testing phase.
Additional Notes
 ML methods are computationally more demanding, and methods like deseasonalizing the data, utilizing simpler models, and using principled approaches to turning hyperparameters can help in reducing this cost.
 Using a sliding window approach gives as much information as possible about future values and also reduces the uncertainty in forecasting.
“Statistical, machine learning and deep learning forecasting methods: Comparisons and ways forward” by Makridakis et al.
In 2022, the authors of the above paper followed up with another study and added more modern deep learning networks in this comparison ^{5}. For statistical models, they used the top2 performing algorithms from the earlier study: ETS and ARIMA, and an ensemble of the two: EnsembleS. Similarly, they used top2 performing ML algorithms: MLP and BNN. Next, they used four modern deep learning algorithms: DeepAR, Feedforward, Transformer, WaveNet, and an ensemble of the four: EnsembleDL. The following table shows the sMAPE and MASE accuracy metrics for all of these methods tested on the same 1045 M3 series data using the respective optimal hyperparameters found during experimentation. The computational time (CT), i.e., the time (measured in minutes) required by the methods for training and predicting, as well as the relative computational complexity (RCC) of the methods, i.e., the number of floating point operations required by the methods for inference when compared to the Naive 2, is also reported.
Summary of results at different forecasting horizons
Their experiment shows that ETS and ARIMA are still more accurate on average than the ML methods and many of the individual DL methods across all forecasting horizons (short: 16, medium: 712, long: 1318). Both ensembles are more accurate than any of the individual models. EnsembleDL performed 25% better than EnsembleS overall, but EnsembleS performed best on MASE on shortterm forecasts. ML methods also performed better than DL methods and their ensemble on shortterm forecast periods. Longterm forecasts tend to be less accurate than shortterm ones for all methods.
Through a separate set of methods, the authors show that when models are optimized based on their onestepahead forecasting accuracy, their forecasts will be relatively more accurate for shortterm forecasts compared to models that are optimized based on their multistepahead forecasting accuracy, and vice versa. Typically, statistical forecasting methods are optimized in terms of parameters so that the onestepahead forecast error is minimized, for example, ETS and ARIMA are parameterized with the objective to minimize the insample mean squared error of their forecasts. Similarly, MLP and BNN are parameterized with the objective to produce accurate multistepahead forecasts in a recursive fashion.
Extending to all 3,003 time series of the M3 dataset
Further expanding their work, the authors considered all of the 3,003 time series of the M3 dataset for the next experiment. The following table shows the resulting sMAPE accuracy both per data frequency and total. The table also shows the reported results from a variety of forecasting methods originally submitted in the M3 competition.
EnsembleDL continues to be the most accurate forecasting approach overall. DL ensemble was outperformed by a small margin by the LGT model (discussed later) on yearly data, and DeepAR performed better on the data labeled as “Other” (no frequency information available). The EnsembleDL improvement over EnsembleS decreases as the data frequency is increased. EnsembleDL performance is very similar to the NBEATS method with NBEATS performing better than EnsembleDL for the “Other” series.
Balancing the comparison among ensembles
Note that in the above discussion, EnsembleS only used 2 models while EnsembleDL had 4. To make a fair comparison, the authors also evaluated the DL models in pairs and found that all of the pairwise DL models performed better than EnsembleS from 0.46.1%.
Interestingly, ensembles that involve DeepAR, i.e., the most accurate individual DL model, consistently outperform the rest, while ensembles that involve WaveNet, i.e., the least accurate individual DL model, sometimes deteriorate forecasting performance. Also, the accuracy of EnsembleDL is comparable to that of the best pairwise ensemble.
Results at different forecasting horizons using all of the M3 data
When examined on various forecasting horizons, with the exception of DeepAR, the individual DL models are less accurate than the best performing statistical one for short and medium horizons, with the differences becoming smaller however as the forecasting horizon increases. For example, Theta is more accurate than the FeedForward, Transformer, and WaveNet models for short and mediumterm forecasts, and it it also better than FeedForward and Transformer models for longterm forecasts. Both EnsembleS and EnsembleDL provided more accurate results than those of their constituent methods. However, EnsembleDL is at least as accurate or superior to EnsembleS when the complete M3 data set is considered, across all horizons.
Comparison using the MCB method
When ranked using MCB (Multiple comparisons with the best)^{6} method with 95% confidence intervals, we find that EnsembleDL is significantly more accurate than the rest of the forecasting methods considered in this study, including the DL models it consists of. On a second level, EnsembleS provides significantly more accurate forecasts than the contributing ETS and ARIMA models. Overall, the power of ensembling is once again confirmed. Finally, despite the dominance of EnsembleDL, only DeepAR, among all individual DL methods, produces significantly more accurate forecasts than those of the topperforming statistical methods.
Summary
 In this study, DL models produced more accurate forecasts (up to 6% improvements) than statistical and ML ones, especially for longer forecasting horizons.
 Combinations of DL models perform better than most standard models, both statistical and ML, especially in the case of monthly series and longterm forecasts. However, these improvements come at the cost of significantly increased computational time.
Additional Notes
 The authors recommend the utilization of the series index for data sets that contain a limited number of series and no additional seriesspecific information. By using the index as an additional feature, models are better poised to identify seriesspecific behaviors.
 In 2019, the authors of the NBEATS paper (Oreshkin et al.^{7}) did a similar experiment that showed ensembles of multiple DL models achieved more accurate forecasts than standard statistical methods on the M3 competition data. However, the individual DL models used for constructing the ensembles were relatively inaccurate.
“Statistical vs Deep Learning forecasting methods” by Statsforecast
In the paper above, the authors concluded that “We find that combinations of DL models perform better than most standard models, both statistical and ML, especially for the case of monthly series and longterm forecasts.” However, a recent experiment conducted by the authors of the Statsforecast library challenged this deduction by using a more powerful statistical ensemble^{8}. They combined four statistical models: AutoARIMA, ETS, CES, and DynamicOptimizedTheta (same as their 6th place winning entry in the M4 competition) and shared sMAPE results on the same M3 data.
As shown above, their statistical ensemble is consistently better than the Transformer, Wavenet, and FeedForward models. The following table summarizes their sMAPE results along with associated costs.
Their statistical ensemble outperforms most individual deeplearning models with average SMAPE results similar to DeepAR but with computational savings of 99%.
Summary
The authors conclude that “deeplearning ensembles outperform statistical ensembles just by 0.36 points in SMAPE. However, the DL ensemble takes more than 14 days to run and costs around USD 11,000, while the statistical ensemble takes 6 minutes to run and costs $0.5c.”.
Additional Notes
In another recent experiment, the authors of Statsforecast compared their statistical ensemble against Amazon Forecast ^{9}. Amazon Forecast is a timeseries forecasting service on AWS that includes algorithms ranging from commonly known statistical models like ARIMA to complex algorithms like CNNQR, DeepAR+, etc. They showed that Amazon Forecast’s AutoML was 60% less accurate and 669 times more expensive than running their statistical alternative.
Are there any unique time series characteristics for which some methods perform better than others?
Are there certain methods that can be expected to work reasonably well with data from certain data domains?
We can define a time series in terms of its characteristics such as forecastability (aka spectral entropy), the strength of trend and seasonality, etc. MonteroManso et al ^{10} utilized 42 such features in their runnerup model in the M4 competition. In Makridakis et al.^{5} authors used 5 out 6 features recommended by Kang et al ^{6} for the M3 dataset. The features were: Spectral Entropy, Strength of Trend, Strength of Seasonality, Linearity, and Stability. The sMAPE results for the statistical and deep ensembles were then correlated with these features using a Multiple Linear Regression (MLR).
We can see that the EnsembleDL is generally more effective in handling noisy and trended series, in contrast to EnsembleS which provides more accurate forecasts for seasonal data, as well as for series that are stable or linear. Similarly, other works show that some methods can be expected to perform better when the time series exhibits certain features like intermittency, lumpiness, or smoothness^{2}. Also, sparsity in data might make ML models less effective^{3}.
Additionally, research work done by Spiliotis et al.^{11} shows that certain features are dominant in time series data from the domains in the M4 dataset. This information can provide relevant criteria for model selection. For example, since the following table shows that the financial data tend to be noisy, untrended, skewed, and not seasonal, the Theta method could potentially be utilized to boost the forecasting performance. Accordingly, ETS and ARIMA could be powerful solutions for extrapolating demographic data that are characterized by strong seasonality, trend, and linearity. Additionally, a study of M5 contest submissions shows that the ML methods have entered the mainstream of forecasting applications, at least in the area of retail sales forecasting^{12}.
Do some models tend to work better with highdimensional data?
Why do statistical models work better than ML models for small datasets?
Is it better to train a model over multiple time series rather than training it per series?
The author of “Machine learning in M4: What makes a good unstructured model?” paper ^{3} puts forward an excellent theory in order to explain why ML models tend to work better with highdimensional data. Kang et al.^{13} showed in their work that certain combinations of time series features may not be possible. Due to their structured nature, statistical models define the class of manifold before the data are observed, which allows the manifold to be defined by a smaller amount of data. However, this comes with a drawback that if the data do not match that class of manifold, the model can never be accurately fitted to it. On the other hand, ML models learn the manifold by observing the data. This creates a more flexible model that can fit more types of relationships but needs more data to define the space.
Another important observation is that CrossLearning i.e. a single model learning across many related series simultaneously, as opposed to learning in a seriesbyseries fashion, can enhance forecasting performance. Modeling many series with similar properties is likely to generate a more densely populated, and thus better defined, manifold that is preferred over search spaces with data sparsity. Data normalization used by ML models (as opposed to decompositionbased preprocessing methods used by statistical methods) and rollingorigin crossvalidation steps also help in densely populating the same manifold space.
Comparisons based on forecasting competitions
Learnings from the M3 competition
The M3 forecasting competition was held in 2002 and the winner used the Theta method. V. Assimakopoulos and K. Nikolopoulos proposed this method as a decompositional approach to forecasting ^{14}. Rob Hyndman et al. later simplified the Theta method and showed that we can use ETS with a drift term to get equivalent results to the original Theta method, which is what is adapted into most of the implementations of the method that exist today ^{15}.
In “Extending to all 3,003 time series of M3 dataset” section, we also saw a few other methods that have since outperformed the Theta method for M3 data. Specifically, the LGT model that was built on the theme of using a statistical algorithm (ETS) for preprocessing followed by an LSTMbased neural network ^{16} performed the best on yearly forecast horizon (as measured by sMAPE). The study we discussed also found out that statistical models are better suited for shortterm forecasts, while DL ones are better at capturing the longterm characteristics of the data. So it could be beneficial to combine statistical or ML models with DL ones depending on the time horizon of forecasting. LGT model was built on this theme using a statistical algorithm (ETS) for preprocessing followed by an LSTMbased neural network ^{16}.
Additional Notes
The authors of the LGT paper suggest using categorical variables, like error type, trend type (such as additive, multiplicative), etc. as additional information for improving forecasting accuracy.
Learnings from the M4 competition
The author of the LGT model also authored the winning method of the M4 competition in a similar fashion. The contestwinning model was a truly hybrid forecasting approach that utilized both statistical and ML elements, using crosslearning. This approach used exponential smoothing mixed with a dilated LSTM network^{17}. The ES formulas enable the method to capture the local components (like perseries seasonality), while LSTM allows it to learn nonlinear trends (like NN parameters) and crosslearning. To account for seasonality, the author advocate for incorporating categorical seasonality components (onehot vector of size 6 appended to time series derived features), and smoothing coefficients into model fitting to allow deseasonalizing of data in the absence of any calendar features like the day of the week or the month number.
Additionally, the secondbest M4 method was also based on a crosslearning approach, utilizing an ML algorithm (XGBoost) for selecting the most appropriate weights for combining various statistical methods (Theta, ARIMA, TBATS, etc.) ^{10}.
Learnings from the M5 competition
Barker’s study ^{3} pointed out how learning to forecast using multiple time series simultaneously leads to narrower and more densely populated manifolds when the series have a commonality in their origin. The dataset of the M5 competition consisted of more than 30,000 series of daily sales at Walmart. So theoretically we would expect ML models trained in a crosslearning fashion to perform well on this dataset without having to specify additional features. Also, the statistical models that do assume interdependence between the series should perform well. It is worth noting that 48.4% of participating teams could beat the Naïve benchmark, 35.8% could beat the Seasonal Naïve, and only 7.5% of teams could beat the exponential smoothingbased benchmark.
LightGBM, a decision treebased ML approach, was used by almost all of the top 50 M5 competitors ^{12} including the winner, second, fourth, and fifthpositioned teams. The winning submission used an equally weighted combination of various LightGBM models trained on data pooled per store, storecategory, and storedepartment. Runnerup submission used the LightGBM model that was externally adjusted through multipliers according to the forecasts product by an NBEATS model for the top five aggregation levels of the dataset. The LightGBM models were trained using only some basic features of calendar effects and prices (past unit sales were not considered), and the NBEATS model was based solely on historical unit sales.
Conclusion
The NoFreeLunch theorem, proposed for supervised machine learning, tells us that there is never likely to be a single method that fits all situations. Similarly, there is no one time series forecasting method that will always perform best. But the literature suggests a lot of useful learnings that can help us in making more informed decisions when it comes to modeling for time series forecasting. As there are “horses for courses”, there must also be forecasting methods that are more tailored to some types of data and some aggregation levels^{13}. The following section lists all of the important takeaways from this article.
Takeaways
 ML methods need more data for better forecasting especially when the series being predicted is nonstationary, displaying seasonality and trend.
 For many years, ML methods have been outperformed by simple, yet robust statistical approaches specifically for domains that involve shorter, nonstationary data, such as business forecasting.
 DL methods can effectively balance learning across multiple forecasting horizons, sacrificing part of their shortterm accuracy to ensure adequate performance in the long term.
 Statistical models tend to do well on shortterm forecasts, while DL ones are better at capturing the longterm characteristics of the data. So it could be beneficial to combine statistical or ML models with DL ones depending on the time horizon of forecasting.
 Ensemble methods outperform most of the individual statistical and ML models.
 Ensembles of some relatively simple statistical methods like ARIMA, ETS, and Theta, often provide similarly accurate or even more accurate shortterm forecasts than the individual DL models and even their ensembles (on rare occasions), but inferior results when medium or longterm forecasts are considered.
 DL ensembles will almost always give better results than Stat ensembles but at a much higher cost and not necessarily a big margin.
 Although the ensembles of multiple DL models lead to more accurate results, depending on the particular characteristics of the series, the additional cost that has to be paid for using a DL model in order to improve forecasting accuracy to a small extent is extensive.
 Some studies suggest that DL methods can lead to greater accuracy improvements, compared to their statistical counterparts, when tasked with forecasting yearly or quarterly series.
 DL ensembles are generally more effective in handling noisy and trended series, in contrast to statistical ensembles that provide more accurate forecasts for seasonal data, as well as for series that are stable or linear. Although DL models are more robust to randomness, seasonality is more effectively modeled by statistical methods.
References

Barker, Jocelyn. (2019). Machine learning in M4: What makes a good unstructured model?. International Journal of Forecasting. 36. 10.1016/j.ijforecast.2019.06.001. ↩︎

Spiliotis, Evangelos & Makridakis, Spyros & Semenoglou, ArtemiosAnargyros & Assimakopoulos, Vassilis. (2022). Comparison of statistical and machine learning methods for daily SKU demand forecasting. Operational Research. 22. 10.1007/s12351020006052. ↩︎ ↩︎

Barker, Jocelyn. (2019). Machine learning in M4: What makes a good unstructured model?. International Journal of Forecasting. 36. 10.1016/j.ijforecast.2019.06.001. ↩︎ ↩︎ ↩︎ ↩︎

Makridakis, Spyros & Spiliotis, Evangelos & Assimakopoulos, Vassilis. (2018). Statistical and Machine Learning forecasting methods: Concerns and ways forward. PLoS ONE. 13. 10.1371/journal.pone.0194889. ↩︎

Makridakis, Spyros & Spiliotis, Evangelos & Assimakopoulos, Vassilis & Semenoglou, ArtemiosAnargyros & Mulder, Gary & Nikolopoulos, Konstantinos. (2022). Statistical, machine learning and deep learning forecasting methods: Comparisons and ways forward. Journal of the Operational Research Society. 120. 10.1080/01605682.2022.2118629. ↩︎ ↩︎

Koning, Alex & Franses, Philip & Hibon, Michele & Stekler, H.O.. (2005). The M3 competition: Statistical tests of the results. International Journal of Forecasting. 21. 397409. 10.1016/j.ijforecast.2004.10.003. ↩︎ ↩︎

Oreshkin, Boris & Carpo, Dmitri & Chapados, Nicolas & Bengio, Yoshua. (2019). NBEATS: Neural basis expansion analysis for interpretable time series forecasting. ↩︎

https://github.com/Nixtla/statsforecast/tree/main/experiments/m3 ↩︎

https://github.com/Nixtla/statsforecast/tree/main/experiments/amazon_forecast ↩︎

MonteroManso, Pablo & Athanasopoulos, George & Hyndman, Rob & Talagala, Thiyanga. (2019). FFORMA: Featurebased forecast model averaging. International Journal of Forecasting. 36. 10.1016/j.ijforecast.2019.02.011. ↩︎ ↩︎

Spiliotis, Evangelos & Kouloumos, Andreas & Assimakopoulos, Vassilis & Makridakis, Spyros. (2018). Are forecasting competitions data representative of the reality?. International Journal of Forecasting. 10.1016/j.ijforecast.2018.12.007. ↩︎

Makridakis, Spyros & Spiliotis, Evangelos & Assimakopoulos, Vassilis. (2020). The M5 Accuracy competition: Results, findings and conclusions. ↩︎ ↩︎

Kang, Yanfei & Hyndman, Rob & SmithMiles, Kate. (2017). Visualising forecasting algorithm performance using time series instance spaces. International Journal of Forecasting. 33. 345358. 10.1016/j.ijforecast.2016.09.004. ↩︎ ↩︎

Assimakopoulos, Vassilis & Nikolopoulos, K.. (2000). The theta model: A decomposition approach to forecasting. International Journal of Forecasting. 16. 521530. 10.1016/S01692070(00)000662. ↩︎

Hyndman, Rob & Billah, Baki. (2003). Unmasking the Theta method. International Journal of Forecasting. 19. 287290. 10.1016/S01692070(01)001431. ↩︎

Smyl, Slawek & Kuber, Karthik. (2016). Data Preprocessing and Augmentation for Multiple Short Time Series Forecasting with Recurrent Neural Networks. ↩︎ ↩︎

Smyl, Slawek. (2019). A hybrid method of exponential smoothing and recurrent neural networks for time series forecasting. International Journal of Forecasting. 36. 10.1016/j.ijforecast.2019.03.017. ↩︎
Related Content
Did you find this article helpful?