IDEAS home Printed from https://ideas.repec.org/a/kap/compec/v66y2025i5d10.1007_s10614-024-10835-7.html

Forecasting Brazilian Stock Market Using Sentiment Indices from Textual Data, Chat-GPT-Based and Technical Indicators

Author

Listed:
  • Diego Pitta Jesus

    (Rural Federal University of Pernambuco - UFRPE)

  • Elvira Helena Oliveira Medeiros

    (Federal University of Juiz de Fora - UFJF)

  • Lucas Lúcio Godeiro

    (Federal University Rural Semi-Arid - UFERSA)

  • Andressa Lemes Proque

    (Federal University of São João del-Rei - UFSJ)

Abstract

The rapid advancement of artificial intelligence, exemplified by tools such as Chat-GPT, has significantly transformed the landscape of stock market analysis. This paper aims to leverage these technological developments to predict the daily returns of the Ibovespa by utilizing predictors derived from technical indicators and sentiment indices extracted from textual data and Chat-GPT-generated sentiment indices. Our findings reveal that the Chat-GPT-based sentiment index does not enhance the out-of-sample prediction of Ibovespa returns. Conversely, the sentiment index derived from financial news data, utilizing a time-varying dictionary, demonstrates improved out-of-sample predictive accuracy for the Ibovespa. Notably, the predictor based on the technical indicator Accumulation–Distribution (AD) outperforms the historical average benchmark, establishing itself as the superior forecasting model. This study contributes to the ongoing discourse on the integration of artificial intelligence and traditional financial analysis, offering insights into the efficacy of sentiment indices and technical indicators for forecasting stock market returns in the Brazilian context.

