IDEAS home Printed from https://ideas.repec.org/a/eee/ecofin/v64y2023ics1062940822001838.html
   My bibliography  Save this article

Stock index direction forecasting using an explainable eXtreme Gradient Boosting and investor sentiments

Author

Listed:
  • Deng, Shangkun
  • Huang, Xiaoru
  • Zhu, Yingke
  • Su, Zhihao
  • Fu, Zhe
  • Shimada, Tatsuro

Abstract

In this article, an explainable eXtreme Gradient Boosting (XGBoost) method is proposed for stock index prediction and trading simulation in the Chinese security market. Sentiment features of three types of investors, including institutional, individual, and foreign investors, are utilized as explanatory variables, and a binary classification model based on XGBoost is constructed to predict the direction of the Shanghai composite index and Shenzhen composite index movements. Additionally, the Gain function of XGBoost and SHapley Additive exPlanations (SHAP) are employed to estimate the importance of sentimental factors affecting index direction forecasting. Experimental results demonstrate that the XGBoost-based approach using multiple investor sentiments achieved the best forecasting accuracy, and sentiment features of the institutional investor were relatively more essential than the individual investor and foreign investor sentiments for index direction prediction in most out-of-sample periods. It demonstrates that the method proposed in this research can provide useful references for market participants to support their investment in the Chinese security market.

