Stock price prediction using the Chaid rule-based algorithm and particle swarm optimization (pso)

Document Type : Research Paper


Department of Accounting, Babol Branch, Islamic Azad University, Babol, Iran



Stock prices in each industry are one of the major issues in the stock market. Given the increasing number of shareholders in the stock market and their attention to the price of different stocks in transactions, the prediction of the stock price trend has become significant. Many people use the share price movement process when com-paring different stocks while investing, and also want to predict this trend to see if the trend continues to increase or decrease over time. In this research, stock price prediction for 1170 years -company during 2011-2016 (a six-year period) of listed companies in stock exchange has been studied using the machine learning method (Chaid rule-based algorithm and Particle Swarm Optimization Algorithm). The results of the research show that there is a significant relationship between earnings per share, e / p ratio, company size, inventory turnover ratio, and stock returns with stock prices. Also, particle swarm optimization (pso) algorithm has a good ability to predict stock prices.


Main Subjects

[1] Abdeh Tabrizi, H., and Joohari, A. The Investigation of the Efficiency of Stock Price Index of TSE. Financial Research, 1996,11(12),p. at https  ://
 [2] Aghajan Nashtaee, R., and Daghigh Rohi,S. Investigating the relationship between financial ratios and stock prices in Tehran Stock Exchange. 6th International Conference on Economics, Management and Engineering, Belgium,International Center for Academic Communication of Iran,2015,(in Persian).