Suggested Citation

  • Diego Pitta Jesus & Elvira Helena Oliveira Medeiros & Lucas Lúcio Godeiro & Andressa Lemes Proque, 2025. "Forecasting Brazilian Stock Market Using Sentiment Indices from Textual Data, Chat-GPT-Based and Technical Indicators," Computational Economics, Springer;Society for Computational Economics, vol. 66(5), pages 3735-3780, November.
  • Handle: RePEc:kap:compec:v:66:y:2025:i:5:d:10.1007_s10614-024-10835-7
    DOI: 10.1007/s10614-024-10835-7
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10614-024-10835-7
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10614-024-10835-7?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
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Jegadeesh, Narasimhan, 1992. "Does Market Risk Really Explain the Size Effect?," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 27(3), pages 337-351, September.
    2. Nicky J. Ferguson & Dennis Philip & Herbert Y. T. Lam & Jie Michael Guo, 2015. "Media Content and Stock Returns: The Predictive Power of Press," Multinational Finance Journal, Multinational Finance Journal, vol. 19(1), pages 1-31, March.
    3. Malcolm Baker & Jeffrey Wurgler, 2006. "Investor Sentiment and the Cross‐Section of Stock Returns," Journal of Finance, American Finance Association, vol. 61(4), pages 1645-1680, August.
    4. Alhashel, Bader S. & Almudhaf, Fahad W. & Hansz, J. Andrew, 2018. "Can technical analysis generate superior returns in securitized property markets? Evidence from East Asia markets," Pacific-Basin Finance Journal, Elsevier, vol. 47(C), pages 92-108.
    5. Han, Xing & Li, Youwei, 2017. "Can investor sentiment be a momentum time-series predictor? Evidence from China," Journal of Empirical Finance, Elsevier, vol. 42(C), pages 212-239.
    6. Shapiro, Adam Hale & Sudhof, Moritz & Wilson, Daniel J., 2022. "Measuring news sentiment," Journal of Econometrics, Elsevier, vol. 228(2), pages 221-243.
    7. Diego García, 2013. "Sentiment during Recessions," Journal of Finance, American Finance Association, vol. 68(3), pages 1267-1300, June.
    8. Robert J. Shiller, 2003. "From Efficient Markets Theory to Behavioral Finance," Journal of Economic Perspectives, American Economic Association, vol. 17(1), pages 83-104, Winter.
    9. Gregory W. Brown, 1999. "Volatility, Sentiment, and Noise Traders," Financial Analysts Journal, Taylor & Francis Journals, vol. 55(2), pages 82-90, March.
    10. Liu, Baixiao & McConnell, John J., 2013. "The role of the media in corporate governance: Do the media influence managers' capital allocation decisions?," Journal of Financial Economics, Elsevier, vol. 110(1), pages 1-17.
    11. Clark, Todd E. & West, Kenneth D., 2007. "Approximately normal tests for equal predictive accuracy in nested models," Journal of Econometrics, Elsevier, vol. 138(1), pages 291-311, May.
    12. Fama, Eugene F, et al, 1969. "The Adjustment of Stock Prices to New Information," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 10(1), pages 1-21, February.
    13. Huynh, Toan Luu Duc & Foglia, Matteo & Nasir, Muhammad Ali & Angelini, Eliana, 2021. "Feverish sentiment and global equity markets during the COVID-19 pandemic," Journal of Economic Behavior & Organization, Elsevier, vol. 188(C), pages 1088-1108.
    14. Paul C. Tetlock, 2010. "Does Public Financial News Resolve Asymmetric Information?," The Review of Financial Studies, Society for Financial Studies, vol. 23(9), pages 3520-3557.
    15. Liu, Baixiao & McConnell, John J. & Xu, Wei, 2017. "The power of the pen reconsidered: The media, CEO human capital, and corporate governance," Journal of Banking & Finance, Elsevier, vol. 76(C), pages 175-188.
    16. Paul C. Tetlock & Maytal Saar‐Tsechansky & Sofus Macskassy, 2008. "More Than Words: Quantifying Language to Measure Firms' Fundamentals," Journal of Finance, American Finance Association, vol. 63(3), pages 1437-1467, June.
    17. Beattie, Vivien, 2014. "Accounting narratives and the narrative turn in accounting research: Issues, theory, methodology, methods and a research framework," The British Accounting Review, Elsevier, vol. 46(2), pages 111-134.
    18. Jiang, Fuwei & Lee, Joshua & Martin, Xiumin & Zhou, Guofu, 2019. "Manager sentiment and stock returns," Journal of Financial Economics, Elsevier, vol. 132(1), pages 126-149.
    19. John Y. Campbell & Samuel B. Thompson, 2008. "Predicting Excess Stock Returns Out of Sample: Can Anything Beat the Historical Average?," The Review of Financial Studies, Society for Financial Studies, vol. 21(4), pages 1509-1531, July.
    20. Christopher J. Neely & David E. Rapach & Jun Tu & Guofu Zhou, 2014. "Forecasting the Equity Risk Premium: The Role of Technical Indicators," Management Science, INFORMS, vol. 60(7), pages 1772-1791, July.
    21. Fama, Eugene F. & French, Kenneth R., 1993. "Common risk factors in the returns on stocks and bonds," Journal of Financial Economics, Elsevier, vol. 33(1), pages 3-56, February.
    22. repec:bla:jfinan:v:59:y:2004:i:3:p:1259-1294 is not listed on IDEAS
    23. Black, Fischer & Scholes, Myron S, 1973. "The Pricing of Options and Corporate Liabilities," Journal of Political Economy, University of Chicago Press, vol. 81(3), pages 637-654, May-June.
    24. Kosrow Dehnad, 2011. "Behavioral Finance and Technical Analysis," Journal of Financial Transformation, Capco Institute, vol. 32, pages 107-111.
    25. 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.
    26. Obaid, Khaled & Pukthuanthong, Kuntara, 2022. "A picture is worth a thousand words: Measuring investor sentiment by combining machine learning and photos from news," Journal of Financial Economics, Elsevier, vol. 144(1), pages 273-297.
    27. Tim Loughran & Bill Mcdonald, 2011. "When Is a Liability Not a Liability? Textual Analysis, Dictionaries, and 10‐Ks," Journal of Finance, American Finance Association, vol. 66(1), pages 35-65, February.
    28. Sha Liu, 2014. "The Impact of Textual Sentiment on Sovereign Bond Yield Spreads: Evidence from the Eurozone Crisis," Multinational Finance Journal, Multinational Finance Journal, vol. 18(3-4), pages 215-248, September.
    29. Luiz Renato Lima & Lucas Lúcio Godeiro, 2023. "Equity‐premium prediction: Attention is all you need," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 38(1), pages 105-122, January.
    30. Hendershott, Terrence & Livdan, Dmitry & Schürhoff, Norman, 2015. "Are institutions informed about news?," Journal of Financial Economics, Elsevier, vol. 117(2), pages 249-287.
    31. Marija Gorenc Novak & Dejan Velušček, 2016. "Prediction of stock price movement based on daily high prices," Quantitative Finance, Taylor & Francis Journals, vol. 16(5), pages 793-826, May.
    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. Liang, Chao & Xu, Yongan & Wang, Jianqiong & Yang, Mo, 2022. "Whether dimensionality reduction techniques can improve the ability of sentiment proxies to predict stock market returns," International Review of Financial Analysis, Elsevier, vol. 82(C).
    2. Xu, Zhiwei & Hua, Xia & Zhang, Teng, 2025. "Does official media sentiment matter for the stock market? Evidence from China," Emerging Markets Review, Elsevier, vol. 64(C).
    3. Obaid, Khaled & Pukthuanthong, Kuntara, 2022. "A picture is worth a thousand words: Measuring investor sentiment by combining machine learning and photos from news," Journal of Financial Economics, Elsevier, vol. 144(1), pages 273-297.
    4. Pereira, Camila C. & Bastos, Saulo B. & Cajueiro, Daniel O., 2025. "The words that lead to uncertainty: A measure based on word embeddings," Economic Systems, Elsevier, vol. 49(3).
    5. Calomiris, Charles W. & Mamaysky, Harry, 2019. "How news and its context drive risk and returns around the world," Journal of Financial Economics, Elsevier, vol. 133(2), pages 299-336.
    6. Charles W. Calomiris & Harry Mamaysky, 2018. "How News and Its Context Drive Risk and Returns Around the World," NBER Working Papers 24430, National Bureau of Economic Research, Inc.
    7. An, Suwei, 2023. "Essays on incentive contracts, M&As, and firm risk," Other publications TiSEM dd97d2f5-1c9d-47c5-ba62-f, Tilburg University, School of Economics and Management.
    8. Fuwei Jiang & Yumin Liu & Lingchao Meng & Huajing Zhang, 2025. "Deep learning, textual sentiment, and financial market," Information Technology and Management, Springer, vol. 26(4), pages 441-465, December.
    9. Lehkonen, Heikki & Heimonen, Kari & Pukthuanthong, Kuntara, 2025. "Media tone is a priced risk factor in currency markets," Journal of Banking & Finance, Elsevier, vol. 180(C).
    10. Tom Marty & Bruce Vanstone & Tobias Hahn, 2020. "News media analytics in finance: a survey," Accounting and Finance, Accounting and Finance Association of Australia and New Zealand, vol. 60(2), pages 1385-1434, June.
    11. Zhang, Cheng & Gao, Bin & Xu, Xiangrong & Qin, Mimi, 2025. "MFA RPC news sentiment and stock returns," Pacific-Basin Finance Journal, Elsevier, vol. 92(C).
    12. 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.
    13. Song, Ziyu & Gong, Xiaomin & Zhang, Cheng & Yu, Changrui, 2023. "Investor sentiment based on scaled PCA method: A powerful predictor of realized volatility in the Chinese stock market," International Review of Economics & Finance, Elsevier, vol. 83(C), pages 528-545.
    14. Dong, Dayong & Yue, Sishi & Cao, Jiawei, 2020. "Site visit information content and return predictability: Evidence from China," The North American Journal of Economics and Finance, Elsevier, vol. 51(C).
    15. Nguyen, Huan Huu & Ngo, Vu Minh & Pham, Luan Minh & Van Nguyen, Phuc, 2025. "Investor sentiment and market returns: A multi-horizon analysis," Research in International Business and Finance, Elsevier, vol. 74(C).
    16. Zhang, Yaojie & Tian, Linxing & Zhang, Zhikai, 2025. "Petroleum volatility spillover index and stock return predictability," Energy Economics, Elsevier, vol. 150(C).
    17. 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).
    18. Yongan Xu & Jianqiong Wang & Zhonglu Chen & Chao Liang, 2023. "Sentiment indices and stock returns: Evidence from China," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 28(1), pages 1063-1080, January.
    19. Prajwal Eachempati & Praveen Ranjan Srivastava, 2021. "Accounting for unadjusted news sentiment for asset pricing," Qualitative Research in Financial Markets, Emerald Group Publishing Limited, vol. 13(3), pages 383-422, May.
    20. Jin, Xuejun & Chen, Cheng & Yang, Xiaolan, 2024. "The effect of international media news on the global stock market," International Review of Economics & Finance, Elsevier, vol. 89(PA), pages 50-69.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • C01 - Mathematical and Quantitative Methods - - General - - - Econometrics
    • C22 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes

    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:kap:compec:v:66:y:2025:i:5:d:10.1007_s10614-024-10835-7. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.