skip to main content

PERBANDINGAN PREDIKSI INDEKS HARGA SAHAM GABUNGAN (IHSG) MENGGUNAKAN METODE REGRESI RANDOM FOREST DAN EXTREME GRADIENT BOOSTING

Agnes Monika Simalango  -  Program Studi Sains Aktuaria, Fakultas Sains, Institut Teknologi Sumatera, Indonesia
*Muklas Rivai scopus  -  Institut Teknologi Sumatera, Indonesia
Fuji Lestari  -  Program Studi Sains Aktuaria, Fakultas Sains, Institut Teknologi Sumatera, Indonesia
Open Access Copyright 2026 Jurnal Gaussian under http://creativecommons.org/licenses/by-nc-sa/4.0.

Citation Format:
Abstract
Indeks Harga Saham Gabungan (IHSG) serves as the benchmark of the Indonesian stock market and is characterized by nonlinear and volatile movements driven by macroeconomic conditions, trading activities, and market sentiment. This study aimed to compare the forecasting performance of Random Forest and Extreme Gradient Boosting (XGBoost) for the IHSG using historical data from January 2019 to July 2025 with an 80:20 chronological train-test split. Model performance was evaluated using RMSE and MAPE, followed by variable importance analysis and Value at Risk (VaR) estimation to asses potential investment losses. The results showed that Random Forest outperformed XGBoost, achieving an RMSE of 117.54 and a MAPE of 0.90%, whereas XGBoost produced an RMSE of 136.45 and a MAPE of 1.03%. Variable importance analysis identified the highest index value as the most influential predictor, followed by the lowest index value, the opening index value, and trading volume. Furthermore, the estimated expected return was 0.00014, with VaR values of IDR 470,000.00, IDR 610,000.00, and IDR 960,000.00 at the 90%, 95%, and 99% confidence levels, respectively. Based on the evaluation results, Random Forest achieved better forecasting accuracy than XGBoost for the IHSG.
Keywords: IHSG; Random Forest; Extreme Gradient Boosting; Prediction; Variable Importance

Article Metrics:

Article Info
Section: Articles
Language : ID
  1. (KSEI), K. S. E. I., 2025. Statistik Pasar Modal Indonesia Periode Juli 2025, Jakarta: Kustodian Sentral Efek Indonesia
  2. Agus Ambarwari, Q. J. A. Y. H., 2020. Analisis Pengaruh Data Scalling Terhadap Performa Algoritma Machine Learning untuk Identifikasi Tanaman. JURNAL RESTI (Rekayasa Sistem dan Teknologi Informasi), 4(1), pp. 117-122
  3. Astutiningsih, T., Saputro, D. R. S. & S., 2023. Optimasi Algoritma eXtreme Gradient Boosting (XGBoost) pada Harga Saham PT. United Tractors Tbk.. SPECTA Journal of Technology, VII(3), pp. 632-641
  4. Baihaqi, M. I., D., Syaripudin, A. & Nugroho, F. A., 2023. Implementasi Algoritma Random Forest pada Prediksi Harga Saham Berdasarkan Data Historis. Jubitek: Jurnal Biga Data dan Teknologi informasi, I(3), pp. 42-51
  5. Breiman, L., 2001. Random Forest. Machine Learning, 45(1), pp. 5-32
  6. Chen, T. & Guestrin, C., 2016. XGBoost: A Scalable Tree Boosting System. KDD
  7. Ernawati, F. R. P. d. I., 2023. Perbandingan Algoritma Extreme Gradient Boosting Dan Random Forest Untuk Memprediksi Indeks Harga Terendah Saham Dengan Indeks ISSI. Seminar Nasional Mahasiswa Ilmu Komputer dan Aplikasinya (SENAMIKA), pp. 438-449
  8. Hartono, 2024. Modul Digital Machine Learning. Jakarta: LMS-SPADA INDONESIA
  9. Indonesia Stock Exchange, 2008. Buku Panduan Indeks Harga Saham Bursa Efek Indonesia. Jakarta: Indonesia Stock Exchange
  10. Lardy, M. M. d. J., 2019. Credit Spread Approximation and Improvement using Random Forest Regression. European Journal of Operational Research, 277(1), pp. 351-365
  11. Patriya, E., 2020. Implementasi Support Vector Machine pada Prediksi Indeks Harga Saham Gabungan (IHSG). Jurnal Ilmiah Teknologi dan Rekayasa Volume, XXV(1), pp. 24-38
  12. Priyatno, A. M. et al., 2023. Comparison Random Forest Regression and Linear Regression For Forecasting BBCA Stock Price. JUTIN : Jurnal Teknik Industri Terintegrasi, VI(3), pp. 718-732
  13. Rafirhan, M. N., Kanianingsih, A. & Komarudin, A., 2023. Peramalan Indeks Harga Saham PT XYZ Menggunakan Metode Double Moving Average (DMA). IJESPG Journal, I(3), pp. 183-189
  14. Solihatun, A. et al., 2023. Perhitungan Value at Risk(Var) Pada Portofolio Saham IDX Sektor Keuangan (IDXFINANCE) Menggunakan Metode Simulasi Historis (Historical Simulation Method) . Jurnal Matematika, Komputasi dan Statistika, III(1), pp. 245-254
  15. Zhu, N. et al., 2022. Optimization of the Random Forest Hyperparameters for Power Industrial Control Systems Intrusion Detection Using an Improved Grid Search Algorithm. MDPI, XII(20), pp. 1-16

Last update:

No citation recorded.

Last update:

No citation recorded.