Predicting the Direction of NEPSE Index Movement with News Headlines Using Machine Learning
Keshab Raj Dahal (),
Ankrit Gupta and
Nawa Raj Pokhrel
Additional contact information
Keshab Raj Dahal: Department of Mathematics, State University of New York Cortland, Cortland, NY 13045, USA
Ankrit Gupta: Department of Computer Science, Central Michigan University, Mt Pleasant, MI 48859, USA
Nawa Raj Pokhrel: Department of Physics and Computer Science, Xavier University of Louisiana, New Orleans, LA 70125, USA
Econometrics, 2024, vol. 12, issue 2, 1-26
Abstract:
Predicting stock market movement direction is a challenging task due to its fuzzy, chaotic, volatile, nonlinear, and complex nature. However, with advancements in artificial intelligence, abundant data availability, and improved computational capabilities, creating robust models capable of accurately predicting stock market movement is now feasible. This study aims to construct a predictive model using news headlines to predict stock market movement direction. It conducts a comparative analysis of five supervised classification machine learning algorithms—logistic regression (LR), support vector machine (SVM), random forest (RF), extreme gradient boosting (XGBoost), and artificial neural network (ANN)—to predict the next day’s movement direction of the close price of the Nepal Stock Exchange (NEPSE) index. Sentiment scores from news headlines are computed using the Valence Aware Dictionary for Sentiment Reasoning (VADER) and TextBlob sentiment analyzer. The models’ performance is evaluated based on sensitivity, specificity, accuracy, and the area under the receiver operating characteristic (ROC) curve (AUC). Experimental results reveal that all five models perform equally well when using sentiment scores from the TextBlob analyzer. Similarly, all models exhibit almost identical performance when using sentiment scores from the VADER analyzer, except for minor variations in AUC in SVM vs. LR and SVM vs. ANN. Moreover, models perform relatively better when using sentiment scores from the TextBlob analyzer compared to the VADER analyzer. These findings are further validated through statistical tests.
Keywords: stock market index; stock movement direction; machine learning; neural network; text mining; prediction; NEPSE (search for similar items in EconPapers)
JEL-codes: B23 C C00 C01 C1 C2 C3 C4 C5 C8 (search for similar items in EconPapers)
Date: 2024
References: View references in EconPapers View complete reference list from CitEc
Citations:
Downloads: (external link)
https://www.mdpi.com/2225-1146/12/2/16/pdf (application/pdf)
https://www.mdpi.com/2225-1146/12/2/16/ (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:jecnmx:v:12:y:2024:i:2:p:16-:d:1412218
Access Statistics for this article
Econometrics is currently edited by Ms. Jasmine Liu
More articles in Econometrics from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().