Stock Price Forecasting with Support Vector Regression Based on Social Network Sentiment Analysis and Technicl Analysis

Document Type : Original Article

Authors

1 Phd-studentat Department of Management، Faculty of Management and Accounting، Qazvin Branch، Islamic Azad University، Qazvin ، Iran

2 Department of Management, Faculty of Social Sciences and economics, Alzahra University, Tehran, Iran.

3 Professor at Department of Industrial Management ، Management and Accounting Faculty ، Shahid Beheshti University ، Tehran ، Iran

4 Department of Industrial at Department of Management، Islamic Azad University Qazvin، Qazvin، Iran

10.30495/ijfma.2023.21124

Abstract

This study predicts Price of stocks in the short term by using the analysis of investors' opinions of the social network. The predictability of stock markets, due to having a complex, dynamic and nonlinear system that it has always been one of the challenges for researchers. The effect of users' feelings on the social network and its combination with 20 technical indicators on the accuracy of stock price forecasting. The study period is from the beginning of April 2016 to the end of March 2017 (two years). To access sufficient data, a sample of 14 active companies that had the most comments and posts. Data mining of technical indicators was performed and support vector regression was used to predict. The results show that the use of technical indicators is more accurate compared to combining it with the aggregation of users' emotions and has less RMSE errors. The number of comments has a significant correlation and the results of Granger causality test showed that it is possible to use the aggregation of users' daily emotions to predict stock prices.

Keywords


  • Bollen, J., Mao, H., & Zeng, X. (2011). Twitter mood predicts the stock market. Journal of computational science, Vol. 2, no. 1, pp.1-8.
  • Fama, E. F. (1965). The behavior of stock-market prices. The journal of Business, Vol.38, no. 1, pp. 34-105.
  • Geweke, J. (1984). Inference and causality in economic time series models. Handbook of econometrics, Vol.2, pp.1101-1144.
  • Granger, C. W. (1969). Investigating causal relations by econometric models and cross-spectral methods. Econometrica: journal of the Econometric Society, pp.424-438.
  • Huang, C. L., & Tsai, C. Y. (2009). A hybrid SOFM-SVR with a filter-based feature selection for stock market forecasting. Expert Systems with applications, Vol.36, no. 2, pp. 1529-1539.
  • Lee, H., Surdeanu, M., MacCartney, B., & Jurafsky, D. (2014, May). On the Importance of Text Analysis for Stock Price Prediction. In LREC (Vol. 2014, pp. 1170-1175).
  • Malthouse, E. C., Haenlein, M., Skiera, B., Wege, E., & Zhang, M. (2013). Managing customer relationships in the social media era: Introducing the social CRM house. Journal of interactive marketing, Vol: 27.No. 4, pp.270-280.
  • Mittal، Anshul، and Arpit Goel. (2012). Stock Prediction Using Twitter Sentiment Analysis. Stanford University، CS229. Available online: http://cs229.stanford.edu/proj2011/GoelMittalStockMarketPredictionUsingTwitterSenti
  • Moshari, M., Didehkhani, H., Khalili Dameghani, K., & Abbasi, E. (2019). Designing a Hybrid Intelligent Model for Prediction of Stock Price Golden Points. Journal of Investment Knowledge, Vol. 8, no. 29, pp.45-66.
  • Schumaker, R. P., & Chen, H. (2009). Textual analysis of stock market prediction using breaking financial news: The AZFin text system. ACM Transactions on Information Systems (TOIS), Vol.27, No. 2, pp.1-19.
  • Vapnik, V. N. (1995). The nature of statistical learning theory (No. 04; Q325. 7, V3.).
  • Vapnik, V. (1999). The Nature of Statistical Learning Theory. Springer Science & Business Media.
  • Vatanparast, M., Asadi, M., Mohammadi, S., & Babaei, A. (2019). Stock price prediction based on LM-BP neural network and over-point estimation by counting time intervals: Evidence from the Stock Exchange. ،Vol:10 ، 39; pp. 193- 218.