[3] Alijani, M., Banimahd, B., Madanchi, M. (2019). Study and Research on the Six-Year Process of Bitcoin Price and Return. Advances in Mathematical Finance and Applications, 4(1), 45-54.
Doi: 10.22034/amfa.2019.577434.1126
[4] Andrea ,B., Matteo, M. The impacts of oil price shocks on stock market volatility: Evidence from the G7 countries.Energy Policy, 2016, 98(c),  p160-169. Doi: 10.1016/j.enpol.2016.08.020
[5] Ashraf E. Elbakrya, J. Nwachukwub, H. Abdouc,d. Comparative evidence on the value relevance of IFRS-basedaccounting information in Germany and the UK,Journal of International Accounting. Auditing and Taxation 28, 2016,p 10–30.
[6] Akbari, S., Dadras ,M. Investigating Financial Ratios with Stock Prices in Industries Affiliated to the Agricultural Sector in Iran's Stock Exchange, Agricultural Economics Research,2017,9(1)p.176-165, (in Persian).
[7] Barzegari Khanagha, J., Jamali, Z. Predicting Stock Returns with Financial Ratios; An Exploration in Recent Researches. Journal of Accounting Research, 6(2), 71-92, 2016.
Doi: 10.22051/ijar.2016.2432.
[8] alimohamadi, A., abbasimehr, M., javaheri, A. Prediction of Stock Return Using Financial Ratios: A Decision Tree Approach. Financial Management Strategy, 2015, 3(4), 125-146. Doi: 10.22051/jfm.2016.2349.
[9]  AhmadKhanBeygi, S., Abdolvand, N. Stock Price Prediction Modeling Using Artificial Neural Network Approach and Imperialist Competitive Algorithm Based On Chaos Theory. Financial Management Strategy, 2017,5(3), 27-73. Doi: 10.22051/jfm.2017.14635.1319.
[10]  Bahram Far, N., Mehran, K.The Relationship Between Earnings Per Share, Dividend Profit and Investment in Companies Listed in Tehran Stock Exchange, Accounting and Auditing Reviews, 2004,11(36), pp. 27-46.
[11] Bartov, E., Partha ,M. Does Income Statement Placement Matter to Investors? The Case of Gains/Losses from Early Debt Extinguishment Leonard N. Stern School of Business, New York University, New York, 2012.
[12] Benjamid, B.,Moradzadefard, M., and Moorwarid Araqi, F. Positive Change of Earnings Per Share and Share Price: Functional Fixation Hypothesis,Management Accounting, 2014,7(1),p.67-77, (in Persian).
[13] Bayat, A., Bagheri, Z (2017). Stock price prediction using firewall algorithm. Journal of Financial Knowledge, Securities Analysis, Tenth, Thirty-Fifth Edition, Autumn 1396, p. 135-146 ,(in Persian).
[14] Bigazadeh Abbasi, A., Bigzade Abbasi, F.,and Porkakani, M. Stock price forecast using Evidence from the Tehran Stock Exchange using genetic algorithm. International Conference on New Research in Management, Economics and Accounting, Istanbul, Institute of Managers of the Ideas Capital, Iliya, 2015, (inPersian).
[15] Chia,L.,Yung,L. A double-threshold GARCH model of stock market and currency shocks on stock returns، Article in Mathematics and Computers in Simulation,2008, 79(3) , p.458-474.
[16] Dibachi, H., Behzadi, M.H., Izadikhah, M., Stochastic multiplicative DEA model for measuring the efficiency and ranking of DMUs under VRS technology, Indian Journal of Science and Technology,2014, 7 (11), P. 1765–1773.
[17] Efron, B., et al. Least angle regression , Stanford University,2004,32. 32,p407–499. Doi:10.1214/009053604000000067>
[18] Eghdami, I., Seyyed Javadifimeh, S., Maleki Khavari, M., and Hosseinzadeh, A. A survey of small and large companies in terms of financial performance. Second National Conference on Accounting, Management and Economics, 2014, p. 1-13, (in Persian). https://
[19] Foroughi, D., Faraghie, M . The Effect of Price Coincidence and Stock Returns on Stock Liabilities in Companies Accepted in Tehran Stock Exchange, Journal of Management and Finance, 2015, 4(1),P.85-98,(inPersian).
[20] Golestan, A .,and Molaei Zahedi, Z. Investigating group-based optimization algorithms. Eighth Symposium on Advancements in Science and Technology, Mashhad, Iran،2001, (in Persian).
[21] Huddart ,S. Psychological factors, stock price paths, and trading volume, Management science. University of North Carolina at Chapel Hilland,2006.
[22] Islami, M., Abadi, H., Saeedi, P., and Khalilzadeh, S. Investigating the Effect of Internal Factors on Stock Price Change in Investment Companies Accepted in Tehran Stock Exchange, Accounting Research, 2017, 6(4), P. 103-138, (in Persian). Doi: 10.22051/IJAR.2017.2080.
[23] Jandagian, A. Stock price projections using data mining and neural networks, Master's Theses, Khajehnesir Al-Din Tusi University of Technology, 2014, (in Persian).
[24] Jamshidi Ashkelini, E. Study of the relationship between earnings and stock prices in Tehran Stock Exchange. Master's Thesis, Tehran: Tarbiat Modares University, 1998, (in Persian).
[25] Khaleghi, P., Aghaei, M., Rezaei, F. (2018). Salience Theory and Pricing Stock of Corporates in Tehran Stock Exchange. Advances in Mathematical Finance and Applications, 3(4), 1-16.
Doi: 10.22034/amfa.2019.577140.1120
[26] Khoshroo, A., Izadikhah, M., Emrouznejad, A., Improving energy efficiency considering reduction of CO2 emission of turnip production: A novel data envelopment analysis model with undesirable output approach, Journal of cleaner production,2018, 187 (20), P. 605-615. Doi: 10.1016/j.jclepro.2018.03.232
[27] Lakshmi, P.,Maheswaran, S. A New Statistic to Capture the Level Dependence in Stock Price Volatility.The Quarterly Review of Economics and Finance, 2017, P. 355-362. Doi: 10.1016/j.qref.2016.12.001
[28] Moradzadeh Fard, M., Darabi, R.,and Shahalizadeh, R.Integrating artificial intelligence techniques to provide a stock price prediction model. Financial Accounting and Auditing Research, 2014,  6(24), P. 89-102, (in Persian). Online at
[29] Monadjemi, S., Abzari, M., Rayati Shavazi, A.. Modeling of Stock Price Forecasting in Stock Exchange Market, using Fuzzy Neural Networks and Genetic Algorithms , 2009,6(22),p 1-26.
 Doi: 10.22055/jqe.2009.10697.
