IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0269195.html
   My bibliography  Save this article

Stock index trend prediction based on TabNet feature selection and long short-term memory

Author

Listed:
  • Xiaolu Wei
  • Hongbing Ouyang
  • Muyan Liu

Abstract

In this study, we propose a predictive model TabLSTM that combines machine learning methods such as TabNet and Long Short-Term Memory Neural Network (LSTM) with a complete factor library for stock index trend prediction. Our motivation is based on the notion that there are numerous interrelated factors in the stock market, and the factors that affect each stock are different. Therefore, a complete factor library and an efficient feature selection technique are necessary to predict stock index. In this paper, we first build a factor database that includes macro, micro and technical indicators. Successively, we calculate the factor importance through TabNet and rank them. Based on a prespecified threshold, the optimal factors set will include only the highest-ranked factors. Finally, using the optimal factors set as input information, LSTM is employed to predict the future trend of 4 stock indices. Empirical validation of the model shows that the combination of TabNet for factors selection and LSTM outperforms existing methods. Moreover, constructing a factor database is necessary for stock index prediction. The application of our method does not only show the feasibility to predict stock indices across different financial markets, yet it also provides an complete factor database and a comprehensive architecture for stock index trend prediction, which may provide some references for stock forecasting and quantitative investments.

Suggested Citation

  • Xiaolu Wei & Hongbing Ouyang & Muyan Liu, 2022. "Stock index trend prediction based on TabNet feature selection and long short-term memory," PLOS ONE, Public Library of Science, vol. 17(12), pages 1-18, December.
  • Handle: RePEc:plo:pone00:0269195
    DOI: 10.1371/journal.pone.0269195
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0269195
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0269195&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0269195?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Lakonishok, Josef & Shleifer, Andrei & Vishny, Robert W, 1994. "Contrarian Investment, Extrapolation, and Risk," Journal of Finance, American Finance Association, vol. 49(5), pages 1541-1578, December.
    2. Fama, Eugene F, 1976. "Efficient Capital Markets: Reply," Journal of Finance, American Finance Association, vol. 31(1), pages 143-145, March.
    3. Bhushan, Ravi, 1989. "Collection of information about publicly traded firms : Theory and evidence," Journal of Accounting and Economics, Elsevier, vol. 11(2-3), pages 183-206, July.
    4. Carhart, Mark M, 1997. "On Persistence in Mutual Fund Performance," Journal of Finance, American Finance Association, vol. 52(1), pages 57-82, March.
    5. Basu, S, 1977. "Investment Performance of Common Stocks in Relation to Their Price-Earnings Ratios: A Test of the Efficient Market Hypothesis," Journal of Finance, American Finance Association, vol. 32(3), pages 663-682, June.
    6. Roll, Richard, 1984. "A Simple Implicit Measure of the Effective Bid-Ask Spread in an Efficient Market," Journal of Finance, American Finance Association, vol. 39(4), pages 1127-1139, September.
    7. Ribeiro, Pedro Pires & Cermeño, Rodolfo & Curto, José Dias, 2017. "Sovereign bond markets and financial volatility dynamics: Panel-GARCH evidence for six euro area countries," Finance Research Letters, Elsevier, vol. 21(C), pages 107-114.
    8. Martin, Daniel, 1977. "Early warning of bank failure : A logit regression approach," Journal of Banking & Finance, Elsevier, vol. 1(3), pages 249-276, November.
    9. Xi Zhang & Yunjia Zhang & Senzhang Wang & Yuntao Yao & Binxing Fang & Philip S. Yu, 2018. "Improving Stock Market Prediction via Heterogeneous Information Fusion," Papers 1801.00588, arXiv.org.
    10. Gang-Jin Wang & Chi Xie & Kaijian He & H. Eugene Stanley, 2017. "Extreme risk spillover network: application to financial institutions," Quantitative Finance, Taylor & Francis Journals, vol. 17(9), pages 1417-1433, September.
    11. Jonathan Brogaard & Lili Dai & Phong T H Ngo & Bohui Zhang, 2020. "Global Political Uncertainty and Asset Prices," The Review of Financial Studies, Society for Financial Studies, vol. 33(4), pages 1737-1780.
    12. Jonathan Brogaard & Lili Dai & Phong T H Ngo & Bohui Zhang, 2020. "Global Political Uncertainty and Asset Prices," Review of Finance, European Finance Association, vol. 33(4), pages 1737-1780.
    13. Jegadeesh, Narasimhan & Titman, Sheridan, 1993. "Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency," Journal of Finance, American Finance Association, vol. 48(1), pages 65-91, March.
    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. Xiaolu Wei & Yubo Tian & Na Li & Huanxin Peng, 2024. "Evaluating ensemble learning techniques for stock index trend prediction: a case of China," Portuguese Economic Journal, Springer;Instituto Superior de Economia e Gestao, vol. 23(3), pages 505-530, September.
    2. Zura Kakushadze, 2014. "4-Factor Model for Overnight Returns," Papers 1410.5513, arXiv.org, revised Jun 2015.
    3. Guo, Hui, 2006. "Time-varying risk premia and the cross section of stock returns," Journal of Banking & Finance, Elsevier, vol. 30(7), pages 2087-2107, July.
    4. Paul Gompers & Joy Ishii & Andrew Metrick, 2003. "Corporate Governance and Equity Prices," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 118(1), pages 107-156.
    5. Adam Zaremba & Jacob Koby Shemer, 2018. "Price-Based Investment Strategies," Springer Books, Springer, number 978-3-319-91530-2, July.
    6. Schwert, G. William, 2003. "Anomalies and market efficiency," Handbook of the Economics of Finance, in: G.M. Constantinides & M. Harris & R. M. Stulz (ed.), Handbook of the Economics of Finance, edition 1, volume 1, chapter 15, pages 939-974, Elsevier.
    7. Alexander Hölzl & Sebastian Lobe, 2016. "Predicting above-median and below-median growth rates," Review of Managerial Science, Springer, vol. 10(1), pages 105-133, January.
    8. Gala, Vito D. & Pagliardi, Giovanni & Zenios, Stavros A., 2023. "Global political risk and international stock returns," Journal of Empirical Finance, Elsevier, vol. 72(C), pages 78-102.
    9. Jiaju Miao & Pawel Polak, 2023. "Online Ensemble of Models for Optimal Predictive Performance with Applications to Sector Rotation Strategy," Papers 2304.09947, arXiv.org.
    10. Zura Kakushadze & Willie Yu, 2016. "Multifactor Risk Models and Heterotic CAPM," Papers 1602.04902, arXiv.org, revised Mar 2016.
    11. Hanauer, Matthias X. & Lauterbach, Jochim G., 2019. "The cross-section of emerging market stock returns," Emerging Markets Review, Elsevier, vol. 38(C), pages 265-286.
    12. Artmann, Sabine & Finter, Philipp & Kempf, Alexander, 2010. "Determinants of expected stock returns: Large sample evidence from the German market," CFR Working Papers 10-01, University of Cologne, Centre for Financial Research (CFR).
    13. Hoang, Khoa & Huang, Ronghong & Truong, Helen, 2023. "Resurrecting the market factor: A case of data mining across international markets," Pacific-Basin Finance Journal, Elsevier, vol. 82(C).
    14. Tobek, Ondrej & Hronec, Martin, 2021. "Does it pay to follow anomalies research? Machine learning approach with international evidence," Journal of Financial Markets, Elsevier, vol. 56(C).
    15. Sawaliya, Priya & Sinha, Pankaj, 2018. "Behaviour of asset pricing models in pre and post-recession period: an evidence from India," MPRA Paper 93084, University Library of Munich, Germany, revised 22 Jan 2019.
    16. Bui, Dien Giau & Kong, De-Rong & Lin, Chih-Yung & Lin, Tse-Chun, 2023. "Momentum in machine learning: Evidence from the Taiwan stock market," Pacific-Basin Finance Journal, Elsevier, vol. 82(C).
    17. Skočir, Matevž & Lončarski, Igor, 2018. "Multi-factor asset pricing models: Factor construction choices and the revisit of pricing factors," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 55(C), pages 65-80.
    18. Fernando Rubio, 2005. "Eficiencia De Mercado, Administracion De Carteras De Fondos Y Behavioural Finance," Finance 0503028, University Library of Munich, Germany, revised 23 Jul 2005.
    19. Committee, Nobel Prize, 2013. "Understanding Asset Prices," Nobel Prize in Economics documents 2013-1, Nobel Prize Committee.
    20. Guanhao Feng & Stefano Giglio & Dacheng Xiu, 2020. "Taming the Factor Zoo: A Test of New Factors," Journal of Finance, American Finance Association, vol. 75(3), pages 1327-1370, June.

    More about this item

    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:plo:pone00:0269195. 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.