Comparison of intelligence accuracy of data mining algorithms to estimate stocks prices

Document Type : Research Paper

Authors

Department of Financial Management, Kish International Branch, Islamic Azad University, Kish Island. Iran

10.22051/jfm.2024.40333.2685

Abstract

Forecasting the stock price due to its attractiveness has always been on the focus of experts and capital market activists. In such a way that various prediction models such as technical and fundamental analysis and data mining are increasingly used to predict stock prices.

Past studies indicate the possibility of stock price prediction by machine learning models, but the prediction accuracy of these models has not been evaluated. The purpose of this research is to accurately compare the intelligence of five commonly used data mining algorithms, including neural network, Logestic regression, k-nearest neighbors, support vector machines and cross validation. Among the 385 active companies in Tehran Stock Exchange, 72 companies have been selected by the method of systematic elimination and the above models have been implemented to predict stock prices on the daily prices of selected stocks for the years 2009 to 2020.

The stock price is used as a dependent variable and changes in the opening price, closing price, highest price, lowest price and volume of trade, daily price of forign currency, gold and oil price are used as independent variables.

Three indicators R2, MSE and RMSE are used, to evaluate the accuracy of models, and analysis of variance using F statistics is used to fit the accuracy of the models, and t-student statistic is used to compare two models.

The results are showed that among the smart algorithms used, the support vector machine algorithm has the highest accuracy. Matlab software is used to analyze the data and compare the models.

Keywords

Main Subjects


 
Ahmadkhan Beigi, Sohail, Abdulvand, Neda. (2016). Stock price forecasting with a combined approach of artificial neural networks and colonial competition algorithm based on chaos theory. Financial Management Strategy, 5 (3), 27- 73. Doi: 10. 22051/jfm. 2017. 14635. 1319. (In Persian).
Afshari Rad, Elham, Alavi, Seyed Enayat A.and Sinaii, Hassan Ali. (2017). "An intelligent model for predicting stock trends using technical analysis methods" Financial Research, Summer 2017, Volume 20, Number 249. (in persian)
Ahmadkhan Beigi, Sohail and Abdulvand, Neda. (2016). "Stock price forecasting with a hybrid approach of artificial neural networks and colonial competition algorithm based on chaos theory." Financial management strategy, number 5. (in persian)
Ampomah, E. K., Z. Qin, and G. Nyame. (2020). "Evaluation of tree-based ensemble machine learning models in predicting stock price direction of movement‏." Information, 11(6), 332.
Ballings, M, D Van den Poel, N Hespeels, and R. Gryp. (2015). "Evaluating multiple classifiers for stock price direction prediction.‏" Expert systems with Applications, 42(20), 7046-7056.
Bonaccorso, G. (2017). Machine learning algorithms‏. Packt Publishing Ltd.
Ebrahimi Heravi, Behrouz, Kazem Rangzan, Mostafa Kabuli, Hassan Daneshian. (2016). "Comparison of Artificial Neural Network and Fuzzy System Methods in Determining Flood Early Warning Time of the Yellow River Watershed Sub-basin - Khuzestan Province" Geography and Environmental Planning, Volume 28, Number 1, Pages 1-20. (in persian)
Emami, Mohammad, Yatharbi, Seyyed Shahabuddin. (2013). "The use of artificial neural network in the interpretation of barometric test results". Scientific Research Journal of Imran Modares, 14th period, special issue (in persian)
Gardening, Shahnaz. (2016). "Techniques and methods of machine learning on big data." National conference of new technologies in electrical and computer engineering. (in persian)
Hafezi, R., J. Shahrabi, and E. Hadavandi. (2015). "A bat-neural network multi-agent system (BNNMAS) for stock price prediction: Case study of DAX stock price. ‏." Applied Soft Computing, 29 196-210.
Hosseininasab, Hojjat, Karimi Teklo, Salim and Yousefinejad, Marzieh. (2012). "Comparison of the accuracy of support vector machines and artificial neural networks approaches in predicting the profit per share of companies listed on the Tehran Stock Exchange." Bi-Quarterly Economic Essays, 109-134-10 (in persian)
Houssein, E. H., M. Dirar, K. Hussain, and W. M. mohamed. (2021). "Artificial Neural Networks for Stock Market Prediction: A Comprehensive Review‏." Metaheuristics in Machine Learning: Theory and Applications 409-444.
Kantardzik, Mehmed. (2012). Data mining, translated by Amir Alikhanzadeh, Computer Sciences Publishing. (in persian)
Lin, Q. (2018). "Technical analysis and stock return predictability: An aligned approach‏." Journal of financial markets, 38 103-123.
Long, W., L Song, and Y Tian. (2019). "A new graphic kernel method of stock price trend prediction based on financial news semantic and structural similarity‏." Expert Systems with Applications, 118 411-424.
Nivetha, R. Y., and C. Dhaya. (2017). "Developing a prediction model for stock analysis.‏" International Conference on Technical Advancements in Computers and Communications (ICTACC). IEEE.
Piryonesi, S. M., and T. E. El-Diraby. (2020). "Data analytics in asset management: Cost-effective prediction of the pavement condition index‏." Journal of Infrastructure Systems, 26(1), 04019036.
Rai, Reza, Pouyanfar, Ahmed. (1400), Advanced Investment Management. Side Publications (in persian)
Sarmad, Zahra, Bazargan, Abbas and Hijazi, Elaha. (2019). Research methods in behavioral sciences. Post an ad. (in persian)
Sigo, M. O., M. Selvam, S. Venkateswar, and C. Kathiravan. (2020). "Application of ensemble machine learning in the predictive data analytics of indian stock market." CIFR Paper Forthcoming.‏
Wen Long Zhichen Lu Lingxiao Cui. (2019). "Deep learning-based feature engineering for stock price movement prediction،." Knowledge-Based Systems Volume 164، 163-173.
Zarei, Qasim, Mohammadian, Rana, Hashedi Neiri, Hatef and Ajirlu, Mohammad. (2017) "Comparison of fuzzy neural network methods with fuzzy wavelet neural networks in predicting stock prices of banks listed on the Tehran Stock Exchange" Journal of Financial Management Strategy, Fall 6th Year 2017 Number 2. (in persian)
Zhou, X, L Wang, H Liao, S Wang, and B Lev. (2019). "A prospect theory-based group decision approach considering consensus for portfolio selection with hesitant fuzzy information