Skip to main content

Effects of investor sentiment on stock volatility: new evidences from multi-source data in China’s green stock markets

Abstract

The effect of investor sentiment on stock volatility is a highly attractive research question in both the academic field and the real financial industry. With the proposal of China's "dual carbon" target, green stocks have gradually become an essential branch of Chinese stock markets. Focusing on 106 stocks from the new energy, environmental protection, and carbon–neutral sectors, we construct two investor sentiment proxies using Internet text and stock trading data, respectively. The Internet sentiment is based on posts from Eastmoney Guba, and the trading sentiment comes from a variety of trading indicators. In addition, we divide the realized volatility into continuous and jump parts, and then investigate the effects of investor sentiment on different types of volatilities. Our empirical findings show that both sentiment indices impose significant positive impacts on realized, continuous, and jump volatilities, where trading sentiment is the main factor. We further explore the mediating effect of information asymmetry, measured by the volume-synchronized probability of informed trading (VPIN), on the path of investor sentiment affecting stock volatility. It is evidenced that investor sentiments are positively correlated with the VPIN, and they can affect volatilities through the VPIN. We then divide the total sample around the coronavirus disease 2019 (COVID-19) pandemic. The empirical results reveal that the market volatility after the COVID-19 pandemic is more susceptible to investor sentiments, especially to Internet sentiment. Our study is of great significance for maintaining the stability of green stock markets and reducing market volatility.

Introduction

Along with the “carbon neutral and carbon peak” proposal by the Chinese government, green finance in China has recently attracted more attention. Green stocks in particular are favored by investors because of their essential social benefits. Unlike other stocks, green stocks denote common stocks with green attributes. The green attributes of these stocks are monitored by the China Securities Regulatory Commission and other relevant government departments. Specifically, green stocks are subject to strict environmental checks before listing, and they must satisfy environmental performance assessments and timely disclosure of environmental information after listing. Accordingly, investors may make investment decisions based on the disclosed environmental performance of the green stocks. Given the rich and open financing methods for green and environment-friendly enterprises, green stock markets can guide financial resources to the green industry, thereby providing enterprises with the impetus to reduce emissions. By 2020, the total market value of China’s green stock index exceeded 21 trillion CNY, becoming an essential branch of the whole stock market. That is, green stocks have become the investments of choice for many investors owing to their excellent long-term values. However, China’s green stock market is still in a rapidly emerging stage, and the majority of investors in China’s stock market are individual investors. Most individual investors exhibit irrational behaviors influenced by sentiment, thus affecting the stock market’s stability. Therefore, to monitor the movements of green stock market prices and develop green finance soundly, it is crucial to study the impact of investor sentiment on price volatility in China’s green stock markets.

Behavioral finance theory holds that investor sentiment plays an essential role in investment decisions, asset pricing, and risk management. In particular, investor sentiment has been theoretically verified to cause stock price movements, such as volatility or even jumps of the stock market in the short term. As a matter of fact, measurement of investor sentiment lays the foundation for subsequent application analysis. Because investor sentiment cannot be observed directly, the construction of sentiment indicators has always been a hot issue for scholars. Lee et al. (1991) first used the discount rate of closed-end funds as an investor sentiment proxy to explain the closed-end fund puzzle. Hereafter, investor sentiment measurement was formally proposed. Recent studies have divided investor sentiment indicators into three categories based on multi-source data. The first category includes subjective indicators produced through investigation, such as the American Association of Individual Investors (AAII) (He et al. 2019). Although such sentiment indicators can directly reflect investors’ psychological characteristics, investors may not consistently make transactions according to these sentiments.

The second type are objective indicators constructed from transaction data, such as mutual fund flows (Frazzini and Lamont 2008), which can indirectly reflect investor sentiment. However, a single indicator usually fails to fully reflect emotional changes, so a composite investor sentiment index combining various indicators was developed. Based on principal component analysis (PCA), Baker and Wurgler (2006) constructed the BW index, which measures market sentiment using six market trading indicators: closed-end fund discount rate, turnover rate, initial public offering (IPO) number, IPO first-day earnings, share ratio in newly issued bonds and stocks, and dividend premium. Since then, many scholars have further investigated and developed market sentiment indicators (Liang 2016; Hirshleifer et al. 2020). However, market sentiment indicators do not reflect investors’ sentiment toward a specific stock. With individual stock sentiment indicators, it is also easier to reveal the sensitivity of stock price fluctuations to investor sentiment. In addition, individual stock sentiment can be acquired based on daily frequency, while market sentiment is mostly monthly. Because investor sentiment is sensitive to information changes in the market, sentiment constructed based on daily data is more likely to capture the rapid changes in investor sentiment. Yang and Hu (2021) compared individual stock sentiment with market sentiment, verifying that the explanatory power of individual stock sentiment on individual stock returns is stronger than that of market sentiment. Therefore, our study constructs investor sentiments for individual stocks based on daily data.

In addition, with the development of the Internet and machine learning methods, the massive data sources resulting from investors’ interactions on the Internet have provided a third type of investor sentiment. Antweiler and Frank (2004) first acquired investors’ postings from Yahoo Finance and applied the naive Bayes method to classify text sentiment, developing a new way to construct Internet sentiment. Many scholars have employed machine learning methods to construct investor sentiment using text data from different online platforms. For instance, Li et al. (2020) utilized investors’ messages from Eastmoney Guba and quantified investor sentiment using the naive Bayes method. Furthermore, Duan et al. (2021) collected information related to the coronavirus disease of 2019 (COVID-19) from official news media and Sina Weibo and used support vector machines (SVM) to construct the COVID-19 sentiment. In addition to traditional machine learning approaches, deep learning methods, including convolutional neural networks (CNN), recurrent neural networks (RNN), and long short-term memory (LSTM), have also been applied to construct Internet sentiment (Jing et al. 2021; Carosia et al. 2021; Basiri et al. 2021). Recently, Google’s open-source project of bidirectional encoder representations from transformers (BERT) has offered new opportunities for natural language processing and has been successfully applied to a growing number of text classification problems (Leow et al. 2021; Carosia et al. 2021).

The efficient markets hypothesis posits that the deviation of financial asset prices from their fundamental value can be eliminated by arbitrageurs, while Shleifer and Summers (1990) point out that low information efficiency indicates limited arbitrage in the stock market. Stock market trades based on false subjective beliefs or information unrelated to the fundamentals of the company do occur. Kyle (1985) first proposed the concept of “noise trader,” and Black (1986) further defined noise traders as investors who cannot acquire inside information and irrationally regard unfiltered information as valid information to participate in transactions. Subsequently, based on the DSSW model, DeLong et al. (1990) revealed that non-fundamental signals from noise traders lead to an increase in the systemic risk of financial assets, indicating a relationship between sentiment and price volatility at the individual security level. The more irrational arbitrageurs trade on noisy signals, the greater the price swings. Baker and Wurgler (2007) further pointed out that the impact of investor sentiment on stock prices is related to the characteristics of companies. Specifically, companies that are young, unprofitable, highly volatile, distressed, and seeking growth, as well as companies that have small market capitalization and non-dividend-paying stocks, are generally affected by sentiment. Since then, many scholars have analyzed the impact of investor sentiment on stock price volatility and found that investor sentiment can significantly exacerbate stock volatility (Siganos et al. 2017; Rupande et al. 2019; Jiang and Jin 2021). However, the existing studies only consider the single effect of trading sentiment or Internet sentiment on stock volatility. Few studies in the literature have simultaneously examined the influence of the two sentiment proxies on volatility. Our study combines multi-source heterogeneous data to construct both the Internet sentiment and trading sentiment of individual stocks. We then simultaneously examine the impacts of the two investor sentiments on Chinese green stocks’ volatilities. In particular, volatility is decomposed into continuous volatility and jump volatility, and the differences in the influences of the two sentiments on continuous volatility and jump volatility are investigated further.

Market participants tend to believe that homogeneous information is not evenly distributed in the market (Javakhadze et al. 2014). Affected by investors’ ability to seek information and the degree of information disclosure, information asymmetry is expected in the stock market. Kyle (1985) and Easley and O’hara (1987) found that informed traders will take advantage of their information to profit from uninformed investors with optimal trades. Trading frequency increases when investor sentiment is relatively high, improving the liquidity level, which is important for informed investors’ transactions, and reducing transaction costs. Earlier studies have also evidenced the impact of investor sentiment on information asymmetry (Li et al. 2022). Further, Jindra and Moeller (2020) pointed out that the uncertainty of company valuation comes from information asymmetry. Information asymmetry, usually reflected by an adverse selection cost such as bid-ask spread, could prompt stock market volatility and play an essential role in stock price fluctuations. Easley et al. (1996) first defined the probability of informed trading (PIN) as a measure of information asymmetry. However, the PIN often encounters an overflow problem in the calculation process. To solve this calculation problem, Easley et al. (2011) further introduced the volume-synchronized probability of informed trading (VPIN). The existing literature reveals that the VPIN can cause an imbalance in intraday orders (Wei et al. 2013), resulting in short-term volatility (Wei et al. 2013; Bjursell et al. 2017). In a market with asymmetric information, the greater the proportion of informed traders who execute trades based on private information, the larger the impacts on market volatility (Li and Wen 2019). Concerning the interdependence between investor sentiment, information asymmetry, and price volatility, few studies have investigated the mediating role of information asymmetry in the effect of investor sentiment on volatilities. Therefore, we select the VPIN, a widely used metric for measuring information asymmetry, as the mediating variable and discuss how investor sentiment affects volatility by changing the VPIN.

