[go: up one dir, main page]

IDEAS home Printed from https://ideas.repec.org/p/zbw/iwqwdp/022018.html
   My bibliography  Save this paper

Machine learning for time series forecasting - a simulation study

Author

Listed:
  • Fischer, Thomas
  • Krauss, Christopher
  • Treichel, Alex
Abstract
We present a comprehensive simulation study to assess and compare the performance of popular machine learning algorithms for time series prediction tasks. Specifically, we consider the following algorithms: multilayer perceptron (MLP), logistic regression, naïve Bayes, k-nearest neighbors, decision trees, random forests, and gradient-boosting trees. These models are applied to time series from eight data generating processes (DGPs) - reflecting different linear and nonlinear dependencies (base case). Additional complexity is introduced by adding discontinuities and varying degrees of noise. Our findings reveal that advanced machine learning models are capable of approximating the optimal forecast very closely in the base case, with nonlinear models in the lead across all DGPs - particularly the MLP. By contrast, logistic regression is remarkably robust in the presence of noise, thus yielding the most favorable accuracy metrics on raw data, prior to preprocessing. When introducing adequate preprocessing techniques, such as first differencing and local outlier factor, the picture is reversed, and the MLP as well as other nonlinear techniques once again become the modeling techniques of choice.

Suggested Citation

  • Fischer, Thomas & Krauss, Christopher & Treichel, Alex, 2018. "Machine learning for time series forecasting - a simulation study," FAU Discussion Papers in Economics 02/2018, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
  • Handle: RePEc:zbw:iwqwdp:022018
    as

    Download full text from publisher

    File URL: https://www.econstor.eu/bitstream/10419/173659/1/1011563126.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. K. S. Chan & H. Tong, 1986. "On Estimating Thresholds In Autoregressive Models," Journal of Time Series Analysis, Wiley Blackwell, vol. 7(3), pages 179-190, May.
    2. Terasvirta, T & Anderson, H M, 1992. "Characterizing Nonlinearities in Business Cycles Using Smooth Transition Autoregressive Models," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 7(S), pages 119-136, Suppl. De.
    3. Gianluca Bontempi & Souhaib Ben Taieb & Yann-Aël Le Borgne, 2013. "Machine learning strategies for time series forecasting," ULB Institutional Repository 2013/167761, ULB -- Universite Libre de Bruxelles.
    4. Nesreen Ahmed & Amir Atiya & Neamat El Gayar & Hisham El-Shishiny, 2010. "An Empirical Comparison of Machine Learning Models for Time Series Forecasting," Econometric Reviews, Taylor & Francis Journals, vol. 29(5-6), pages 594-621.
    5. Terasvirta, Timo & Tjostheim, Dag & Granger, Clive W. J., 2010. "Modelling Nonlinear Economic Time Series," OUP Catalogue, Oxford University Press, number 9780199587155.
    6. Jondeau, Eric & Lahaye, Jérôme & Rockinger, Michael, 2015. "Estimating the price impact of trades in a high-frequency microstructure model with jumps," Journal of Banking & Finance, Elsevier, vol. 61(S2), pages 205-224.
    7. Bollerslev, Tim, 1986. "Generalized autoregressive conditional heteroskedasticity," Journal of Econometrics, Elsevier, vol. 31(3), pages 307-327, April.
    8. Callen, Jeffrey L. & Kwan, Clarence C. Y. & Yip, Patrick C. Y. & Yuan, Yufei, 1996. "Neural network forecasting of quarterly accounting earnings," International Journal of Forecasting, Elsevier, vol. 12(4), pages 475-482, December.
    9. Bergmeir, Christoph & Costantini, Mauro & Benítez, José M., 2014. "On the usefulness of cross-validation for directional forecast evaluation," Computational Statistics & Data Analysis, Elsevier, vol. 76(C), pages 132-143.
    10. Friedman, Jerome H., 2002. "Stochastic gradient boosting," Computational Statistics & Data Analysis, Elsevier, vol. 38(4), pages 367-378, February.
    11. Tim Hill & Marcus O'Connor & William Remus, 1996. "Neural Network Models for Time Series Forecasts," Management Science, INFORMS, vol. 42(7), pages 1082-1092, July.
    12. Taylor, Stephen J., 1987. "Forecasting the volatility of currency exchange rates," International Journal of Forecasting, Elsevier, vol. 3(1), pages 159-170.
    13. Zhang, G. Peter & Qi, Min, 2005. "Neural network forecasting for seasonal and trend time series," European Journal of Operational Research, Elsevier, vol. 160(2), pages 501-514, January.
    14. Engle, Robert F, 1982. "Autoregressive Conditional Heteroscedasticity with Estimates of the Variance of United Kingdom Inflation," Econometrica, Econometric Society, vol. 50(4), pages 987-1007, July.
    15. De Gooijer, Jan G. & Hyndman, Rob J., 2006. "25 years of time series forecasting," International Journal of Forecasting, Elsevier, vol. 22(3), pages 443-473.
    16. Cox, John C. & Ross, Stephen A., 1976. "The valuation of options for alternative stochastic processes," Journal of Financial Economics, Elsevier, vol. 3(1-2), pages 145-166.
    17. Zhang, Guoqiang & Eddy Patuwo, B. & Y. Hu, Michael, 1998. "Forecasting with artificial neural networks:: The state of the art," International Journal of Forecasting, Elsevier, vol. 14(1), pages 35-62, March.
    18. Christoph Bergmeir & Rob J Hyndman & Bonsoo Koo, 2015. "A Note on the Validity of Cross-Validation for Evaluating Time Series Prediction," Monash Econometrics and Business Statistics Working Papers 10/15, Monash University, Department of Econometrics and Business Statistics.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Gert Bijnens & Shyngys Karimov & Jozef Konings, 2023. "Does Automatic Wage Indexation Destroy Jobs? A Machine Learning Approach," De Economist, Springer, vol. 171(1), pages 85-117, March.
    2. Schnaubelt, Matthias, 2019. "A comparison of machine learning model validation schemes for non-stationary time series data," FAU Discussion Papers in Economics 11/2019, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    3. Endres, Sylvia & Stübinger, Johannes, 2018. "A flexible regime switching model with pairs trading application to the S&P 500 high-frequency stock returns," FAU Discussion Papers in Economics 07/2018, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    4. Bou-Hamad, Imad & Jamali, Ibrahim, 2020. "Forecasting financial time-series using data mining models: A simulation study," Research in International Business and Finance, Elsevier, vol. 51(C).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Petropoulos, Fotios & Apiletti, Daniele & Assimakopoulos, Vassilios & Babai, Mohamed Zied & Barrow, Devon K. & Ben Taieb, Souhaib & Bergmeir, Christoph & Bessa, Ricardo J. & Bijak, Jakub & Boylan, Joh, 2022. "Forecasting: theory and practice," International Journal of Forecasting, Elsevier, vol. 38(3), pages 705-871.
      • Fotios Petropoulos & Daniele Apiletti & Vassilios Assimakopoulos & Mohamed Zied Babai & Devon K. Barrow & Souhaib Ben Taieb & Christoph Bergmeir & Ricardo J. Bessa & Jakub Bijak & John E. Boylan & Jet, 2020. "Forecasting: theory and practice," Papers 2012.03854, arXiv.org, revised Jan 2022.
    2. Franses,Philip Hans & Dijk,Dick van & Opschoor,Anne, 2014. "Time Series Models for Business and Economic Forecasting," Cambridge Books, Cambridge University Press, number 9780521520911, September.
    3. Franses,Philip Hans & Dijk,Dick van, 2000. "Non-Linear Time Series Models in Empirical Finance," Cambridge Books, Cambridge University Press, number 9780521779654.
    4. Andrawis, Robert R. & Atiya, Amir F. & El-Shishiny, Hisham, 2011. "Forecast combinations of computational intelligence and linear models for the NN5 time series forecasting competition," International Journal of Forecasting, Elsevier, vol. 27(3), pages 672-688, July.
    5. CHEN, Cathy W.S. & WENG, Monica M.C. & WATANABE, Toshiaki & 渡部, 渡部, 2015. "Employing Bayesian Forecasting of Value-at-Risk to Determine an Appropriate Model for Risk Management," Discussion paper series HIAS-E-16, Hitotsubashi Institute for Advanced Study, Hitotsubashi University.
    6. Weron, Rafał, 2014. "Electricity price forecasting: A review of the state-of-the-art with a look into the future," International Journal of Forecasting, Elsevier, vol. 30(4), pages 1030-1081.
    7. LeBaron, Blake, 2003. "Non-Linear Time Series Models in Empirical Finance,: Philip Hans Franses and Dick van Dijk, Cambridge University Press, Cambridge, 2000, 296 pp., Paperback, ISBN 0-521-77965-0, $33, [UK pound]22.95, [," International Journal of Forecasting, Elsevier, vol. 19(4), pages 751-752.
    8. Clements, Michael P & Smith, Jeremy, 1999. "A Monte Carlo Study of the Forecasting Performance of Empirical SETAR Models," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 14(2), pages 123-141, March-Apr.
    9. Timo Teräsvirta, 2017. "Nonlinear models in macroeconometrics," CREATES Research Papers 2017-32, Department of Economics and Business Economics, Aarhus University.
    10. De Gooijer, Jan G. & Hyndman, Rob J., 2006. "25 years of time series forecasting," International Journal of Forecasting, Elsevier, vol. 22(3), pages 443-473.
    11. Bildirici, Melike & Ersin, Özgür, 2012. "Nonlinear volatility models in economics: smooth transition and neural network augmented GARCH, APGARCH, FIGARCH and FIAPGARCH models," MPRA Paper 40330, University Library of Munich, Germany, revised May 2012.
    12. Rafal Weron, 2006. "Modeling and Forecasting Electricity Loads and Prices: A Statistical Approach," HSC Books, Hugo Steinhaus Center, Wroclaw University of Science and Technology, number hsbook0601, December.
    13. Ioannis Papageorgiou & Ioannis Kontoyiannis, 2023. "The Bayesian Context Trees State Space Model for time series modelling and forecasting," Papers 2308.00913, arXiv.org, revised Oct 2023.
    14. Bel, K. & Paap, R., 2013. "Modeling the impact of forecast-based regime switches on macroeconomic time series," Econometric Institute Research Papers EI 2013-25, Erasmus University Rotterdam, Erasmus School of Economics (ESE), Econometric Institute.
    15. Mohamed CHIKHI & Claude DIEBOLT, 2022. "Testing the weak form efficiency of the French ETF market with the LSTAR-ANLSTGARCH approach using a semiparametric estimation," Eastern Journal of European Studies, Centre for European Studies, Alexandru Ioan Cuza University, vol. 13, pages 228-253, June.
    16. McMillan, David G. & Speight, Alan E. H., 2001. "Non-ferrous metals price volatility: a component analysis," Resources Policy, Elsevier, vol. 27(3), pages 199-207, September.
    17. Gorgi, P. & Koopman, S.J., 2023. "Beta observation-driven models with exogenous regressors: A joint analysis of realized correlation and leverage effects," Journal of Econometrics, Elsevier, vol. 237(2).
    18. Alistair Mees & Berndt Pilgram, 2000. "Non-Linear Markov Modelling Using Canonical Variate Analysis: Forecasting Exchange Rate Volatility," Econometric Society World Congress 2000 Contributed Papers 1162, Econometric Society.
    19. Ghiassi, M. & Saidane, H. & Zimbra, D.K., 2005. "A dynamic artificial neural network model for forecasting time series events," International Journal of Forecasting, Elsevier, vol. 21(2), pages 341-362.
    20. Kaehler, Jürgen, 1991. "Modelling and forecasting exchange-rate volatility with ARCH-type models," ZEW Discussion Papers 91-02, ZEW - Leibniz Centre for European Economic Research.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:zbw:iwqwdp:022018. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: ZBW - Leibniz Information Centre for Economics (email available below). General contact details of provider: https://edirc.repec.org/data/vierlde.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.