IDEAS home Printed from https://ideas.repec.org/a/zna/indecs/v18y2020i4p471-489.html
   My bibliography  Save this article

Forecasting stock market indices using machine learning algorithms

Author

Listed:
  • Berislav Žmuk

    (University of Zagreb - Faculty of Economics and Business, Zagreb, Croatia)

  • Hrvoje Jošiæ

    (University of Zagreb - Faculty of Economics and Business, Zagreb, Croatia)

Abstract

In recent years machine learning algorithms have become a very popular tool for analysing financial data and forecasting stock prices. The goal of this article is to forecast five major stock market indexes (DAX, Dow Jones, NASDAQ, Nikkei 225 and S&P 500) using machine learning algorithms (Linear regression, Gaussian Processes, SMOreg and neural network Multilayer Perceptron) on historical data covering the period February 1, 2010, to January 31, 2020. The forecasts were made by using historical data in different base period lengths and forecasting horizons. The precision of machine learning algorithms was evaluated with the help of error metrics. The results of the analysis have shown that machine learning algorithms achieved highly accurate forecasting performance. The overall precision of all algorithms was better for shorter base period lengths and forecast horizons. The results obtained from this analysis could help investors in determining their optimal investment strategy. Stock price prediction remains, however, one of the most complex issues in the field of finance.

Suggested Citation

  • Berislav Žmuk & Hrvoje Jošiæ, 2020. "Forecasting stock market indices using machine learning algorithms," Interdisciplinary Description of Complex Systems - scientific journal, Croatian Interdisciplinary Society Provider Homepage: http://indecs.eu, vol. 18(4), pages 471-489.
  • Handle: RePEc:zna:indecs:v:18:y:2020:i:4:p:471-489
    as

    Download full text from publisher

    File URL: http://indecs.eu/2020/indecs2020-pp471-489.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Arnerić Josip & Poklepović Tea & Teai Juin Wen, 2018. "Neural Network Approach in Forecasting Realized Variance Using High-Frequency Data," Business Systems Research, Sciendo, vol. 9(2), pages 18-34, July.
    2. Lukas Ryll & Sebastian Seidens, 2019. "Evaluating the Performance of Machine Learning Algorithms in Financial Market Forecasting: A Comprehensive Survey," Papers 1906.07786, arXiv.org, revised Jul 2019.
    3. Gary Grudnitski & Larry Osburn, 1993. "Forecasting S&P and gold futures prices: An application of neural networks," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 13(6), pages 631-643, September.
    Full references (including those not matched with items on IDEAS)

    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. Shuofen Hsu & Chaohsin Lin & Yaling Yang, 2008. "Integrating Neural Networks for Risk‐Adjustment Models," Journal of Risk & Insurance, The American Risk and Insurance Association, vol. 75(3), pages 617-642, September.
    2. Kim, Jong-Min & Kim, Dong H. & Jung, Hojin, 2021. "Applications of machine learning for corporate bond yield spread forecasting," The North American Journal of Economics and Finance, Elsevier, vol. 58(C).
    3. Longbing Cao, 2021. "AI in Finance: Challenges, Techniques and Opportunities," Papers 2107.09051, arXiv.org.
    4. Martin Magris, 2019. "A Vine-copula extension for the HAR model," Papers 1907.08522, arXiv.org.
    5. Zhang, Ningning & Lin, Aijing & Shang, Pengjian, 2017. "Multidimensional k-nearest neighbor model based on EEMD for financial time series forecasting," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 477(C), pages 161-173.
    6. Darrold Cordes & Shahram Latifi & Gregory M. Morrison, 2022. "Systematic literature review of the performance characteristics of Chebyshev polynomials in machine learning applications for economic forecasting in low-income communities in sub-Saharan Africa," SN Business & Economics, Springer, vol. 2(12), pages 1-33, December.
    7. Witold Orzeszko, 2021. "Nonlinear Causality between Crude Oil Prices and Exchange Rates: Evidence and Forecasting," Energies, MDPI, vol. 14(19), pages 1-16, September.
    8. Lonnie Hamm & B. Wade Brorsen, 2000. "Trading futures markets based on signals from a neural network," Applied Economics Letters, Taylor & Francis Journals, vol. 7(2), pages 137-140.
    9. Ferencek Aljaž & Kofjač Davorin & Škraba Andrej & Sašek Blaž & Borštnar Mirjana Kljajić, 2020. "Deep Learning Predictive Models for Terminal Call Rate Prediction during the Warranty Period," Business Systems Research, Sciendo, vol. 11(2), pages 36-50, October.
    10. Sevcan Uzun & Ahmet Sensoy & Duc Khuong Nguyen, 2023. "Jump forecasting in foreign exchange markets: A high‐frequency analysis," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(3), pages 578-624, April.
    11. Du, Pei & Wang, Jianzhou & Yang, Wendong & Niu, Tong, 2020. "Point and interval forecasting for metal prices based on variational mode decomposition and an optimized outlier-robust extreme learning machine," Resources Policy, Elsevier, vol. 69(C).
    12. Philip Ndikum, 2020. "Machine Learning Algorithms for Financial Asset Price Forecasting," Papers 2004.01504, arXiv.org.
    13. Lukas Ryll & Sebastian Seidens, 2019. "Evaluating the Performance of Machine Learning Algorithms in Financial Market Forecasting: A Comprehensive Survey," Papers 1906.07786, arXiv.org, revised Jul 2019.
    14. Georges, Christophre & Pereira, Javier, 2021. "Market stability with machine learning agents," Journal of Economic Dynamics and Control, Elsevier, vol. 122(C).
    15. Qifeng Qiao & Peter A. Beling, 2016. "Decision analytics and machine learning in economic and financial systems," Environment Systems and Decisions, Springer, vol. 36(2), pages 109-113, June.
    16. J. C. Garza Sepúlveda & F. Lopez-Irarragorri & S. E. Schaeffer, 2023. "Forecasting Forex Trend Indicators with Fuzzy Rough Sets," Computational Economics, Springer;Society for Computational Economics, vol. 62(1), pages 229-287, June.
    17. Sabyasachi Kar & Amaani Bashir & Mayank Jain, 2021. "New Approaches to Forecasting Growth and Inflation: Big Data and Machine Learning," IEG Working Papers 446, Institute of Economic Growth.
    18. Wu, Yih-Jiuan, 1998. "Exchange rate forecasting: an application of radial basis function neural networks," ISU General Staff Papers 1998010108000013540, Iowa State University, Department of Economics.
    19. Josip Arneriæ & Mario Matkoviæ, 2019. "Challenges of integrated variance estimation in emerging stock markets," Zbornik radova Ekonomskog fakulteta u Rijeci/Proceedings of Rijeka Faculty of Economics, University of Rijeka, Faculty of Economics and Business, vol. 37(2), pages 713-739.

    More about this item

    Keywords

    machine learning; neural networks; stock market indices prediction;
    All these keywords.

    JEL classification:

    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • G17 - Financial Economics - - General Financial Markets - - - Financial Forecasting and Simulation

    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:zna:indecs:v:18:y:2020:i:4:p:471-489. 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: Josip Stepanic (email available below). General contact details of provider: .

    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.