IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i16p3441-d1212743.html
   My bibliography  Save this article

The Predictive Power of Social Media Sentiment: Evidence from Cryptocurrencies and Stock Markets Using NLP and Stochastic ANNs

Author

Listed:
  • Giacomo di Tollo

    (Dipartimento di Diritto, Economia, Management e Metodi Quantitativi, Università degli Studi del Sannio, 82100 Benevento, Italy)

  • Joseph Andria

    (Dipartimento di Scienze Economiche, Aziendali e Statistiche, Università degli Studi di Palermo, 90100 Palermo, Italy)

  • Gianni Filograsso

    (Dipartimento di Economia, Università Ca’ Foscari di Venezia, 30121 Venezia, Italy)

Abstract

Cryptocurrencies are nowadays seen as an investment opportunity, since they show some peculiar features, such as high volatility and diversification properties, that are triggering research interest into investigating their differences with traditional assets. In our paper, we address the problem of predictability of cryptocurrency and stock trends by using data from social online communities and platforms to assess their contribution in terms of predictive power. We extend recent developments in the field by exploiting a combination of stochastic neural networks (NNs), an extension of standard NNs, natural language processing (NLP) to extract sentiment from Twitter, and an external evolutionary algorithm for optimal parameter setting to predict the short-term trend direction. Our results point to good and robust accuracy over time and across different market regimes. Furthermore, we propose to exploit recent advances in sentiment analysis to reassess its role in financial forecasting; in this way, we contribute to the empirical literature by showing that predictions based on sentiment analysis are not found to be significantly different from predictions based on historical data. Nonetheless, compared to stock markets, we find that the accuracy of trend predictions with sentiment analysis is on average much higher for cryptocurrencies.

