计算机科学 ›› 2021, Vol. 48 ›› Issue (6A): 151-157.doi: 10.11896/jsjkx.200400011

• 大数据&数据科学 • 上一篇    下一篇

基于优化LSTM模型的股票预测

胡聿文   

  1. 江西财经大学统计学院 南昌330013
  • 出版日期:2021-06-10 发布日期:2021-06-17
  • 通讯作者: 胡聿文(976559478@qq.com)

Stock Forecast Based on Optimized LSTM Model

HU Yu-wen   

  1. College of Statistics,Jiangxi University of Finance and Economics,Nanchang 330013,China
  • Online:2021-06-10 Published:2021-06-17
  • About author:HU Yu-wen,born in 1996,postgradua-te.His main research interests include mathematical statistics,financial statistics and deep learning.

摘要: 股票预测研究一直是困扰投资者的难题。以往,投资者采用传统分析方法如K线图、十字线等方法来预测股票走势,但随着科技的进步和经济市场的发展,以及经济政策的变动,股票的价格走势受到越来越多方面因素的干扰,仅靠传统的分析方法远远不能解析出股票价格波动中隐藏着的重要信息,因此预测精度大打折扣。为了提高股票价格的预测精度,提出一种基于PCA和LASSO的LSTM神经网络股票价格预测模型。采用2015-2019年平安银行(000001)五大类技术指标数据,通过PCA和LASSO方法对五大类技术分析指标进行降维筛选,再使用LSTM模型进行平安银行股票收盘价预测,对比前两种模型和单纯使用LSTM模型的预测效果稳定性及准确性。结果表明,相比于LASSO-LSTM模型和LSTM模型,PCA-LSTM模型能够大幅削减数据冗余,并且获得了更优异的预测精度。

关键词: LASSO, LSTM, PCA, 技术指标, 平安银行

Abstract: Stock forecasting research has always been a problem that plagued investors.In the past,investors used traditional analysis methods such as K-line diagrams and Yin-Yang lines to predict stock trends.However,with the advancement of science and technology,the development of economic markets,and changes in economic policies,the price trend of a stock is disturbed by various factors.Traditional analysis methods are far from being able to analyze theinformation in volatility of a stock.So prediction accuracy is greatly reduced.In order to improve the prediction accuracy of stock prices,this paper proposes a stock price prediction model based on PCA,LASSO,and LSTM neural networks.Based on the data of the five major categories of technical indicators of Ping An Bank (000001) from 2015 to 2019,the five major categories of indicators are reduced and screened using the PCA and LASSO methods,and the LSTM model is used to predict the closing price of Ping An Bank's stock,compared with the stability and accuracy ofthe previous two methods and using LSTM alone.The experimental results show that the PCA-LSTM model significantly reduces data redundancy and obtains better prediction accuracy than the LASSO-LSTM model and LSTM model.

Key words: LASSO, LSTM, PCA, Ping An bank, Technical index

中图分类号: 

  • TP183
