@article { author = {Ghadimpour, Mohammadreza and Ebrahimi, Seyed babak}, title = {Forecasting Financial Time Series Using Deep Learning Networks: Evidence from Long-Short Term Memory and Gated Recurrent Unit}, journal = {Iranian Journal of Finance}, volume = {6}, number = {4}, pages = {81-94}, year = {2022}, publisher = {Iran Finance Association}, issn = {2676-6337}, eissn = {2676-6345}, doi = {10.30699/ijf.2022.313164.1286}, abstract = {The ability to predict the stock market and analyze market trends is invaluable to researchers and anyone interested in investing. However, this task is a challenging problem due to a large number of parameters and unpredictable noise that may affect the stock price. To overcome this issue, researchers have employed numerous approaches such as Moving Average (MA), Support Vector Machine (SVM), and Neural Networks. With technological advances, deep learning methods have become popular in processing time-series data. In this paper, we compare two recently introduced deep learning models, namely a Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU), in forecasting daily movements of the Standard & Poor (S&P 500) index using the daily closing price of this index from 14/5/1991 to 14/5/2021. Results show that both models are effective and accurate in stock market prediction. In this case study, the mean squared error (MSE) and mean absolute error (MAE) for the GRU model are slightly lower than the LSTM model; hence, GRU outperformed the LSTM model despite its simpler structure. The results of this study are applicable in various instances where it is challenging to identify patterns among large volumes of unstructured data, such as medical data analysis, text mining, and financial time series modeling.}, keywords = {Machine Learning,Recurrent Neural Network,Long Short-Term Memory,Gated Recurrent Unit,Financial time series}, url = {https://www.ijfifsa.ir/article_150173.html}, eprint = {https://www.ijfifsa.ir/article_150173_ecffffd164193d4cead5a54a43edcf44.pdf} }