• 沒有找到結果。

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

43

research can be improved by incorporating sentimental analysis of text data from social media and other investment related websites.

Second, the six confidence indexes from J.P. Morgan Asset Management are quarterly data. To work with the weekly data from Google Trends and from the Taiwan Economic Journal, we have transformed the indexes into weekly data, which might not reflect investor’s sentiments precisely. As shown in this research, some of the indexes are not significantly related to the TAIEX average returns. This result can be improved when higher frequency data become available.

Last, it is not clear to us why SVI has predictive power for the TAIEX average returns of the first, third, fourth and fifth week but not the second week. There might be other factors of SVIs we need to consider when using it to represent investors’

attention.

4. Recommendations for Future Research

We outline three areas of research for future works:

o The incorporation of sentimental analysis of text data from social media, such as Facebook, Twitter, and other investment related websites to represent investors’ sentiments. Not only are these data easier to obtain through web crawler, they also provide more precise and timely information about

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

44

investors’ sentiments. Consequently, more accurate results might be obtained with less time delay.

o The investigation of investors’ Google search behaviors in other financial markets. While we have identified investors in the Taiwan Stock Market mostly use company names, not ticker symbols, to conduct Google search for stocks related information, it is not clear if this behavior is unique to the Taiwan Stock Market. This is an interesting research question to be explored in the future.

o The exploration of investors’ buying and selling intentions revealed from their Google search behaviours. In particular, we will investigate expanded Google search keywords, in addition to company names or ticker symbols, and will use other tools such as Google Correlate to study investors behaviours in the Taiwan Stock Market (see Stocking & Matsa, 2017).

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

45

Appendix

1. Newey-West Correction of Standard Errors Method Explained

1. Below is the proof of kernel HAC from Kuan (2008).

“Consider the linear specification 𝑦𝑦𝑖𝑖= 𝑥𝑥𝑖𝑖𝛽𝛽 + 𝑒𝑒𝑖𝑖, and the OLS estimator 𝛽𝛽̂𝑇𝑇(𝑘𝑘 × 1). We shall

review some basic asymptotic theory for 𝛽𝛽̂𝑇𝑇 and the Wald test of regression parameters. In what follows,

we let [𝑐𝑐] denote the integer part of c, → convergence in probability, ⇒ week convergence (of

associated probability measures), → convergence in distribution 𝐷𝐷 =dequality in distribution, 𝑊𝑊𝑘𝑘 a vector

of 𝑘𝑘 independent, standard Wiener processes and 𝐵𝐵𝑘𝑘 the Brownian bridge obtained from 𝑊𝑊𝑘𝑘 such that

𝐵𝐵𝑘𝑘(𝑟𝑟) = 𝑊𝑊𝑘𝑘(𝑟𝑟) − 𝑟𝑟𝑊𝑊𝑘𝑘(1), 0≤ r ≤ 1. When 𝑘𝑘 = 1, we simply write 𝑊𝑊1 as 𝑊𝑊 and 𝐵𝐵1 as 𝐵𝐵.

We impose the following “high level” conditions on data.

[A1] For some 𝛽𝛽0, ε𝑖𝑖= 𝑦𝑦𝑖𝑖− 𝑥𝑥𝑖𝑖𝛽𝛽0 such that 𝔼𝔼(𝑥𝑥𝑖𝑖𝜀𝜀𝑖𝑖) = 0 and

1

√𝑇𝑇|𝑇𝑇𝑖𝑖=1𝑟𝑟|𝑥𝑥𝑖𝑖𝜀𝜀𝑖𝑖⇒ 𝑆𝑆0𝑊𝑊𝑘𝑘(𝑟𝑟), r ∈ [0,1], where 𝑆𝑆0 is the nonsingular, matrix square root of

Σ0= lim

𝑇𝑇→∞𝑣𝑣𝑣𝑣𝑟𝑟(√𝑇𝑇1 𝑇𝑇𝑖𝑖=1𝑥𝑥𝑖𝑖𝜀𝜀𝑖𝑖) , i.e., Σ0= 𝑆𝑆0𝑆𝑆0.

[A2] M𝑇𝑇 = 𝑇𝑇−1|𝑇𝑇𝑖𝑖=1𝑟𝑟|𝑥𝑥𝑖𝑖𝑥𝑥𝑖𝑖→ 𝑀𝑀 0 uniformly in r ∈ (0,1] such that 𝑀𝑀0 is nonsingular.

By [A1],

This is the well-known asymptotic normality result for the OLS estimator.

With the results in (1), the limiting distributions of the well-known large-sample tests are easily

obtained. Consider the null hypothesis 𝐻𝐻0: 𝑅𝑅𝛽𝛽0= 𝑟𝑟 with R a q × 𝑘𝑘 matrix with full row rank. Under

the null hypothesis, (1) implies

√𝑇𝑇�𝑅𝑅𝛽𝛽̂𝑇𝑇− 𝑟𝑟�→ 𝒩𝒩(0, 𝑅𝑅M𝐷𝐷 0−1Σ0M0−1𝑅𝑅). (2)