[1] YANG Q,CAO X B.Analysis and prediction of stock pricebased on arma-garch model [J].Practice and Understanding of Mathematics,2016,46(6):80-86.
[2] HUANG L J,JIN T X.Stability of Islamic stock market based on egarch-m model [J].Gansu Academic Journal of theory,2019(6):107-115.
[3] FANG J.Empirical research on VaR Measurement of China's stock market:semi parametric method based on igarch [J].Financial Theory and Teaching,2018(3):15-18.
[4] CAO X,SUN H B.Stock price prediction based on GreyGARCH model and BP neural network [J].Software,2017,38(11):126-131.
[5] DENG J K,WAN L,HUANG N N.Research on Stock Forecasting Based on dae-bp neural network [J].Computer Engineering and Application,2019,55(3):126-132.
[6] ZHENG G J.Stock time series analysis and prediction based on Internet investor sentiment [D].Hangzhou:Zhejiang University of technology,2019.
[7] LIANG X Z.Research on the relationship between investor sentiment and stock returns [D].Beijing:Beijing Jiaotong University,2017.
[8] WANG J Z.Application of improved adaptive lasso method in stock market [J].Mathematical Statistics and Management,2019,38(4):750-760.
[9] YU H H,CHEN R D,ZHANG G P.A SVM Stock SelectionModel within PCA[J].Procedia Computer Science,2014,31.
[10] REN T Y.An Empirical Study of Stock Return and InvestorSentiment Based on Text Mining and LSTM[C]//Proceedings of the 2019 4th International Conference on Social Sciences and Economic Development(ICSSED 2019).2019.
[11] JIA M Z,HUANG J,PANG L H,et al.Analysis and Research on Stock Price of LSTM and Bidirectional LSTM Neural Network[C]//Proceedings of the 3rd International Conference on Computer Engineering,Information Science & Application Technology(ICCIA 2019).2019.
[12] YANG Q,WANG C W.Global stock index prediction based on deep learning LSTM neural network [J].Statistical Research,2019,36(3):65-77.
[13] PENG Y,LIU Y H,ZHANG R F.Modeling and analysis ofstock price forecasting based on LSTM [J].Computer Engineering and Application,2019,55(11):209-212.
[14] CHEN J,LIU D X,WU D S.Research on stock index prediction method based on feature selection and LSTM model [J].Computer Engineering and Application,2019,55(6):108-112.
[15] TIBSHIRANI R.Regression shrinkage and selection via the lasso:A retrospective[J].Journal of the Royal Statistical Society:Series B(Statistical Methodology),2011,73(3):273-282.
[16] HAN H,LIU G L,SUN T Y,et al.Text sentiment analysis based on multi attention level neural network [J].Computer Engineering and Application.
[17] PEI D W,ZHU M.Stock price prediction based on multi factor and multi variable long term and short term memory network [J].Computer System Applications,2019,28(8):30-38.
[18] ZENG A,NIE W J.Stock recommendation system based on deep bidirectional LSTM [J].Computer Science,2019,46(10):84-89.
[19] REN J,WANG J H,WANG C M,et al.Stock forecasting system based on elstm-l model [J].Statistics and Decision,2019,35(21):160-164.
[20] FENG Y X,LI Y M.Research on prediction model of CSI 300 index based on LSTM neural network [J].Practice and Understanding of Mathematics,2019,49(7):308-315.
[21] LI S S.Securities selection based on long term memory neural network [D].Zhengzhou:Zhengzhou University,2019.
[22] XU T T.Research on stock price rise and fall prediction based on LSTM neural network model [D].Shanghai:Shanghai Normal University,2019.
[1] 张源, 康乐, 宫朝辉, 张志鸿.
基于Bi-LSTM的期货市场关联交易行为检测方法
Related Transaction Behavior Detection in Futures Market Based on Bi-LSTM
计算机科学, 2022, 49(7): 31-39. https://doi.org/10.11896/jsjkx.210400304
[2] 于家畦, 康晓东, 白程程, 刘汉卿.
一种新的中文电子病历文本检索模型
New Text Retrieval Model of Chinese Electronic Medical Records
计算机科学, 2022, 49(6A): 32-38. https://doi.org/10.11896/jsjkx.210400198
[3] 林夕, 陈孜卓, 王中卿.
基于不平衡数据与集成学习的属性级情感分类
Aspect-level Sentiment Classification Based on Imbalanced Data and Ensemble Learning
计算机科学, 2022, 49(6A): 144-149. https://doi.org/10.11896/jsjkx.210500205
[4] 王杉, 徐楚怡, 师春香, 张瑛.
基于CNN-LSTM的卫星云图云分类方法研究
Study on Cloud Classification Method of Satellite Cloud Images Based on CNN-LSTM
计算机科学, 2022, 49(6A): 675-679. https://doi.org/10.11896/jsjkx.210300177
[5] 张程瑞, 陈俊杰, 郭浩.
静息态人脑功能超网络模型鲁棒性对比分析
Comparative Analysis of Robustness of Resting Human Brain Functional Hypernetwork Model
计算机科学, 2022, 49(2): 241-247. https://doi.org/10.11896/jsjkx.201200067
[6] 袁景凌, 丁远远, 盛德明, 李琳.
基于视觉方面注意力的图像文本情感分析模型
Image-Text Sentiment Analysis Model Based on Visual Aspect Attention
计算机科学, 2022, 49(1): 219-224. https://doi.org/10.11896/jsjkx.201000074
[7] 黄晓生, 徐静.
基于PCANet的非下采样剪切波域多聚焦图像融合
Multi-focus Image Fusion Method Based on PCANet in NSST Domain
计算机科学, 2021, 48(9): 181-186. https://doi.org/10.11896/jsjkx.200800064
[8] 程思伟, 葛唯益, 王羽, 徐建.
BGCN:基于BERT和图卷积网络的触发词检测
BGCN:Trigger Detection Based on BERT and Graph Convolution Network
计算机科学, 2021, 48(7): 292-298. https://doi.org/10.11896/jsjkx.200500133
[9] 陈慧琴, 郭贯成, 秦朝轩, 李兆碧.
基于GM-LSTM模型的南京市老年人口预测研究
Research on Elderly Population Prediction Based on GM-LSTM Model in Nanjing City
计算机科学, 2021, 48(6A): 231-234. https://doi.org/10.11896/jsjkx.200900142
[10] 俞建业, 戚湧, 王宝茁.
基于Spark的车联网分布式组合深度学习入侵检测方法
Distributed Combination Deep Learning Intrusion Detection Method for Internet of Vehicles Based on Spark
计算机科学, 2021, 48(6A): 518-523. https://doi.org/10.11896/jsjkx.200700129
[11] 张争万, 吴迪, 张春炯.
基于多通道稀疏LSTM的蜂窝流量预测研究
Study of Cellular Traffic Prediction Based on Multi-channel Sparse LSTM
计算机科学, 2021, 48(6): 296-300. https://doi.org/10.11896/jsjkx.210400134
[12] 董哲, 邵若琦, 陈玉梁, 翟维枫.
基于BERT和对抗训练的食品领域命名实体识别
Named Entity Recognition in Food Field Based on BERT and Adversarial Training
计算机科学, 2021, 48(5): 247-253. https://doi.org/10.11896/jsjkx.200800181
[13] 李冰荣, 皮德常, 候梦如.
基于CNN和LSTM的移动对象目的地预测
Destination Prediction of Moving Objects Based on Convolutional Neural Networks and Long-Short Term Memory
计算机科学, 2021, 48(4): 70-77. https://doi.org/10.11896/jsjkx.200200024
[14] 陈明豪, 祝跃飞, 芦斌, 翟懿, 李玎.
基于Attention-CNN的加密流量应用类型识别
Classification of Application Type of Encrypted Traffic Based on Attention-CNN
计算机科学, 2021, 48(4): 325-332. https://doi.org/10.11896/jsjkx.200900155
[15] 周俊, 尹悦, 夏斌.
基于LSTM神经网络的声发射信号识别研究
Acoustic Emission Signal Recognition Based on Long Short Time Memory Neural Network
计算机科学, 2021, 48(11A): 319-326. https://doi.org/10.11896/jsjkx.210700034
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!