Predicting BMW Stock Price Based on Linear Regression, LSTM, and Random Forest Regression
DOI:
https://doi.org/10.54691/bcpbm.v38i.3712Keywords:
Stock price prediction; LSTM; Linear Regression; Random Forest; Machine Learning.Abstract
The stock market is one of the most significant aspects of a county’s economy. Stock price prediction is not easy to implement due numerous features influencing it. This study will choose BMW as the target company, and predict its stock price with various state-of-art scenarios. The central claim of this article is to construct three reliable models that could predict the stock price of BMW by extracting and analyzing previous days’ stock prices. The major analysis is done by modeling and exploring data analysis, and is composed of several graphical methods. For the modeling part, three models (i.e., Multiple Linear Regression, LSTM, and Random Forest Regression) are constructed to predict BMW stock price. The database consists of five years of BMW stock prices on Kaggle to explore more analysis. Then, step by step checking and demonstrating are presented to prove the feasibility and precision of these three models. According to the analysis, the most precise model that has the highest accuracy and lowest error by analyzing regression and model results. These model final outcomes indicate that the Multiple Linear Regression model presents a higher accuracy and lower mean squared error than LSTM and Random Forest Regression. These results shed light on guiding further exploration of BMW stock price prediction.
Downloads
References
Shah D, Isah H, Zulkernine F. Stock market analysis: A review and taxonomy of prediction techniques. International Journal of Financial Studies, 2019, 7(2): 26.
Obthong M, Tantisantiwong N, Jeamwatthanachai W, et al. A survey on machine learning for stock price prediction: algorithms and techniques. 2020.
Hu Z, Zhao Y, Khushi M. A survey of forex and stock price prediction using deep learning. Applied System Innovation, 2021, 4(1): 9.
Katherine Li. Predicting Stock Prices Using Machine Learning. Neptune.ai, 22 July 2022, Retrieved from: https://neptune.ai/blog/predicting-stock-prices-using-machine-learning.
Bhattacharjee I, Bhattacharja P. Stock price prediction: a comparative study between traditional statistical approach and machine learning approach. 2019 4th international conference on electrical information and communication technology (EICT). IEEE, 2019: 1-6.
Patel Janki, et al. Stock Price Prediction Using RNN and LSTM - JETIR. Nov. 2018, Retreived from: https://www.jetir.org/papers/JETIRK006164.pdf.
Vijh M, et al. Stock closing price prediction using machine learning techniques. Procedia computer science, 2020, 167: 599-606.
Chen W, Zhang H, Mehlawat M K, et al. Mean–variance portfolio optimization using machine learning-based stock price prediction[J]. Applied Soft Computing, 2021, 100: 106943.
Retrieved from: https://www.autoevolution.com/news/bmw-and-lexus-pass-mercedes-benz-in-2015-us-sales-but-the-race-is-still-tight-103440.html
Hiransha M, Gopalakrishnan E A, Menon V K, et al. NSE stock market prediction using deep-learning models. Procedia computer science, 2018, 132: 1351-1362.






