Back to Search Start Over

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

Authors :
Khan, Wasiat
Malik, Usman
Ghazanfar, Mustansar Ali
Azam, Muhammad Awais
Alyoubi, Khaled H.
Alfakeeh, Ahmed S.
Source :
Soft Computing - A Fusion of Foundations, Methodologies & Applications; Aug2020, Vol. 24 Issue 15, p11019-11043, 25p
Publication Year :
2020

Abstract

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. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
14327643
Volume :
24
Issue :
15
Database :
Complementary Index
Journal :
Soft Computing - A Fusion of Foundations, Methodologies & Applications
Publication Type :
Academic Journal
Accession number :
144404746
Full Text :
https://doi.org/10.1007/s00500-019-04347-y