基于ARIMA与LSTM对股票价格的预测研究——以中信证券(600030)为例
Research on Stock Price Prediction Based on ARIMA and LSTM Neural Network—Taking Citic Securities (600030) as an Example
DOI: 10.12677/ecl.2024.1341847, PDF,   
作者: 肖 杰:贵州大学经济学院,贵州 贵阳
关键词: PythonARIMA长短期记忆神经网络股价预测Python ARIMA LSTM Stock Price Forecast
摘要: 随着我国经济的持续增长,股票市场逐渐成为整个金融业,尤其是证券业不可缺少的一部分。其中股票的价格更是引起众多投资者的关心。基于此,本文利用python在tushare上爬取中信证券(600030) 2022年3月24日到2023年3月24日一年的交易数据,并选取时间序列ARIMA模型、长短期记忆神经网络(LSTM)模型对中信证券(600030)的股票开盘价格进行训练与预测研究,实证表明ARIMA模型三天预测价格与真实价格最大误差为0.0437855,真实值与预测值非常接近;长短期记忆神经网络(LSTM)模型损失函数MES为0.33125543,并且预测值除了某几个极值点外正确率较高。这表明ARIMA模型短期预测效果较好,LSTM神经网络模型更能拟合所有的股票价格,即说明无论是ARIMA模型还是LSTM模型都能够为股票投资者提供帮助。
Abstract: With the continuous growth of China’s economy, the stock market has gradually become an indispensable part of the whole financial industry, especially the securities industry. Among them, the stock price is causing the concern of many investors. Based on this, this paper uses python to climb in tushare the trading data of Citic Securities (600030) from March 24,2022 to March 24,2023, The time series ARIMA model and long and short-term memory neural network (LSTM) model were selected to train and predict the stock opening price of CITIC Securities (600030), Empirically show that the maximum error of the three-day forecast price and the true price is 0.0437855, The true value is very close to the predicted value. Long- and short-term memory neural network (LSTM) model loss function MES is 0.33125543, and the predicted value is higher except for a few extreme points. This shows that the ARIMA model has better short-term prediction effect, and the LSTM neural network model can fit all stock prices, that both ARIMA model and LSTM model can provide help for stock investors.
文章引用:肖杰. 基于ARIMA与LSTM对股票价格的预测研究——以中信证券(600030)为例[J]. 电子商务评论, 2024, 13(4): 6072-6083. https://doi.org/10.12677/ecl.2024.1341847

参考文献

[1] Fama, E.F. and French, K.R. (1992) The Cross‐Section of Expected Stock Returns. The Journal of Finance, 47, 427-465. [Google Scholar] [CrossRef
[2] Chong, C.W., Ahmad, M.I. and Abdullah, M.Y. (1999) Performance of GARCH Models in Forecasting Stock Market Volatility. Journal of Forecasting, 18, 333-343. [Google Scholar] [CrossRef
[3] Kim, M. and Sayama, H. (2017) Predicting Stock Market Movements Using Network Science: An Information Theoretic Approach. Applied Network Science, 2, Article No. 35. [Google Scholar] [CrossRef] [PubMed]
[4] Vapnik, V.N. (1995) The Nature of Statistical Learning Theory. Springer.
[5] Zhong, X. and Enke, D. (2019) Predicting the Daily Return Direction of the Stock Market Using Hybrid Machine Learning Algorithms. Financial Innovation, 5, Article No. 24. [Google Scholar] [CrossRef
[6] Chen, S. and Ge, L. (2019) Exploring the Attention Mechanism in LSTM-Based Hong Kong Stock Price Movement Prediction. Quantitative Finance, 19, 1507-1515. [Google Scholar] [CrossRef
[7] Kim, H.Y. and Won, C.H. (2018) Forecasting the Volatility of Stock Price Index: A Hybrid Model Integrating LSTM with Multiple GARCH-Type Models. Expert Systems with Applications, 103, 25-37.
[8] Ye, T. (2017) Stock Forecasting Method Based on Wavelet Analysis and ARIMA-SVR Model. 2017 3rd International Conference on Information Management (ICIM), Chengdu, 21-23 April 2017, 102-106. [Google Scholar] [CrossRef
[9] Sachdev, A. and Sharma, V. (2015) Stock Forecasting Model Based on Combined Fuzzy Time Series and Genetic Algorithm. 2015 International Conference on Computational Intelligence and Communication Networks (CICN), Jabalpur, 12-14 December 2015, 1303-1307. [Google Scholar] [CrossRef
[10] 吴立扬, 周波. 基于人工神经网络的股价指数预测[J]. 知识经济, 2009(1): 62-63.
[11] 孙晨, 李阳, 李晓戈, 于娇艳. 基于布谷鸟算法优化BP神经网络模型的股价预测[J]. 计算机应用与软件, 2016(2): 276-279.
[12] 吴玉霞, 温欣. 基于ARIMA模型的短期股票价格预测[J]. 统计与决策, 2016(23): 83-86.
[13] 薛倩男, 高岳林. 基于时间序列的GA-BP神经网络股价预测模型[J]. 兰州文理学院学报(自然科学版), 2017, 31(5): 46-49.
[14] 宁昱博, 张玉军. LSTM-Adaboost股价预测模型[J]. 辽宁科技大学学报, 2019, 42(5): 383-388.
[15] 林国超, 杜宇键, 刘娟. 两类组合BP神经网络模型在股价预测中的应用[J]. 现代商贸工业, 2020, 41(26): 141-143.
[16] 刘松, 张帅. 运用ARIMA模型对股价预测的实证研究[J]. 经济研究导刊, 2021(25): 76-78.
[17] 曹艳雪. 基于神经网络模型和多目标灰狼优化算法的股票价格预测研究[D]: [硕士学位论文]. 大连: 东北财经大学, 2022.
[18] 王文姣, 张娜. 基于LSTM变权组合模型的股价预测[J]. 商展经济, 2023(7): 95-97.
[19] Hochreiter, S. and Schmidhuber, J. (1997) Long Short-Term Memory. Neural Computation, 9, 1735-1780. [Google Scholar] [CrossRef] [PubMed]
[20] 诸葛越. 百面机器学习[M]. 北京: 人民邮电出版社, 2018: 236-250.