A hybrid model for predicting variable price behaviors in the stock market

Document Type : Research

Authors

1 Associate Professor of Management, Department of Management, Faculty of Economics and Social Sciences, Shahid Chamran University of Ahvaz. Ahvaz. Iran

2 Professor of Management, Department of Management, Faculty of Economics and Social Sciences, Shahid Chamran University of Ahvaz, Ahvaz, Iran

3 Department of Management, Faculty of Economics and Social Sciences, Shahid Chamran University of Ahvaz, Ahvaz, Iran

Abstract

Introduction
The research’s aim is to evaluate meta-innovative methods to predict stock price behavior and introduce the most efficient method in the Iranian stock market. Due to the uncertainty in the field of investment and the multitude of variables, investors turn to the forecasting method, by which their estimates are close to reality and their errors are reduced. Forecasting the stock market has many complexities as it is affected by a number of economic and non-economic factors such as market news, political events, social chaos and so on (B. Labiad, 2016). Due to the volatility of the stock market, predicting stock price changes in daily trading is a challenging task and it is one of the most important issues in the financial world that has attracted the attention of most financial analysts and researchers. Financial markets are an attractive field for investment in order to achieve high profits but obtaining high profits in this market is not easy, because some data are dynamic, non-linear, and variable, and unstable in nature, and therefore there are many risks in this way (Lahmiri & Boukadoum, 2015). Recently, computational intelligence (CI) techniques such as artificial neural network (ANN), nature-inspired and fuzzy algorithms have been developed for stock price prediction due to their ability to handle noisy data in the financial market(Lahmiri & Boukadoum, 2015). In many cases, ANNs suffer from limitations such as local minima, slow convergence, long training time, and fitting difficulty due to the large number of parameters to adjust(Chandar, 2018). These problems have been neglected in much previous research. Therefore, the main goal of this research is to develop a forecasting model consisting of artificial neural networks and nature-inspired algorithms to investigate the above issues and improve forecasting accuracy. In this regard, this research seeks to answer this question: Can the hybrid models of neural networks and meta-heuristic algorithms provide accurate stock predictions?
Methodology
In this study, the stock prices of 5 listed companies in the base metals index of Tehran Stock Exchange in the period 1396 to 1398 were predicted. For this purpose, the optimal variables are selected from among 9 primary and widely used variables using feature selection methods, super-innovative algorithms of Harris and Wall's algorithms and then using Back propagation neural networks, radial base neural network and neural network with time delay Stock prices were predicted. Focusing on basic metal companies in Tehran Stock Exchange as a statistical population, 21 companies with the highest correlation coefficient were finally selected as a sample. To generalize the sample as much as possible to the society from among the companies, 5 companies that included small, medium, and large companies were selected as samples. The two symbols Zangan and Faravar were among the smallest companies and the two companies Femli and Foulad were among the largest companies, which were included in the sample as representatives of small and large companies, respectively, and the symbol of Fasmin was included in the sample as a representative of medium-sized companies. The required data: opening price, closing price, highest price, lowest price, closing price, volume of transactions, value of transactions, number of transactions and range of changes were collected from Tehran Stock Exchange Technology Management Company (www.tsetmc.com) and Codal website. MATLAB software was used to perform calculations and implement the proposed method.
Results and Discussion
The results show that in the symbol of Zangan, the combined models HHOBP, WOARBF and HHOTD have the highest R2 coefficient, respectively. In terms of MSE and MAE criteria, the HHOTD model has the lowest error rate and the lowest absolute average of the difference between the actual and predicted data, which shows that in this model, the predicted values are closer to the actual values. According to the Hitrate criterion, the HHOTD model has the highest correct estimation (89%) compared to the rest of the models. With these results, it can be concluded that Harris Hawk algorithm has the highest accuracy and the neural network with time delay has high efficiency.
Conclusion
Since linear models do not have the ability to understand and extract non-linear patterns such as stock price time series, the goal in this research was to combine artificial neural networks and meta-heuristic algorithms to accurately predict stock price trends. In this research, first, the optimal variables were selected using feature selection methods, meta-heuristic algorithms of Harris hawk and Whale. Then, by using neural networks after propagation of error, radial basis neural network and neural network with time delay, the stock price was predicted. Considering the findings, it is suggested that the Harris's hawk evolutionary method is superior to the whale's evolutionary algorithm. Proper navigation of the problem space and finding features is the reason for the superiority of Harris's hawk results compared to whale's algorithm. It was also shown in this research that networks with time delay have higher efficiency. Findings indicate that the hybrid method of Harris hawk and neural network with time delay is the most effective.  It is suggested to use a hybrid model of post-error propagation neural network, radial base neural network and time delay neural network with evolutionary algorithms such as genetics in future research. Also, it is suggested to use other predictive algorithms such as support vector regression in combination with neural network with time delay.

