Long Short Term Memory Using Stochastic Gradient Descent and Adam for Stock Prediction

Cauchy Pub Date : 2023-11-15 DOI:10.18860/ca.v8i2.17789
Muhammad Athanabil Andi Fawazdhia, Zani Anjani Rafsanjani HSM
{"title":"Long Short Term Memory Using Stochastic Gradient Descent and Adam for Stock Prediction","authors":"Muhammad Athanabil Andi Fawazdhia, Zani Anjani Rafsanjani HSM","doi":"10.18860/ca.v8i2.17789","DOIUrl":null,"url":null,"abstract":"The stock market is a place to carry out stock buying and selling transactions, the expected return of course has a profitable difference. Predicting stock prices can be done in various ways, one of which is by using deep learning models. Long Short Term Memory (LSTM) is a method that can be used to predict time series data. This method is a development of the Recurrent Neural Network (RNN), so this method is more complicated and powerful. To conduct training on the LSTM model, optimization is needed to minimize errors. There are lots of optimizations that can be used, but in this research, we use SGD and Adam. Several parameters such as learning rate 0.01, 0.001, 0.0001 and several variations of epochs such as epoch 25, epoch 50, epoch 100, epoch 200, epoch 400, and epoch 1000 were used in this study. The research data used are stock data of BBRI, BBNI, BMRI, and BBTN. This study also tries to predict stock prices on the next day using 5 historical stock price data, the result is that LSTM SGD and LSTM Adam succeeded in predicting the next day","PeriodicalId":475909,"journal":{"name":"Cauchy","volume":"4 6","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-11-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Cauchy","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.18860/ca.v8i2.17789","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The stock market is a place to carry out stock buying and selling transactions, the expected return of course has a profitable difference. Predicting stock prices can be done in various ways, one of which is by using deep learning models. Long Short Term Memory (LSTM) is a method that can be used to predict time series data. This method is a development of the Recurrent Neural Network (RNN), so this method is more complicated and powerful. To conduct training on the LSTM model, optimization is needed to minimize errors. There are lots of optimizations that can be used, but in this research, we use SGD and Adam. Several parameters such as learning rate 0.01, 0.001, 0.0001 and several variations of epochs such as epoch 25, epoch 50, epoch 100, epoch 200, epoch 400, and epoch 1000 were used in this study. The research data used are stock data of BBRI, BBNI, BMRI, and BBTN. This study also tries to predict stock prices on the next day using 5 historical stock price data, the result is that LSTM SGD and LSTM Adam succeeded in predicting the next day
基于随机梯度下降和Adam的长短期记忆股票预测
股票市场是进行股票买卖交易的场所,预期收益当然有盈利的区别。预测股票价格有多种方法,其中之一就是使用深度学习模型。长短期记忆(LSTM)是一种可以用来预测时间序列数据的方法。该方法是递归神经网络(RNN)的发展,因此该方法更加复杂和强大。为了对LSTM模型进行训练,需要进行优化,使误差最小化。有很多优化可以使用,但在本研究中,我们使用SGD和Adam。本研究使用了学习率0.01、0.001、0.0001等参数,以及epoch 25、epoch 50、epoch 100、epoch 200、epoch 400、epoch 1000等几个epoch的变化。研究数据为bbi、BBNI、BMRI、BBTN的存量数据。本研究还尝试使用5个历史股价数据来预测第二天的股价,结果是LSTM SGD和LSTM Adam成功预测了第二天的股价
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信
小红书