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. 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.
    4. 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.
    5. 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.
    6. 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.
    7. 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.
    8. 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.
    9. Gholampour, Vahid, 2019. "Daily expectations of returns index," Journal of Empirical Finance, Elsevier, vol. 54(C), pages 236-252.
    10. 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).
    11. 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.
    12. 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.
    13. Werner Antweiler & Murray Z. Frank, 2004. "Is All That Talk Just Noise? The Information Content of Internet Stock Message Boards," Journal of Finance, American Finance Association, vol. 59(3), pages 1259-1294, June.
    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. 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).
    2. 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.
    3. 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.
    4. 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.
    5. 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.
    6. Szymon Lis, 2022. "Investor Sentiment in Asset Pricing Models: A Review," Working Papers 2022-14, Faculty of Economic Sciences, University of Warsaw.
    7. 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).
    8. 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).
    9. 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).
    10. 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.
    11. Dong, Hang & Gil-Bazo, Javier, 2020. "Sentiment stocks," International Review of Financial Analysis, Elsevier, vol. 72(C).
    12. 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).
    13. 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).
    14. Zongwu Cai & Pixiong Chen, 2022. "New Online Investor Sentiment and Asset Returns," WORKING PAPERS SERIES IN THEORETICAL AND APPLIED ECONOMICS 202216, University of Kansas, Department of Economics, revised Nov 2022.
    15. 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.
    16. Chu, Xiaojun & Wan, Xinmin & Qiu, Jianying, 2023. "The relative importance of overnight sentiment versus trading-hour sentiment in volatility forecasting," Journal of Behavioral and Experimental Finance, Elsevier, vol. 39(C).
    17. Zhang, Wei & Li, Xiao & Shen, Dehua & Teglio, Andrea, 2016. "Daily happiness and stock returns: Some international evidence," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 460(C), pages 201-209.
    18. 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.
    19. 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.
    20. 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).

    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.