PREDICTION ANALYSIS OF INDONESIA STOCK PRICE INDEX USING GATED RECURRENT UNIT (GRU) AND LONG SHORT-TERM MEMORY (LSTM) METHODS

Econophysics is a field that we can use in predicting the value of stock prices. One way to predict the value of stock prices using an econophysics approach is predict using machine learning. One type of machine learning that can be used for technical analysis is the Gated Recurrent Unit (GRU) and L...

Full description

Saved in:
Bibliographic Details
Main Author: Al Mutaz Billah, Mujahid
Format: Final Project
Language:Indonesia
Online Access:https://digilib.itb.ac.id/gdl/view/65582
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Institut Teknologi Bandung
Language: Indonesia
id id-itb.:65582
spelling id-itb.:655822022-06-24T08:04:42ZPREDICTION ANALYSIS OF INDONESIA STOCK PRICE INDEX USING GATED RECURRENT UNIT (GRU) AND LONG SHORT-TERM MEMORY (LSTM) METHODS Al Mutaz Billah, Mujahid Indonesia Final Project GRU, Hyperparameters, LSTM, Prediction, Stocks INSTITUT TEKNOLOGI BANDUNG https://digilib.itb.ac.id/gdl/view/65582 Econophysics is a field that we can use in predicting the value of stock prices. One way to predict the value of stock prices using an econophysics approach is predict using machine learning. One type of machine learning that can be used for technical analysis is the Gated Recurrent Unit (GRU) and Long Short-Term Memory (LSTM) which are part of the recurrent neural network. In a recurrent neural network, some hyperparameters can be set so that the method can learn optimally. This study aims to determine the value and type of hyperparameters that provide the most optimal results for the GRU and LSTM methods and also compare the results of stock price predictions for the GRU and LSTM methods. The study was conducted by varying the epoch and learning rate, and batch size using data from 3 Indonesian companies with different trends, namely BBRI, UNVR, and PGAS. The results of stock price predictions will be analyzed by looking at the values of the Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and the Coefficient of Determination (R2). From the results of this experiment, it was concluded that the epoch values that gave the most optimal results were 100 and 200 for the GRU and LSTM methods. Meanwhile, the learning rate that gives the most optimal results is 0.0004 for the GRU method and 0.0005 for the LSTM method. Then the batch size value that gives the most optimal results for both the GRU and LSTM methods is 32 The most influential hyperparameters on the prediction results are batch size, followed by epoch, and last learning rate. From the results of this experiment, it is also concluded that the GRU method has better accuracy results and converges faster to achieve the smallest loss value when predicting stock price values. text
institution Institut Teknologi Bandung
building Institut Teknologi Bandung Library
continent Asia
country Indonesia
Indonesia
content_provider Institut Teknologi Bandung
collection Digital ITB
language Indonesia
description Econophysics is a field that we can use in predicting the value of stock prices. One way to predict the value of stock prices using an econophysics approach is predict using machine learning. One type of machine learning that can be used for technical analysis is the Gated Recurrent Unit (GRU) and Long Short-Term Memory (LSTM) which are part of the recurrent neural network. In a recurrent neural network, some hyperparameters can be set so that the method can learn optimally. This study aims to determine the value and type of hyperparameters that provide the most optimal results for the GRU and LSTM methods and also compare the results of stock price predictions for the GRU and LSTM methods. The study was conducted by varying the epoch and learning rate, and batch size using data from 3 Indonesian companies with different trends, namely BBRI, UNVR, and PGAS. The results of stock price predictions will be analyzed by looking at the values of the Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and the Coefficient of Determination (R2). From the results of this experiment, it was concluded that the epoch values that gave the most optimal results were 100 and 200 for the GRU and LSTM methods. Meanwhile, the learning rate that gives the most optimal results is 0.0004 for the GRU method and 0.0005 for the LSTM method. Then the batch size value that gives the most optimal results for both the GRU and LSTM methods is 32 The most influential hyperparameters on the prediction results are batch size, followed by epoch, and last learning rate. From the results of this experiment, it is also concluded that the GRU method has better accuracy results and converges faster to achieve the smallest loss value when predicting stock price values.
format Final Project
author Al Mutaz Billah, Mujahid
spellingShingle Al Mutaz Billah, Mujahid
PREDICTION ANALYSIS OF INDONESIA STOCK PRICE INDEX USING GATED RECURRENT UNIT (GRU) AND LONG SHORT-TERM MEMORY (LSTM) METHODS
author_facet Al Mutaz Billah, Mujahid
author_sort Al Mutaz Billah, Mujahid
title PREDICTION ANALYSIS OF INDONESIA STOCK PRICE INDEX USING GATED RECURRENT UNIT (GRU) AND LONG SHORT-TERM MEMORY (LSTM) METHODS
title_short PREDICTION ANALYSIS OF INDONESIA STOCK PRICE INDEX USING GATED RECURRENT UNIT (GRU) AND LONG SHORT-TERM MEMORY (LSTM) METHODS
title_full PREDICTION ANALYSIS OF INDONESIA STOCK PRICE INDEX USING GATED RECURRENT UNIT (GRU) AND LONG SHORT-TERM MEMORY (LSTM) METHODS
title_fullStr PREDICTION ANALYSIS OF INDONESIA STOCK PRICE INDEX USING GATED RECURRENT UNIT (GRU) AND LONG SHORT-TERM MEMORY (LSTM) METHODS
title_full_unstemmed PREDICTION ANALYSIS OF INDONESIA STOCK PRICE INDEX USING GATED RECURRENT UNIT (GRU) AND LONG SHORT-TERM MEMORY (LSTM) METHODS
title_sort prediction analysis of indonesia stock price index using gated recurrent unit (gru) and long short-term memory (lstm) methods
url https://digilib.itb.ac.id/gdl/view/65582
_version_ 1822932788924383232