Comparison of Stock Price Prediction Models
Keywords:
Linear Regression, Long Short-Term Memory, Stock price prediction, Stock market data, Support vector machineAbstract
Recent studies have increasingly explored how machine learning can predict future trends in different fields. One of the most critical applications is in the stock market, where accurate forecasting helps investors decide whether to invest in new businesses or sell their existing shares for profit. To achieve this, an effective prediction model must analyze past stock market data and project future trends accordingly. This article presents a stock price prediction approach that leverages historical trading patterns. The system examines how various market conditions influence stock prices over time and estimates potential profits or losses. Several machines learning techniques, including Random Forest, Support Vector Machines (SVM), and Regression algorithms, were evaluated to determine the most effective strategy. Among them, Support Vector Regression (SVR) emerged as a highly efficient method for analyzing time-series datasets. For this study, stock market data from a four-year period was collected and analyzed to predict future share prices. The results show that the SVR model with a Radial Basis Function (RBF) kernel outperforms other models, providing more accurate predictions. If essential financial parameters are effectively considered, this method can offer reliable stock market forecasts.
References
C. Granger and T. Teräsvirta, Modelling Nonlinear Economic Relationships, Oxford University Press, Oct. 7, 1993. https://academic.oup.com/book/51989
K. Kim, "Financial time series forecasting using support vector machines," Neurocomputing, vol. 55, no. 1-2, pp. 307-319, Sep. 2003. https://doi.org/10.1016/S0925-2312(03)00372-2
W. Huang, Y. Nakamori, and S. Y. Wang, "Forecasting stock market movement direction with support vector machine," Computers & Operations Research, vol. 32, no. 10, pp. 2513-2522, Oct. 2005. https://doi.org/10.1016/j.cor.2004.03.016
S. Hochreiter and J. Schmidhuber, "Long short-term memory," Neural Computation, vol. 9, no. 8, pp. 1735-1780, Nov. 1997. https://doi.org/10.1162/neco.1997.9.8.1735
R. Zhang, "LSTM-based stock prediction modeling and analysis," in Proc. 2022 7th Int. Conf. Financial Innovation and Economic Development (ICFIED 2022), Mar. 2022, pp. 2537-2542, Atlantis Press. https://doi.org/10.2991/aebmr.k.220307.414
W. Bao, J. Yue, and Y. Rao, "A deep learning framework for financial time series using stacked autoencoders and long-short term memory," PLoS One, vol. 12, no. 7, p. e0180944, Jul. 2017. https://doi.org/10.1371/journal.pone.0180944
J. Patel, S. Shah, P. Thakkar, and K. Kotecha, "Predicting stock market index using fusion of machine learning techniques," Expert Systems with Applications, vol. 42, no. 4, pp. 2162-2172, Mar. 2015. https://doi.org/10.1016/j.eswa.2014.10.031
D. Kumar, P. K. Sarangi, and R. Verma, "A systematic review of stock market prediction using machine learning and statistical techniques," Materials Today: Proceedings, vol. 49, pp. 3187-3191, Jan. 2022. https://doi.org/10.1016/j.matpr.2020.11.399
M. Umer, M. Awais, and M. Muzammul, "Stock market prediction using machine learning (ML) algorithms," ADCAIJ: Advances in Distributed Computing and Artificial Intelligence Journal, vol. 8, no. 4, pp. 97–116, 2019. https://doi.org/10.14201/ADCAIJ20198497116
M. Nikou, G. Mansourfar, and J. Bagherzadeh, “Stock price prediction using deep learning algorithm and its comparison with machine learning algorithms,” Intell. Syst. Account. Finance Manag., vol. 26, no. 4, pp. 164–174, Oct. 2019. https://doi.org/10.1002/isaf.1459
K. Alkhatib, H. Najadat, I. Hmeidi, and M. Shatnawi, "Stock price prediction using k-nearest neighbor (kNN) algorithm," Int. J. Bus., Humanities Technol., vol. 3, no. 3, pp. 32-44, Mar. 2013. https://www.ijbhtnet.com/journals/Vol_3_No_3_March_2013/4.pdf
S. Antad, S. Khandelwal, A. Khandelwal, R. Khandare, P. Khandave, D. Khangar, and R. Khanke, "Stock price prediction website using linear regression a machine learning algorithm," InITM Web of Conferences, vol. 56, p. 05016, 2023. EDP Sciences. https://doi.org/10.1051/itmconf/20235605016
N. Rouf, M. B. Malik, T. Arif, S. Sharma, S. Singh, S. Aich, and H. C. Kim, “Stock market prediction using machine learning techniques: A decade survey on methodologies, recent developments, and future directions,” Electronics, vol. 10, no. 21, p. 2717, Nov. 2021. https://doi.org/10.3390/electronics10212717
V. Gururaj, S. V. R, and A. K. Dr., "Stock market prediction using linear regression and support vector machines," Int. J. Appl. Eng. Res., vol. 14, no. 8, pp. 1931–1934, 2019. https://www.ripublication.com/ijaer19/ijaerv14n8_24.pdf
V. Kranthi. S. Reddy, “Stock Market Prediction Using Machine Learning,” International Research Journal of Engineering and Technology, vol. 5, no. 10, pp. 1032–1035, 2018. https://www.irjet.net/archives/V5/i10/IRJET-V5I10193.pdf
I. Kumar, K. Dogra, C. Utreja, and P. Yadav, “A comparative study of supervised machine learning algorithms for stock market trend prediction,” in Proc. 2nd Int. Conf. Inventive Commun. Comput. Technol. (ICICCT), Apr. 2018, pp. 1003–1007. IEEE. https://doi.org/10.1109/ICICCT.2018.8473214
S. Shakhla, B. Shah, N. Shah, V. Unadkat, and P. Kanani, "Stock price trend prediction using multiple linear regression," Int. J. Eng. Sci. Invention (IJESI), vol. 7, no. 10, pp. 29–33, 2018. https://www.ijesi.org/papers/Vol(7)i10/Version-2/D0710022933.pdf
P. Ongsritrakul and N. Soonthornphisaj, "Apply decision tree and support vector regression to predict the gold price," Proc. Int. Joint Conf. Neural Netw., vol. 4, pp. 2488-2492, Jul. 2003. IEEE. https://doi.org/10.1109/IJCNN.2003.1223955