[30] Mehrara, A., atf, Z., and Asgari, Z. Data mining techniques in predicting stock prices of stock exchanges. National Conference on Accounting, Financeand Investment,2012,(in Persian). 
[31]Meshki, M., Elahi Rodposhti, S. Acounting Conservatism and the Value of Cash Holdings. Empirical Research in Accounting, 2014, 4(1), p23-43. Doi: 10.22051/jera.2015.1882
[32]Mehrabian, A. "The sensitivity of the stock market to financial and monetary fluctuations." Economic Research Journal, No. 1, 2004,p. 169-186, (in Persian).
[33]Nakhaii, H., Lari Dasht Beyaz, M.,and Fazelangi Sangani, Z. Investigating the relationship between returns, operating cash flow ratios, accumulated profit ratios, and dividend ratios with stock price fluctuations in listed companies in Tehran Stock Exchange Quarterly, Journal of New Research in Management and Accounting, No. Seventh, 2016,p. 107-134, (in Persian). html.
[34]Nasirzadeh, F., and Nikravesh, Z. Evaluating the ability of the data mining model to predict stock prices. 11th National Accounting Conference of Iran, 2013 ,(in Persian).
[35]Nguyen Ngoc Thanh, V. Determinants of Stock Price Synchronicityevidence from HoChiMinh city stock exchange.Doctoraldissertation,Vietnam,InternationalUniversityHCMC,2013.
[36]Parsa, B., Sarraf, F. (2018). Financial Statement Comparability and the Expected Crash Risk of Stock Prices. Advances in Mathematical Finance and Applications, 3(3), 77-93. Doi: 10.22034/amfa.2018.544951
[37]Roshandel, R., and Amiri Menash, M. Review and compare data mining techniques in stock price prediction. Second National Conference on Computer Science and Information Technology, Babol, Scientific Research Institute of Komeh, Science and Technology,2016.  (in Persian). Online .
 [38]Roshan, S., Arian, A., Hosseini, S., Navabi Zand, K., and Dari Kandeh, A. Evaluating Factors Affecting the Earnings Rate (E / P) of the Companies Accepted in Tehran Stock Exchange. Financial Knowledge Analysis of Securities, No. 14 , 2012,p. 41-57, (in Persian).
[39]Shaabani Sadrpastadeh, M. Stock price index prediction in Tehran Stock Exchange. Islamic Azad University, Central Tehran Branch, Faculty of Economics, Master's thesis, 2011, (in Persian).
[40]Sujeewa, K. Impact of Firm Specific Factors on the Stock Prices: A Case Study on Listed Manufacturing Companies in Colombo Stock Exchange. International Journal for Research in Business, Management and Accounting, 2016,2(3) P. 9-16.
[41]Saleh Nejad, S., Ghayour, H. The Effect of Rate of Return on Equity and Return on Ownership and Cash Flow on Shares of Companies Accepted in Tehran Securities Exchange, Management Quarterly, Seventh Year, No. 18,2010, p. 17-28,  (in Persian).
[42]Setayesh, M., Kazemnejad, M. Effective Factors on Disclosure Quality of the Firms Listed in Tehran Stock Exchange, Journal of Accounting Advances, 2012 ,4(1), 49-79.
Doi: 10.22099/jaa.2012.514.
[43]Toloi Ashlaghi, A, and Haghdoust, S. Modeling stock price prediction using neural network and comparing it with mathematical prediction methods. Journal of Economic Research, No. 25, Summer, 2007, p. 237-252, (in Persian).
[44]Yu, Lean,W., Lai, K. Neural network-based mean–variance–skewness model for portfolio selection. Computers & Operations Research, 2008,35(1), P 34-46 Doi:10.1016/j.cor.2006.02.012
[45]Yahyizadehfar, M., Hijabi, R. The Relationship between Price to Profit with Systematic Risk and Stock Returns in Tehran Stock Exchange. Business Strategies, 2010, 8 (41),p. 325-338, (in Persian).
[46]Yang, S., and Fu, L. Critical chain and evidence reasoning applied to multi-project resource schedule in automobile R&D process, International Journal of Project Management, 2014, 32(1), P. 166-177.
[47]Zamani, A., Anvary Rostamy, A., Badavar Nahandi, Y.,and Saeedi, A. The Effect of Agency Costs on the Speed of Stock Price Adjustment: Evidence of Tehran Stock Exchange. Financial Management Strategy, 2018,5(4), 25-44. Doi: 10.22051/jfm.2018.15774.1403.
Volume 5, Issue 2
April 2020
Pages 197-213
  • Receive Date: 11 February 2019
  • Revise Date: 05 May 2019
  • Accept Date: 06 May 2019
  • First Publish Date: 01 April 2020