Suggested Citation

  • Deng, Shangkun & Huang, Xiaoru & Zhu, Yingke & Su, Zhihao & Fu, Zhe & Shimada, Tatsuro, 2023. "Stock index direction forecasting using an explainable eXtreme Gradient Boosting and investor sentiments," The North American Journal of Economics and Finance, Elsevier, vol. 64(C).
  • Handle: RePEc:eee:ecofin:v:64:y:2023:i:c:s1062940822001838
    DOI: 10.1016/j.najef.2022.101848
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S1062940822001838
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.najef.2022.101848?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
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Dergiades, Theologos, 2012. "Do investors’ sentiment dynamics affect stock returns? Evidence from the US economy," Economics Letters, Elsevier, vol. 116(3), pages 404-407.
    2. Frazzini, Andrea & Lamont, Owen A., 2008. "Dumb money: Mutual fund flows and the cross-section of stock returns," Journal of Financial Economics, Elsevier, vol. 88(2), pages 299-322, May.
    3. Han, Xing & Li, Youwei, 2017. "Can investor sentiment be a momentum time-series predictor? Evidence from China," Journal of Empirical Finance, Elsevier, vol. 42(C), pages 212-239.
    4. Baker, Malcolm & Wurgler, Jeffrey & Yuan, Yu, 2012. "Global, local, and contagious investor sentiment," Journal of Financial Economics, Elsevier, vol. 104(2), pages 272-287.
    5. Lixu Chi & Xintian Zhuang & Dalei Song, 2012. "Investor sentiment in the Chinese stock market: an empirical analysis," Applied Economics Letters, Taylor & Francis Journals, vol. 19(4), pages 345-348, March.
    6. Shangkun Deng & Chenguang Wang & Zhe Fu & Mingyue Wang, 2021. "An Intelligent System for Insider Trading Identification in Chinese Security Market," Computational Economics, Springer;Society for Computational Economics, vol. 57(2), pages 593-616, February.
    7. Doojin Ryu & Hyeyoen Kim & Heejin Yang, 2017. "Investor sentiment, trading behavior and stock returns," Applied Economics Letters, Taylor & Francis Journals, vol. 24(12), pages 826-830, July.
    8. Fang, Ming & Taylor, Stephen, 2021. "A machine learning based asset pricing factor model comparison on anomaly portfolios," Economics Letters, Elsevier, vol. 204(C).
    9. Tanaka, Katsuyuki & Kinkyo, Takuji & Hamori, Shigeyuki, 2016. "Random forests-based early warning system for bank failures," Economics Letters, Elsevier, vol. 148(C), pages 118-121.
    10. Chung, San-Lin & Hung, Chi-Hsiou & Yeh, Chung-Ying, 2012. "When does investor sentiment predict stock returns?," Journal of Empirical Finance, Elsevier, vol. 19(2), pages 217-240.
    11. Xiaojun Li & Pan Tang, 2020. "Stock index prediction based on wavelet transform and FCD‐MLGRU," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 39(8), pages 1229-1237, December.
    12. Alok Kumar & Charles M.C. Lee, 2006. "Retail Investor Sentiment and Return Comovements," Journal of Finance, American Finance Association, vol. 61(5), pages 2451-2486, October.
    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. Seok, Sangik & Cho, Hoon & Ryu, Doojin, 2022. "Scheduled macroeconomic news announcements and intraday market sentiment," The North American Journal of Economics and Finance, Elsevier, vol. 62(C).
    2. Seok, Sang Ik & Cho, Hoon & Ryu, Doojin, 2021. "Stock Market’s responses to intraday investor sentiment," The North American Journal of Economics and Finance, Elsevier, vol. 58(C).
    3. Seok, Sang Ik & Cho, Hoon & Ryu, Doojin, 2019. "Firm-specific investor sentiment and daily stock returns," The North American Journal of Economics and Finance, Elsevier, vol. 50(C).
    4. Mehwish Aziz Khan & Eatzaz Ahmad, 2018. "Measurement of Investor Sentiment and Its Bi-Directional Contemporaneous and Lead–Lag Relationship with Returns: Evidence from Pakistan," Sustainability, MDPI, vol. 11(1), pages 1-20, December.
    5. Li, Yuan & Ran, Jimmy, 2020. "Investor Sentiment and Stock Price Premium Validation with Siamese Twins from China," Journal of Multinational Financial Management, Elsevier, vol. 57.
    6. Yuan Li, 2022. "Mood Beta, Sentiment and Stock Returns in China," SAGE Open, , vol. 12(1), pages 21582440221, February.
    7. Yuan Li & Yu Zhang, 2021. "Investor Sentiment, Idiosyncratic Risk, and Stock Price Premium: Evidence From Chinese Cross-Listed Companies," SAGE Open, , vol. 11(2), pages 21582440211, June.
    8. Wang, Wenzhao & Duxbury, Darren, 2021. "Institutional investor sentiment and the mean-variance relationship: Global evidence," Journal of Economic Behavior & Organization, Elsevier, vol. 191(C), pages 415-441.
    9. Salhin, Ahmed & Sherif, Mohamed & Jones, Edward, 2016. "Managerial sentiment, consumer confidence and sector returns," International Review of Financial Analysis, Elsevier, vol. 47(C), pages 24-38.
    10. Karam KIM & Doojin RYU, 2020. "Predictive ability of investor sentiment for the stock market," Journal for Economic Forecasting, Institute for Economic Forecasting, vol. 0(4), pages 33-46, December.
    11. Wang, Wenzhao & Su, Chen & Duxbury, Darren, 2022. "The conditional impact of investor sentiment in global stock markets: A two-channel examination," Journal of Banking & Finance, Elsevier, vol. 138(C).
    12. Han, Xing & Li, Youwei, 2017. "Can investor sentiment be a momentum time-series predictor? Evidence from China," Journal of Empirical Finance, Elsevier, vol. 42(C), pages 212-239.
    13. Liyun Zhou & Chunpeng Yang, 2020. "Investor sentiment, investor crowded-trade behavior, and limited arbitrage in the cross section of stock returns," Empirical Economics, Springer, vol. 59(1), pages 437-460, July.
    14. Stambaugh, Robert F. & Yu, Jianfeng & Yuan, Yu, 2012. "The short of it: Investor sentiment and anomalies," Journal of Financial Economics, Elsevier, vol. 104(2), pages 288-302.
    15. Hou, Yang & Meng, Jiayin, 2018. "The momentum effect in the Chinese market and its relationship with the simultaneous and the lagged investor sentiment," MPRA Paper 94838, University Library of Munich, Germany.
    16. Aissia, Dorsaf Ben, 2016. "Home and foreign investor sentiment and the stock returns," The Quarterly Review of Economics and Finance, Elsevier, vol. 59(C), pages 71-77.
    17. Yongan Xu & Jianqiong Wang & Zhonglu Chen & Chao Liang, 2023. "Sentiment indices and stock returns: Evidence from China," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 28(1), pages 1063-1080, January.
    18. Nizar Raissi & Sahbi Missaoui, 2015. "Role of investor sentiment in financial markets: an explanation by behavioural finance approach," International Journal of Accounting and Finance, Inderscience Enterprises Ltd, vol. 5(4), pages 362-401.
    19. Yang Gao & Chengjie Zhao & Bianxia Sun & Wandi Zhao, 2022. "Effects of investor sentiment on stock volatility: new evidences from multi-source data in China’s green stock markets," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-30, December.
    20. David C. Ling & Andy Naranjo & Benjamin Scheick, 2014. "Investor Sentiment, Limits to Arbitrage and Private Market Returns," Real Estate Economics, American Real Estate and Urban Economics Association, vol. 42(3), pages 531-577, September.

    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:eee:ecofin:v:64:y:2023:i:c:s1062940822001838. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/inca/620163 .

    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.