{"title":"利用CNN模型预测股票价格的分析","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":"{\"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}","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}
Analysis of Forecasting Stock Prices Using CNN Model
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.