IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2004.01497.html

Deep learning for Stock Market Prediction

Author

Listed:
  • Mojtaba Nabipour
  • Pooyan Nayyeri
  • Hamed Jabani
  • Amir Mosavi

Abstract

Prediction of stock groups' values has always been attractive and challenging for shareholders. This paper concentrates on the future prediction of stock market groups. Four groups named diversified financials, petroleum, non-metallic minerals and basic metals from Tehran stock exchange are chosen for experimental evaluations. Data are collected for the groups based on ten years of historical records. The values predictions are created for 1, 2, 5, 10, 15, 20 and 30 days in advance. The machine learning algorithms utilized for prediction of future values of stock market groups. We employed Decision Tree, Bagging, Random Forest, Adaptive Boosting (Adaboost), Gradient Boosting and eXtreme Gradient Boosting (XGBoost), and Artificial neural network (ANN), Recurrent Neural Network (RNN) and Long short-term memory (LSTM). Ten technical indicators are selected as the inputs into each of the prediction models. Finally, the result of predictions is presented for each technique based on three metrics. Among all the algorithms used in this paper, LSTM shows more accurate results with the highest model fitting ability. Also, for tree-based models, there is often an intense competition between Adaboost, Gradient Boosting, and XGBoost.

Suggested Citation

  • Mojtaba Nabipour & Pooyan Nayyeri & Hamed Jabani & Amir Mosavi, 2020. "Deep learning for Stock Market Prediction," Papers 2004.01497, arXiv.org.
  • Handle: RePEc:arx:papers:2004.01497
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2004.01497
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Jiang, Minqi & Liu, Jiapeng & Zhang, Lu & Liu, Chunyu, 2020. "An improved Stacking framework for stock index prediction by leveraging tree-based ensemble models and deep learning algorithms," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 541(C).
    2. Basak, Suryoday & Kar, Saibal & Saha, Snehanshu & Khaidem, Luckyson & Dey, Sudeepa Roy, 2019. "Predicting the direction of stock market prices using tree-based classifiers," The North American Journal of Economics and Finance, Elsevier, vol. 47(C), pages 552-567.
    3. Hsieh, David A, 1991. "Chaos and Nonlinear Dynamics: Application to Financial Markets," Journal of Finance, American Finance Association, vol. 46(5), pages 1839-1877, December.
    4. Ali Aali-Bujari & Francisco Venegas-Martínez & Gilberto Pérez-Lechuga, 2017. "Impact of the stock market capitalization and thebanking spread in growth and development in LatinAmerican: A panel data estimation with System GMM," Contaduría y Administración, Accounting and Management, vol. 62(5), pages 3-4, Diciembre.
    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. Chen, Wei & Zhang, Haoyu & Jia, Lifen, 2022. "A novel two-stage method for well-diversified portfolio construction based on stock return prediction using machine learning," The North American Journal of Economics and Finance, Elsevier, vol. 63(C).
    2. Baoqiang Zhan & Shu Zhang & Helen S. Du & Xiaoguang Yang, 2022. "Exploring Statistical Arbitrage Opportunities Using Machine Learning Strategy," Computational Economics, Springer;Society for Computational Economics, vol. 60(3), pages 861-882, October.
    3. Kian-Ping Lim & Melvin J. Hinich & Venus Khim-Sen Liew, 2005. "Statistical Inadequacy of GARCH Models for Asian Stock Markets," Journal of Emerging Market Finance, Institute for Financial Management and Research, vol. 4(3), pages 263-279, December.
    4. Ahmad Kianrad & Mohadeseh Najafi Arani & Karim Hasani & Masoumeh Zargar & Eila Erfani & Amir Razmjou, 2024. "Investigating the impact of company announcements on stock prices: an application of machine learning on Australian lithium market," Mineral Economics, Springer;Raw Materials Group (RMG);Luleå University of Technology, vol. 37(1), pages 163-172, March.
    5. Henriques, Irene & Sadorsky, Perry, 2023. "Forecasting rare earth stock prices with machine learning," Resources Policy, Elsevier, vol. 86(PA).
    6. Dutta, Shantanu & Essaddam, Naceur & Kumar, Vinod & Saadi, Samir, 2017. "How does electronic trading affect efficiency of stock market and conditional volatility? Evidence from Toronto Stock Exchange," Research in International Business and Finance, Elsevier, vol. 39(PB), pages 867-877.
    7. A. Corcos & J-P Eckmann & A. Malaspinas & Y. Malevergne & D. Sornette, 2002. "Imitation and contrarian behaviour: hyperbolic bubbles, crashes and chaos," Quantitative Finance, Taylor & Francis Journals, vol. 2(4), pages 264-281.
    8. Scott C. Linn & Nicholas S. P. Tay, 2007. "Complexity and the Character of Stock Returns: Empirical Evidence and a Model of Asset Prices Based on Complex Investor Learning," Management Science, INFORMS, vol. 53(7), pages 1165-1180, July.
    9. Wang, Jianzhou & Lv, Mengzheng & Wang, Shuai & Gao, Jialu & Zhao, Yang & Wang, Qiangqiang, 2024. "Can multi-period auto-portfolio systems improve returns? Evidence from Chinese and U.S. stock markets," International Review of Financial Analysis, Elsevier, vol. 95(PB).
    10. Javier Morales & V'ictor Tercero & Fernando Camacho & Eduardo Cordero & Luis L'opez & F-Javier Almaguer, 2014. "Trend and Fractality Assessment of Mexico's Stock Exchange," Papers 1411.3399, arXiv.org.
    11. John T. Barkoulas & Christopher F. Baum & Joseph Onochie, 1997. "A nonparametric investigation of the 90‐day t‐bill rate," Review of Financial Economics, John Wiley & Sons, vol. 6(2), pages 187-198.
    12. Takala, Kari & Virén, Matti, 1995. "Testing nonlinear dynamics, long memory and chaotic behaviour with macroeconomic data," Research Discussion Papers 9/1995, Bank of Finland.
    13. Saqib Farid & Rubeena Tashfeen & Tahseen Mohsan & Arsal Burhan, 2023. "Forecasting stock prices using a data mining method: Evidence from emerging market," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 28(2), pages 1911-1917, April.
    14. Juanjuan Wang & Shujie Zhou & Wentong Liu & Lin Jiang, 2024. "An ensemble model for stock index prediction based on media attention and emotional causal inference," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(6), pages 1998-2020, September.
    15. Catherine Kyrtsou & Michel Terraza, 2003. "Is it Possible to Study Chaotic and ARCH Behaviour Jointly? Application of a Noisy Mackey–Glass Equation with Heteroskedastic Errors to the Paris Stock Exchange Returns Series," Computational Economics, Springer;Society for Computational Economics, vol. 21(3), pages 257-276, June.
    16. Risso, Wiston Adrián, 2008. "The informational efficiency and the financial crashes," Research in International Business and Finance, Elsevier, vol. 22(3), pages 396-408, September.
    17. Urquhart, Andrew & Hudson, Robert, 2013. "Efficient or adaptive markets? Evidence from major stock markets using very long run historic data," International Review of Financial Analysis, Elsevier, vol. 28(C), pages 130-142.
    18. Kian-Ping Lim & Venus Khim-Sen Liew & Hock-Tsen Wong, 2003. "Weak-form Efficient Market Hypothesis, Behavioural Finance and Episodic Transient Dependencies: The Case of the Kuala Lumpur Stock Exchange," Finance 0312012, University Library of Munich, Germany.
    19. Semei Coronado-Ram'irez & Pedro Celso-Arellano & Omar Rojas, 2014. "Adaptive Market Efficiency of Agricultural Commodity Futures Contracts," Papers 1412.8017, arXiv.org, revised Mar 2015.
    20. Philip Maymin, 2010. "The Hazards of Propping Up: Bubbles and Chaos," Papers 1002.2282, arXiv.org.

    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:arx:papers:2004.01497. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.