Financial Prices Prediction of Stock Market using Supervised Machine Learning Models
DOI:
https://doi.org/10.21015/vtse.v11i2.1439Abstract
The process of predicting stock market movements may initially appear to be non-statistical due to the multitude of factors involved. However, machine learning techniques can be utilized to establish connections between past and present data, enabling the training of machines to make accurate assumptions based on the information. By effectively linking historical data to current data using machine learning, it becomes possible to make precise predictions regarding stock performance. These predictions can lead to substantial profits for individuals and their brokers. Traditionally, stock market predictions have exhibited chaotic patterns rather than randomness, which is why a thorough analysis of a market's historical data allows for predictions to be made. Machine learning offers an efficient means of modeling such processes. By closely aligning market predictions with actual values, the analysis's accuracy can be raised greatly. The field of stock prediction has seen a growing interest in machine learning among researchers due to its effectiveness and precision. Regression-based models are commonly employed when the objective is to forecast continuous values based on independent variables. To predict stock market closing prices for the upcoming ten to fifteen days, we used SVR, RF, KNN, LSTM, GRU, and LSTM with GRU in our study. In regression modeling, the R-squared (R2) value represents the percentage of difference explained by the independent variable(s). A higher (R2) value near to 1 indicates better performance. Our experiments yielded R2 values of 0.832, 0.832, 0.574, 0.838, 0.825, and 0.815 for SVR, RF, KNN, LSTM, GRU, and LSTM with GRU, respectively. Consequently, the most effective model for correctly predicting stock market closing prices is the LSTM learning model, which had the greatest R2 value of 0.838.References
K. Borowski, Fundamental analysis. Enterprise Valuation Methods. Difin SA, 2014. [1] K. Borowski, Fundamental analysis. Enterprise Valuation Methods. Difin SA, 2014.
M. Adya and F. Collopy, “How effective are neural networks at forecasting and prediction? A review and evaluation,” J. Forecast., vol. 17, no. 5‐6, pp. 481–495, 1998. DOI: https://doi.org/10.1002/(SICI)1099-131X(1998090)17:5/6<481::AID-FOR709>3.0.CO;2-Q
M. H. Lang, K. V Lins, and D. P. Miller, “ADRs, analysts, and accuracy: Does cross listing in the United States improve a firm’s information environment and increase market value?,” J. Account. Res., vol. 41, no. 2, pp. 317–345, 2003. DOI: https://doi.org/10.1111/1475-679X.00106
K. Vasista, “Role Of a Stock Exchange In Buying And Selling Shares,” Int. J. Curr. Sci., vol. 12, no. 1, pp. 1770–2250, 2022.
A. Naeem, A. H. Khan, S. u din Ayubi, and H. Malik, “Predicting the Metastasis Ability of Prostate Cancer using Machine Learning Classifiers,” J. Comput. Biomed. Informatics, vol. 4, no. 02, 2023.
H. Saleem, A. Naeem, K. Abid, and N. Aslam, “Sarcasm Detection on Twitter using Deep Handcrafted Features,” J. Comput. Biomed. Informatics, vol. 4, no. 02, pp. 117–127, 2023.
A. Naeem, M. S. Farooq, A. Khelifi, and A. Abid, “Malignant melanoma classification using deep learning: datasets, performance measurements, challenges and opportunities,” IEEE Access, vol. 8, pp. 110575–110597, 2020.
A. Naeem, T. Anees, K. T. Ahmed, R. A. Naqvi, S. Ahmad, and T. Whangbo, “Deep learned vectors’ formation using auto-correlation, scaling, and derivations with CNN for complex and huge image retrieval,” Complex Intell. Syst., pp. 1–23, 2022.
K. Pahwa and N. Agarwal, “Stock market analysis using supervised machine learning,” in 2019 International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (COMITCon), 2019, pp. 197–200.
G. P. Danezis, A. S. Tsagkaris, F. Camin, V. Brusic, and C. A. Georgiou, “Food authentication: Techniques, trends & emerging approaches,” TrAC Trends Anal. Chem., vol. 85, pp. 123–132, 2016. DOI: https://doi.org/10.1016/j.trac.2016.02.026
D. Simberloff et al., “Impacts of biological invasions: what’s what and the way forward,” Trends Ecol. Evol., vol. 28, no. 1, pp. 58–66, 2013. DOI: https://doi.org/10.1016/j.tree.2012.07.013
K. Gemra, “The cost of financing operating activities through public bond issues,” Ekon. i Organ. Przedsiębiorstwa, no. 3, pp. 113–125, 2018.
M. McCombs, “A look at agenda-setting: Past, present and future,” Journal. Stud., vol. 6, no. 4, pp. 543–557, 2005. DOI: https://doi.org/10.1080/14616700500250438
M. J. Flannery and A. A. Protopapadakis, “Macroeconomic factors do influence aggregate stock returns,” Rev. Financ. Stud., vol. 15, no. 3, pp. 751–782, 2002. DOI: https://doi.org/10.1093/rfs/15.3.751
D. M. Cutler, J. M. Poterba, and L. H. Summers, “What moves stock prices?,” National Bureau of Economic Research Cambridge, Mass., USA, 1988. DOI: https://doi.org/10.3386/w2538
R. A. Ajayi and M. Mougouė, “On the dynamic relation between stock prices and exchange rates,” J. Financ. Res., vol. 19, no. 2, pp. 193–207, 1996. DOI: https://doi.org/10.1111/j.1475-6803.1996.tb00593.x
N. APARGIS and S. M. MILLER, “Do structural oil-market shocks affect stock price,” Energy Econ., vol. 31, no. 1, pp. 569–575, 2009. DOI: https://doi.org/10.1016/j.eneco.2009.03.001
Y. Hamao, R. W. Masulis, and V. Ng, “Correlations in price changes and volatility across international stock markets,” Rev. Financ. Stud., vol. 3, no. 2, pp. 281–307, 1990. DOI: https://doi.org/10.1093/rfs/3.2.281
A. R. Gallant, P. E. Rossi, and G. Tauchen, “Stock prices and volume,” Rev. Financ. Stud., vol. 5, no. 2, pp. 199–242, 1992. DOI: https://doi.org/10.1093/rfs/5.2.199
W. F. M. De Bondt and R. Thaler, “Does the stock market overreact?,” J. Finance, vol. 40, no. 3, pp. 793–805, 1985. DOI: https://doi.org/10.1111/j.1540-6261.1985.tb05004.x
J. B. Warner, R. L. Watts, and K. H. Wruck, “Stock prices and top management changes,” J. financ. econ., vol. 20, pp. 461–492, 1988. DOI: https://doi.org/10.1016/0304-405X(88)90054-2
G. McQueen and V. V. Roley, “Stock prices, news, and business conditions,” Rev. Financ. Stud., vol. 6, no. 3, pp. 683–707, 1993. DOI: https://doi.org/10.1093/rfs/5.3.683
M. K. Brunnermeier and M. K. Brunnermeier, Asset pricing under asymmetric information: Bubbles, crashes, technical analysis, and herding. Oxford University Press on Demand, 2001. DOI: https://doi.org/10.1093/0198296983.001.0001
D. Hirshleifer and T. Shumway, “Good day sunshine: Stock returns and the weather,” J. Finance, vol. 58, no. 3, pp. 1009–1032, 2003. DOI: https://doi.org/10.1111/1540-6261.00556
E. F. Fama, “The behavior of stock-market prices,” J. Bus., vol. 38, no. 1, pp. 34–105, 1965. DOI: https://doi.org/10.1086/294743
N.-M. Jula and N. Jula, “Random Walk Hypothesis in Financial Markets,” Challenges Knowl. Soc., pp. 878–884, 2017.
C. K.-S. Leung, R. K. MacKinnon, and Y. Wang, “A machine learning approach for stock price prediction,” in Proceedings of the 18th International Database Engineering & Applications Symposium, 2014, pp. 274–277. DOI: https://doi.org/10.1145/2628194.2628211
T. M. Mitchell and T. M. Mitchell, Machine learning, vol. 1, no. 9. McGraw-hill New York, 1997.
W. Lu, J. Li, Y. Li, A. Sun, and J. Wang, “A CNN-LSTM-based model to forecast stock prices,” Complexity, vol. 2020, pp. 1–10, 2020.
N. Jing, Z. Wu, and H. Wang, “A hybrid model integrating deep learning with investor sentiment analysis for stock price prediction,” Expert Syst. Appl., vol. 178, p. 115019, 2021.
H. Hu, L. Tang, S. Zhang, and H. Wang, “Predicting the direction of stock markets using optimized neural networks with Google Trends,” Neurocomputing, vol. 285, pp. 188–195, 2018. DOI: https://doi.org/10.1016/j.neucom.2018.01.038
J. Zhang et al., “Can the exchange rate be used to predict the shanghai composite index?,” IEEE Access, vol. 8, pp. 2188–2199, 2019.
X. Yuan, J. Yuan, T. Jiang, and Q. U. Ain, “Integrated long-term stock selection models based on feature selection and machine learning algorithms for China stock market,” IEEE Access, vol. 8, pp. 22672–22685, 2020.
K. K. Yun, S. W. Yoon, and D. Won, “Prediction of stock price direction using a hybrid GA-XGBoost algorithm with a three-stage feature engineering process,” Expert Syst. Appl., vol. 186, p. 115716, 2021.
S. Kim, S. Ku, W. Chang, and J. W. Song, “Predicting the direction of US stock prices using effective transfer entropy and machine learning techniques,” IEEE Access, vol. 8, pp. 111660–111682, 2020.
Y. Chen, W. Lin, and J. Z. Wang, “A dual-attention-based stock price trend prediction model with dual features,” IEEE Access, vol. 7, pp. 148047–148058, 2019.
W. Lu, J. Li, J. Wang, and L. Qin, “A CNN-BiLSTM-AM method for stock price prediction,” Neural Comput. Appl., vol. 33, pp. 4741–4753, 2021.
J. Shen and M. O. Shafiq, “Short-term stock market price trend prediction using a comprehensive deep learning system,” J. big Data, vol. 7, no. 1, pp. 1–33, 2020.
Downloads
Published
How to Cite
Issue
Section
License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC-By) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
This work is licensed under a Creative Commons Attribution License CC BY