Abstract
China's socioeconomic growth is inseparable from the development of financial markets. As a vital component of these markets, the stock market serves as a barometer of national economic health. Accurate analysis and reasonable forecasting of stock prices not only help investors optimize asset allocation and enhance decision-making rigor, but also provide a basis for enterprises to assess market conditions and for government departments to guard against systemic risks. Therefore, stock price prediction and analysis hold significant theoretical value and practical guidance. Stock prices fluctuate based on a range of drivers, notably broader economic policies and the financial health of individual firms. While traditional models often rely on historical market data, this dissertation enhances prediction by incorporating derived technical indicators—momentum-based, trend-based, and overbought/oversold-based—with dimension reduction performed via correlation analysis and principal component analysis. In terms of methodology, stock prediction models are generally classified into statistical, machine learning, and deep learning approaches. This study experiments with four classic algorithms in sequence: ARIMA, Linear Regression, XGBoost, and LSTM. Results show that under the given data and settings: (1) The LSTM model achieves the best performance across all metrics (RMSE=35.214, MAE=28.560, MAPE=0.72%, R²=0.985), proving its superiority in capturing long-term dependencies and non-linear patterns. (2) XGBoost exhibits strong predictive capability, ranking second (RMSE=38.450, MAE=30.125, R²=0.978), effectively handling feature interactions. (3) ARIMA provides a stable statistical baseline (RMSE=42.105, MAE=33.450), performing better than simple regression but lagging behind machine learning methods. (4) Linear Regression serves as a fundamental benchmark (RMSE=45.320, MAE=36.780), capturing the general linear trend but failing to resolve complex volatility. In conclusion, this dissertation systematically examines stock price trends and forecasts using multiple models applied to the CSI 300 index. The comparative results highlight the advantages of deep learning approaches, offering valuable insights for investor decision-making, financial market stability, and economic development. Keywords: Stock prediction; LSTM; XGBOOST; ARIMA; CSI 300