IDEAS home Printed from https://ideas.repec.org/h/wsi/wschap/9789811269943_0053.html
   My bibliography  Save this book chapter

Predicting Stock Return Movement Directions with Sentiment Analysis of News Headlines: A Machine Learning Approach

In: Handbook of Investment Analysis, Portfolio Management, and Financial Derivatives In 4 Volumes

Author

Listed:
  • Hanxin Hu
  • Ting Sun

Abstract

This chapter combines the sentiment features of news headlines, stock market data, and macroeconomic factors to predict the direction of stock return movements in one month after the release of the news article. The sentiment features are extracted with Flair, an advanced library for Natural Language Processing (NLP). The stock market data of a company contains a comprehensive collection of 94 variables used by a prior literature (Gu et al., 2020) for the prediction of stock return. To construct the prediction model, this chapter applies seven machine learning algorithms (including Gradient Boosting, XGBoosting, Random Forest, Artificial Neural Networks, Support Vector Machine, Naïve Bayes, and Logistic Regression). The out-of-sample tests show that tree-based ensemble methods (i.e., Random Forest, XGBoosting, and Gradient Boosting) provide the most accurate predictions, with the maximum AUC-ROC of 0.74. Furthermore, this study provides evidence for the effectiveness of the sentiment features of news headline for the prediction of future stock returns as the median of the sentiment score of the news headline is listed as one of the most important predictors in the model.

Suggested Citation

  • Hanxin Hu & Ting Sun, 2024. "Predicting Stock Return Movement Directions with Sentiment Analysis of News Headlines: A Machine Learning Approach," World Scientific Book Chapters, in: Cheng Few Lee & Alice C Lee & John C Lee (ed.), Handbook of Investment Analysis, Portfolio Management, and Financial Derivatives In 4 Volumes, chapter 53, pages 1707-1734, World Scientific Publishing Co. Pte. Ltd..
  • Handle: RePEc:wsi:wschap:9789811269943_0053
    as

    Download full text from publisher

    File URL: https://www.worldscientific.com/doi/pdf/10.1142/9789811269943_0053
    Download Restriction: Ebook Access is available upon purchase.

    File URL: https://www.worldscientific.com/doi/abs/10.1142/9789811269943_0053
    Download Restriction: Ebook Access is available upon purchase.
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    More about this item

    Keywords

    Financial Accounting; Financial Auditing; Mutual Funds; Hedge Funds; Asset Pricing; Options; Portfolio Analysis; Risk Management; Investment Analysis; Momentum Analysis; Behavior Analysis; Futures; Index Futures; CDCs; Financial Econometrics; Statistics; Financial Derivatives; Financial Accounting;
    All these keywords.

    JEL classification:

    • G11 - Financial Economics - - General Financial Markets - - - Portfolio Choice; Investment Decisions
    • G12 - Financial Economics - - General Financial Markets - - - Asset Pricing; Trading Volume; Bond Interest Rates
    • G1 - Financial Economics - - General Financial Markets
    • M41 - Business Administration and Business Economics; Marketing; Accounting; Personnel Economics - - Accounting - - - Accounting
    • M42 - Business Administration and Business Economics; Marketing; Accounting; Personnel Economics - - Accounting - - - Auditing
    • G3 - Financial Economics - - Corporate Finance and Governance

    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:wsi:wschap:9789811269943_0053. 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: Tai Tone Lim (email available below). General contact details of provider: http://www.worldscientific.com/page/worldscibooks .

    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.