IDEAS home Printed from https://ideas.repec.org/a/eee/beexfi/v30y2021ics2214635021000514.html
   My bibliography  Save this article

Improving stock price prediction using the long short-term memory model combined with online social networks

Author

Listed:
  • Liu, Keyan
  • Zhou, Jianan
  • Dong, Dayong

Abstract

To predict stock prices with effective information has always been a problem of great significance in the fields of behavioral finance. In this paper, we predict the stock prices with novel online data sources. For some emerging countries (such as China), individual investors often obtain trading information from online social media platforms. Therefore, stock features extracted from social media platforms are likely to include valuable information. We obtained the data of users and stocks they followed from EastyMoney, China’s largest social media platform, and generate daily social networks. Then we calculated the network variable of each stock as a supplement to traditional variables, and predicted the close prices of the SSE 50 constituent stocks using the LSTM model. The empirical results show that the social network variable can effectively improve the prediction accuracy. Our results can help investors improve forecasting accuracy. Our findings can help investors enhancing the understanding of the link between social networks and stock prices.

Suggested Citation

  • Liu, Keyan & Zhou, Jianan & Dong, Dayong, 2021. "Improving stock price prediction using the long short-term memory model combined with online social networks," Journal of Behavioral and Experimental Finance, Elsevier, vol. 30(C).
  • Handle: RePEc:eee:beexfi:v:30:y:2021:i:c:s2214635021000514
    DOI: 10.1016/j.jbef.2021.100507
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S2214635021000514
    Download Restriction: no

    File URL: https://libkey.io/10.1016/j.jbef.2021.100507?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Fama, Eugene F & French, Kenneth R, 1992. "The Cross-Section of Expected Stock Returns," Journal of Finance, American Finance Association, vol. 47(2), pages 427-465, June.
    2. Bissoondoyal-Bheenick, Emawtee & Brooks, Robert D., 2010. "Does volume help in predicting stock returns? An analysis of the Australian market," Research in International Business and Finance, Elsevier, vol. 24(2), pages 146-157, June.
    3. Grossman, Sanford J & Stiglitz, Joseph E, 1980. "On the Impossibility of Informationally Efficient Markets," American Economic Review, American Economic Association, vol. 70(3), pages 393-408, June.
    4. Oliver Hein & Michael Schwind & Markus Spiwoks, 2012. "Network Centrality and Stock Market Volatility: The Impact of Communication Topologies on Prices," Journal of Finance and Investment Analysis, SCIENPRESS Ltd, vol. 1(1), pages 1-9.
    5. Bloch, Francis & Quérou, Nicolas, 2013. "Pricing in social networks," Games and Economic Behavior, Elsevier, vol. 80(C), pages 243-261.
    6. Thomas Renault, 2020. "Sentiment analysis and machine learning in finance: a comparison of methods and models on one million messages," Digital Finance, Springer, vol. 2(1), pages 1-13, September.
    7. Joey Wenling Yang & Jerry Parwada, 2012. "Predicting stock price movements: an ordered probit analysis on the Australian Securities Exchange," Quantitative Finance, Taylor & Francis Journals, vol. 12(5), pages 791-804, October.
    8. Rajagopal, 2015. "Market Trend Analysis," Palgrave Macmillan Books, in: The Butterfly Effect in Competitive Markets, chapter 4, pages 95-118, Palgrave Macmillan.
    9. Baker, Malcolm & Wurgler, Jeffrey & Yuan, Yu, 2012. "Global, local, and contagious investor sentiment," Journal of Financial Economics, Elsevier, vol. 104(2), pages 272-287.
    10. Hakob GRIGORYAN, 2016. "A Stock Market Prediction Method Based on Support Vector Machines (SVM) and Independent Component Analysis (ICA)," Database Systems Journal, Academy of Economic Studies - Bucharest, Romania, vol. 7(1), pages 12-21, August.
    11. Brad M. Barber & Terrance Odean, 2001. "Boys will be Boys: Gender, Overconfidence, and Common Stock Investment," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 116(1), pages 261-292.
    12. Brad M. Barber & Terrance Odean, 2008. "All That Glitters: The Effect of Attention and News on the Buying Behavior of Individual and Institutional Investors," Review of Financial Studies, Society for Financial Studies, vol. 21(2), pages 785-818, April.
    13. Sadorsky, Perry, 2003. "The macroeconomic determinants of technology stock price volatility," Review of Financial Economics, Elsevier, vol. 12(2), pages 191-205.
    14. Zahedi, Javad & Rounaghi, Mohammad Mahdi, 2015. "Application of artificial neural network models and principal component analysis method in predicting stock prices on Tehran Stock Exchange," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 438(C), pages 178-187.
    15. Dima Alberg & Haim Shalit & Rami Yosef, 2008. "Estimating stock market volatility using asymmetric GARCH models," Applied Financial Economics, Taylor & Francis Journals, vol. 18(15), pages 1201-1208.
    16. B. W. Wanjawa & L. Muchemi, 2014. "ANN Model to Predict Stock Prices at Stock Exchange Markets," Papers 1502.06434, arXiv.org.
    17. Liang, Chao & Tang, Linchun & Li, Yan & Wei, Yu, 2020. "Which sentiment index is more informative to forecast stock market volatility? Evidence from China," International Review of Financial Analysis, Elsevier, vol. 71(C).
    18. Peter Reinhard Hansen & Zhuo Huang & Howard Howan Shek, 2012. "Realized GARCH: a joint model for returns and realized measures of volatility," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 27(6), pages 877-906, September.
    19. Taylor, Stephen J. & Xu, Xinzhong, 1997. "The incremental volatility information in one million foreign exchange quotations," Journal of Empirical Finance, Elsevier, vol. 4(4), pages 317-340, December.
    20. Nofer, Michael & Hinz, Oliver, 2015. "Using Twitter to Predict the Stock Market: Where is the Mood Effect?," Publications of Darmstadt Technical University, Institute for Business Studies (BWL) 77140, Darmstadt Technical University, Department of Business Administration, Economics and Law, Institute for Business Studies (BWL).
    21. O. E. Barndorff-Nielsen & P. Reinhard Hansen & A. Lunde & N. Shephard, 2009. "Realized kernels in practice: trades and quotes," Econometrics Journal, Royal Economic Society, vol. 12(3), pages 1-32, November.
    22. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    23. Jonathan Lewellen, 2002. "Momentum and Autocorrelation in Stock Returns," Review of Financial Studies, Society for Financial Studies, vol. 15(2), pages 533-564, March.
    24. Chen, Shiu-Sheng, 2012. "Revisiting the empirical linkages between stock returns and trading volume," Journal of Banking & Finance, Elsevier, vol. 36(6), pages 1781-1788.
    25. Michael Nofer & Oliver Hinz, 2015. "Using Twitter to Predict the Stock Market," Business & Information Systems Engineering: The International Journal of WIRTSCHAFTSINFORMATIK, Springer;Gesellschaft für Informatik e.V. (GI), vol. 57(4), pages 229-242, August.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Jaydip Sen & Sidra Mehtab & Abhishek Dutta & Saikat Mondal, 2022. "Hierarchical Risk Parity and Minimum Variance Portfolio Design on NIFTY 50 Stocks," Papers 2202.02728, arXiv.org.
    2. Fei Qu & Yi-Ting Wang & Wen-Hui Hou & Xiao-Yu Zhou & Xiao-Kang Wang & Jun-Bo Li & Jian-Qiang Wang, 2022. "Forecasting of Automobile Sales Based on Support Vector Regression Optimized by the Grey Wolf Optimizer Algorithm," Mathematics, MDPI, vol. 10(13), pages 1-22, June.
    3. Ahmed, Shamima & Alshater, Muneer M. & Ammari, Anis El & Hammami, Helmi, 2022. "Artificial intelligence and machine learning in finance: A bibliometric review," Research in International Business and Finance, Elsevier, vol. 61(C).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Stephen Foerster, 2011. "Double then Nothing: Why Stock Investments Relying on Simple Heuristics May Disappoint," Review of Behavioral Finance, Emerald Group Publishing Limited, vol. 3(2), pages 115-140, September.
    2. Stéphane Goutte & David Guerreiro & Bilel Sanhaji & Sophie Saglio & Julien Chevallier, 2019. "International Financial Markets," Post-Print halshs-02183053, HAL.
    3. Altınkılıç, Oya & Hansen, Robert S. & Ye, Liyu, 2016. "Can analysts pick stocks for the long-run?," Journal of Financial Economics, Elsevier, vol. 119(2), pages 371-398.
    4. Rilwan Sakariyahu & Mohamed Sherif & Audrey Paterson & Eleni Chatzivgeri, 2021. "Sentiment‐Apt investors and UK sector returns," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 26(3), pages 3321-3351, July.
    5. Zhang, Yongjie & Chu, Gang & Shen, Dehua, 2021. "The role of investor attention in predicting stock prices: The long short-term memory networks perspective," Finance Research Letters, Elsevier, vol. 38(C).
    6. Christiane Goodfellow & Dirk Schiereck & Steffen Wippler, 2013. "Are behavioural finance equity funds a superior investment? A note on fund performance and market efficiency," Journal of Asset Management, Palgrave Macmillan, vol. 14(2), pages 111-119, April.
    7. Klaus Schredelseker, 2012. "Finanzkrise — Mitschuld der Theorie?," Schmalenbach Journal of Business Research, Springer, vol. 64(8), pages 833-845, December.
    8. Catania, Leopoldo & Proietti, Tommaso, 2020. "Forecasting volatility with time-varying leverage and volatility of volatility effects," International Journal of Forecasting, Elsevier, vol. 36(4), pages 1301-1317.
    9. Roberto Casarin & Andrea Piva & Loriana Pelizzon, 2008. "Italian Equity Funds: Efficiency and Performance Persistence," The IUP Journal of Financial Economics, IUP Publications, vol. 0(1), pages 7-28, March.
    10. Zhang, Hang & Tsai, Wei-Che & Weng, Pei-Shih & Tsai, Pin-Chieh, 2023. "Overnight returns and investor sentiment: Further evidence from the Taiwan stock market," Pacific-Basin Finance Journal, Elsevier, vol. 80(C).
    11. Li, Jinfang, 2022. "The sentiment pricing dynamics with short-term and long-term learning," The North American Journal of Economics and Finance, Elsevier, vol. 63(C).
    12. Roland Rothenstein, 2018. "Quantification of market efficiency based on informational-entropy," Papers 1812.02371, arXiv.org.
    13. Wen-Jun Xue & Li-Wen Zhang, 2016. "Stock Return Autocorrelations and Predictability in the Chinese Stock Market: Evidence from Threshold Quantile Autoregressive Models," Working Papers 1605, Florida International University, Department of Economics.
    14. Philipp Stephan & Rüdiger Nitzsch, 2013. "Do individual investors’ stock recommendations in online communities contain investment value?," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 27(2), pages 149-186, June.
    15. Charfeddine, Lanouar & Khediri, Karim Ben & Aye, Goodness C. & Gupta, Rangan, 2018. "Time-varying efficiency of developed and emerging bond markets: Evidence from long-spans of historical data," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 505(C), pages 632-647.
    16. Jennifer N. Carpenter & Fangzhou Lu & Robert F. Whitelaw, 2015. "The Real Value of China's Stock Market," NBER Working Papers 20957, National Bureau of Economic Research, Inc.
    17. Wu, Chen-Hui, 2022. "The informativeness of brokerage reports: Privately-circulated versus publicly-disseminated news," International Review of Financial Analysis, Elsevier, vol. 83(C).
    18. Grigori Erenburg & Janet Kiholm Smith & Richard L. Smith, 2011. "The Paradox of “Fraud‐on‐the‐Market Theory”: Who Relies on the Efficiency of Market Prices?," Journal of Empirical Legal Studies, John Wiley & Sons, vol. 8(2), pages 260-303, June.
    19. Wang, Jun & Wu, Yangru, 2011. "Risk adjustment and momentum sources," Journal of Banking & Finance, Elsevier, vol. 35(6), pages 1427-1435, June.
    20. Liu, Peipei & Xia, Xinping & Li, Antai, 2018. "Tweeting the financial market: Media effect in the era of Big Data," Pacific-Basin Finance Journal, Elsevier, vol. 51(C), pages 267-290.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:beexfi:v:30:y:2021:i:c:s2214635021000514. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: https://www.journals.elsevier.com/journal-of-behavioral-and-experimental-finance .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.