%0 Journal Article %T 基于RNN与LSTM的股价预测模型比较研究——以中石油股份为例
A Comparative Study of Stock Price Prediction Models Based on RNN and LSTM—Taking PetroChina Company Limited as an Example %A 蒋小雨 %J Statistics and Applications %P 58-65 %@ 2325-226X %D 2025 %I Hans Publishing %R 10.12677/sa.2025.142035 %X 本文以中石油股份为例,聚焦于股票价格预测,运用RNN模型与LSTM模型展开深入研究。使用RNN模型进行预测时,由于模型本身存在梯度消失或梯度爆炸的问题,其在处理长序列股价数据时存在显著缺陷,致使其难以捕捉股票价格序列中的长期依赖关系,在面对包含长期趋势、季节性变化的股价数据时表现欠佳。鉴于此,引入LSTM模型,该模型凭借独特的输入门、遗忘门和输出门机制,有效解决了长期依赖难题,能够选择性地记忆或遗忘信息,从而有效处理长序列数据。实验结果有力证实了LSTM模型不仅能精准模拟股价的真实走向,而且在模型评价指标上全面优于RNN模型。综上,LSTM模型在中石油股价预测领域展现出卓越的效果,相较于RNN模型更适用于股票预测任务。
This study takes PetroChina Company Limited as an example, focuses on stock price prediction, and conducts an in-depth study using the RNN model and the LSTM model. When using the RNN model for prediction, due to the problems of gradient vanishing or gradient explosion in the model itself, it has significant defects in processing long-sequence stock price data. This makes it difficult for the RNN model to capture the long-term dependencies in the stock price sequence, and it performs poorly when dealing with stock price data containing long-term trends and seasonal changes. In view of this, the LSTM model is introduced. With its unique mechanisms of input gate, forget gate and output gate, the LSTM model effectively solves the problem of long-term dependencies. It can selectively remember or forget information, thus effectively handling long-sequence data. The experimental results strongly confirm that the LSTM model can not only accurately simulate the real trend of stock prices, but also comprehensively outperforms the RNN model in terms of model evaluation indicators. In conclusion, the LSTM model shows excellent results in the field of predicting PetroChina’s stock price and is more suitable for stock prediction tasks compared with the RNN model. %K LSTM, %K RNN, %K 股票价格预测, %K 神经网络
LSTM %K RNN %K Stock Price Prediction %K Neural Network %U http://www.hanspub.org/journal/PaperInformation.aspx?PaperID=108340