
Can natural language processing accurately predict stock market movements based on Reddit World News headlines?
- 1 New York University
- 2 University of California Santa Barbara
- 3 University of San Francisco
* Author to whom correspondence should be addressed.
Abstract
This research examines the application of machine learning and natural language processing (NLP) methods to stock market movement forecasting. Many NLP approaches were used to gather and preprocess Dow Jones Industrial Average (DJIA) data and Reddit Global News headlines. The preprocessed data were then used to train three machine learning algorithms (Random Forest, Logistic Regression, and Naive Bayes) to forecast the daily trend of the DJIA. According to the study, the Naive Bayes algorithm, along with Textblob, fared better than the other two models, obtaining an accuracy of 68.59%, which is an improvement above previous research. These findings show how NLP and machine learning may be used to forecast stock market patterns and offer ideas for further study to boost the precision of these models.
Keywords
natural language processing, text opinion mining, stock market, DJIA, sentiment analysis, Reddit news, machine learning
[1]. N. Sharma and A. Juneja, "Combining of random forest estimates using LSboost for stock market index prediction," 2017 2nd International Conference for Convergence in Technology (I2CT), Mumbai, India, 2017, pp. 1199-1202, doi: 10.1109/I2CT.2017.8226316.
[2]. J. M. -T. Wu, Z. Li, G. Srivastava, J. Frnda, V. G. Diaz and J. C. -W. Lin, "A CNN-based Stock Price Trend Prediction with Futures and Historical Price," 2020 International Conference on Pervasive Artificial Intelligence (ICPAI), Taipei, Taiwan, 2020, pp. 134-139, doi: 10.1109/ICPAI51961.2020.00032.
[3]. Bollen, J., Mao, H., & Zeng, X. (2011). Twitter mood predicts the stock market. Journal of computational science, 2(1), 1-8.
[4]. L. Bing, K. C. C. Chan and C. Ou, "Public Sentiment Analysis in Twitter Data for Prediction of a Company's Stock Price Movements," 2014 IEEE 11th International Conference on e-Business Engineering, Guangzhou, China, 2014, pp. 232-239, doi: 10.1109/ICEBE.2014.47.
[5]. Cakra, Y. E., & Trisedya, B. D. (2015, October). Stock price prediction using linear regression based on sentiment analysis. In 2015 international conference on advanced computer science and information systems (ICACSIS) (pp. 147-154). IEEE.
[6]. Dong, Y., Yan, D., Almudaifer, A. I., Yan, S., Jiang, Z., & Zhou, Y. (2020, December). Belt: A pipeline for stock price prediction using news. In 2020 IEEE International Conference on Big Data (Big Data) (pp. 1137-1146). IEEE.
[7]. Shah, D., Isah, H., & Zulkernine, F. (2018, December). Predicting the effects of news sentiments on the stock market. In 2018 IEEE International Conference on Big Data (Big Data) (pp. 4705-4708). IEEE.
[8]. Kim, Y., Jeong, S. R., & Ghani, I. (2014). Text opinion mining to analyze news for stock market prediction. Int. J. Advance. Soft Comput. Appl, 6(1), 2074-8523.
[9]. Velay, M., & Daniel, F. (2018). Using NLP on news headlines to predict index trends. arXiv preprint arXiv:1806.09533.
[10]. Ho, T. K. (1995, August). Random decision forests. In Proceedings of 3rd international conference on document analysis and recognition (Vol. 1, pp. 278-282). IEEE.
Cite this article
Cao,C.;Yu,X.;Qian,C. (2023). Can natural language processing accurately predict stock market movements based on Reddit World News headlines?. Applied and Computational Engineering,29,84-91.
Data availability
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
Disclaimer/Publisher's Note
The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
About volume
Volume title: Proceedings of the 5th International Conference on Computing and Data Science
© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and
conditions of the Creative Commons Attribution (CC BY) license. Authors who
publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons
Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this
series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published
version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial
publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and
during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See
Open access policy for details).