Abstract
The text shared on social networks and interactions resulting from all virtual activities have been gaining a great impact on society. In this work, we investigate if Twitter data can be used to predict or describe stock market prices by using sentiment polarity (positive or negative). Using a Bayesian classifier and making two causality models (one with the Stock Market and another with the Twitter sentiment as dependent variable) we could relate the data from Twitter with intra-day and day-to-day stock prices. We reached four significant conclusions. First, the relationship between twitter and the stock market is, in both cases, strongly dependent on the time grouping of the twitter data. Second, using Granger Causality Analysis, we found some companies where we can use tweets to predict the stock price, and others where we can’t. Amongst those where we can, there are some where the delay between tweets and changes in price are small (Cisco, American Airlines and Microsoft), and others where those changes take a longer time (LinkedIn). Third, companies with a high number of tweets show a weaker relationship amongst the two variables. Forth, in some cases (British Petroleum), we can predict changes in Twitter sentiment using stock prices.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Fama, E.F.: Efficient capital markets - a review of theory and empirical work. J. Financ. 25, 36 (1970)
Qian, B., Rasheed, K.: Stock market prediction with multiple classifiers. Appl. Intell. 26, 25–33 (2007)
Schumaker, R.P., Chen, H.: Textual analysis of stock market prediction using breaking financial news: the AZFin text system. ACM Trans. Inf. Syst. (TOIS) 27, 1–19 (2009)
Shiller, R.J.: From efficient markets theory to behavioral finance. J. Econ. Perspect. 17, 83–104 (2003)
Bollen, J., Mao, H., Zeng, X.: Twitter mood predicts the stock market. J. Comput. Sci. 2, 1–8 (2011)
Go, A., Bhayani, R., Huang, L.: Twitter sentiment classification using distant supervision. Processing 150, 1–6 (2009)
Hu, M., Liu, B.: Mining and summarizing customer reviews. In: Proceedings of the 2004 ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD 2004, vol. 4, p. 168 (2004)
Jansen, B.J., Zhang, M., Sobel, K., Chowdury, A.: Twitter power: tweets as electronic word of mouth. J. Am. Soc. Inform. Sci. Technol. 60, 2169 (2009)
Bai, X.: Predicting consumer sentiments from online text. Decis. Support Syst. 50, 732–742 (2011)
Salehan, M., Kim, D.J.: Predicting the performance of online consumer reviews: a sentiment mining approach to big data analytics. Decis. Support Syst. 81, 30–40 (2015)
Diakopoulos, N.A, Shamma, D.A: Characterizing debate performance via aggregated twitter sentiment. In: Proceedings of the SIGCHI Conference on Human Factors in Computing Systems, CHI 2010, p. 1195 (2010)
Tumasjan, A., Sprenger, T., Sandner, P., Welpe, I.: Predicting elections with Twitter: what 140 characters reveal about political sentiment. In: Proceedings of the Fourth International AAAI Conference on Weblogs and Social Media, pp. 178–185 (2010)
Duric, A., Song, F.: Feature selection for sentiment analysis based on content and syntax models. Decis. Support Syst. 53, 704–711 (2012)
Pang, B., Lee, L.: Opinion mining and sentiment analysis. Found. Trends Inf. Retrieval 2, 91–231 (2008)
Schumaker, R.P., Zhang, Y., Huang, C.N., Chen, H.: Evaluating sentiment in financial news articles. Decis. Support Syst. 53, 458–464 (2012)
Kwak, H., Lee, C., Park, H., Moon, S.: What is Twitter, a social network or a news media? In: The International World Wide Web Conference Committee (IW3C2), pp. 1–10 (2010)
Hassan, A., Abbasi, A., Zeng, D.: Twitter sentiment analysis: a bootstrap ensemble framework. In: Proceedings of the SocialCom/PASSAT/BigData/EconCom/BioMedCom 2013, pp. 357–364 (2013)
Asiaee T., A., Tepper, M., Banerjee, A., Sapiro, G.: If you are happy and you know it… tweet. In: Proceedings of the 21st ACM International Conference on Information and Knowledge Management, CIKM 2012, p. 1602 (2012)
Spencer, J., Uchyigit, G.: Sentimentor: sentiment analysis of Twitter data. In: Proceedings of the CEUR Workshop, pp. 56–66 (2012)
Agarwal, A., Xie, B., Vovsha, I., Rambow, O., Passonneau, R.: Sentiment analysis of Twitter data, pp. 30–38. Association for Computational Linguistics (2011)
Cho, S.W., Cha, M.S., Kim, S.Y., Song, J.C., Sohn, K.: Investigating temporal and spatial trends of brand images using Twitter opinion mining. In: 2014 International Conference on Information Science and Applications (ICISA), pp. 1–3 (2014)
Stieglitz, S., Dang-Xuan, L.: Political communication and influence through microblogging - an empirical analysis of sentiment in Twitter messages and retweet behavior. In: Proceedings of the Annual Hawaii International Conference on System Sciences, pp. 3500–3509 (2011)
Gokulakrishnan, B., Priyanthan, P., Ragavan, T., Prasath, N., Perera, A.: Opinion mining and sentiment analysis on a Twitter data stream. In: International Conference on Advances in ICT for Emerging Regions (ICTer), pp. 182–188. IEEE (2012)
da Silva, N.F.F., Hruschka, E.R., Hruschka, E.R.: Tweet sentiment analysis with classifier ensembles. Decis. Support Syst. 66, 170–179 (2014)
Granger, C.W.J.: Investigating causal relations by econometric models and cross-spectral methods. Econometrica 37, 424–438 (1969)
Google Finance: Google Finance: stock market quotes, news, currency conversions & more. https://www.google.co.uk/finance
Denecke, K.: Using SentiWordNet for multilingual sentiment analysis. In: Proceedings of the International Conference on Data Engineering, pp. 507–512 (2008)
Miner, G., Elder, J., Fast, A., Hill, T., Nisbet, R., Delen, D.: Practical Text Mining and Statistical Analysis for Non-structured Text Data Applications, 1st edn. Elsevier, Amsterdam (2012)
Pak, A., Paroubek, P.: Twitter as a corpus for sentiment analysis and opinion mining. In: LREC, pp. 1320–1326 (2010)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer International Publishing AG
About this paper
Cite this paper
Bernardo, I., Henriques, R., Lobo, V. (2018). Social Market: Stock Market and Twitter Correlation. In: Czarnowski, I., Howlett, R., Jain, L. (eds) Intelligent Decision Technologies 2017. IDT 2017. Smart Innovation, Systems and Technologies, vol 73. Springer, Cham. https://doi.org/10.1007/978-3-319-59424-8_32
Download citation
DOI: https://doi.org/10.1007/978-3-319-59424-8_32
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-59423-1
Online ISBN: 978-3-319-59424-8
eBook Packages: EngineeringEngineering (R0)