Comparison of Different Machine Learning Approaches for Forecasting Stock Prices

Authors

  • Jingyao Li

DOI:

https://doi.org/10.54097/2re5n809

Keywords:

Machine learning; stock price prediction; deep learning.

Abstract

Predicting stock prices is a crucial task that has significant implications for investment decisions, business strategies, and financial market stability. Accurate predictions can help investors make informed decisions, capture opportunities, and minimize risks. Understanding financial markets, economic data, company-specific elements, and a variety of statistical and analytical approaches are all necessary for making accurate stock price predictions. This paper employs three machine learning methods to forecast stock price data from a three-year time series dataset. Stock prediction plays a fundamental role in investment decisions, and accurate predictions are crucial. While various methods for predicting stock trends exist, different stock datasets may require different prediction models. Using three years of stock data, including gold and bitcoin, from the 2022 MCM Problem C, this study applies Support Vector Machines (SVM), Long Short-Term Memory (LSTM), and Convolutional Neural Networks (CNN) to make predictions. Bayesian hyperparameter optimization is employed, and a comparative analysis is conducted. Ultimately, the results indicate that CNN outperforms the other methods, exhibiting relatively low error metrics and a high R-squared value, with no apparent signs of overfitting.

Downloads

Download data is not yet available.

References

Chen, Wei, Manrui Jiang, Wei-Guo Zhang, and Zhensong Chen. A novel graph convolutional feature based convolutional neural network for stock trend prediction. Information Sciences, 2021, 556: 67-94.

Gandhmal, Dattatray P., and K. Kumar. Systematic analysis and review of stock market prediction techniques. Computer Science Review, 2019, 34: 100190.

Patel, Jigar, Sahil Shah, Priyank Thakkar, and Ketan Kotecha. Predicting stock and stock price index movement using trend deterministic data preparation and machine learning techniques. Expert systems with applications, 2015, 42(1): 259-268.

Soni, Payal, Yogya Tewari, and Deepa Krishnan. Machine Learning approaches in stock price prediction: A systematic review. In Journal of Physics: Conference Series, 2022, 2161(1): 012065.

Ticknor, Jonathan L. A Bayesian regularized artificial neural network for stock market forecasting. Expert systems with applications, 2013, 40(14): 5501-5506.

Mathematical Contest in Modeling, 2022, URL: https://www.contest.comap.com/undergraduate/contests/mcm/contests/2022/results/. Access Time: 2023/11/12.

Noble, William S. What is a support vector machine? Nature biotechnology, 2006, 24(12): 1565-1567.

Yu, Yong, Xiaosheng Si, Changhua Hu, and Jianxun Zhang. A review of recurrent neural networks: LSTM cells and network architectures. Neural computation, 2019, 31(7): 1235-1270.

Sherstinsky, Alex. Fundamentals of recurrent neural network (RNN) and long short-term memory (LSTM) network. Physica D: Nonlinear Phenomena, 2020, 303: 132306.

Gu, Jiuxiang, Zhenhua Wang, Jason Kuen, Lianyang Ma, Amir Shahroudy, Bing Shuai, Ting Liu et al. Recent advances in convolutional neural networks. Pattern recognition, 2018, 77: 354-377.

Downloads

Published

26-04-2024

How to Cite

Li, J. (2024). Comparison of Different Machine Learning Approaches for Forecasting Stock Prices. Highlights in Science, Engineering and Technology, 94, 17-23. https://doi.org/10.54097/2re5n809