EconPapers    
Economics at your fingertips  
 

Using Financial News Sentiment for Stock Price Direction Prediction

Bledar Fazlija and Pedro Harder
Additional contact information
Bledar Fazlija: School of Management and Law, ZHAW Zurich University of Applied Sciences, 8400 Winterthur, Switzerland
Pedro Harder: School of Management and Law, ZHAW Zurich University of Applied Sciences, 8400 Winterthur, Switzerland

Mathematics, 2022, vol. 10, issue 13, 1-20

Abstract: Using sentiment information in the analysis of financial markets has attracted much attention. Natural language processing methods can be used to extract market sentiment information from texts such as news articles. The objective of this paper is to extract financial market sentiment information from news articles and use the estimated sentiment scores to predict the price direction of the stock market index Standard & Poor’s 500. To achieve the best possible performance in sentiment classification, state-of-the-art bidirectional encoder representations from transformers (BERT) models are used. The pretrained transformer networks are fine-tuned on a labeled financial text dataset and applied to news articles from known providers of financial news content to predict their sentiment scores. The generated sentiment scores for the titles of the given news articles, for the (text) content of said news articles, and for the combined title-content consideration are posited against past time series information of the stock market index. To forecast the price direction of the stock market index, the predicted sentiment scores are used in a simple strategy and as features for a random forest classifier. The results show that sentiment scores based on news content are particularly useful for stock price direction prediction.

Keywords: sentiment analysis; natural language processing; machine learning; stock prize prediction (search for similar items in EconPapers)
JEL-codes: C (search for similar items in EconPapers)
Date: 2022
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (5)

Downloads: (external link)
https://www.mdpi.com/2227-7390/10/13/2156/pdf (application/pdf)
https://www.mdpi.com/2227-7390/10/13/2156/ (text/html)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:gam:jmathe:v:10:y:2022:i:13:p:2156-:d:843797

Access Statistics for this article

Mathematics is currently edited by Ms. Emma He

More articles in Mathematics from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().

 
Page updated 2025-03-27
Handle: RePEc:gam:jmathe:v:10:y:2022:i:13:p:2156-:d:843797