|
E-Commerce Letters 2024
基于LSTM和GRU的股价预测研究
|
Abstract:
随着计算机水平和数据库技术的迅猛发展,以神经网络为基础的深度学习已经成为机器学习领域中最热门的研究方向,人工神经网络、卷积神经网络、BP神经网络等先后被广泛应用于各领域中,并取得了很好的效果。如今,越来越多的金融学者也将目光投向了神经网络,运用网络技术建立股票收盘价趋势预测模型,取得了显著效果。本文基于用python构建了门控循环单元模型(GRU)和长短期时间记忆(LSTM)模型对光大银行收盘价进行预测,并对两种算法进行比较。实证结果表明:GRU模型在MAE、RMSE、MAPE三个评价指标的预测精度均高于LSTM模型,测试集的拟合也是最好的,能够在一定程度上反应股票价格波动趋势,为投资者进行投资决策提供了一个简单实用的方法。
With the rapid development of computer level and database technology, deep learning based on neural network has become the hottest research direction in the neighborhood of machine learning, and artificial neural network, convolutional neural network, BP neural network and so on have successively been widely used in various fields and achieved good results. Nowadays, more and more financial scholars also focus on neural networks, using network technology to establish stock closing price trend prediction model, and have achieved significant results. This paper is based on the gated recurrent unit model (GRU) and long short-term time memory (LSTM) model constructed in python to predict the closing price of Everbright Bank, and compare the two algorithms. The empirical results show that the prediction accuracy of the GRU model in the three evaluation indicators of MAE, RMSE and MAPE is higher than that of the LSTM model, and the fit of the test set is also the best, which is able to respond to the trend of the stock price fluctuations to a certain extent, and provides a simple and practical for investors to make investment decisions.
[1] | 赵宁. 基于ARIMA模型对万科股票股价的短期预测[J]. 金融客, 2023(1): 34-36. |
[2] | 王星惠, 耿文静, 许启发. 基于QRNN GARCH族MA方法的多期VaR和CVaR度量研究[J/OL]. 数理统计与管理: 1-21, 2023-07-22. https://doi.org/10.13860/j.cnki.sltj.20230628-002 |
[3] | 张玉川, 张作泉. 支持向量机在股票价格预测中的应用[J]. 北京交通大学学报, 2007(6): 73-76. |
[4] | 张晨希, 张燕平, 张迎春, 等. 基于支持向量机的股票预测[J]. 计算机技术与发展, 2006(6): 35-37. |
[5] | 乔若羽. 基于神经网络的股票预测模型[J]. 运筹与管理, 2019, 28(10): 132-140. |
[6] | 李洁, 林永峰, 陈亮, 等. 基于深度经验模态分解的金融市场时序预测[J]. 计算机工程与设计, 2019, 40(12): 3613-3619. https://doi.org/10.16208/j.issn1000-7024.2019.12.041 |
[7] | 于孝建, 刘国鹏, 刘建林, 等. 基于LSTM网络和文本情感分析的股票指数预测[J/OL]. 中国管理科学: 1-12, 2023-07-23. https://doi.org/10.16381/j.cnki.issn1003-207x.2021.0084 |
[8] | 丛敬奇, 成鹏飞, 赵振军. 基于CEEMD-CNN-LSTM的股票指数集成预测模型[J/OL]. 系统工程: 1-16, 2023-07-23. http://kns.cnki.net/kcms/detail/43.1115.N.20230613.1454.002.html, 2023-10-06. |