Analysis of Forecasting Stock Prices Using CNN Model

{"title":"Analysis of Forecasting Stock Prices Using CNN Model","authors":"","doi":"10.25236/ajcis.2023.061012","DOIUrl":null,"url":null,"abstract":"Creating a trading strategy and selecting the ideal time to purchase or sell stocks depends in large part on stock price expectations. This paper provides a CNN-based stock price time series forecasting method, which proves the optimality of the model by comparing the accuracy of different models, which provides a possible direction for the exploration of stock price forecasting. This paper first introduces the working principle of CNN, LSTM, and Conv1D, and then experiments are carried out by establishing a model, and finally the relevant conclusions are obtained. The experimental results show that the Trainscore RMSE, Train MAE, Testscore RMSE, Test MAE, and MAE of CNN has a smaller size. Thus, in comparison to the LSTM and Conv1D-LSTM, CNN is the model with the best efficiency and greatest accuracy in forecasting, which is more suitable for investors to predict future stock prices than LSTM and Conv1D-LSTM.","PeriodicalId":387664,"journal":{"name":"Academic Journal of Computing & Information Science","volume":"30 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Academic Journal of Computing & Information Science","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.25236/ajcis.2023.061012","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Creating a trading strategy and selecting the ideal time to purchase or sell stocks depends in large part on stock price expectations. This paper provides a CNN-based stock price time series forecasting method, which proves the optimality of the model by comparing the accuracy of different models, which provides a possible direction for the exploration of stock price forecasting. This paper first introduces the working principle of CNN, LSTM, and Conv1D, and then experiments are carried out by establishing a model, and finally the relevant conclusions are obtained. The experimental results show that the Trainscore RMSE, Train MAE, Testscore RMSE, Test MAE, and MAE of CNN has a smaller size. Thus, in comparison to the LSTM and Conv1D-LSTM, CNN is the model with the best efficiency and greatest accuracy in forecasting, which is more suitable for investors to predict future stock prices than LSTM and Conv1D-LSTM.
利用CNN模型预测股票价格的分析
制定交易策略和选择理想的买卖时机在很大程度上取决于对股价的预期。本文提出了一种基于cnn的股票价格时间序列预测方法,通过比较不同模型的精度证明了模型的最优性,为股票价格预测的探索提供了可能的方向。本文首先介绍了CNN、LSTM和Conv1D的工作原理,然后通过建立模型进行了实验,最后得出了相关结论。实验结果表明,CNN的Trainscore RMSE、Train MAE、Testscore RMSE、Test MAE和MAE具有较小的尺寸。因此,与LSTM和Conv1D-LSTM相比,CNN是预测效率最高、准确率最高的模型,它比LSTM和Conv1D-LSTM更适合投资者预测未来股价。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信