IDEAS home Printed from https://ideas.repec.org/p/zbw/glodps/502.html
   My bibliography  Save this paper

Sentiment, emotions and stock market predictability in developed and emerging markets

Author

Listed:
  • Steyn, Dimitri H. W.
  • Greyling, Talita
  • Rossouw, Stephanie
  • Mwamba, John M.

Abstract

This paper investigates the predictability of stock market movements using text data extracted from the social media platform, Twitter. We analyse text data to determine the sentiment and the emotion embedded in the Tweets and use them as explanatory variables to predict stock market movements. The study contributes to the literature by analysing high-frequency data and comparing the results obtained from analysing emerging and developed markets, respectively. To this end, the study uses three different Machine Learning Classification Algorithms, the Naïve Bayes, K-Nearest Neighbours and the Support Vector Machine algorithm. Furthermore, we use several evaluation metrics such as the Precision, Recall, Specificity and the F-1 score to test and compare the performance of these algorithms. Lastly, we use the K-Fold Cross-Validation technique to validate the results of our machine learning models and the Variable Importance Analysis to show which variables play an important role in the prediction of our models. The predictability of the market movements is estimated by first including sentiment only and then sentiment with emotions. Our results indicate that investor sentiment and emotions derived from stock market-related Tweets are significant predictors of stock market movements, not only in developed markets but also in emerging markets.

