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. 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.
    2. 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.
    3. 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.
    4. 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.
    5. 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.
    6. 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.
    7. B. W. Wanjawa & L. Muchemi, 2014. "ANN Model to Predict Stock Prices at Stock Exchange Markets," Papers 1502.06434, arXiv.org.
    8. 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.
    9. 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).
    10. 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.
    11. Bloch, Francis & Quérou, Nicolas, 2013. "Pricing in social networks," Games and Economic Behavior, Elsevier, vol. 80(C), pages 243-261.
    12. 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.
    13. 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.
    14. 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).
    15. 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.
    16. 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.
    17. Rajagopal, 2015. "Market Trend Analysis," Palgrave Macmillan Books, in: The Butterfly Effect in Competitive Markets, chapter 4, pages 95-118, Palgrave Macmillan.
    18. Baker, Malcolm & Wurgler, Jeffrey & Yuan, Yu, 2012. "Global, local, and contagious investor sentiment," Journal of Financial Economics, Elsevier, vol. 104(2), pages 272-287.
    19. Jonathan Lewellen, 2002. "Momentum and Autocorrelation in Stock Returns," The Review of Financial Studies, Society for Financial Studies, vol. 15(2), pages 533-564, March.
    20. 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.
    21. 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.
    22. Brad M. Barber & Terrance Odean, 2008. "All That Glitters: The Effect of Attention and News on the Buying Behavior of Individual and Institutional Investors," The Review of Financial Studies, Society for Financial Studies, vol. 21(2), pages 785-818, April.
    23. Sadorsky, Perry, 2003. "The macroeconomic determinants of technology stock price volatility," Review of Financial Economics, Elsevier, vol. 12(2), pages 191-205.
    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. 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).
    2. Tibor Bareith & Tibor Tatay & László Vancsura, 2024. "Navigating Inflation Challenges: AI-Based Portfolio Management Insights," Risks, MDPI, vol. 12(3), pages 1-16, March.
    3. 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.
    4. 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.

    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. 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.
    3. Stéphane Goutte & David Guerreiro & Bilel Sanhaji & Sophie Saglio & Julien Chevallier, 2019. "International Financial Markets," Post-Print halshs-02183053, HAL.
    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. Constantinos Antoniou & John A. Doukas & Avanidhar Subrahmanyam, 2016. "Investor Sentiment, Beta, and the Cost of Equity Capital," Management Science, INFORMS, vol. 62(2), pages 347-367, February.
    8. David E. Allen & Michael McAleer & Abhay K. Singh, 2019. "Daily market news sentiment and stock prices," Applied Economics, Taylor & Francis Journals, vol. 51(30), pages 3212-3235, June.
    9. Yousaf, Imran & Youssef, Manel & Goodell, John W., 2022. "Quantile connectedness between sentiment and financial markets: Evidence from the S&P 500 twitter sentiment index," International Review of Financial Analysis, Elsevier, vol. 83(C).
    10. Klaus Schredelseker, 2012. "Finanzkrise — Mitschuld der Theorie?," Schmalenbach Journal of Business Research, Springer, vol. 64(8), pages 833-845, December.
    11. Taufiq Choudhry & Ranadeva Jayasekera, 2015. "Level of efficiency in the UK equity market: empirical study of the effects of the global financial crisis," Review of Quantitative Finance and Accounting, Springer, vol. 44(2), pages 213-242, February.
    12. Xi Zhang & Jiawei Shi & Di Wang & Binxing Fang, 2018. "Exploiting Investors Social Network for Stock Prediction in China's Market," Papers 1801.00597, arXiv.org.
    13. Lee, Kuan-Hui & Yang, Cheol-Won, 2022. "The world price of tail risk," Pacific-Basin Finance Journal, Elsevier, vol. 71(C).
    14. 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.
    15. Adam Zaremba & Jacob Koby Shemer, 2018. "Price-Based Investment Strategies," Springer Books, Springer, number 978-3-319-91530-2, September.
    16. 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.
    17. Peress, Joel & Schmidt, Daniel, 2021. "Noise traders incarnate: Describing a realistic noise trading process," Journal of Financial Markets, Elsevier, vol. 54(C).
    18. Subrahmanyam, Avanidhar, 2009. "Optimal financial education," Review of Financial Economics, Elsevier, vol. 18(1), pages 1-9, January.
    19. Wang, Wenzhao & Duxbury, Darren, 2021. "Institutional investor sentiment and the mean-variance relationship: Global evidence," Journal of Economic Behavior & Organization, Elsevier, vol. 191(C), pages 415-441.
    20. Schwert, G. William, 2003. "Anomalies and market efficiency," Handbook of the Economics of Finance, in: G.M. Constantinides & M. Harris & R. M. Stulz (ed.), Handbook of the Economics of Finance, edition 1, volume 1, chapter 15, pages 939-974, Elsevier.

    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.