{"title":"Predicting the Direction of NEPSE Index Movement with News Headlines Using Machine Learning","authors":"K. Dahal, Ankrit Gupta, Nawa Raj Pokhrel","doi":"10.3390/econometrics12020016","DOIUrl":null,"url":null,"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.","PeriodicalId":11499,"journal":{"name":"Econometrics","volume":null,"pages":null},"PeriodicalIF":1.1000,"publicationDate":"2024-06-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Econometrics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.3390/econometrics12020016","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"ECONOMICS","Score":null,"Total":0}
引用次数: 0
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.
由于股市的模糊性、混乱性、不稳定性、非线性和复杂性,预测股市走向是一项极具挑战性的任务。然而,随着人工智能的进步、数据的丰富可用性和计算能力的提高,创建能够准确预测股市走势的强大模型现已变得可行。本研究旨在利用新闻标题构建一个预测模型,以预测股市变动方向。它对五种监督分类机器学习算法--逻辑回归(LR)、支持向量机(SVM)、随机森林(RF)、极端梯度提升(XGBoost)和人工神经网络(ANN)--进行了比较分析,以预测尼泊尔证券交易所(NEPSE)指数收盘价第二天的变动方向。新闻标题的情感得分是通过情感推理词典(VADER)和 TextBlob 情感分析器计算得出的。根据灵敏度、特异性、准确性和接收者操作特征曲线(ROC)下面积(AUC)对模型的性能进行评估。实验结果表明,在使用来自 TextBlob 分析器的情感评分时,所有五个模型的性能相当。同样,在使用来自 VADER 分析器的情感评分时,除了 SVM vs. LR 和 SVM vs. ANN 的 AUC 略有不同外,所有模型都表现出几乎相同的性能。此外,与 VADER 分析仪相比,使用 TextBlob 分析仪的情感评分时,模型的表现相对更好。这些发现通过统计测试得到了进一步验证。