Replacing 𝑀𝑀0 and Σ0 with their respective consistent estimators 𝑀𝑀𝑇𝑇 and Σ�𝑇𝑇, we have

(𝑅𝑅MT−1Σ�𝑇𝑇MT−1𝑅𝑅)−1/2√𝑇𝑇𝑅𝑅�𝛽𝛽̂𝑇𝑇− 𝛽𝛽0→ 𝒩𝒩�0, 𝐼𝐼𝐷𝐷 𝑞𝑞�.

It follows that the Wald test of this hypothesis is

𝑊𝑊𝑇𝑇 = 𝑇𝑇�𝑅𝑅𝛽𝛽̂𝑇𝑇− 𝑟𝑟�(𝑅𝑅MT−1Σ�𝑇𝑇MT−1𝑅𝑅)−1�𝑅𝑅𝛽𝛽̂𝑇𝑇− 𝑟𝑟�→ 𝒳𝒳𝐷𝐷 2(𝑞𝑞). (3)

Note that 𝑊𝑊𝑇𝑇 would not have a limiting 𝒳𝒳2 distribution if Σ�𝑇𝑇 is not a consistent estimator for Σ0.

For other large-sample tests, such as the LM test and Hausman test, it is also crucial to have a consistent

estimator of the asymptotic variance-covariance matrix.

2. HAC Estimators

For consistent estimation of Σ0, first note that, by definition,

Σ0= lim

For notation simplicity, we write

Σ0= lim

3. Kernel HAC Estimators

It is clear that exact form of Σ0 depends on data characteristics. When 𝑥𝑥𝑖𝑖𝜀𝜀𝑖𝑖 are serially

uncorrelated, all the autocovariances in (4) vanish, so that

Σ0= lim

𝑇𝑇→∞Γ𝑇𝑇(0) = lim𝑇𝑇→∞1𝑇𝑇𝑇𝑇𝑖𝑖=1𝔼𝔼(𝜀𝜀𝑖𝑖2𝑥𝑥𝑖𝑖𝑥𝑥𝑖𝑖). (5) The variance-covariance matrix can be consistently estimated by White’s heteroscedasticity consistent

estimator:

Σ�𝑇𝑇=1𝑇𝑇𝑇𝑇𝑖𝑖=1𝑒𝑒̂𝑖𝑖2𝑥𝑥𝑖𝑖𝑥𝑥𝑖𝑖,

denote a function of that diverges with T we have

Σ𝑇𝑇+= � 𝑙𝑙(𝑇𝑇) Γ𝑇𝑇(𝑗𝑗) →

proper variance-covariance matrix. A consistent estimator that is also positive semi-definite is the

following estimator of the spectral density:

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

49

Σ�𝑇𝑇𝑘𝑘 = Σ𝑗𝑗=−𝑇𝑇+1𝑇𝑇−1 κ �𝑙𝑙(𝑇𝑇)𝑗𝑗 � Γ�𝑇𝑇(𝑗𝑗), (6)

where κ is a proper kernel function and 𝑙𝑙(𝑇𝑇) is its bandwidth, which jointly determine the weights

assigned to Γ�𝑇𝑇(𝑗𝑗). Typically, κ is required to satisfy: |𝜅𝜅(𝑥𝑥)| ≤ 1, 𝜅𝜅(0) = 1, 𝜅𝜅(𝑥𝑥) = 𝜅𝜅(−𝑥𝑥) for all 𝑥𝑥 ∈

ℝ, ∫|𝜅𝜅(𝑥𝑥)| 𝑑𝑑𝑥𝑥 < ∞, κ is continuous at 0 and at all but a finite number of other points in ℝ, and

� 𝜅𝜅(𝑥𝑥)

−∞ 𝑒𝑒−𝑖𝑖𝑖𝑖𝑖𝑖𝑑𝑑𝑥𝑥 ≥ 0, ∀ω ∈ ℝ.

Note that the last condition ensures positive semi-definiteness; see Andrews (1991).

Below is Parzen kernel (Gallant, 1987):

1 − 6𝑥𝑥2+ 6|𝑥𝑥|3, |𝑥𝑥| ≤12

κ(𝑥𝑥) = 2(1 − |𝑥𝑥|)3, 12≤ |𝑥𝑥| ≤ 1

0, otherwise

2. Code

Data paper;

input date log_search_volume_change log_AvgPrice_change log_volume_change

mood_price_change mood_Tweconomic_change mood_government_change mood_possibility_change mood_global_change mood_investment_change;

datalines;

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

50

… …

;

proc model data=paper;

exog log_search_volume_change log_volume_change mood_price_change mood_Tweconomic_change ;

instruments _exog_;

parms b0 b1 b2 b3 b4 ;

log_AvgPrice_change = b0 + b1*log_search_volume_change + b2*log_volume_change + b3*mood_price_change +

b4*mood_TWeconomic_change;

fit log_AvgPrice_change / gmm kernel=(parzen,4,0) vardef=n;