Keywords

Main Subjects


  1. Asghari Oskoei, M. (2015). Application of Sliding Window for Financial Time Series Prediction using Time-Delay Neural Networks. Economics Research15(57), 75-108. https://sid.ir/paper/2475. ]in Persian[

    1. Babajani, J. T., M. Blue , G. Abdollahi , M. (2020). Forecasting Stock Prices In Tehran Stock Exchange Using Recurrent Neural Network Optimized by Artificial Bee Colony Algorithm. Financial Management, 7, 195-238. https://doi.org/10.22051/JFM.2019.21049.1714 ]in Persian[
    2. Bisoi, R., Dash, P. K., & Parida, A. K. (2019). Hybrid variational mode decomposition and evolutionary robust kernel extreme learning machine for stock price and movement prediction on daily basis. Applied Soft Computing, 74, 652-678.‏ https://doi.org/10.1016/j.asoc.2018.11.008
    3. Bollen, J., Mao, H., & Zeng, X. (2011). Twitter mood predicts the stock market. Journal of computational science, 2(1), 1-8.‏ https://doi.org/10.1016/j.jocs.2010.12.007
    4. Chandar, K. S. (2018). Soft computing and bio-inspired computing techniques for stock market prediction-a comprehensive survey. Int. J. Eng. Technol., 7(3), 1836-1845.‏ http://dx.doi.org/10.14419/ijet.v7i3.14716
    5. Chandar, S. K. (2021). Hybrid models for intraday stock price forecasting based on artificial neural networks and metaheuristic algorithms. Pattern Recognition Letters147, 124-133.‏ https://doi.org/10.1016/j.patrec.2021.03.030
    6. Davallou, M., & Hamidizadeh, M. R. (2014). Investment Strategy Based on Idiosyncratic Risk & Ownership Structure. Journal of Strategic Management Studies4(16), 109-129. 20.1001.1.22286853.1392.4.16.5.5. ]in Persian[
    7. Fallahpour, S., asefi, S., fallahtafti, S., & Bagherikazemabad, M. (2018). Portfolio Optimization Using the Whale Algorithm with Expected Shortfall as the Measure of Risk. Financial Engineering and Portfolio Management9(37), 110-132. ]in Persian[

     https://dorl.net/dor/20.1001.1.22519165.1397.9.37.6.3

    1. Fu, Z. (2019). GeoSparkSim: A Scalable Microscopic Road Network Traffic Simulator Based on Apache Spark(Doctoral dissertation, Arizona State University).‏ p. 186–9. https://doi.org/10.1109/MDM.2019.00-42
    2. Ghahremani far, J. (2020). Improvement the efficiency and efficiency of the closed loop supply chain: Whale optimization algorithm and novel priority-based encoding approach. Journal of Decisions and Operations Research4(4), 299-315. (In Persian). doi: 10.22105/dmor.2020.206930.1132.
    3. Hatami, N. M., H. Ebrahimpoor, R. (2011). Combining neural networks for stock price prediction. Macroeconomics Research Letter, 10.1, 61-80 ]in Persian[

    https://sid.ir/paper/150908.

    1. Kara, Y., Boyacioglu, M. A., & Baykan, Ö. K. (2011). Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul Stock Exchange. Expert systems with Applications, 38(5), 5311-5319. https://doi.org/10.1016/j.eswa.2010.10.027
    2. khalifeh, s., Khodashenas, S. R., Esmaili, Kazem, & khalifeh, v. (2021). Estimation of the type 5 Muskingum nonlinear model parameters in the flood routing with The Harris Hawks Optimization Algorithm (HHO). Irrigation and Water Engineering, 11, 128-141. (In Persian). https://doi.org/10.22125/IWE.2021.128119
    3. Khansa, L., & Liginlal, D. (2011). Predicting stock market returns from malicious attacks: A comparative analysis of vector autoregression and time-delayed neural networks. Decision Support Systems, 51(4), 745-759.‏ 10.1016/j.dss.2011.01.010
    4. Kumar Chandar S. Stock Price Prediction Based on Technical Indicators with Soft Computing Models. In 2021. p. 685–99. http://dx.doi.org/10.1007/978-3-030-51859-2_62
    5. Labiad, B., Berrado, A., & Benabbou, L. (2016, October). Machine learning techniques for short term stock movements classification for moroccan stock exchange. In 2016 11th International Conference on Intelligent Systems: Theories and Applications (SITA) (pp. 1-6). IEEE.‏ https://doi.org/10.1109/SITA.2016.7772259
    6. Lahmiri, S., & Boukadoum, M. (2015). Intelligent ensemble forecasting system of stock market fluctuations based on symetric and asymetric wavelet functions.Fluctuation and Noise Letters, 14(04), 1550033. https://doi.org/10.1142/S0219477515500339
    7. Liu, H., Li, K., Fu, Q., & Yuan, L. (2021, July). Research on Integrated Navigation Algorithm Based on Radial Basis Function Neural Network. In Journal of Physics: Conference Series(Vol. 1961, No. 1, p. 012031). IOP Publishing.‏ doi10.1088/1742-6596/1961/1/012031
    8. Mehrparvar. M (2019 ). Analytical review of advantages and disadvantages of using artificial neural network and its application in mathematics and electricity. Fifth National Conference on Electrical and Mechatronics Engineering, ]in Persian[ https://civilica.com/doc/988640 .

    20.. Mirjalili, S., & Lewis, A. (2016). The whale optimization algorithm. Advances in engineering software, 95, 51-67. https://doi.org/10.1016/j.advengsoft.2016.01.008

    1. Moosavi Haghighi, M. H., & Setoudeh, F. (2013). Simulating the Stock Dynamic Behavior in Tehran Stock Exchange. Journal of Strategic Management Studies4(14), 35-52. (In Persian). . https://sid/paper/181612
    2. Naik, N., & Mohan, B. R. (2020). Intraday stock prediction based on deep neural network. National Academy Science Letters, 43(3), 241-246. http://dx.doi.org/10.1007/s40009-019-00859-1
    3. Nasser, I. M., & Abu-Naser, S. S. (2019). Predicting Tumor Category Using Artificial Neural Networks; 3(2):1–7. https://www.researchgate.net/publication/331397909
    4. Nazari, R., & Fakhrahmad, M. (2021). Developing an Intrusion Detection System Based on Fuzzy Clustering and Whale Optimization Algorithm. Journal of Advanced Defense Science and Technology, 12, 143-158 . magiran.com/p2347453]in Persian[
    5. Ripon, K. S. N., & Rajon, S. A. (2016, April). Stock market forecast using bio-inspired computing. In 2016 International Conference on Control, Decision and Information Technologies (CoDIT) (pp. 523-529). IEEE. https://doi.org/10.1109/CoDIT.2016.7593617
    6. Saeedi Masine, H., & Saadat, M. (2021). Path Planning of Mobile Robots using the Artificial Potential Field Method and the Harris Hawks Metaheuristic Algorithm. Journal of Intelligent Procedures in Electrical Technology12(46), 1-13. ]in Persian[

    https://sid.ir/paper/394639.

    1. Sina Sharifi, Nasim Monjezi , Negar Hafezi, (2021). Performance of Multilayer Perceptron Neural Network Models and Radial-Based Functions in Estimation of Sugar-cane Crop Yield, Journal of Agricultural Science and Sustainable Production, 30(4), 213-228.  (In Persian). magiran.com/p2229509.
    2. Taroon, G., Tomar, A., Manjunath, C., Balamurugan, M., Ghosh, B., & Krishna, A. V. (2020, November). Employing Deep Learning In Intraday Stock Trading. In 2020 Fifth International Conference on Research in Computational Intelligence and Communication Networks (ICRCICN) (pp. 209-214). IEEE. https://doi.org/10.1109/ICRCICN50933.2020.9296174
    3. 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. Financial Engineering and Portfolio Management10(39), 193-218. ]in Persian[

    https://www.noormags.ir/view/fa/articlepage/1490127.

    1. Waibel, A., Hanazawa, T., Hinton, G., Shikano, K., & Lang, K. (1989). Phoneme Recognition using Time-Delay Neural Network, IEEE Trans. Vol. ASSP-37, (8).‏ https://doi.org/10.1109/29.21701
    2. Wang, H., Lu, S., & Zhao, J. (2019). Aggregating multiple types of complex data in stock market prediction: A model-independent framework. Knowledge-Based Systems, 164, 193-204.‏ https://doi.org/10.1016/j.knosys.2018.10.035
    3. Zhang, H., & Mu, J. H. (2021). A Back Propagation Neural Network-Based Method for Intelligent Decision-Making. Complexity, 2021.‏ https://doi.org/10.1155/2021/6610797