Skip to main content

Stock Volatility Prediction Using Recurrent Neural Networks with Sentiment Analysis

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 10350))

Abstract

In this paper, we propose a model to analyze sentiment of online stock forum and use the information to predict the stock volatility in the Chinese market. We have labeled the sentiment of the online financial posts and make the dataset public available for research. By generating a sentimental dictionary based on financial terms, we develop a model to compute the sentimental score of each online post related to a particular stock. Such sentimental information is represented by two sentiment indicators, which are fused to market data for stock volatility prediction by using the Recurrent Neural Networks (RNNs). Empirical study shows that, comparing to using RNN only, the model performs significantly better with sentimental indicators.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    The founder of Derwent Capital Markets and one of early pioneers in the use of social media sentiment analysis to trade financial derivatives.

  2. 2.

    http://www.indexmundi.com/facts/indicators/CM.MKT.LCAP.CD/rankings.

  3. 3.

    http://guba.eastmoney.com/.

  4. 4.

    http://www.bazhuayu.com.

  5. 5.

    http://dsd.future-lab.cn/members/2016/LiuYFProject/data.xlsx.

  6. 6.

    https://github.com/fxsjy/jieba.

  7. 7.

    github link: https://github.com/irfanICMLL/EMM-for-stock-prediction.

  8. 8.

    It can be downloaded from http://www.gw.com.cn.

References

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

    Article  Google Scholar 

  2. Bachelier, L.: Théorie de la spéculation. Ann. Scientifiques De L École Normale Supérieure 3, 21–86 (1900)

    Article  MATH  Google Scholar 

  3. Bollen, J., Mao, H., Zeng, X.: Twitter mood predicts the stock market. J. Comput. Sci. 2(1), 1–8 (2010)

    Article  MathSciNet  Google Scholar 

  4. Burges, C.J.C.: A tutorial on support vector machines for pattern recognition. Data Min. Knowl. Disc. 2(2), 121–167 (1998)

    Article  Google Scholar 

  5. Edmans, A., García, D., Norli, Ø.: Sports sentiment and stock returns. J. Finan. 62(4), 1967–1998 (2007)

    Article  Google Scholar 

  6. Elman, J.L.: Finding structure in time. Cogn. Sci. 14(2), 179–211 (1990)

    Article  Google Scholar 

  7. Fama, E.: Efficient market hypothesis: a review of theory and empirical work. J. Finan. 25, 383–417 (1970)

    Article  Google Scholar 

  8. Frank, R.J., Davey, N., Hunt, S.P.: Input window size and neural network predictors. In: IEEE-INNS-ENNS International Joint Conference on Neural Networks, vol. 2, pp. 237–242 (2000)

    Google Scholar 

  9. Guo, T., Li, B., Fu, Z., Wan, T., Qin, Z.: Learning sentimental weights of mixed-gram terms for classification and visualization. In: Booth, R., Zhang, M.-L. (eds.) PRICAI 2016. LNCS (LNAI), vol. 9810, pp. 116–124. Springer, Cham (2016). doi:10.1007/978-3-319-42911-3_10

    Chapter  Google Scholar 

  10. Hirshleifer, D., Shumway, T.: Good day sunshine: stock returns and the weather. J. Finan. 58(3), 1009–1032 (2003)

    Article  Google Scholar 

  11. Loughran, T., Mcdonald, B.: When is a liability not a liability? CFA Dis. 41(2), 57–59 (2011)

    Google Scholar 

  12. Ma’Aji, M.M., Abdullahi, S.R.: Market reaction to international cross-listing: evidence from nigeria. Int. J. Inf. Technol. Bus. Manage. 27(1), 13–25 (2014). Social Science Electronic Publishing

    Google Scholar 

  13. O’Connor, A.: The power of popularity: an empirical study of the relationship between social media fan counts and brand company stock prices. Soc. Sci. Comput. Rev. 31(2), 229–235 (2013)

    Article  Google Scholar 

  14. Osborne, M.: Browing motion in the stock market. Oper. Res. 7(2), 145–173 (1959)

    Article  Google Scholar 

  15. Rout, A.K., Dash, P.K., Dash, R., Bisoi, R.: Forecasting financial time series using a low complexity recurrent neural network and evolutionary learning approach. J. King Saud Univ. - Comput. Inf. Sci. (2015)

    Google Scholar 

  16. Rzepczynski, M.: Beyond Greed and Fear: Understanding Behavioral Finance and the Psychology of Investing, vol. 78, pp. 99–101. OUP Catalogue (2007)

    Google Scholar 

  17. Si, J., Mukherjee, A., Liu, B., Li, Q., Li, H., Deng, X.: Exploiting topic based twitter sentiment for stock prediction. In: Proceedings of ACL, pp. 24–29 (2013)

    Google Scholar 

  18. Sprenger, T.O., Tumasjan, A., Sandner, P.G., Welpe, I.M.: Tweets and trades: the information content of stock microblogs. Eur. Financ. Manage. 20(5), 926–957 (2010)

    Article  Google Scholar 

  19. Zhang, X., Fuehres, H., Gloor, P.A., Zhang, X., Fuehres, H.: Predicting stock market indicators through twitter “I hope it is not as bad as I fear”. Soc. Behav. Sci. 26(26), 55–62 (2011)

    Article  Google Scholar 

Download references

Acknowledgement

This work is supported by the National Science Foundation of China Nos. 61401012 and 61305047.

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Zengchang Qin or Tao Wan .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this paper

Cite this paper

Liu, Y., Qin, Z., Li, P., Wan, T. (2017). Stock Volatility Prediction Using Recurrent Neural Networks with Sentiment Analysis. In: Benferhat, S., Tabia, K., Ali, M. (eds) Advances in Artificial Intelligence: From Theory to Practice. IEA/AIE 2017. Lecture Notes in Computer Science(), vol 10350. Springer, Cham. https://doi.org/10.1007/978-3-319-60042-0_22

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-60042-0_22

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-60041-3

  • Online ISBN: 978-3-319-60042-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics