IDEAS home Printed from https://ideas.repec.org/a/alk/jcsts0/v6y2024i1id6590.html

Harmonizing Macro-Financial Factors and Twitter Sentiment Analysis in Forecasting Stock Market Trends

Author

Listed:
  • Md Shahedul Amin

    (Department of Finance & Economics, University of Tennessee, Chattanooga, TN, USA)

  • Eftekhar Hossain Ayon

    (Department of Computer Science, Monroe College, New Rochelle, New York, USA)

  • Bishnu Padh Ghosh

    (School of Business, International American University, Los Angeles, California, USA)

  • MD, Md Salim Chowdhury

    (College of Graduate and Professional Studies Trine University, USA)

  • Mohammad Shafiquzzaman Bhuiyan

    (Department of Business Administration, Westcliff University, Irvine, California)

  • Rasel Mahmud Jewel

    (Department of Business Administration, Westcliff University, Irvine, California)

  • Ahmed Ali Linkon

    (Department of Computer Science, Westcliff University, Irvine, California, USA)

Abstract

The surge in generative artificial intelligence technologies, exemplified by systems such as ChatGPT, has sparked widespread interest and discourse prominently observed on social media platforms like Twitter. This paper delves into the inquiry of whether sentiment expressed in tweets discussing advancements in AI can forecast day-to-day fluctuations in stock prices of associated companies. Our investigation involves the analysis of tweets containing hashtags related to ChatGPT within the timeframe of December 2022 to March 2023. Leveraging natural language processing techniques, we extract features, including positive/negative sentiment scores, from the collected tweets. A range of classifier machine learning models, encompassing gradient boosting, decision trees and random forests, are employed to train on tweet sentiments and associated features for the prediction of stock price movements among key companies, such as Microsoft and OpenAI. These models undergo training and testing phases utilizing an empirical dataset gathered during the stipulated timeframe. Our preliminary findings reveal intriguing indications suggesting a plausible correlation between public sentiment reflected in Twitter discussions surrounding ChatGPT and generative AI and the subsequent impact on market valuation and trading activities concerning pertinent companies, gauged through stock prices. This study aims to forecast bullish or bearish trends in the stock market by leveraging sentiment analysis derived from an extensive dataset comprising 500,000 tweets. In conjunction with this sentiment analysis derived from Twitter, we incorporate control variables encompassing macroeconomic indicators, Twitter uncertainty index and stock market data for several prominent companies.

Suggested Citation

  • Md Shahedul Amin & Eftekhar Hossain Ayon & Bishnu Padh Ghosh & MD, Md Salim Chowdhury & Mohammad Shafiquzzaman Bhuiyan & Rasel Mahmud Jewel & Ahmed Ali Linkon, 2024. "Harmonizing Macro-Financial Factors and Twitter Sentiment Analysis in Forecasting Stock Market Trends," Journal of Computer Science and Technology Studies, Al-Kindi Center for Research and Development, vol. 6(1), pages 58-67, January.
  • Handle: RePEc:alk:jcsts0:v:6:y:2024:i:1:id:6590
    DOI: 10.32996/jcsts.2024.6.1.7
    as

    Download full text from publisher

    File URL: https://al-kindipublisher.com/index.php/jcsts/article/view/6590
    File Function: Abstract page
    Download Restriction: no

    File URL: https://al-kindipublisher.com/index.php/jcsts/article/download/6590/5540
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.32996/jcsts.2024.6.1.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
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    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:alk:jcsts0:v:6:y:2024:i:1:id:6590. 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.

    We have no bibliographic references for this item. You can help adding them by using 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: Al-Kindi Center for Research and Development (email available below). General contact details of provider: https://al-kindipublisher.com/index.php/jcsts .

    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.