A time-varying study of Chinese investor sentiment, stock market liquidity and volatility: Based on deep learning BERT model and TVP-VAR model

Chenrui Zhang, Xinyi Wu, Hailu Deng, Huiwei ZhangarXiv 2022 · DOI

Introduction

Traditional financial models often assume investors are rational actors, yet the "herding effect" observed on social media suggests a different reality. In the volatile Chinese stock market, where retail investors dominate, investor sentiment is a critical but historically difficult-to-measure variable. This paper explores how the "digital chatter" of Chinese investors shapes market reality by combining deep learning for sentiment analysis with advanced econometrics.

The authors address two primary challenges: the measurement of sentiment in the face of complex financial slang and the dynamic, non-static nature of market psychology. By utilizing a Time-Varying Parameter Vector Autoregression (TVP-VAR) model, the study captures how the relationship between sentiment and the market shifts over time, particularly during bull versus bear market cycles.

Methodology

The researchers employed a two-pronged technical approach to bridge the gap between textual data and economic impact:

  1. Deep Learning (BERT): To extract sentiment from raw text, the team fine-tuned the Chinese-BERT-wwm model, optimized for Chinese "Whole Word Masking." They manually labeled 4,000 comments to train the model to categorize text as positive, neutral, or negative with high precision.
  2. TVP-VAR Model: To analyze economic impact, they used a TVP-VAR model. Unlike traditional models, TVP-VAR allows coefficients and the variance of shocks to change over time, estimated using Markov Chain Monte Carlo (MCMC) algorithms.
Example of investor comments and readership data from EastMoney.

Data Description

The study focuses on a two-year window from January 1, 2018, to December 31, 2019, utilizing two primary data sources:

  • Textual Data: Comments from the EastMoney stock bar (specifically the Shenzhen Stock Index bar), China's leading financial social media platform. After filtering for noise, the researchers analyzed the top 50 most-read comments per day.
  • Market Data: Daily trading data for the SZSE (Shenzhen Stock Exchange) Component Index, including realized volatility ($RV_t$) and turnover rate ($Turn_t$) as a proxy for liquidity. The index is composed of major companies across various sectors, as shown in the weighting table below.
Top weighted stocks in the SZSE Component Index.

Empirical Analysis and Key Insights

The study reveals that investor sentiment has a powerful, time-varying, and asymmetric impact on stock market liquidity and volatility. Key findings include:

  • Short-Termism: The impact of sentiment is most pronounced at a 1-day lag, decaying significantly by 7 to 14 days. This highlights the high information efficiency and impulsivity of the Chinese retail market.
  • Asymmetry (Fear > Greed): Market reactions are not symmetrical. Shocks to sentiment have a much stronger impact on volatility and liquidity during market downturns or "downward spirals."
  • The Liquidity-Sentiment Loop: High trading activity can trigger a "herding effect," where investors follow the crowd based on volume, further driving sentiment and subsequent volatility.
  • Optimism as a Stabilizer: Positive sentiment generally correlates with decreased market volatility in the short term, suggesting that bullishness can act as a temporary anchor against wild price swings.

Conclusion

The research confirms that investor sentiment is a significant predictive cause of changes in turnover rate and realized volatility. During the bear market of 2018, the sensitivity of market volatility to sentiment shocks was significantly higher than during the stable periods of 2019. While social media data remains noisy and the model currently excludes external macro shocks (such as policy changes or trade tensions), the integration of deep learning outputs into econometric frameworks provides a robust new lens for understanding market dynamics. Future work will look to expand the sample size and incorporate more explanatory variables to further refine predictive performance.

Summary updated

BibTeX
@misc{zhang2022time,
  author = {Chenrui Zhang and Xinyi Wu and Hailu Deng and Huiwei Zhang},
  title = {{A time-varying study of Chinese investor sentiment, stock market liquidity and volatility: Based on deep learning BERT model and TVP-VAR model}},
  year = {2022},
  eprint = {2205.05719},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.05719},
}
Figure