Moreover, the existing literature has verified that investor sentiment can significantly cause stock market volatility. Baker and Wurgler (2007) revealed that investor sentiment even imposes more severe impacts on the stock market than fundamentals in uncertain periods. Because of the outbreak of COVID-19, worldwide stock markets have been facing severe challenges. Recent studies have explored the changes in investor sentiment and their impact on the stock market. For example, Pagano et al. (2021) revealed that Robinhood retail investors responded quickly to overnight returns, pursuing both momentum and contrarian strategies. In addition, Smales (2021) pointed out that investors paid more attention to the coronavirus during the COVID-19 crisis, and investor attention is positively correlated with stock market volatility. Sun et al. (2021) also found heterogeneity in the impact of coronavirus-related news (CRNs) and economic-related announcements (ERAs) associated with the COVID-19 outbreak on investment sentiment in different countries. Moreover, Huynh et al. (2021) used a series of coronavirus-related sentiment indices, including media coverage, fake news, panic, sentiment, media hype, and infodemics, to construct the feverish sentiment index at the national level. They found that investor sentiments in 17 countries showed a strong correlation, and the feverish sentiment index can positively predict the stock volatility of several countries. Recently, Anastasiou et al. (2022) constructed a novel positive search volume index for COVID-19 (COVID19 +) and found that the rise of COVID-19 + could reduce investors’ crisis sentiment and ease stock market volatility. Therefore, because of the COVID-19 outbreak, our study divides the sample into pre-and post-pandemic subsamples and examines whether there are any differences in the impacts of the two investor sentiment proxies on volatilities in different periods.

Our study contributes to the literature in two ways. The existing research usually considers either trading or Internet sentiment when exploring the impact of investor sentiment on stock volatility, and few studies analyze the role of VPIN between investor sentiment and volatility. Therefore, we first construct both Internet and trading sentiments based on multi-source data and then analyze their impacts on the price movements of China’s green stocks. We find the two sentiments are positively correlated with the VPIN, and confirm the mediating role of the VPIN in the effects of investor sentiments on stock price volatilities. Second, considering that the existing literature rarely compares the similarities and differences of the impact of investor sentiment on realized, continuous, and jump volatility, we decompose realized volatility into continuous volatility and jump volatility and analyze the differences in the influence of investor sentiment on volatilities. Moreover, we conduct further analysis by dividing the sample into different stock boards and different periods. We find that the impacts of Internet sentiment on jump volatility for the small and medium enterprise (SME) and growth enterprise market (GEM) boards seem relatively limited. Moreover, by dividing the sample into two period, before and after the COVID-19 pandemic, we find that investor sentiments have more pronounced effects on stock volatilities after the pandemic, especially for Internet sentiment. However, the mediating effect of the VPIN in the impact of trading sentiment on volatility after the pandemic is more prominent than before the pandemic.

The remainder of this paper is organized as follows. Section 2 describes the theoretical analysis and research hypotheses. Section 3 presents the research design of our studies. Section 4 conducts the empirical analysis. Section 5 presents further analyses based on the subsamples before and after the pandemic. Finally, Sect. 6 provides a brief conclusion.

Theoretical analysis and research hypothesis

The Green stock market plays a vital role in encouraging listed companies to disclose environmental information, guiding social capital to enter the field of environmental protection. However, the economic benefits of green stocks are mainly reflected in the long run. The emerging Chinese green stock market is still rapidly developing, and external supervision has not yet been perfected. This may lead green stocks to have insufficient short-term operating performance, which would be reflected in the price volatility in the short term. In addition, the price volatility of the stock market is mainly determined by the supply–demand relationship. When the buyers’ power is greater than that of the sellers’, the stock market demand is greater than the supply. This will cause a rise in the stock price, and vice versa. Behavioral finance holds that investors’ investment psychology will affect stock price fluctuations. For example, Barberis et al. (1998) revealed that investors may be affected by representational bias when dealing with new information, which is manifested as overemphasizing recent information but ignoring historical aggregate data. When investors pay too much attention to short-term good news, they will overestimate future stock prices; and once future earnings fail to meet expectations, investors will get panicked and stock prices will then fall. Moreover, Barber and Odean (2008) developed a price pressure hypothesis to explain the impact of investor sentiment on stock prices. The theory holds that investors, because of their limited time and energy, usually only invest stocks that attract their attention. An increase in investor attention will put upward pressure on stocks in the short term, and then reverse.

In theory, the price fluctuations of financial assets usually display a leverage effect. That is to say, bad news tends to induce higher volatility than good news does. Especially after the COVID-19 outbreak, the usual information disclosure may fail to satisfy investors’ thirst, and the impact of information on the stock market will be more powerful. The existing literature also reveals a significant correlation between investor sentiment and volatility. For example, Rupande et al. (2019) pointed out that irrational investor sentiment exacerbates stock return volatility, and they proposed that investor sentiment is a risk factor in asset pricing. Audrino et al. (2020) applied text data to construct investor sentiment and revealed that the accuracy of volatility prediction is significantly improved with the inclusion of investor sentiment. Abdelmalek (2021) also confirmed that a rise in investor sentiment would increase the volatility and instability of the stock market. Thus, we propose the first hypothesis as follows:

H1

High investor sentiment exacerbates the return volatility of green stocks.

Because of differences in investors’ access to information and their ability to process information, the asynchronous transmission of information in the stock market results in information asymmetry. Daniel et al. (1998) revealed that public information and private information in the market exert asymmetric effects on investors. Some investors will overestimate the accuracy of signals sent by private information, and overconfidence will cause private signals to have higher weights than prior information, causing an excessive stock-price reaction. If individual investors exhibit stronger behavioral biases in hard-to-value stocks, relatively informed investors may exploit these biases for gains. Kumar (2009) applied the consumer sentiment index and found that individual investors exhibit more substantial behavioral bias when stocks are challenging to value and market uncertainty reaches a high level. Therefore, investors with an information advantage tend to take advantage of these deviations to yield returns, and thus have a higher probability of informed trading. The reasons for this phenomenon may lie in two aspects. On the one hand, higher investor sentiment indicates more active trading activity, which is beneficial for informed traders to hide their trading activities, thus aggravating the level of information asymmetry (Zhu et al. 2017). On the other hand, the rise of Internet social media has led to the disclosure of vast quantities of stock-related information, and the role of social media has become more complicated. Some managers of public firms may conceal bad news in consideration of their short-term interests, and many speculators will not readily share inside information on social platforms because of the cost they incurred to acquire the inside information. However, when investor sentiment turns high, investors tend to overreact to the information they obtain, leading to a herd effect. This increase in trading activity will reduce the transaction cost of informed traders, thereby increasing the proportion of informed traders’ transactions. Using the VPIN to measure the degree of information asymmetry, our second hypothesis is therefore proposed:

H2

High investor sentiment is positively correlated with the VPIN.

Information theory in finance holds that the trades with informed traders will damage the interests of uninformed traders, and the order imbalance caused by information trading exacerbates stock price volatility. Informed traders use information from outside the market to seek arbitrage opportunities, which interferes with the investment direction of other investors. When informed traders conduct transactions, the external information they possess will be reflected in the stock price, thereby causing stock price volatility. The more frequently informed traders trade, the more volatile the stock prices become. The existing literature has verified the impact of information asymmetry on stock market volatility. For instance, Low et al. (2018) found that an increase in VPIN can effectively predict high volatility in several stock indices. Yildiz et al. (2020) found a positive correlation between return volatility and VPIN. This finding is expected because information consolidation is positively correlated with return volatility (Barclay et al. 1990; French and Roll 1986), and VPIN is designed to capture large amounts of information. Yang and Xue (2021) improved the VPIN model based on neural networks and high-frequency data, and confirmed that the VPIN is a good signal for information trading and price volatility. According to H2, high investor sentiment may intensify the degree of information asymmetry. Thus, we propose the third hypothesis of our study.

H3

Investor sentiment affects stock return volatility through the mediating role of the VPIN.

Research design

The sample

