Jambura Journal of Mathematics (Feb 2024)
Prediksi Harga Saham Syariah menggunakan Bidirectional Long Short Term Memory (BiLSTM) dan Algoritma Grid Search
Abstract
Sharia stocks are one of the investment instruments in the Islamic capital market. In the capital market, it is known that stock prices are very volatile. This makes investors need to carry out a strategy for making the right decision in investing, one of which can be done by predicting stock prices. In this study, predictions were made using historical data on the closing price of Islamic shares of PT. Telkom Indonesia Tbk with the Bidirectional Long Short Term Memory (BiLSTM) method. In building the best prediction model, it is necessary to choose the right parameters and one way to do this is to use the grid search algorithm. Based on the results of the test analysis, it was found that the smallest Mean Absolute Percentage Error (MAPE) value was found in the BiLSTM model in the distribution of data with a percentage of 90% training data and 10% testing data and parameter values obtained based on parameter tuning using grid search, including the number of neurons 25, 100 epochs, 4 batches, and 0.2 dropouts. The MAPE obtained in this study was 10.83% and based on the scale on the MAPE value criteria, this shows that the resulting prediction model is accurate. As for the test results from the comparisons made on the BiLSTM and LSTM models using grid search as a tuning parameter and models without using a grid search or it can be called a trial and error approach as a tuning parameter, it is found that the model with better predictive performance is found in BiLSTM using a grid search. compared to other models.
Keywords