run;

quit;

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

51

References

Aouadi, A., Arouri, M., & Teulon, F. (2013). Investor attention and stock market activity: Evidence from France. Economic Modelling, 35, 674-681.

Andrade, S. C., Chang, C., & Seasholes, M. S. (2008). Trading imbalances, predictable reversals, and cross-stock price pressure. Journal of Financial Economics, 88(2), 406-423.

Andrews, D. W. (1991). Heteroskedasticity and autocorrelation consistent covariance matrix estimation. Econometrica: Journal of the Econometric Society, 817-858.

Baker, M., & Wurgler, J. (2006). Investor sentiment and the cross‐section of stock returns. The Journal of Finance, 61(4), 1645-1680.

Bank, M., Larch, M., & Peter, G. (2011). Google search volume and its influence on liquidity and returns of German stocks. Financial markets and portfolio management, 25(3), 239-264.

Barber, B. M., & Odean, T. (2007). All that glitters: The effect of attention and news on the buying behavior of individual and institutional investors. The Review of Financial Studies, 21(2), 785-818.

Barber, B. M., Odean, T., & Zhu, N. (2008). Do retail trades move markets?. The Review of Financial Studies, 22(1), 151-186.

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

52

Barber, B. M., Odean, T., & Zhu, N. (2009). Systematic Noise. Journal of Financial Markets, volume 12, issue 4, pages 547-569, Elsevier

Chuang, W. J., Ouyang, L. Y., & Lo, W. C. (2010). The impact of investor sentiment on excess returns a Taiwan stock market case. International Journal of Information and Management Sciences, 21(1), 13-28.

Chung, S. L., & Yeh, C. Y. (2009). Investor Sentiment, Regimes and Stock Returns.

(February 13, 2009). Available at SSRN: https://ssrn.com/abstract=1342588.

Da, Z., Engelberg, J., & Gao, P. (2009). In Search of Attention. AFA 2010 Atlanta

Meetings Paper. Available at SSRN: http://ssrn.com/abstract=1364209

Da, Z., Engelberg, J., & Gao, P. (2011). In search of attention. The Journal of Finance, 66(5), 1461-1499.

Daniel, K., Hirshleifer, D., and Subrahmanyam, A.(1998) Investor Psychology and

Security Market Under- and Over-Reactions, Journal of Finance, 53(6):1839-1885.

De Bondt, W. F. & Thaler, R. H. (1995). Financial decision-making in markets and firms: A behavioral perspective. Handbooks in operations research and management science, 9, 385-410.

Fan, M. H., Liao, E. C., & Chen, M. Y. (2014, December). A TAIEX forecasting model based on changes of keyword search volume on Google Trends. In IEEE

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

53

International Symposium on Independent Computing (ISIC). IEEE.

Gallant, A. R. (2009). Nonlinear statistical models (Vol. 310). John Wiley & Sons.

Karpoff, J. M. (1987). The relation between price changes and trading volume: A

survey. Journal of Financial and quantitative Analysis, 22(1), 109-126.

KUAN, C. M. (2008). LECTURE ON Robust Tests with and without Consistent Estimation of Asymptotic Covariance Matrix. Institute of Economics Academia

Sinica. Retrieved from http://homepage.ntu.edu.tw/~ckuan/pdf/Lec-HAC_0802.pdf

Lee, C., and Swaminathan, B. (2000), Price momentum and trading volume, Journal of Finance, Vol. 55, pp.2017-2069.

Litterman, R. B. (1983). A random walk, Markov model for the distribution of time series. Journal of Business & Economic Statistics, 1(2), 169-173.

Miller, E. M. (1977). Risk, uncertainty, and divergence of opinion. The Journal of finance, 32(4), 1151-1168.

McCall, J. J. (1970). Economics of information and job search. The Quarterly Journal of Economics, 113-126.

Russo, J. E. (1974). More information is better: A reevaluation of Jacoby, Speller and Kohn. Journal of Consumer Research, 1(3), 68-72.

立 政 治 大 學

N a tio na

l C h engchi U ni ve rs it y

54

Stocking, G., & Matsa, K. E. (2017). Using Google Trends data for research? Here are 6

questions to ask. Retrieved from https://medium.com/@pewresearch/using-google-trends-data-for-research-here-ar

e-6-questions-to-ask-a7097f5fb526

Takeda, F., & Wakao, T. (2014). Google search intensity and its relationship with returns and trading volume of Japanese stocks. Pacific-Basin Finance Journal, 27, 1-18.

Taylor, S. E., & Brown, J. D. (1988). Illusion and well-being: a social psychological perspective on mental health. Psychological bulletin, 103(2), 193.

Varian H (2011), Predicting the present, Think with Google Newsletter.

https://www.thinkwithgoogle.com/marketing-resources/predicting-the-present/, September 2011.

Vlastakis, N., & Markellos, R. N. (2012). Information demand and stock market volatility. Journal of Banking & Finance, 36(6), 1808-1821.

相關文件