Suggested Citation

  • Steyn, Dimitri H. W. & Greyling, Talita & Rossouw, Stephanie & Mwamba, John M., 2020. "Sentiment, emotions and stock market predictability in developed and emerging markets," GLO Discussion Paper Series 502, Global Labor Organization (GLO).
  • Handle: RePEc:zbw:glodps:502
    as

    Download full text from publisher

    To our knowledge, this item is not available for download. To find whether it is available, there are three options:
    1. Check below whether another version of this item is available online.
    2. Check on the provider's web page whether it is in fact available.
    3. Perform a search for a similarly titled item that would be available.

    References listed on IDEAS

    as
    1. Sanjiv R. Das & Mike Y. Chen, 2007. "Yahoo! for Amazon: Sentiment Extraction from Small Talk on the Web," Management Science, INFORMS, vol. 53(9), pages 1375-1388, September.
    2. Wei, Pengfei & Lu, Zhenzhou & Song, Jingwen, 2015. "Variable importance analysis: A comprehensive review," Reliability Engineering and System Safety, Elsevier, vol. 142(C), pages 399-432.
    3. Renault, Thomas, 2017. "Intraday online investor sentiment and return patterns in the U.S. stock market," Journal of Banking & Finance, Elsevier, vol. 84(C), pages 25-40.
    4. Broadstock, David C. & Zhang, Dayong, 2019. "Social-media and intraday stock returns: The pricing power of sentiment," Finance Research Letters, Elsevier, vol. 30(C), pages 116-123.
    5. Gholampour, Vahid, 2019. "Daily expectations of returns index," Journal of Empirical Finance, Elsevier, vol. 54(C), pages 236-252.
    6. Zhao, Ruwei, 2019. "Quantifying the correlation and prediction of daily happiness sentiment and stock return: The Case of Singapore," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 533(C).
    7. Shen, Dehua & Liu, Lanbiao & Zhang, Yongjie, 2018. "Quantifying the cross-sectional relationship between online sentiment and the skewness of stock returns," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 490(C), pages 928-934.
    8. Brown, Gregory W. & Cliff, Michael T., 2004. "Investor sentiment and the near-term stock market," Journal of Empirical Finance, Elsevier, vol. 11(1), pages 1-27, January.
    9. Zhi Da & Joseph Engelberg & Pengjie Gao, 2015. "Editor's Choice The Sum of All FEARS Investor Sentiment and Asset Prices," The Review of Financial Studies, Society for Financial Studies, vol. 28(1), pages 1-32.
    10. Lumengo Bonga‐Bonga & Muteba Mwamba, 2011. "The Predictability Of Stock Market Returns In South Africa: Parametric Vs. Non‐Parametric Methods," South African Journal of Economics, Economic Society of South Africa, vol. 79(3), pages 301-311, September.
    11. You, Wanhai & Guo, Yawei & Peng, Cheng, 2017. "Twitter's daily happiness sentiment and the predictability of stock returns," Finance Research Letters, Elsevier, vol. 23(C), pages 58-64.
    12. Bukovina, Jaroslav, 2016. "Social media big data and capital markets—An overview," Journal of Behavioral and Experimental Finance, Elsevier, vol. 11(C), pages 18-26.
    13. repec:bla:jfinan:v:59:y:2004:i:3:p:1259-1294 is not listed on IDEAS
    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. Rossouw, Stephanie & Greyling, Talita, 2020. "Big Data and Happiness," GLO Discussion Paper Series 634, Global Labor Organization (GLO).
    2. Greyling, Talita & Rossouw, Stephanie & Adhikari, Tamanna, 2020. "Happiness-lost: Did Governments make the right decisions to combat Covid-19?," GLO Discussion Paper Series 556, Global Labor Organization (GLO).

    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. Văn, Lê & Bảo, Nguyễn Khắc Quốc, 2022. "The relationship between global stock and precious metals under Covid-19 and happiness perspectives," Resources Policy, Elsevier, vol. 77(C).
    2. Chen, Wen-Yi & Chen, Mei-Ping, 2022. "Twitter’s daily happiness sentiment, economic policy uncertainty, and stock index fluctuations," The North American Journal of Economics and Finance, Elsevier, vol. 62(C).
    3. Fang, Hao & Chung, Chien-Ping & Lu, Yang-Cheng & Lee, Yen-Hsien & Wang, Wen-Hao, 2021. "The impacts of investors' sentiments on stock returns using fintech approaches," International Review of Financial Analysis, Elsevier, vol. 77(C).
    4. Suwan (Cheng) Long & Brian Lucey & Ying Xie & Larisa Yarovaya, 2023. "“I just like the stock”: The role of Reddit sentiment in the GameStop share rally," The Financial Review, Eastern Finance Association, vol. 58(1), pages 19-37, February.
    5. Zachary McGurk & Adam Nowak & Joshua C. Hall, 2020. "Stock returns and investor sentiment: textual analysis and social media," Journal of Economics and Finance, Springer;Academy of Economics and Finance, vol. 44(3), pages 458-485, July.
    6. Nader Mahmoudi & Łukasz P. Olech & Paul Docherty, 2022. "A comprehensive study of domain-specific emoji meanings in sentiment classification," Computational Management Science, Springer, vol. 19(2), pages 159-197, June.
    7. Shen, Yiran & Liu, Chang & Sun, Xiaolei & Guo, Kun, 2023. "Investor sentiment and the Chinese new energy stock market: A risk–return perspective," International Review of Economics & Finance, Elsevier, vol. 84(C), pages 395-408.
    8. Qadan, Mahmoud & Jacob, Maram, 2022. "The value premium and investors' appetite for risk," International Review of Economics & Finance, Elsevier, vol. 82(C), pages 194-219.
    9. Eric. W. K. See-To & Yang Yang, 2017. "Market sentiment dispersion and its effects on stock return and volatility," Electronic Markets, Springer;IIM University of St. Gallen, vol. 27(3), pages 283-296, August.
    10. Naeem, Muhammad Abubakr & Farid, Saqib & Faruk, Balli & Shahzad, Syed Jawad Hussain, 2020. "Can happiness predict future volatility in stock markets?," Research in International Business and Finance, Elsevier, vol. 54(C).
    11. Seok, Sang Ik & Cho, Hoon & Ryu, Doojin, 2021. "Stock Market’s responses to intraday investor sentiment," The North American Journal of Economics and Finance, Elsevier, vol. 58(C).
    12. Szymon Lis, 2022. "Investor Sentiment in Asset Pricing Models: A Review," Working Papers 2022-14, Faculty of Economic Sciences, University of Warsaw.
    13. Zhang, Wei & Wang, Pengfei & Li, Xiao & Shen, Dehua, 2018. "Twitter’s daily happiness sentiment and international stock returns: Evidence from linear and nonlinear causality tests," Journal of Behavioral and Experimental Finance, Elsevier, vol. 18(C), pages 50-53.
    14. Ung, Sze Nie & Gebka, Bartosz & Anderson, Robert D.J., 2023. "Is sentiment the solution to the risk–return puzzle? A (cautionary) note," Journal of Behavioral and Experimental Finance, Elsevier, vol. 37(C).
    15. Broadstock, David C. & Zhang, Dayong, 2019. "Social-media and intraday stock returns: The pricing power of sentiment," Finance Research Letters, Elsevier, vol. 30(C), pages 116-123.
    16. Daniele Ballinari & Simon Behrendt, 2021. "How to gauge investor behavior? A comparison of online investor sentiment measures," Digital Finance, Springer, vol. 3(2), pages 169-204, June.
    17. Dong, Hang & Gil-Bazo, Javier, 2020. "Sentiment stocks," International Review of Financial Analysis, Elsevier, vol. 72(C).
    18. Al-Nasseri, Alya & Menla Ali, Faek & Tucker, Allan, 2021. "Investor sentiment and the dispersion of stock returns: Evidence based on the social network of investors," International Review of Financial Analysis, Elsevier, vol. 78(C).
    19. Wang, Xinjie & Xiang, Zhiqiang & Xu, Weike & Yuan, Peixuan, 2022. "The causal relationship between social media sentiment and stock return: Experimental evidence from an online message forum," Economics Letters, Elsevier, vol. 216(C).
    20. Mahmoudi, Nader & Docherty, Paul & Melia, Adrian, 2022. "Firm-level investor sentiment and corporate announcement returns," Journal of Banking & Finance, Elsevier, vol. 144(C).

    More about this item

    Keywords

    Sentiment Analysis; Classification; Stock Prediction; Machine Learning;
    All these keywords.

    JEL classification:

    • C6 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling
    • C8 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs
    • G0 - Financial Economics - - General
    • G4 - Financial Economics - - Behavioral Finance

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    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:zbw:glodps:502. 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: ZBW - Leibniz Information Centre for Economics (email available below). General contact details of provider: https://edirc.repec.org/data/glabode.html .

    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.