The green stock index is generally used to evaluate stocks with green attributes. Specifically, China’s green stock index can be roughly divided into the sustainable development, environmental protection industry, new energy, and green environment sectors. To investigate the influence of investor sentiment on the volatility of the green stock market, we select 106 stocks from the new energy, environmental, and carbon–neutral sectors listed in China’s stock markets. Details about these stocks are shown in Table A1 of the Appendix. All of the selected stocks are above grade B, according to the environment, society, and government (ESG) ratings in the Wind database. The ESG score of these stocks reaches 6.3266, on average. In contrast, the average ESG score of all stocks in China’s A-share market is 5.9376, indicating that the selected stocks do have higher ESG scores on the whole. The sample interval ranges from June 3, 2019 to December 31, 2020, and the frequency of all variables is daily. We select Eastmoney Guba (https://guba.eastmoney.com/) as the text data source for Internet sentiment. We use Python to write the crawler program and crawl all titles relating to each sample stock from June 3, 2019 to December 31, 2020. The stock code, number of readings and comments, author, and post time of each title are also obtained. We then delete closed and meaningless titles, such as forwards and pictures. Finally, a total of 2,608,027 titles are ready for use. In the following, FinBERT will be used for text sentiment classification to convert text into structured data and further calculate the daily Internet sentiment. In addition, we download daily trading indicators from the Wind and CSMAR databases as proxy variables to construct daily trading sentiment. Notably, the daily realized volatility and its decompositions are constructed based on 5-min high-frequency data, and the intraday data comes from the RESSET database. The VPIN and control variable data also come from the Wind and CSMAR databases.

Table 1 Variable definitions

Variable constructions

Investor sentiment

Internet sentiment. The BERT method is a deep interactive pre-trained language model based on the semantic understanding derived from the transformer. The BERT uses transformer encoders as feature extraction tools and adds position encoding to recognize position information to understand language order. In addition, it uses self-attention to improve the computing capability of the model and adopts the scaled dot product as the attention scoring function. The output vector sequence can be written as

$$Attention(Q,K,V) = softmax\left( {\frac{{Q^{T} K}}{{\sqrt {d_{k} } }}} \right)V,$$
(1)

where Q represents the query vector, K denotes the key vector, V is the value vector, \(1/\sqrt {d_{k} }\) is the scaling factor, and softmax is the normalization function. Furthermore, BERT introduces a multi-head self-attention mechanism to extract more interactive information in multiple spaces. The results of the attention function calculation are then processed by layer normalization, which is defined as follows:

$$LN(x_{i} ) = \alpha \times \frac{{x_{i} - \mu_{L} }}{{\sqrt {\sigma_{L}^{2} + \varepsilon } }} + \beta ,$$
(2)

where \(\mu_{L}\) denotes the mean value of net input \(x_{i}\) of neurons in layer L, \(\sigma_{L}^{2}\) is the variance of net input \(x_{i}\) of neurons at layer L, and \(\alpha\) and \(\beta\) represent the parameter vectors of scaling and translation, respectively. In addition,\(\varepsilon\) is an extremely small constant set for numerical stability. After normalization, feed-forward neural networks composed of two full connections are used for the relevant learning. The BERT uses the above basic mechanism to yield a pre-trained language model through unsupervised training with massive text.

Although the BERT is a milestone in processing the sentiment classification of Chinese text, its application in the financial field still needs to be improved. Therefore, Entropy Jane Technology trained the FinBERT pre-training language model based on BERT, using one million financial and economic news articles, nearly two million various research papers, company announcements, and about one million financial encyclopedia entries in 2020. We add a specific task output layer and selected 30,000 titles from the Eastmoney Guba training output layer for application to the target task. The classifier labels negative sentiment as − 1, neutral sentiment as 0, and positive sentiment as 1. The overall process is illustrated in Fig. 1.

Fig. 1
figure 1

Process of sentiment classification

Then, referring to Antweiler and Frank (2004), we construct the Internet sentiment in Eq. (3).

$$SentiIntern_{i,t} = ln\left[ {\left( {1 + M_{pos,i,t} } \right)/\left( {1 + M_{neg,i,t} } \right)} \right],$$
(3)

where \(SentiIntern_{i,t}\) represents the Internet investor sentiment of stock I on day t, \(M_{pos,i,t}\) indicates the number of positive titles of stock I on day t, and \(M_{neg,i,t}\) represents the corresponding number of negative titles.

Trading sentiment. To measure investor sentiment systematically and comprehensively, we select several investor sentiment proxies to synthesize the trading sentiment from multiple indicators. Following Fu et al. (2021), we employ the principal component analysis (PCA) method to construct a firm-specific trading sentiment based on three underlying indicators, including turnover rate (TURN), buy-sell imbalance (BSI), and price-earnings ratio (PE).

The TURN indicator is calculated as the share-trading volume divided by the number of outstanding shares. Baker and Wurgler (2006) believe that the turnover rate can measure the investor sentiment and reflect the active degree of market transactions. Generally speaking, a high turnover rate indicates high demand from emotional investors, which can easily cause stock price instability (Han and Li 2017).

The BSI indicator is constructed by the imbalance between active buying and selling amounts. Kumar and Lee (2006) first include BSI in the construction of retail sentiment. Since then, BSI has been widely used to construct investor sentiment (Gao and Liu 2020; Li 2021). The calculation of BSI is

$$BSI_{i,t} = \frac{{BV_{i,t} - SV_{i,t} }}{{BV_{i,t} + SV_{i,t} }},$$
(4)

where BVi,t is the amount of active buying of stock I in period t, and SVi,t denotes the active selling orders of stock I in period t. Specifically, a positive BSI indicates that investors are in a high mood, and a negative BSI means that investors are depressed.

PE represents the ratio of a stock’s price divided by the earnings per share. The high PE ratio partly reflects investors’ recognition of a company’s growth potential. Suppose a stock’s PE ratio is much higher than its peers’. In this case, it is generally believed that the company’s future earnings will proliferate, and investor sentiment is relatively high. As the core and most commonly used measure of enterprise valuation, the PE ratio is widely used in the construction of trading sentiment (Cheema et al. 2020).

In consideration of the contemporaneous or lag interdependence between these three underlying proxies and investor sentiments, we first produce the lag-one terms of the sentiment indicators. We then conduct the PCA to develop a composite index of firm-specific investor sentiments based on the six indicators, including both the contemporaneous and lag-one terms of the three underlying proxies. The correlation comparison analysis reveals that the contemporaneous terms of TURN, PE, and the lag-one term of BSI take the first three places. Thus, we apply the PCA method on these three proxies and construct the firm-specific sentiment by retaining the first two principal components, whose cumulative variance contribution rate reaches 73%, as shown in Eq. (5).

$$\mathop {SentiTrade}\nolimits_{i,t} = 0.365TURN_{i,t} + 0.259BSI_{i,t - 1} + 0.551PE_{i,t}$$
(5)

Volatility and its decompositions

To measure daily volatility, we adopt the realized volatility (RV) proposed by Andersen and Bollerslev (1998), which is based on 5-min high-frequency data. Given stock I with n intraday returns on trading day t, the realized volatility is then defined as the square of the 5-min intraday returns, and the specific formula is

$$RV_{i,t} = \sum\limits_{j = 1}^{n} {r_{i,t(j)}^{2} } ,$$
(6)

where ri,t(j) is the logarithmic return of the j-th 5-min interval of stock I on day t, j = 1,2,…,n. RV can be considered as a consistent estimate of the true volatility under a continuous diffusion process assumption of stock prices. However, the continuous-time financial theory posits that the asset price without arbitrage is a semi-martingale process. That is, the price process is not necessarily continuous and may contain jumps. Therefore, Barndorff-Nielsen and Shephard (2004, 2006) proposed a non-parametric estimation method called the realized bi-power variation (RBV) to filter jump volatility, as shown in Eq. (7).

$$RBV_{i,t} = \mathop \mu \nolimits_{1}^{ - 2} \mathop {\left( {1 - 2n^{ - 1} } \right)}\nolimits^{ - 1} \sum\limits_{j = 3}^{n} {\left| {r_{i,t(j)} } \right|} \left| {r_{i,t(j - 2)} } \right|,$$
(7)

where \(\mu_{1}\) is a constant equal to \(\left( {2/\pi } \right)^{1/2}\). Assuming that the logarithmic price process is a semi-martingale and finite jump process, the RBV converges to the integral variance in probability. Then, the difference between the realized volatility and the realized bi-power variation is indeed a consistent estimate of the jump volatility. In theory, the value of the jump volatility should be positive, but there may be an empirical case where RVi,t is less than RBVi,t. Therefore, based on the method of Andersen et al. (2007), we define Jumpi,t as

$$Jump_{i,t} = max\left\{ {RV_{i,t} - RBV_{i,t} ,0} \right\}.$$
(8)

Information asymmetry and control variables

Information asymmetry The probability of informed trading (PIN) refers to the probability that a transaction comes from an informed trader with private information, and it always performs as an essential indicator in measuring the degree of information asymmetry. The higher the PIN, the more severe the degree of information asymmetry. Because overflow problems are often encountered in the calculation of the PIN, Easley et al. (2011) developed a VPIN estimator to solve this problem. The VPIN method divides the total transaction volume of a trading day into n transaction buckets with equal volumes, and the transaction volume of each transaction bucket is denoted as V. Informed traders will choose the direction of buying or selling based on their private information, resulting in an imbalance in buying or selling transactions. In calculating the imbalance of each transaction bucket, a transaction is regarded as a buyer’s order if the trading amount of the present transaction is higher than the previous transaction. Otherwise, the transaction is denoted as a seller’s order. Referring to Easley et al. (2012), the series of price differences between adjacent transactions in each bucket is standardized and incorporated into the standard normal distribution function. We can then compute the active buying or selling volume of each transaction. Specifically, the VPIN can be computed by Eq. (9).

$$VPIN = \frac{{\sum\nolimits_{\tau = 1}^{n} {\left| {V_{\tau }^{B} - V_{\tau }^{S} } \right|} }}{nV}.$$
(9)

Here, n denotes the number of buckets, usually taken as 50. \(V_{\tau }^{B}\) represents the active buying volume of each transaction, and \(V_{\tau }^{S}\) is the active selling volume of each transaction.

Control variables. Following Antweiler and Frank (2004) and Sabherwal et al. (2011), we employ stock returns (Return), firm size (Size), book-to-market ratio (BM), and the number of posts (SenNum) as the control variables. Moreover, referring to John and Li (2021), we further add the market credit spread and term spread as control variables. The credit spread adopts the interest rate difference between the China Securities Index (CSI) corporate bond AA + and the government bond with a maturity of one year. The term spread is the interest difference between the 10-year and 1-year government bonds. Early studies reveal that stock market volatility is closely related to the weekday or calendar effect (Doyle and Chen 2009; Keef et al. 2009). We therefore add the weekday effect and introduce the following four dummy variables, Tuest, Wedt, Thurt, and Frit, into the regression models.

$$Tues_{t} = \left\{ {\begin{array}{*{20}l} {1,} \hfill & {{\text{if}}\;t\;{\text{is}}\;{\text{Tuesday}}} \hfill \\ {0,} \hfill & {\text{others,}} \hfill \\ \end{array} } \right.\;Wed_{t} = \left\{ {\begin{array}{*{20}l} {1,} \hfill & {{\text{if}}\;t\;{\text{is}}\;{\text{Wednesday}}} \hfill \\ {0,} \hfill & {\text{others,}} \hfill \\ \end{array} } \right.\;Thur_{t} = \left\{ {\begin{array}{*{20}l} {1,} \hfill & {{\text{if}}\;t\;{\text{is}}\;{\text{Thursday}}} \hfill \\ {0,} \hfill & {\text{others,}} \hfill \\ \end{array} } \right.\;Fri_{t} = \left\{ {\begin{array}{*{20}l} {1,} \hfill & {{\text{if}}\;t\;{\text{is}}\;{\text{Friday}}} \hfill \\ {0,} \hfill & {{\text{others}}} \hfill \\ \end{array} } \right..$$

Detailed variable definitions are given in Table 1.

Model construction

Baseline model

To investigate the impact of investor sentiment on the realized volatility of green stocks, we first include the trading sentiment to conduct a preliminary study employing the following regression:

$$\begin{aligned} RV_{i,t} = & \alpha_{11} + \beta_{11} \mathop {SentiTrade}\nolimits_{{i,t{ - }1}} + \sum\limits_{m = 1}^{p} {\gamma_{m1} } Controls_{{i,t{ - }1}} + \lambda_{11} RV_{i,t - 1} \\ & \quad + \alpha_{i} + \phi_{11} Tues_{t} + \phi_{12} Wed_{t} + \phi_{13} Thur_{t} + \phi_{14} Fri_{t} + \varepsilon_{1,i,t} . \\ \end{aligned}$$
(10)

Specifically, we adopt the lag-one terms of the independent variables in all regressions to avoid endogeneity. Considering the continuity of price fluctuation, we add the lag-one terms of the dependent variable as a control variable. The Internet sentiment is then added to examine its effect on realized volatility, as shown in Eq. (11).

$$\begin{aligned} RV_{i,t} = & \alpha_{12} + \beta_{12} \mathop {SentiTrade}\nolimits_{{i,t{ - }1}} + \delta_{1} \mathop {SentiIntern}\nolimits_{{i,t{ - }1}} + \sum\limits_{m = 1}^{p} {\gamma_{m2} } Controls_{{i,t{ - }1}} + \lambda_{12} RV_{i,t - 1} \\ & \quad + \alpha_{i} + \phi_{21} Tues_{t} + \phi_{22} Wed_{t} + \phi_{23} Thur_{t} + \phi_{24} Fri_{t} + \varepsilon_{2,i,t} . \\ \end{aligned}$$
(11)

Under the assumption of a discontinuous diffusion process of stock prices, the realized volatility can be decomposed into continuous and jump volatilities. To further investigate whether the impact of investor sentiment on volatility is mainly attributable to continuous or jump volatility, we replace the realized volatility with continuous volatility in Eqs. (10) and (11). The specific equations are as follows:

$$\begin{aligned} RBV_{i,t} = & \alpha_{21} + \beta_{21} \mathop {SentiTrade}\nolimits_{{i,t{ - }1}} + \sum\limits_{k = 1}^{p} {\gamma_{k1} } Controls_{{i,t{ - }1}} + \lambda_{21} RBV_{i,t - 1} \\ & \quad + \alpha_{i} + \phi_{31} Tues_{t} + \phi_{32} Wed_{t} + \phi_{33} Thur_{t} + \phi_{34} Fri_{t} + \varepsilon_{3,i,t} , \\ \end{aligned}$$
(12)
$$\begin{aligned} RBV_{i,t} = & \alpha_{22} + \beta_{22} \mathop {SentiTrade}\nolimits_{{i,t{ - }1}} + \delta_{2} \mathop {SentiIntern}\nolimits_{{i,t{ - }1}} + \sum\limits_{k = 1}^{p} {\gamma_{k2} } Controls_{{i,t{ - }1}} + \lambda_{22} RBV_{i,t - 1} \\ & \quad + \alpha_{i} + \phi_{41} Tues_{t} + \phi_{42} Wed_{t} + \phi_{43} Thur_{t} + \phi_{44} Fri_{t} + \varepsilon_{4,i,t} . \\ \end{aligned}$$
(13)

Similarly, we examine the influence of investor sentiment on jump volatility, as shown in Eqs. (14) and (15).

$$\begin{aligned} Jump_{i,t} = & \alpha_{31} + \beta_{31} \mathop {SentiTrade}\nolimits_{{i,t{ - }1}} + \sum\limits_{k = 1}^{p} {\gamma_{k1} } Controls_{{i,t{ - }1}} + \lambda_{31} Jump_{i,t - 1} \\ & \quad + \alpha_{i} + \phi_{51} Tues_{t} + \phi_{52} Wed_{t} + \phi_{53} Thur_{t} + \phi_{54} Fri_{t} + \varepsilon_{5,i,t} , \\ \end{aligned}$$
(14)
$$\begin{aligned} Jump_{i,t} = & \alpha_{32} + \beta_{32} \mathop {SentiTrade}\nolimits_{{i,t{ - }1}} + \delta_{3} \mathop {SentiIntern}\nolimits_{{i,t{ - }1}} + \sum\limits_{k = 1}^{p} {\gamma_{k2} } Controls_{{i,t{ - }1}} + \lambda_{32} Jump_{i,t - 1} \\ & \quad + \alpha_{i} + \phi_{61} Tues_{t} + \phi_{62} Wed_{t} + \phi_{63} Thur_{t} + \phi_{64} Fri_{t} + \varepsilon_{6,i,t} . \\ \end{aligned}$$
(15)

Mediating effect model

We further verify the mediating effect of the VPIN in the influence of investor sentiment on stock volatilities. Specifically, based on Eq. (10), we construct the mediating effect model to examine the specific path of investor sentiment on volatility, as shown in Eqs. (16) and (17).

$$\begin{aligned} VPIN_{i,t} = & \omega_{11} + \xi_{11} \mathop {SentiTrade}\nolimits_{{i,t{ - 1}}} + \sum\limits_{{u{ = }1}}^{p} {\gamma_{u1} } Controls_{{i,t{ - }1}} + \varphi_{11} VPIN_{i,t - 1} \\ & \quad + \omega_{i} + \psi_{11} Tues_{t} + \psi_{12} Wed_{t} + \psi_{13} Thur_{t} + \psi_{14} Fri_{t} + \varepsilon_{7,i,t} , \\ \end{aligned}$$
(16)
$$\begin{aligned} RV_{i,t} = & \alpha_{14} + \beta_{14} \mathop {SentiTrade}\nolimits_{{i,t{ - }1}} + \theta_{1} \mathop {VPIN}\nolimits_{{i,t{ - }1}} + \sum\limits_{{\text{w = 1}}}^{p} {\gamma_{w4} } Controls_{{i,t{ - }1}} + \lambda_{14} RV_{i,t - 1} \\ & \quad + \alpha_{i} + \phi_{71} Tues_{t} + \phi_{72} Wed_{t} + \phi_{73} Thur_{t} + \phi_{74} Fri_{t} + \varepsilon_{8,i,t} . \\ \end{aligned}$$
(17)

In addition, our study also investigates the impact of the VPIN on volatility with the simultaneous existence of both Internet and trading sentiments. That is, we include the Internet sentiment into Eqs. (16) and (17), as shown in Eqs. (18) and (19).

$$\begin{aligned} VPIN_{i,t} = & \omega_{12} + \xi_{12} \mathop {SentiTrade}\nolimits_{{i,t{ - 1}}} + \delta_{4} \mathop {SentiIntern}\nolimits_{{i,t{ - 1}}} { + }\sum\limits_{{u{ = }1}}^{p} {\gamma_{u2} } Controls_{{i,t{ - }1}} + \varphi_{12} VPIN_{i,t - 1} \\ & \quad + \omega_{i} + \psi_{21} Tues_{t} + \psi_{22} Wed_{t} + \psi_{23} Thur_{t} + \psi_{24} Fri_{t} + \varepsilon_{9,i,t} , \\ \end{aligned}$$
(18)
$$\begin{aligned} RV_{i,t} = & \alpha_{15} + \beta_{15} \mathop {SentiTrade}\nolimits_{{i,t{ - }1}} + \delta_{5} \mathop {SentiIntern}\nolimits_{{i,t{ - }1}} { + }\theta_{2} \mathop {VPIN}\nolimits_{{i,t{ - }1}} + \sum\limits_{{\text{w = 1}}}^{p} {\gamma_{w5} } Controls_{{i,t{ - }1}} + \lambda_{15} RV_{i,t - 1} \\ & \quad + \alpha_{i} + \phi_{81} Tues_{t} + \phi_{82} Wed_{t} + \phi_{83} Thur_{t} + \phi_{84} Fri_{t} + \varepsilon_{10,i,t} . \\ \end{aligned}$$
(19)

Similarly, we replace dependent variable RV in Eq. (19) and conduct the mediating effect analysis on RBV and Jump, respectively.

Empirical results

Descriptive statistics

Table 2 presents the descriptive statistics of all variables, where the unit of Size is Chinese Yuan. Table 2 reveals that the average values of realized, continuous, and jump volatilities for the selected green stocks are 0.00103, 0.000767, and 0.000279, respectively. We can find that the jump volatility is relatively small compared with the RBV. In addition, in our sample period, the average Internet sentiment is − 0.746, revealing that investors are more inclined to post negative remarks and express pessimistic sentiment through the online social media platform. Although the mean value of trading sentiment is almost 0, its standard deviation indicates that the trading sentiment is more unstable than the Internet sentiment.

Table 2 Descriptive statistics

We then conduct the data preprocessing procedure as follows. First, RV, RBV, and Jump are multiplied by 104 for convenience. To overcome the possible problem when RV, RBV, and Jump are close to 0, we follow Huang (2018)’s volatility transformation method. Specifically, we modify the dependent variable Y as log(1 + Y), where \(Y \in \{ RV,RBV,Jump\}\). The same treatment is conducted for SenNum, and the logarithm is taken for the variable Size.

We also present the correlation analysis among all variables, and the results are shown in Table 3. The correlations between the trading sentiment and price fluctuations, including realized, continuous, and jump volatilities, are higher than those of the Internet sentiment. The correlation coefficient between the Internet sentiment and jump volatility is insignificant from 0. In addition, the variable VPIN presents significantly positive correlations both with investor sentiments and with volatilities. However, the correlation coefficients between different control variables are relatively small, so it can be concluded that the possible collinearity problem is faint.

Table 3 Correlation analysis among variables

Next, we conduct the unit root tests, and the results are shown in Table 4. The unit root test indicates that all variables are stationary at the 1% significance level.

Table 4 The unit root testing results

Baseline regression results

To examine the impacts of investor sentiments on stock volatilities, we first estimate the parameters in Eqs. (10) to (15). The Hausman tests suggest a fixed-effect panel model, and the results of the fixed-effect regressions are shown in Table 5.

Table 5 Results of the impact of investor sentiment on stock volatility

Columns (1) and (3) of Table 5 demonstrate that trading sentiment significantly increases both realized and continuous volatilities. This phenomenon reveals that when investor sentiment is high, the irrational behavior of noise traders leads to a mismatch between risk and return. Owing to the existence of short-selling restrictions, when the asset prices are overvalued, the rational arbitrageurs tend to withdraw from the overvalued trading market rather than adjust the overvalued prices. However, irrational traders may continue to execute buyer-side trades, causing asset prices to deviate further from their fundamental values. Therefore, the imbalance between supply and demand would intensify the fluctuations of stock prices, which leads to increased volatilities. After incorporating the Internet sentiment with the trading sentiment, columns (2) and (4) also reveal a significant positive relationship between Internet sentiment and realized (continuous) volatility. However, the partial effect of Internet sentiment on volatility is weaker than that of trading sentiment. This may be attributed to the limited users of the Eastmoney Guba, although it is the largest social media platform for investors. Consequently, the Internet sentiment does not affect investors who ignore this forum.

Interestingly, with the inclusion of the Internet sentiment in the models, columns (2) and (4) of Table 3 indicate that the impact of trading sentiment on the realized (continuous) volatility decreases. The Internet text discloses more information about the green stocks, which may improve the effectiveness of the green stock market and thus alleviate the impact of trading sentiment on volatilities. However, negative news conveyed in the Internet sentiment will also spread in real-time through the social media network, thus encouraging investors to buy or sell stocks. Although the Internet sentiment reduces the impact of trading sentiment on stock market volatility, its impact on green stock volatility cannot be ignored.

We also find that the jump volatility is sensitive to changes in trading and Internet sentiments in the green stock market. Specifically, price jumps are usually due to the impact of innovation information, resulting in large or even violent volatility in the short term. Sudden information shocks often cause these jumps; therefore, jump volatility contains ample information content. In addition, consistent with the realized and continuous volatilities, jump volatility is also more susceptible to trading sentiment, and the introduction of Internet sentiment decreases the impact of trading sentiment on jump volatility. The results of the effects of investor sentiment on realized, continuous, and jump volatilities are consistent with the findings of Gong et al. (2022) and Liu et al. (2022). Specifically, Gong et al. (2022) revealed that investor sentiment can significantly increase the realized volatility of stocks based on in-sample, sub-sample, and out-of-sample analysis. Liu et al. (2022) also found that Internet sentiment can significantly exacerbate price jumps. Because retail investors act as the main traders in China’s stock market, investors tend to overreact to information. When the facts are inconsistent with expectations, investors are prone to overcorrection, resulting in short-term stock price fluctuations. Moreover, the short subject of options and futures in China’s stock market is limited, the short selling mechanism is challenging to work, and stock market arbitrage is severely restricted. Irrational investors, who are triggered by the stock deviation from the fundamental phenomenon, are difficult to correct in time and can easily cause continuous or even jump volatility.

Furthermore, by analyzing the impacts of trading sentiment on continuous and jump volatility, we can conclude that trading sentiment imposes similar effects on these two volatilities. Under the current situation of an incomplete green stock market policy and credit system framework, trading sentiment can more easily amplify stock market volatility, and even cause jumps in green stock prices. As to the Internet sentiment’s effects on continuous and jump volatility, for green stocks, Internet sentiment seems more likely to trigger continuous volatility. However, the influence of Internet sentiment on jump volatility cannot be ignored. The reason for this may be that the Internet sentiment could provide investors more distinct positive or negative news, and these tend to form a consistent emotional tendency due to the silent spiral effect. This will result in a more powerful impact on the stock market, and even drive the stock price to jump in turn. As far as the green stock market is concerned, both trading and Internet sentiment can significantly increase jump volatility. The operational stability of the green stock market still needs to be improved. In summary, the above analysis verifies H1.

To further investigate whether there exist significant differences in investor sentiment on the stock volatilities between different stock boards in China’s market, we divide the whole sample into the Main board, SME board, and GEM board. Specifically, the Main, SME, and GEM boards include 52, 31, and 23 green stocks, respectively. The estimation results are shown in Table 6. Consistent with the conclusion for the whole sample, trading sentiment displays significant positive impacts on realized, continuous, and jump volatilities. Internet sentiment also significantly exacerbates the realized and continuous volatilities in different boards, but its impacts are weaker than those of trading sentiment. In contrast, the impact of Internet sentiment on jump volatility is only significant in the Main board, and it is insignificant in the other two boards, which may be due to the much lower number of green stocks in the SME and GEM boards.

Table 6 The results of investor sentiments’ effects on volatilities in different boards

Estimation results of mediating effect models

To explore the mechanism of investor sentiments on stock volatilities more intuitively and precisely, we conduct a stepwise regression to determine the role of information asymmetry. Referring to Baron and Kenny (1986), the stepwise method is divided into three steps. Consider the realized volatility, for instance. First, we examine whether the investor sentiment is significantly related to realized volatility. The coefficient \(\beta_{11}\) of Eq. (10) reflects the total effect of investor sentiment on RV. The second step is to investigate the impact of investor sentiment on information asymmetry. Finally, we explore whether investor sentiment and information asymmetry have considerable effects on realized volatility. The product of the two coefficients, \(\xi_{11}\) and \(\theta_{1}\), respectively, in Eqs. (16) and (17) reflect the indirect effect of investor sentiment on realized volatility, and the coefficient \(\beta_{14}\) in Eq. (17) represents the direct effect of investor sentiment on realized volatility. In addition, the size of the mediating effect is yielded by \(\left( {\xi_{11} \times \theta_{1} } \right)/\beta_{11}\). Columns (1) and (2), (3) and (4), and (5) and (6) of Table 5 present the first-step results of RV, RBV, and Jump, respectively. The fixed-effect estimation method is also adopted for the subsequent analysis. The results of the second step are shown in columns (1) and (5) of Table 7. Columns (2) to (4) display the RV, RBV, and Jump results for the third step in the absence of Internet sentiment, respectively. Columns (6) to (8) show the corresponding results for including both the Internet sentiment and the trading sentiment.

Table 7 Mediation effect model results

Column (2) of Table 7 shows that the direct effect of trading sentiment on realized volatility is 0.0673, and the total effect of trading sentiment on realized volatility is 0.0777, according to the column (1) of Table 5. This may be because trading sentiment is positively correlated with the VPIN from the results in column (1) of Table 7. The higher trading sentiment will facilitate the informed traders, and they can obtain excess returns in the trading process. Investors with an informational advantage incorporate information into the stock price during the transaction process, thereby exacerbating the volatility of green stock prices. The VPIN performs as a transmission channel in the effect of trading sentiment on the realized volatility, and the mediating effect is 0.0120 × 0.746/0.0777, namely 11.521%.

When incorporating the Internet sentiment into the mediating effect models, both the total and direct effects of trading sentiment on realized volatility decrease slightly. Meanwhile, the VPIN’s mediating effect size also reduces to 0.0115 × 0.729/0.0740, namely 11.329%. This can be attributed to the fact that investors will adjust their investment decisions after exchanging information through social network platforms. The correlation between Internet sentiment and the VPIN is also significantly positive, indicating that the VPIN performs as an important way for Internet sentiment to affect realized volatility. This result further illustrates that the information in the stock market shows non-homogeneity due to the differences in information acquisition and processing by individual investors. The arrival of information will change investors’ expectations of assets, and the rendering of investor sentiment provides convenience for informed traders to trade, thus exacerbating the stock market’s volatility.

Similarly, we adopt the stepwise method to analyze the mediating effects of VPIN on continuous and jump volatilities, respectively. Table 6 shows that VPIN presents a mediating effect of 17.748% on the continuous volatility affected by trading sentiment. The mediating effect on jump volatility reaches 11.258%. This indicates that the VPIN, as a transmission channel for investor sentiment to affect price volatility, also plays a significant role in continuous and jump volatilities. In particular, the Chinese green stock market is still in its infancy, and the lack of financial products will cause more price fluctuations. Then maintaining good information disclosure and transparency of green stocks is of great significance for the stability of the green stock market and the alleviation of the jump occurrence. Moreover, with the inclusion of the Internet sentiment, the mediating effects of the VPIN in the trading sentiment’s influence on the continuous and jump volatilities reach 17.504% and 11.195%, respectively. Consistent with the results on the realized volatility, the introduction of Internet sentiment reduces the VPIN’s mediating effect. Besides, comparing the mediating effect of the VPIN in the role of trading sentiment’s influence on continuous volatility with that on jump volatility, it can be found that trading sentiment seems more likely to cause continuous volatility through the mediating path of the VPIN.

Besides the stepwise method conducted above, we also use the Bootstrap method following Preache and Hayes (2008) to further confirm whether the VPIN’s mediating effect is significant in the influence of investor sentiments on volatilities. The testing results are shown in Table 8, revealing that the indirect effect coefficients of trading sentiment and Internet sentiment on realized volatility, continuous volatility, and jump volatility are all greater than 0 within the 95% confidence interval. The Internet sentiment can also affect volatilities through the VPIN. Consequently, the assumptions H2 and H3 of this study are both verified.

Table 8 Bootstrap testing results

Further analysis

The outbreak of the COVID-19 at the ending of 2019 has seriously impaired the world’s economy, and investor sentiment has become more complicated and volatile. Therefore, we divide the whole sample into pre- and post-pandemic subsamples and clarify whether there are significant differences in investor sentiment’s effects on volatilities. Since the first case was notified by the official on December 12, 2019, we selected this day as a node to divide the whole sample into before and after COVID-19 groups.

Main regression analysis around COVID-19

First, we analyze the impact of investor sentiment on these three types of volatilities before and after the pandemic. The results are listed in Table 9.

Table 9 Results of baseline model before and after the COVID-19 pandemic

According to the results before and after the COVID-19 in Table 9, we confirm that investor sentiment positively affects realized volatility in the two subsamples. That is, higher investor sentiment produces more volatile green stock markets, which is consistent with the conclusion in Sect. 4. However, by comparing the coefficients before and after the COVID-19, we can find that investor sentiment has a severer impact on volatilities after the outbreak of COVID-19 in general. Specifically, the results reveal that the coefficient of Internet sentiment on realized volatility before the pandemic is 0.0284, while the coefficient after the COVID-19 reaches 0.0508, increasing to 1.789 times that before the pandemic. The reasons for this phenomenon may lie in two aspects. On the one hand, dual carbon targets have not yet been proposed before the outbreak of COVID-19, and green stocks attracted less attention with fewer posts in Eastmoney Guba. This can also be reflected in the volume of the posts. The number of posts also imposes insignificant impacts on volatility before the pandemic. On the other hand, the outbreak was sudden. Investors knew little about the virus and were hungry for information. At this time, gossip and rumors spread more easily, and pessimism and panic made investors more likely to sell stocks, resulting in intense stock price fluctuations. Consequently, stock price fluctuations after the pandemic are more susceptible to the Internet sentiment. Moreover, affected by the pandemic, the panic generated on the Internet spreads rapidly after being brewed, causing a sudden impact on stock price fluctuations. Financial asset volatilities tend to display leverage effects. Bad news usually brings more intense volatility than good news does, so the Internet sentiment after the pandemic is more likely to generate price volatility.

Similarly, to verify the robustness of our empirical results, we further analyze the difference in the impact of investor sentiment on continuous and jump volatilities around the COVID-19. The corresponding results are shown in columns (3–6) of Table 9. By analyzing Panels A and B in Table 9, We find that the impacts of Internet sentiment on continuous and jump volatilities increased significantly, which reach 2.516 and 1.522 times that before the pandemic, respectively. The influence of trading sentiment on continuous and jump volatilities has also increased slightly after the epidemic. The impact of COVID-19 on stock market volatility is also described in the relevant literature. For example, John and Li (2021) analyze the impact of different types of news on the jump component in the VIX index and the jump component in realized volatility, and the results showed that COVID-19 and the market’s Google search index increased the jump in the VIX index and realized volatility. Liu et al. (2022) also confirm that extreme Internet sentiment is more prone to jump. Moreover, continuous volatility is more sensitive to investor sentiment than jump volatility, which further verifies the results of Sect. 4.2.

Mediating effect

The results in Sect. 4.2 show that information asymmetry can enhance the impact of investor sentiment on volatility. We further analyze the differences in the mediating role of VPIN on the path of investor sentiment affecting volatilities around the COVID-19. Section 5.1 has presented the results of the first step in the mediating effect analysis. Specifically, columns (1) and (2), (3) and (4), and (5) and (6) in Table 9, display the total effect results on realized, continuous, and jump volatilities, respectively. Fixed-effect estimation is conducted in the subsequent analysis. Table 10 shows the mediating effect results, among which columns (1) and (5) of Table 10 are the results of the second step. Columns (2) to (4) are the third-step mediation results of RV, RBV, and Jump without Internet sentiment, respectively. Columns (6) to (8) show the corresponding results with the inclusion of Internet sentiment.

Table 10 Results of mediation effect model before and after the COVID-19 pandemic

Regardless of the Internet sentiment’s role, the impact of trading sentiment on the VPIN improved after COVID-19. When the COVID-19 pandemic suddenly occurred, the investment demand of shareholders decreased, and the liquidity of the stock market turned short. Meanwhile, the high trading sentiment activated the stock market and facilitated informed traders to complete transactions. Therefore, the influence of trading sentiment on the VPIN was strengthened. Specifically, the mediating effect of the VPIN in the impact of trading sentiment on RV before COVID-19 was 8.345% (0.0115 × 0.693/0.0955). After COVID-19, the VPIN’s mediating effect rose to 10.155% (0.0139 × 0.602/0.0824). The VPIN’s mediating effect after COVID-19 increased in the realized volatility affected by the trading sentiment, indicating that information transparency plays as an important role in reducing volatility and preventing risks in uncertain times. By exploring the role of Internet sentiment, we can see that both the direct effect and total effect of Internet sentiment on realized volatility increased after the COVID-19 pandemic. Consistent with trading sentiment, Internet sentiment is positively correlated with the VPIN, indicating that the Internet sentiment can directly affect realized volatility and indirectly aggravate realized volatility through the transmission of VPIN.

Furthermore, the immediate and aggregate impacts of trading sentiment on both continuous and jump volatilities intensified after COVID-19. A similar conclusion can be drawn for Internet sentiment. Consistent with the results on the realized volatility, the mediating effects of VPIN on the continuous and jump volatility of trading sentiment also improved after the COVID-19 pandemic. After calculation, it is found that the VPIN plays a stronger role in the influence of trading sentiment on continuous volatility than on jump volatility.

Conclusion

Our study constructed both Internet sentiment and trading sentiment of investors based on multi-source data. We established fixed-effect panel data models to explore the influential mechanism and path of the two investor sentiment proxies on realized, continuous, and jump volatilities, respectively. We have drawn the following four conclusions.

First, an upsurge in trading sentiment can significantly increase realized, continuous, and jump volatilities. Continuous volatility is the most sensitive to trading or Internet sentiment, and jump volatility in the green stock market is also easily affected by investor sentiment. Second, the impacts of Internet sentiment on realized, continuous, and jump volatilities have significantly increased in the post-pandemic period. Before the pandemic, the role of Internet sentiment is limited because of lower posting volume and insufficient attention to green stocks. However, the addition of Internet sentiment discloses more information, improves the efficiency of the stock market, and thus reduces the impact of trading sentiment on volatility. Third, the impacts of trading sentiment on volatilities in different stock boards are consistent, while the Internet sentiment tends to impose limited effects on the jump volatility for the SME and GEM boards. Finally, the VPIN functions as an intermediary path through which investor sentiment affects volatilities. Investor sentiment can further amplify stock volatility by aggravating the level of information asymmetry.

Developing green stocks is the first step on the inevitable path toward a structural adjustment of the economy and the realization of economically and environmentally sustainable development. However, there remain some imperfections in China’s green stock market. For example, a standard, unified definition of green projects should be created, which will help investors make better decisions. In addition, because of the lack of a perfect information disclosure and sharing mechanism, the form and content of enterprise information disclosure vary among enterprises. The quality of information disclosed also needs to be improved, which can further enhance investors’ desire to trade. Combined with the current situation and our results, we provide an essential reference for regulators to maintain the stable development of the green stock market. On the one hand, regulators should establish scientific and efficient investor sentiment measures to minimize the negative influence of irrational sentiment, such as causing prices to deviate from fundamental values too much. On the other hand, companies should pay more attention to online forums and try to improve information disclosure for green stocks. The increase in information transparency can contribute to reducing the volatility of the stock market and avoiding systemic financial risks, and a green stock market will also be helpful in attracting financial capital for environmental protection industries.

Availability of data and materials

We are sorry that the authors do not have the license to share the data.

Abbreviations

VPIN:

Volume-synchronized probability of informed trading

COVID-19:

Coronavirus disease 2019

PCA:

Principal component analysis

BERT:

Bidirectional encoder representations from transformers

RV:

Realized volatility

RBV:

Realized Bi-power variation

References

  • Abdelmalek W (2021) Investor sentiment, realized volatility and stock returns. Rev Behav Financ. https://doi.org/10.1108/RBF-12-2020-0301

    Article  Google Scholar 

  • Anastasiou D, Ballis A, Drakos K (2022) Constructing a positive sentiment index for COVID-19: evidence from G20 stock markets. Int Rev Financ Anal 81:102111

    Article  Google Scholar 

  • Andersen TG, Bollerslev T (1998) Answering the skeptics: yes, standard volatility models do provide accurate forecasts. Int Econ Rev 39(4):885–905

    Article  Google Scholar 

  • Andersen TG, Bollerslev T, Diebold FX (2007) Roughing it up: Including jump components in the measurement, modeling, and forecasting of return volatility. Rev Econ Stat 89(4):701–720

    Article  Google Scholar 

  • Antweiler W, Frank MZ (2004) Is all that talk just noise? The information content of internet stock message boards. J Financ 59(3):1259–1294

    Article  Google Scholar 

  • Audrino F, Sigrist F, Ballinari D (2020) The impact of sentiment and attention measures on stock market volatility. Int J Forecast 36(2):334–357

    Article  Google Scholar 

  • Baker M, Wurgler J (2006) Investor sentiment and the cross-section of stock returns. J Financ 61(4):1645–1680

    Article  Google Scholar 

  • Baker M, Wurgler J (2007) Investor sentiment in the stock market. J Econ Perspect 21(2):129–152

    Article  Google Scholar 

  • Barber BM, Odean T (2008) All that glitters: The effect of attention and news on the buying behavior of individual and institutional investors. Rev Financ Stud 21(2):785–818

  • Barberis N, Shleifer A, Vishny R (1998) A model of investor sentiment. J Financ Econ 49(3):307–343

  • Barclay MJ, Litzenberger RH, Warner JB (1990) Private information, trading volume, and stock-return variances. Rev Financ Stud 3(2):233–253

  • Barndorff-Nielsen OE, Shephard N (2004) Power and bipower variation with stochastic volatility and jumps. J Financ Economet 2(1):1–37

    Article  Google Scholar 

  • Barndorff-Nielsen OE, Shephard N (2006) Econometrics of testing for jumps in financial economics using bipower variation. J Financ Economet 4(1):1–30

    Google Scholar 

  • Baron RM, Kenny DA (1986) The moderator–mediator variable distinction in social psychological research: conceptual, strategic, and statistical considerations. J Pers Soc Psychol 51(6):1173–1182

    Article  Google Scholar 

  • Basiri ME, Nemati S, Abdar M et al (2021) A novel fusion-based deep learning model for sentiment analysis of COVID-19 tweets. Knowl-Based Syst 228:107242

    Article  Google Scholar 

  • Bjursell J, Wang GHK, Zheng H (2017) VPIN, jump dynamics and inventory announcements in energy futures markets. J Fut Mark 37(6):542–577

    Article  Google Scholar 

  • Black F (1986) Noise. J Financ 41(3):528–543

    Article  Google Scholar 

  • Carosia AEO, Coelho GP, Silva AEA (2021) Investment strategies applied to the Brazilian stock market: a methodology based on Sentiment Analysis with deep learning. Expert Syst Appl 184:115470

    Article  Google Scholar 

  • Cheema MA, Man Y, Szulczyk KR (2020) Does investor sentiment predict the near-term returns of the Chinese stock market? Int Rev Financ 20(1):225–233

    Article  Google Scholar 

  • Daniel K, Hirshleifer D, Subrahmanyam A (1998) Investor psychology and security market under-and overreactions. J Financ 53(6):1839–1885

  • De Long JB, Shleifer A, Summers LH et al (1990) Noise trader risk in financial markets. J Polit Econ 98(4):703–738

    Article  Google Scholar 

  • Doyle JR, Chen CH (2009) The wandering weekday effect in major stock markets. J Bank Financ 33(8):1388–1399

    Article  Google Scholar 

  • Duan YJ, Liu LB, Wang Z (2021) COVID-19 Sentiment and the Chinese stock market: evidence from the official news media and Sina weibo. Res Int Bus Financ 58(05):101432

    Article  Google Scholar 

  • Easley D, De Prado ML, O’Hara M (2011) The microstructure of the “flash crash”: flow toxicity, liquidity crashes, and the probability of informed trading. J Portfolio Manag 37(2):118–128

    Article  Google Scholar 

  • Easley D, de López PM, O’Hara M (2012) Flow toxicity and liquidity in a high-frequency world. Rev Financ Stud 25(5):1457–1493

    Article  Google Scholar 

  • Easley D, Kiefer NM, O’hara M et al (1996) Liquidity, information, and infrequently traded stocks. J Financ 51(4):1405–1436

    Article  Google Scholar 

  • Easley D, O’hara M (1987) Price, trade size, and information in securities markets. J Financ Econ 19(1):69–90

    Article  Google Scholar 

  • Frazzini A, Lamont OA (2008) Dumb money: mutual fund flows and the cross-section of stock returns. J Financ Econ 88(2):299–322

    Article  Google Scholar 

  • French KR, Roll R (1986) Stock return variances: The arrival of information and the reaction of traders. J Financ Econ 17(1):5–26

  • Fu J, Wu X, Liu Y et al (2021) Firm-specific investor sentiment and stock price crash risk. Financ Res Lett 38:101442

    Article  Google Scholar 

  • Gao B, Liu X (2020) Intraday sentiment and market returns. Int Rev Econ Financ 69:48–62

    Article  Google Scholar 

  • Gong X, Zhang W, Wang J et al (2022) Investor sentiment and stock volatility: New evidence. Int Rev Financ Anal 80:102028

  • Han X, Li Y (2017) Can investor sentiment be a momentum time-series predictor? Evidence from China. J Empir Financ 42:212–239

    Article  Google Scholar 

  • He Z, He L, Wen F (2019) Risk compensation and market returns: the role of investor sentiment in the stock market. Emerg Mark Financ Trade 55(3):704–718

    Article  Google Scholar 

  • Hirshleifer D, Jiang D, DiGiovanni YM (2020) Mood beta and seasonalities in stock returns. J Financ Econ 137(1):272–295

    Article  Google Scholar 

  • Huang X (2018) Macroeconomic news announcements, systemic risk, financial market volatility, and jumps. J Fut Mark 38(5):513–534

    Article  Google Scholar 

  • Huynh TLD, Foglia M, Nasir MA et al (2021) Feverish sentiment and global equity markets during the COVID-19 pandemic. J Econ Behav Organ 188:1088–1108

    Article  Google Scholar 

  • Javakhadze D, Ferris SP, Sen N (2014) An international analysis of dividend smoothing. J Corp Finan 29:200–220

    Article  Google Scholar 

  • Jiang S, Jin X (2021) Effects of investor sentiment on stock return volatility: a spatio-temporal dynamic panel model. Econ Model 97:298–306

    Article  Google Scholar 

  • Jindra J, Moeller T (2020) Time since targets’ initial public offerings, asymmetric information, uncertainty, and acquisition pricing. J Bank Financ 118:105896

    Article  Google Scholar 

  • Jing N, Wu Z, Wang H (2021) A hybrid model integrating deep learning with investor sentiment analysis for stock price prediction. Expert Syst Appl 178:115019

    Article  Google Scholar 

  • John K, Li J (2021) COVID-19, volatility dynamics, and sentiment trading. J Bank Finance 133:106162

    Article  Google Scholar 

  • Keef SP, Khaled M, Hui Z (2009) The dynamics of the Monday effect in international stock indices. Int Rev Financ Anal 18(3):125–133

    Article  Google Scholar 

  • Kumar A (2009) Hard-to-value stocks, behavioral biases, and informed trading. J Financ Quant Anal 44(6):1375–1401

  • Kumar A, Lee CMC (2006) Retail investor sentiment and return comovements. J Financ 61(5):2451–2486

    Article  Google Scholar 

  • Kyle AS (1985) Continuous auctions and insider trading. Econ J Econ Soc 2:1315–1335

    Google Scholar 

  • Lee CMC, Shleifer A, Thaler RH (1991) Investor sentiment and the closed-end fund puzzle. J Financ 46(1):75–109

    Article  Google Scholar 

  • Leow EKW, Nguyen BP, Chua MCH (2021) Robo-advisor using genetic algorithm and BERT sentiments from tweets for hybrid portfolio optimization. Expert Syst Appl 179:115060

    Article  Google Scholar 

  • Li J (2021) The term structure effects of individual stock investor sentiment on excess returns. Int J Financ Econ 26(2):1695–1705

  • Li Y, Bu H, Li J et al (2020) The role of text-extracted investor sentiment in Chinese stock price prediction with the enhancement of deep learning. Int J Forecast 36(4):1541–1562

    Article  Google Scholar 

  • Li W, Wen LW (2019) Investor sentiment and microstructure information in index futures markets. Science 2:7448

    Google Scholar 

  • Li J, Yu L, Mei X et al (2022) Do social media constrain or promote company violations? Account Financ 62(1):31–70

    Article  Google Scholar 

  • Liang W (2016) Sensitivity to investor sentiment and stock performance of open market share repurchases. J Bank Financ 71:75–94

    Article  Google Scholar 

  • Liu W, Zhang C, Qiao G et al (2022) Impact of network investor sentiment and news arrival on jumps. N Am Econ Financ 62:101780

  • Low RKY, Li T, Marsh T (2018) BV–VPIN: Measuring the impact of order flow toxicity and liquidity on international equity markets. J Risk 21(2):63–97

    Google Scholar 

  • Pagano MS, Sedunov J, Velthuis R (2021) How did retail investors respond to the COVID-19 pandemic? The effect of Robinhood brokerage customers on market quality. Financ Res Lett 43:101946

    Article  Google Scholar 

  • Preacher KJ, Hayes AF (2008) Asymptotic and resampling strategies for assessing and comparing indirect effects in multiple mediator models. Behav Res Methods 40(3):879–891

    Article  Google Scholar 

  • Rupande L, Muguto HT, Muzindutsi PF (2019) Investor sentiment and stock return volatility: evidence from the Johannesburg Stock Exchange. Cogent Econ Financ 7(1):1600233

    Article  Google Scholar 

  • Sabherwal S, Sarkar SK, Zhang Y (2011) Do internet stock message boards influence trading? Evidence from heavily discussed stocks with no fundamental news. J Bus Financ Acc 38(9–10):1209–1237

    Article  Google Scholar 

  • Shleifer A, Summers LH (1990) The noise trader approach to finance. J Econ Perspect 4(2):19–33

    Article  Google Scholar 

  • Siganos A, Vagenas-Nanos E, Verwijmeren P (2017) Divergence of sentiment and stock market trading. J Bank Financ 78:130–141

    Article  Google Scholar 

  • Smales LA (2021) Investor attention and global market returns during the COVID-19 crisis. Int Rev Financ Anal 73:101616

    Article  Google Scholar 

  • Sun Y, Bao Q, Lu Z (2021) Coronavirus (Covid-19) outbreak, investor sentiment, and medical portfolio: evidence from China, Hong Kong, Korea, Japan, and US. Pac Basin Financ J 65:101463

    Article  Google Scholar 

  • Wei WC, Gerace D, Frino A (2013) Informed trading, flow toxicity and the impact on intraday trading factors. Australas Account Bus Financ J 7(2):3–24

    Article  Google Scholar 

  • Yang H, Xue F (2021) Analysis of stock market volatility: Adjusted VPIN with high-frequency data. Int Rev Econ Financ 75:210–222

    Article  Google Scholar 

  • Yang CP, Hu XY (2021) Individual stock sentiment beta and stock returns. North American J Econ Financ 55(01):101306

    Article  Google Scholar 

  • Yildiz S, Van Ness B, Van Ness R (2020) VPIN, liquidity, and return volatility in the US equity markets. Glob Financ J 45:100479

  • Zhu Y, Wu Z, Zhang H et al (2017) Media sentiment, institutional investors and probability of stock price crash: evidence from Chinese stock markets. Account Financ 57(5):1635–1670

    Article  Google Scholar 

Download references

Acknowledgements

Not applicable.

Funding

This research is financially supported by the National Natural Science Foundation of China (72171005), to which we are deeply grateful.

Author information

Authors and Affiliations

Authors

Contributions

YG: Conceptualization, Methodology, Funding acquisition, Writing-original draft. CZ: Investigation, Data curation, Visualization, Software. BS: Methodology, Writing-review & editing, Validation. WZ: Investigation, Data curation. All the authors read and approved the final manuscript.

Corresponding author

Correspondence to Bianxia Sun.

Ethics declarations

Ethics approval and consent to participate

Not applicable

Consent for publication

Not applicable

Competing interests

No conflicts of interest to declare.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This research is financially supported by the National Natural Science Foundation of China (72171005), to which we are deeply grateful

Appendix

Appendix

See Table 11.

Table 11 The Wind ESG ratings and scores for 2020

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Gao, Y., Zhao, C., Sun, B. et al. Effects of investor sentiment on stock volatility: new evidences from multi-source data in China’s green stock markets. Financ Innov 8, 77 (2022). https://doi.org/10.1186/s40854-022-00381-2

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s40854-022-00381-2

Keywords

JEL Classification