Optimasi Hiperparameter XGBoost Regression untuk Prediksi Harga Saham BBNI Berbasis Transaksi Historis
DOI:
https://doi.org/10.62951/repeater.v4i3.950Keywords:
BBNI, Grid Search, Hyperparameter Optimization, Stock Prediction, XGBoostAbstract
Stock investment in the banking sector, such as PT Bank Negara Indonesia (Persero) Tbk (BBNI), carries high risks due to dynamic market volatility, necessitating accurate prediction methods to support investment decision-making. This study aims to optimize the performance of the XGBoost Regression algorithm in predicting BBNI stock prices based on historical transaction data from the last five years. The methodology applied includes data preprocessing for price format validation, feature engineering using technical indicators (SMA, EMA, MACD, RSI), and hyperparameter optimization using the Grid Search Cross-Validation technique. The experimental results demonstrate that hyperparameter optimization effectively refines the model's predictive stability. While maintaining a highly precise Mean Absolute Percentage Error (MAPE) of 2.00%, the Grid Search technique successfully reduced the nominal error (RMSE) and improved the model's goodness-of-fit (R-Squared). These findings confirm that the optimized model offers superior generalization capabilities in capturing price volatility compared to the baseline model. Consequently, this optimized predictive model provides a robust analytical tool for investors and financial analysts to mitigate risks and formulate effective trading strategies in the highly fluctuating banking stock market.
Downloads
References
Bentéjac, C., Csörgő, A., & Martínez-Muñoz, G. (2021). A comparative analysis of gradient boosting algorithms. Artificial Intelligence Review, 54, 1937–1967. https://doi.org/10.1007/s10462-020-09896-5
Chen, T., & Guestrin, C. (2016). XGBoost : A Scalable Tree Boosting System. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785–794. https://doi.org/10.1145/2939672.2939785
Géron, A. (2019). Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems (2nd ed.). O’Reilly Media.
Ilemobayo, J. A., Durodola, O., Alade, O., Awotunde, O. J., Olanrewaju, A. T., Falana, O., Ogungbire, A., Osinuga, A., Ogunbiyi, D., Ifeanyi, A., Odezuligbo, I. E., & Edu, O. E. (2024). Hyperparameter Tuning in Machine Learning: A Comprehensive Review. Journal of Engineering Research and Reports, 26(6), 388–395. https://doi.org/10.9734/jerr/2024/v26i61188
Jumiati, Pimpi, L., Muhtar, N., Abapihi, B., Aswani, & Ningtyas, R. A. (2024). Analisis Volatilitas Saham Sektor Perbankan Menggunakan Metode Garch (Studi Kasus: Bank BUMN Pada Saham LQ45 yang terdaftar di BEI). Jurnal Matematika, Komputasi, & Statistika, 4(2). https://doi.org/10.33772/jmks.v4i2.98
Kamara, A. F., Chen, E., & Pan, Z. (2022). An ensemble of a boosted hybrid of deep learning models and technical analysis for forecasting stock prices. Information Sciences, 594, 1–19. https://doi.org/10.1016/j.ins.2022.02.015
Ku, C. S., Charan, S. D. R., Soong, H.-C., Lim, J. T., Ooi, J. O., & Hong, Z.-W. (2025). A Systematic Review of Stock Market Forecasting Utilizing Machine Learning and Deep Learning. 2025 IEEE 16th Control and System Graduate Research Colloquium (ICSGRC), 1–6. https://doi.org/10.1109/ICSGRC65918.2025.11159810
Li, T. (2023). Application Analysis of Financial Time Series in Stock Market. Advances in Economics, Management and Political Sciences, 13, 264–270. https://doi.org/10.54254/2754-1169/13/20230744
Liani, T., br. Simbolon, L. R., Anwar, H. R., & br. Naibaho, E. A. I. (2024). Analisis Efisiensi Pasar Modal di Indonesia. Bisma: Business and Management Journal, 2(1), 1–13. https://doi.org/10.59966/bisma.v2i1.680
Lommers, K., Harzli, O. El, & Kim, J. (2021). Confronting Machine Learning With Financial Research. ArXiv Preprint ArXiv:2103.00366. https://doi.org/10.48550/arXiv.2103.00366
Lubis, P. K. D., Manalu, C. L. N., Lubis, A. A., Tambunan, L. M., & Saputra, F. (2024). The Role of the Capital Market in Increasing Economic Growth in Indonesia. Marcopolo: Indonesian Journal of Interdisciplinary Research in Science and Technology, 2(5), 248–254. https://doi.org/10.55927/marcopolo.v2i5.9322
McKinney, W. (2022). Python for Data Analysis: Data Wrangling with Pandas, NumPy, and Jupyter (3rd ed.). O’Reilly Media.
p Shaji, S., R, R., Varghese, J., Sathyan, L., & J, D. (2025). Optimizing Hyperparameters: Techniques for Improving Machine Learning Models. International Research Journal on Advanced Engineering and Management, 2(12), 2786–2790. https://doi.org/10.47392/IRJAEM.2024.0561
Pipin, S. J., Purba, R., & Kurniawan, H. (2023). Prediksi Saham Menggunakan Recurrent Neural Network (RNN-LSTM) dengan Optimasi Adaptive Moment Estimation. Journal of Computer System and Informatics (JoSYC), 4(4), 806–815. https://doi.org/10.47065/josyc.v4i4.4014
Putri, I. G. A. P. D., & Kusuma, N. P. N. (2025). Cash Flow Forecasting for Companies Listed on the Indonesia Stock Exchange Using the ARIMA Model. Jurnal Ilmiah Sistem Informasi Dan Teknik Informatika (JISTI), 8(2). https://doi.org/10.57093/jisti.v8i2.341
Riziq, I. F., & Dzikrillah, A. R. (2025). Impelementasi Algoritma LSTM Dan SVR Untuk Prediksi Harga Bitcoin Menggunakan Data Yahoo Finance. METIK JURNAL, 9(2). https://doi.org/10.47002/90ypad22
Samsudin, A., Hidayat, R., Ramadhani, C. N., Safitri, S. N., Yulianti, V. R., Ferdiansyah, T., & Royhan, M. F. (2023). Analisis Price Earning Ratio (PER) dalam Pengambilan Keputusan Investasi Saham Perbankan: Studi Kasus pada Perusahaan Sektor Perbankan yang Terdaftar di Bursa Efek Indonesia Tahun 2022. El-Mujtama: Jurnal Pengabdian Masyarakat, 3(2), 488–498. https://doi.org/10.47467/elmujtama.v3i2.2805
Shwartz-Ziv, R., & Armon, A. (2022). Tabular data: Deep learning is not all you need. Information Fusion, 81, 84–90. https://doi.org/10.1016/j.inffus.2021.11.011
Subasi, N. (2024). Comprehensive Analysis of Grid and Randomized Search on Dataset Performance. European Journal of Engineering and Applied Sciences, 7(2), 77–83. https://doi.org/10.55581/ejeas.1581494
Vasellini, R. (2023). ML Application to the Financial Market. In F. Cecconi (Ed.), AI in the Financial Markets: New Algorithms and Solutions (pp. 85–94). Springer. https://doi.org/10.1007/978-3-031-26518-1_7
Waciko, K. J., Susanti, L. A., Muayyad, & Fakhrurozi, R. N. (2025). Forecasting Tourist Arrivals in Bali: A Grid Search-Tuned Comparative Study of Random Forest, XGBoost , and a Hybrid RF-XGBoost Model. INFERENSI, 8(3), 251. https://doi.org/10.12962/j27213862.v8i3.23334
Wang, T., Li, Q., Yang, J., Xie, T., Wu, P., & Liang, J. (2023). Transformer Fault Diagnosis Method Based on Incomplete Data and TPE-XGBoost . Applied Sciences, 13(13), 7539. https://doi.org/10.3390/app13137539
Wiejaya, A., & Fenriana, I. (2024). Prediksi Harga Saham Top 10 NASDAQ dengan Time Series Prophet. Jurnal Bit-Tech, 7(2). https://doi.org/10.32877/bt.v7i2.1736
Yang, Y. (2021). Market Forecast using XGBoost and Hyperparameters Optimized by TPE. 2021 IEEE International Conference on Artificial Intelligence and Industrial Design (AIID), 336–339. https://doi.org/10.1109/AIID51893.2021.9456538
Zlobin, M., & Bazylevych, V. (2025). Bayesian Optimization for Tuning Hyperparametrs of Machine Learning Models: A Performance Analysis in XGBoost . Computer Systems and Information Technologies, 1(1), 1–16. https://doi.org/10.31891/csit-2025-1-16
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Repeater : Publikasi Teknik Informatika dan Jaringan

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.




