An Explanatory Model for the Impact of Investor Sentiment on Stock Markets Integrating XGBoost and SHAP

Authors

  • Yuhao Wang
  • Yifei Yun
  • Qijie Wang

DOI:

https://doi.org/10.54097/8txdmj74

Keywords:

XGBoost, SHAP, Investor Sentiment, Stock return, Online Forum.

Abstract

With the widespread popularity of Internet, non-professional individual investors can share information and express their tendency through online forum, exerting a certain influence on the price fluctuations in the stock market. This study has compiled investor sentiment data from the stock forum of Eastmoney.com for the years 2018 to 2022. By integrating this data with the daily return rates of individual stocks in the Shanghai Stock Exchange (SSE), an XGBoost regression model has been established. Utilizing SHAP (Shapley Additive exPlanations) for visualization and analysis, the findings reveal that the daily stock returns exhibit a significant positive correlation with investor positive sentiment and turnover rate, and a significant negative correlation with the number of forum posts. Conversely, there is no significant correlation with metrics such as average number of followers, average reading volume, average number of likes, average net comments, user average influence index, and emotional consistency index within the stock forum. Moreover, in the Chinese SSE market, stocks of different market capitalizations do not display significant differences in sensitivity to investor sentiment. This study contributes novel perspectives and methodologies to the study of investor sentiment, aiding in a more profound comprehension of the behaviors of individual investors participating in stock forum discussions and the consequential impact of such behaviors on the market.

Downloads

Download data is not yet available.

References

Duan Jiangjiao, Liu Hongzhong, Zeng Jianping. Analysis on the information content of China’s internet stock message boards[J]. Journal of Financial Research, 2017, (10) : 178 -192.

Chen Rongda, Lin Bo, He Chengying, et al. Internet finance characteristics, internet finance investor sentiment and the return of internet financial products[J]. Economic Research Journal, 2019, 54(7) : 78-93.

Barberis N, Shleifer A, Vishny R. A model of investor sentiment[J]. Journal of Financial Economics, 1998,49(3):307-343.

Baker M, Wurgler J. Investor sentiment in the stock market [J ]. Journal of Economic Perspectives, 2007,21(2): 129 -151.

Qian Yu, Li Zirao, Li Qiang, et al. Impact of online community support tendencies on returns and volatility in Chinese stock market[J]. Journal of Management Sciences in China, 2020, 23(2) : 141-155.

Yao Jiaquan, Feng Xu, Wang Zanjun, et al. Tone, sentiment and market impacts: The construction of Chinese sentiment dictionary in finance[J]. Journal of Management Sciences in China, 2021, 24(5) : 26 -46.

Fan Xiaoyun, Wang Yedong, Wang Daoping, et al. Heterogeneity analysis of information content for financial text from different sources: A hybrid text sentiment measurement method[J]. Journal of Management World, 2022, 38(10):78-101.

Zhang ke, Li Xindan, Fang Xiao, et al. Opinion leader at the online stock forum: Having the discerning eve or eve-catching[J]. Journal of Management Sciences in China.2022, 25(9):90-107.

Li Helong, Ren Changsong, Liu Xinru, et al. A Review of Textual Sentiment Research in Financial Markets[J]. Data Analysis and Knowledge Discovery, 1-25[2023-3-27].

Ni Wenhui, Zhang Pu. The Influence of Investors' Opinion Convergence on Stock Market ——Based on the Dual Perspective of Return and Risk [J]. Journal of Financial Development Research, 2023(04):18-28.

Lundberg S, Lee S I. A Unified Approach to Interpreting Model Predictions[C] / / Conference and Workshop on Neural Information Processing Systems. California: NIPS Press, 2017:4765-4774.

Jiang Jianhong, Li Mengxin. An Explanatory Model for Weibo Users' Extreme Emotions under Negative Events of Enterprises Integrating LGBM and SHAP[J]. Data Analysis and Knowledge Discovery, 1-24[2023-10-18].

Sun Ran, An Lu. The Speech Acts Classification of Social Media Users in the Context of Public Emergencies[J]. Journal of Information Resources Management 1-12[2023-10-24] .

Li Weiqing, Wang Wentao, Huano W, et al. Study on the Influencing Factors and Its Explainability of Users' Continuous Use Behavior of Bullet Screen Video Website—Perspective Based on Perceived Value[J]. Journal of Modern Information, 1-10[2023-06-21].

Downloads

Published

09-05-2024

How to Cite

Wang, Y., Yun, Y., & Wang, Q. (2024). An Explanatory Model for the Impact of Investor Sentiment on Stock Markets Integrating XGBoost and SHAP . Highlights in Business, Economics and Management, 33, 55-64. https://doi.org/10.54097/8txdmj74