Stock Price Prediction Based on Linear Regression
Abstract
Stock market price prediction is one of the core subjects in the financial field. With the increase in market complexity and volatility, accurate stock price prediction has important decision-making significance for investors, financial analysts, and related institutions. This paper aims to use a linear regression model to analyze the historical data of Samsung Electronics stock, and then predict its future stock price trend. The research begins with a pre-processing of the original data set, including data cleaning and feature engineering, to remove noise data and select valuable feature variables. Then, a linear regression model was used to build a stock price prediction model, and the prediction effect of the model was evaluated using mean square error (MSE) to measure the accuracy of the forecast results. To further verify the validity of the model, this paper also makes a comparative analysis of the actual stock price and the predicted stock price and reveals the performance of the model in practical application through error analysis. The results show that the linear regression model can reflect the trend change in stock price to a certain extent. However, its prediction accuracy is still affected by many factors, suggesting that more complex models or technologies should be introduced for further optimization in the future.
References
- Li, X., & Xia, J. (2023). Research on stock price regression prediction based on machine learning algorithm. Science and Technology Information, 21(14), 227-231.
- Wang, L., He, Y., & Jiao, D. (2023). Prediction of stock price fluctuation trend based on logistic regression model: A case study of Bank of Guiyang. China Management Information Technology, 26(4), 156-158.
- Ma, G., & Tang, Y. (2023). Prediction of stock trend in the agriculture, forestry, animal husbandry, and fishery industry based on machine learning. Investment and Cooperation, (6), 47-49.
- Zhang, X., & Chen, L. (2022). Design and implementation of hot stock analysis and recommendation system based on linear regression. Modern Information Technology, 6(22), 16-21.
- Zhao, Y., Tang, Y., & Jiang, Z. (2023). Study on the change of human body weight step length based on linear regression method. Journal of Liaoning Police University, 25(4), 57-62.
- He, X., & Duan, F. (2022). Case analysis of linear regression based on Python. Microcomputer Applications, 38(11), 35-37.
- Poon, S. H., & Chan, K. C. (2008). Forecasting stock returns: A comparison of linear and non-linear models. Journal of Financial and Quantitative Analysis, 43(3), 673-698.
- Tsai, C. F., & Chen, M. Y. (2015). A survey of stock market prediction with big data. Proceedings of the 10th International Conference on Machine Learning and Computing, 125-130.
- Zhang, Y., & Zhou, W. (2017). Stock market prediction using linear regression and LSTM: A hybrid model. Proceedings of the 2017 International Conference on Computational Intelligence and Applications, 85-92.
- Gupta, A., & Gupta, V. (2020). Stock price prediction using linear regression model with multiple features. International Journal of Computer Applications, 175(4), 23-29.
- Huang, S., & Chen, M. (2016). Predicting stock market trends using multiple linear regression models. Expert Systems with Applications, 46, 50-58.