Research Article

Machine Learning in Stock Price Analysis

Yiheng Ye*
University of Waterloo

* Corresponding author: [email protected]

Abstract

In recent years, people have been using machine learning algorithms to analyze stock prices. This is because these algorithms can help investors make better decisions and find opportunities to make money in the stock market. This paper explains how machine learning can be used to analyze stock prices, including how to collect and prepare data, choose important features, pick the best model, and measure how well the model works. The paper also shares the results of a study using a Long Short-term Memory (LSTM) model to predict stock prices with an accuracy of 98.86%, which is very impressive. This means that machine learning algorithms can be really useful for analyzing stock prices. However, the stock market can be unpredictable and people should still depend on their own knowledge and expertise when making decisions. In the future, researchers should study larger and more diverse datasets and explore other machine learning algorithms for stock price analysis.

Keywords: machine learning; sock price analysis; LSTM; model selection; investment decision-making
Published: August 1, 2023
DOI: 10.54254/2755-2721/8/20230252
Volume: ACE Vol.8
pp. 823-828
Download PDF

References

  1. Chen, J. and Zhang, Y. (2020). A survey on machine learning for stock market prediction: From traditional to deep learning models. Information Sciences 514, 159-172. https://doi.org/10.1016/j.ins.2019.12.027.
  2. Qumsiyeh, S. and Al-Hawari, F. (2020). Stock price prediction using machine learning techniques: a survey. Journal of Big Data 7(1), 1-31. https://doi.org/10.1186/s40537-019-0279-7.
  3. Bishop, C. M. and Low, M. N. (2005). Predicting stock prices using data mining techniques. In Proceedings of the 2005 IEEE International Conference on Data Mining, 412-419. https://doi.org/10.1109/ICDM.2005.14.
  4. Singh, S. and Bhatnagar, V. (2018). A comparative study of stock price prediction using machine learning algorithms. In Proceedings of the 2018 4th International Conference on Computing Communication and Automation, 1-6. IEEE. https://doi.org/10.1109/CCAA.2018.8489278.
  5. Shi, Y., Zhang, Y., He, X. and Yang, Q. (2017). An improved stock price prediction method based on machine learning. International Conference on Machine Learning and Cybernetics, 1466-1470. https://doi.org/10.1109/ICMLC.2017.8101144.
  6. Huang, G., Li, S., Jiang, J. and Guo, X. (2016). Stock price prediction using a dual-stage multi-layer perceptron. Expert Systems with Applications 58, 39-47. https://doi.org/10.1016/j.eswa.2016.03.025.
  7. Wang, C., Lu, J. and Xu, Y. (2019). Deep learning for stock price prediction. Expert Systems with Applications 123, 249-257. https://doi.org/10.1016/j.eswa.2019.02.054.
  8. Zhang, Y., Wu, J. and Zeng, Y. (2019). Application of machine learning algorithms in financial markets. Applied Sciences 9(23), 5084. https://doi.org/10.3390/app9235084.
  9. Choi, H. and Varian, H. (2012). Predicting the present with Google Trends. Economic Record 88(s1), 2-9. https://doi.org/10.1111/j.1475-4932.2012.00809.x.
  10. Lipton, Z. C., Berkowitz, J. and Elkan, C. (2015). A critical review of recurrent neural networks for sequence learning. arXiv preprint arXiv:1506.00019. https://arxiv.org/abs/1506.00019.
  11. Yahoo Finance. (2018). Apple Inc. (AAPL) Historical Prices. Retrieved from https://finance.yahoo.com/quote/AAPL/history/.
  12. Moody, J. and Wu, L. (2017). Technical Analysis with Deep Learning. Journal of Finance and Data Science 3(4), 263-292. https://doi.org/10.1016/j.jfds.2017.09.002.
  13. Brownlee, J. (2017). Deep Learning for Time Series Forecasting. Machine Learning Mastery. https://machinelearningmastery.com/deep-learning-for-time-series-forecasting/.