A comparison of two deep learning models on the stock exchange predictions.

In this study, we introduce the deep learning approach for the time series forecasting model, particularly for the stock price prediction, using two popular deep learning methods: the long short-term memory (LSTM) networks and the gated recurrent unit (GRU) networks. The data are collected from comp...

Full description

Saved in:
Bibliographic Details
Main Authors: Herwindiati, Dyah E., Hendryli, Janson, Sarmin, Nor Haniza
Format: Article
Published: Al-Zaytoonah University of Jordan 2023
Subjects:
Online Access:http://eprints.utm.my/105453/
http://www.i-csrs.org/Volumes/ijasca/IJASCA.230720.15.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:In this study, we introduce the deep learning approach for the time series forecasting model, particularly for the stock price prediction, using two popular deep learning methods: the long short-term memory (LSTM) networks and the gated recurrent unit (GRU) networks. The data are collected from companies in the LQ45 index of the Indonesian Stock Exchange and the deep learning models are implemented using the Python programming language and the TensorFlow library. The results are evaluated using root mean squared error (RMSE), mean absolute percentage error (MAPE), and coefficient of determination or R2. From the experiment, we demonstrate that the LSTM model achieves RMSE 0.005844, MAPE 0.01427, R2 0.99898, and the GRU model achieves RMSE 0.005601, MAPE 0.001594, R2 0.99907 in the training and validation phase where we utilize data up to Dec 31st, 2022. Furthermore, we test the model using unseen data from PT Adaro Energy Indonesia Tbk and find the GRU model achieves better performance with R2 0.66885 compared to the LSTM with R2 0.38756. From the experiment, we find that the deep learning approach can be considered a good forecasting model.