Predicting stock market trends using machine learning algorithms via public sentiment and political situation analysis

被引:0
|
作者
Wasiat Khan
Usman Malik
Mustansar Ali Ghazanfar
Muhammad Awais Azam
Khaled H. Alyoubi
Ahmed S. Alfakeeh
机构
[1] University of Engineering and Technology,Department of Software Engineering
[2] Normandy University,LITIS Lab
[3] INSA Rouen,School of Architecture, Computing and Engineering
[4] University of East London,Department of Computer Engineering
[5] University of Engineering and Technology,Faculty of Computing and Information Technology
[6] King Abdulaziz University,undefined
来源
Soft Computing | 2020年 / 24卷
关键词
Natural language processing; Predictive models; Stock markets; Sentiment analysis;
D O I
暂无
中图分类号
学科分类号
摘要
Stock market trends can be affected by external factors such as public sentiment and political events. The goal of this research is to find whether or not public sentiment and political situation on a given day can affect stock market trends of individual companies or the overall market. For this purpose, the sentiment and situation features are used in a machine learning model to find the effect of public sentiment and political situation on the prediction accuracy of algorithms for 7 days in future. Besides, interdependencies among companies and stock markets are also studied. For the sake of experimentation, stock market historical data are downloaded from Yahoo! Finance and public sentiments are obtained from Twitter. Important political events data of Pakistan are crawled from Wikipedia. The raw text data are then pre-processed, and the sentiment and situation features are generated to create the final data sets. Ten machine learning algorithms are applied to the final data sets to predict the stock market future trend. The experimental results show that the sentiment feature improves the prediction accuracy of machine learning algorithms by 0–3%, and political situation feature improves the prediction accuracy of algorithms by about 20%. Furthermore, the sentiment attribute is most effective on day 7, while the political situation attribute is most effective on day 5. SMO algorithm is found to show the best performance, while ASC and Bagging show poor performance. The interdependency results indicate that stock markets in the same industry show a medium positive correlation with each other.
引用
收藏
页码:11019 / 11043
页数:24
相关论文
共 50 条
  • [1] Predicting stock market trends using machine learning algorithms via public sentiment and political situation analysis
    Khan, Wasiat
    Malik, Usman
    Ghazanfar, Mustansar Ali
    Azam, Muhammad Awais
    Alyoubi, Khaled H.
    Alfakeeh, Ahmed S.
    [J]. SOFT COMPUTING, 2020, 24 (15) : 11019 - 11043
  • [2] Predicting Stock Market Trends Using Machine Learning and Deep Learning Algorithms Via Continuous and Binary Data; a Comparative Analysis
    Nabipour, Mojtaba
    Nayyeri, Pooyan
    Jabani, Hamed
    Shahab, S.
    Mosavi, Amir
    [J]. IEEE ACCESS, 2020, 8 : 150199 - 150212
  • [3] Predicting stock market by sentiment analysis and deep learning
    Akyuz, Sureyya Ozogur
    Atas, Pinar Karadayi
    Benkhaldoun, Aymane
    [J]. OPERATIONS RESEARCH AND DECISIONS, 2024, 34 (02) : 85 - 107
  • [4] Indian Stock Market Prediction Using Machine Learning and Sentiment Analysis
    Pathak, Ashish
    Shetty, Nisha P.
    [J]. COMPUTATIONAL INTELLIGENCE IN DATA MINING, 2019, 711 : 595 - 603
  • [5] Stock Market Prediction Using Microblogging Sentiment Analysis and Machine Learning
    Koukaras, Paraskevas
    Nousi, Christina
    Tjortjis, Christos
    [J]. TELECOM, 2022, 3 (02): : 358 - 378
  • [6] Stock Market Sentiment Analysis Based On Machine Learning
    Rajput, Vikash Singh
    Dubey, Shirish Mohan
    [J]. PROCEEDINGS ON 2016 2ND INTERNATIONAL CONFERENCE ON NEXT GENERATION COMPUTING TECHNOLOGIES (NGCT), 2016, : 506 - 510
  • [7] Predicting the daily return direction of the stock market using hybrid machine learning algorithms
    Zhong, Xiao
    Enke, David
    [J]. FINANCIAL INNOVATION, 2019, 5 (01)
  • [8] Predicting the daily return direction of the stock market using hybrid machine learning algorithms
    Xiao Zhong
    David Enke
    [J]. Financial Innovation, 5
  • [9] Sentiment Analysis Using Machine Learning Algorithms
    Jemai, Fatma
    Hayouni, Mohamed
    Baccar, Sahbi
    [J]. IWCMC 2021: 2021 17TH INTERNATIONAL WIRELESS COMMUNICATIONS & MOBILE COMPUTING CONFERENCE (IWCMC), 2021, : 775 - 779
  • [10] Predicting the Unpredictable: An Application of Machine Learning Algorithms in Indian Stock Market
    Saini A.
    Sharma A.
    [J]. Annals of Data Science, 2022, 9 (4) : 791 - 799