Suggested Citation

  • Giacomo di Tollo & Joseph Andria & Gianni Filograsso, 2023. "The Predictive Power of Social Media Sentiment: Evidence from Cryptocurrencies and Stock Markets Using NLP and Stochastic ANNs," Mathematics, MDPI, vol. 11(16), pages 1-18, August.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:16:p:3441-:d:1212743
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/16/3441/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/16/3441/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Atsalakis, George S. & Atsalaki, Ioanna G. & Pasiouras, Fotios & Zopounidis, Constantin, 2019. "Bitcoin price forecasting with neuro-fuzzy techniques," European Journal of Operational Research, Elsevier, vol. 276(2), pages 770-780.
    2. Pesaran, M Hashem & Timmermann, Allan, 1992. "A Simple Nonparametric Test of Predictive Performance," Journal of Business & Economic Statistics, American Statistical Association, vol. 10(4), pages 561-565, October.
    3. Dirk G. Baur & Brian M. Lucey, 2010. "Is Gold a Hedge or a Safe Haven? An Analysis of Stocks, Bonds and Gold," The Financial Review, Eastern Finance Association, vol. 45(2), pages 217-229, May.
    4. Wen, Zhuzhu & Bouri, Elie & Xu, Yahua & Zhao, Yang, 2022. "Intraday return predictability in the cryptocurrency markets: Momentum, reversal, or both," The North American Journal of Economics and Finance, Elsevier, vol. 62(C).
    5. Khuntia, Sashikanta & Pattanayak, J.K., 2018. "Adaptive market hypothesis and evolving predictability of bitcoin," Economics Letters, Elsevier, vol. 167(C), pages 26-28.
    6. Guégan, Dominique & Renault, Thomas, 2021. "Does investor sentiment on social media provide robust information for Bitcoin returns predictability?," Finance Research Letters, Elsevier, vol. 38(C).
    7. Guillaume Coqueret & Tony Guida, 2020. "Machine Learning for Factor Investing : R version," Post-Print hal-03188226, HAL.
    8. Corbet, Shaen & Meegan, Andrew & Larkin, Charles & Lucey, Brian & Yarovaya, Larisa, 2018. "Exploring the dynamic relationships between cryptocurrencies and other financial assets," Economics Letters, Elsevier, vol. 165(C), pages 28-34.
    9. Jeremy Eng-Tuck Cheah & Di Luo & Zhuang Zhang & Ming-Chien Sung, 2022. "Predictability of bitcoin returns," The European Journal of Finance, Taylor & Francis Journals, vol. 28(1), pages 66-85, January.
    10. Huang, Yingying & Duan, Kun & Mishra, Tapas, 2021. "Is Bitcoin really more than a diversifier? A pre- and post-COVID-19 analysis," Finance Research Letters, Elsevier, vol. 43(C).
    11. Shiyun Li & Yiping Huang, 2020. "Do Cryptocurrencies Increase the Systemic Risk of the Global Financial Market?," China & World Economy, Institute of World Economics and Politics, Chinese Academy of Social Sciences, vol. 28(1), pages 122-143, January.
    12. Bouri, Elie & Lau, Chi Keung Marco & Lucey, Brian & Roubaud, David, 2019. "Trading volume and the predictability of return and volatility in the cryptocurrency market," Finance Research Letters, Elsevier, vol. 29(C), pages 340-346.
    13. Eom, Cheoljun & Kaizoji, Taisei & Kang, Sang Hoon & Pichl, Lukas, 2019. "Bitcoin and investor sentiment: Statistical characteristics and predictability," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 514(C), pages 511-521.
    14. Joseph Andria & Giacomo di Tollo & Raffaele Pesenti, 2021. "Fuzzy multi-criteria decision-making: An entropy-based approach to assess tourism sustainability," Tourism Economics, , vol. 27(1), pages 168-186, February.
    15. Bouri, Elie & Molnár, Peter & Azzi, Georges & Roubaud, David & Hagfors, Lars Ivar, 2017. "On the hedge and safe haven properties of Bitcoin: Is it really more than a diversifier?," Finance Research Letters, Elsevier, vol. 20(C), pages 192-198.
    16. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    17. Kate Murray & Andrea Rossi & Diego Carraro & Andrea Visentin, 2023. "On Forecasting Cryptocurrency Prices: A Comparison of Machine Learning, Deep Learning, and Ensembles," Forecasting, MDPI, vol. 5(1), pages 1-14, January.
    18. Cheah, Eng-Tuck & Fry, John, 2015. "Speculative bubbles in Bitcoin markets? An empirical investigation into the fundamental value of Bitcoin," Economics Letters, Elsevier, vol. 130(C), pages 32-36.
    19. Fischer, Thomas & Krauss, Christopher, 2018. "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, Elsevier, vol. 270(2), pages 654-669.
    20. Ahmed M. Khedr & Ifra Arif & Pravija Raj P V & Magdi El‐Bannany & Saadat M. Alhashmi & Meenu Sreedharan, 2021. "Cryptocurrency price prediction using traditional statistical and machine‐learning techniques: A survey," Intelligent Systems in Accounting, Finance and Management, John Wiley & Sons, Ltd., vol. 28(1), pages 3-34, January.
    21. Angelini, Eliana & di Tollo, Giacomo & Roli, Andrea, 2008. "A neural network approach for credit risk evaluation," The Quarterly Review of Economics and Finance, Elsevier, vol. 48(4), pages 733-755, November.
    22. Shahzad, Syed Jawad Hussain & Bouri, Elie & Roubaud, David & Kristoufek, Ladislav & Lucey, Brian, 2019. "Is Bitcoin a better safe-haven investment than gold and commodities?," International Review of Financial Analysis, Elsevier, vol. 63(C), pages 322-330.
    23. Baur, Dirk G. & Hong, KiHoon & Lee, Adrian D., 2018. "Bitcoin: Medium of exchange or speculative assets?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 54(C), pages 177-189.
    Full references (including those not matched with items on IDEAS)

    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. Aurelio F. Bariviera & Ignasi Merediz‐Solà, 2021. "Where Do We Stand In Cryptocurrencies Economic Research? A Survey Based On Hybrid Analysis," Journal of Economic Surveys, Wiley Blackwell, vol. 35(2), pages 377-407, April.
    2. Urquhart, Andrew & Zhang, Hanxiong, 2019. "Is Bitcoin a hedge or safe haven for currencies? An intraday analysis," International Review of Financial Analysis, Elsevier, vol. 63(C), pages 49-57.
    3. Duc Huynh, Toan Luu & Burggraf, Tobias & Wang, Mei, 2020. "Gold, platinum, and expected Bitcoin returns," Journal of Multinational Financial Management, Elsevier, vol. 56(C).
    4. Achraf Ghorbel & Wajdi Frikha & Yasmine Snene Manzli, 2022. "Testing for asymmetric non-linear short- and long-run relationships between crypto-currencies and stock markets," Eurasian Economic Review, Springer;Eurasia Business and Economics Society, vol. 12(3), pages 387-425, September.
    5. Mensi, Walid & Sensoy, Ahmet & Aslan, Aylin & Kang, Sang Hoon, 2019. "High-frequency asymmetric volatility connectedness between Bitcoin and major precious metals markets," The North American Journal of Economics and Finance, Elsevier, vol. 50(C).
    6. Chu, Jeffrey & Chan, Stephen & Zhang, Yuanyuan, 2021. "Bitcoin versus high-performance technology stocks in diversifying against global stock market indices," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 580(C).
    7. Corbet, Shaen & Lucey, Brian & Urquhart, Andrew & Yarovaya, Larisa, 2019. "Cryptocurrencies as a financial asset: A systematic analysis," International Review of Financial Analysis, Elsevier, vol. 62(C), pages 182-199.
    8. Ahmed, Walid M.A., 2022. "Robust drivers of Bitcoin price movements: An extreme bounds analysis," The North American Journal of Economics and Finance, Elsevier, vol. 62(C).
    9. Gradojevic, Nikola & Kukolj, Dragan & Adcock, Robert & Djakovic, Vladimir, 2023. "Forecasting Bitcoin with technical analysis: A not-so-random forest?," International Journal of Forecasting, Elsevier, vol. 39(1), pages 1-17.
    10. Pattnaik, Debidutta & Hassan, M. Kabir & Dsouza, Arun & Tiwari, Aviral & Devji, Shridev, 2023. "Ex-post facto analysis of cryptocurrency literature over a decade using bibliometric technique," Technological Forecasting and Social Change, Elsevier, vol. 189(C).
    11. Ştefan Cristian Gherghina & Liliana Nicoleta Simionescu, 2023. "Exploring the asymmetric effect of COVID-19 pandemic news on the cryptocurrency market: evidence from nonlinear autoregressive distributed lag approach and frequency domain causality," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-58, December.
    12. Bedi, Prateek & Nashier, Tripti, 2020. "On the investment credentials of Bitcoin: A cross-currency perspective," Research in International Business and Finance, Elsevier, vol. 51(C).
    13. Bouri, Elie & Lucey, Brian & Roubaud, David, 2020. "Cryptocurrencies and the downside risk in equity investments," Finance Research Letters, Elsevier, vol. 33(C).
    14. Dimitrios Koutmos & Timothy King & Constantin Zopounidis, 2021. "Hedging uncertainty with cryptocurrencies: Is bitcoin your best bet?," Journal of Financial Research, Southern Finance Association;Southwestern Finance Association, vol. 44(4), pages 815-837, December.
    15. Luo, Di & Mishra, Tapas & Yarovaya, Larisa & Zhang, Zhuang, 2021. "Investing during a Fintech Revolution: Ambiguity and return risk in cryptocurrencies," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 73(C).
    16. Khaki, Audil & Prasad, Mason & Al-Mohamad, Somar & Bakry, Walid & Vo, Xuan Vinh, 2023. "Re-evaluating portfolio diversification and design using cryptocurrencies: Are decentralized cryptocurrencies enough?," Research in International Business and Finance, Elsevier, vol. 64(C).
    17. Flori, Andrea, 2019. "News and subjective beliefs: A Bayesian approach to Bitcoin investments," Research in International Business and Finance, Elsevier, vol. 50(C), pages 336-356.
    18. Abakah, Emmanuel Joel Aikins & Gil-Alana, Luis Alberiko & Madigu, Godfrey & Romero-Rojo, Fatima, 2020. "Volatility persistence in cryptocurrency markets under structural breaks," International Review of Economics & Finance, Elsevier, vol. 69(C), pages 680-691.
    19. Jiang, Wen & Xu, Qiuhua & Zhang, Ruige, 2022. "Tail-event driven network of cryptocurrencies and conventional assets," Finance Research Letters, Elsevier, vol. 46(PB).
    20. Mokni, Khaled & Youssef, Manel & Ajmi, Ahdi Noomen, 2022. "COVID-19 pandemic and economic policy uncertainty: The first test on the hedging and safe haven properties of cryptocurrencies," Research in International Business and Finance, Elsevier, vol. 60(C).

    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:gam:jmathe:v:11:y:2023:i:16:p:3441-:d:1212743. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.