%0 Journal Article %T 基于GRU-RNN的股票趋势预测模型
Stock Trend Prediction Model Based on GRU-RNN %A 时睿佳 %J Pure Mathematics %P 2403-2434 %@ 2160-7605 %D 2023 %I Hans Publishing %R 10.12677/PM.2023.138249 %X 随着深度学习技术和金融市场的快速发展,股票投资已经成为人们获取收益的重要方式。股票趋势预测是指将每日收盘价随时间变化的数据视作一个时间序列,根据历史时交易数据的变化规律来预测未来的趋势,是投资者获取收益、企业管理经营和国家调整宏观策略控制通货膨胀的关键,但股价的波动具有很强的变化随机性和不稳定性。研究表明传统的统计学和机器学习方法难以挖掘股价波动背后的深层次规律,存在一定局限性使得预测效果不佳,因此训练深度神经网络进行预测是很有必要的。在本文中首先对国内股票市场的趋势分析方法进行对比分析,借助财经数据包Tushare获取了数十支沪深300指数成分股数据并进行预处理,调用Python股票量化指标库Stockstats和技术分析库TA-Lib计算各类技术指标,形成一套完整的多指标特征体系。在初始特征空间上基于加入门控循环单元的循环神经网络、前馈神经网络和卷积神经网络来预测股价的上涨、下跌和震荡的三种情况,使用准确率和科恩kappa系数来评估模型,实验结果表明在选取的十支股票上加入门控循环单元的循环神经网络GRU-RNN效果最佳,预测的平均准确率为82.7%,科恩kappa系数为0.663,体现出该模型在构建的多指标特征体系下能够有效提取时间序列型股票数据内在信息。为进一步优化最佳模型的预测结果我们使用卡方特征选择方法来简化特征空间,结果表明筛选后的特征预测效果进一步提升,是对于预测股价波动情况最关键的特征集合。
With the rapid development of deep learning technology and financial markets, stock investment has become an important way for people to obtain income. Stock trend forecasting refers to treating the data of daily closing prices over time as a time series, and predicting future trends based on the changing rules of historical transaction data. Inflation is the key, but the volatility of stock prices has strong randomness and instability. Studies have shown that traditional statistical and machine learning methods are difficult to dig out the deep-seated laws behind stock price fluctuations, and there are certain limitations that make the prediction effect poor. Therefore, it is necessary to train deep neural networks for prediction. In this article, we firstly compare and analyze the trend analysis methods of the domestic stock market. With the help of the financial data package Tushare, the data of dozens of Shanghai and Shenzhen 300 index constituent stocks are obtained and preprocessed, and the Python stock quantitative index library Stockstats and the technical analysis library TA are called to calculate various technical indicators to form a complete multi-indicator feature system. In the initial feature space, based on the cyclic neural network, feedforward neural network and convolutional neural network with gated recurrent units to predict the rise, fall and shock of the stock price, the accuracy and Cohen kappa coefficient are used to evaluate the model. The experimental results show that the recurrent neural network GRU-RNN with gated recurrent units added to the selected ten stocks has the best effect, the average prediction accuracy rate is 82.7%, and the Cohen kappa coefficient is 0.663, which reflects the multi-index construction of the model. Under the feature system, the intrinsic information of time series stock data can be effectively extracted. In order to further optimize the prediction results of the best model, we use the %K 多指标特征体系,股票趋势预测,循环神经网络,门控循环单元,卡方特征选择
Multi-Index Feature System %K Stock Trend Forecasting %K Recurrent Neural Network %K Gated Recurrent Unit %K Chi-Square Feature Selection %U http://www.hanspub.org/journal/PaperInformation.aspx?PaperID=71061