Machine learning and deep learning models for stock price prediction, case study: Google Company
Abstract
Stock prediction is crucial for investors to manage risk, diversify portfolios, and plan for long-term financial goals. Companies use predictions to allocate capital wisely, attract investors, and make strategic decisions. Stock prediction is to analyze competitive stock (e.g. Google, Apple and Microsoft), involving parameters of revenue, profit, PE ratio, growth rate, and to predict the future price of the stock. Based on these assumptions, this project objective is to forecast the trend in Google stock prices with four predictive models: linear regression, XGBoost, Long Short-Term Memory Network (LSTM) and Recurrent neural network (RNN). The dataset is Google stock prediction dataset, which involves 17,598 stock information. Among all four models, LSTM method obtains the best final result with 0.0012 of MSE and 0.95115 of R square. LSTM has the lowest MSE, and its R square is similar to that of other models. For future plan, this project may expand more on feature engineering, model techniques and fine-tuning methods.
References
- R. Patel, V. Choudhary, D. Saxena and A. K. Singh, " Review of stock prediction using machine learning techniques," 2021 Conference on Trends in Electronics and Informatics, 2021, pp. 840-846.
- Tang, H., Chiu, K. C., & Xu, L. (2003). Finite mixture of ARMA-GARCH model for stock price prediction. Computational Intelligence in Economics and Finance, pp. 1112-1119.
- Y. E. Cakra and B. Distiawan Trisedya, "Stock price prediction using linear regression based on sentiment analysis," 2015 International Conference on Advanced Computer Science and Information Systems, 2015, pp. 147-154.
- L. Jidong and Z. Ran, "Dynamic Weighting Multi Factor Stock Selection Strategy Based on XGboost Machine Learning Algorithm," 2018 Conference of Safety Produce Informatization, 2018, pp. 868-872.
- Zhao, J., Zeng, D., Liang, S. et al. Prediction model for stock price trend based on recurrent neural network. J Ambient Intell Human Comput 12, 745–753 (2021)
- Roondiwala, M., Patel, H., & Varma, S. (2017). Predicting stock prices using LSTM. International Journal of Science and Research, 6(4), 1754-1756.
- NVIDIA., “What is XGBoost?” NVIDIA Data Science Glossary, (2022). https://www.nvidia.com/en-us/glossary/data-science/xgboost/
- Chen, T., & Guestrin, C., "Xgboost: A scalable tree boosting system." Acm sigkdd international conference on knowledge discovery and data mining, 785-794 (2016).
- Lipton, Zachary C., John Berkowitz, and Charles Elkan. "A critical review of recurrent neural networks for sequence learning." arXiv preprint arXiv:1506.00019 (2015).
- Roondiwala, Murtaza and Harshal Patel "Predicting stock prices using LSTM." International Journal of Science and Research 6.4 (2017): 1754-1756.
- S. Hochreiter and J. Schmidhuber, "Long Short-Term Memory," in Neural Computation, vol. 9, no. 8, pp. 1735-1780, 1997.