Building of Informatics, Technology and Science
Vol 7 No 3 (2025): December 2025

Perbandingan Random Forest dan XGBoost Untuk Prediksi Penjualan Produk E-Commerce Rumah Madu

Hayatunnisa, Destaria (Unknown)
Permata, Permata (Unknown)
Priandika, Adhie Thyo (Unknown)
Gunawan, Rakhmat Dedi (Unknown)



Article Info

Publish Date
08 Dec 2025

Abstract

Inventory management is one of the main challenges for small and medium enterprises (SMEs), including Rumah Madu in Bandar Lampung, where honey stock levels are often determined based on estimation rather than precise calculation. This study aims to analyze and compare the performance of the Random Forest and XGBoost algorithms in predicting honey sales to achieve more measurable stock management. The dataset consists of 1,699 honey sales transactions that have undergone cleaning, feature transformation, and standardization processes. The variables used include honey type, unit price, day, month, holiday status, and promotion indicators. Modeling was conducted using a time-series split approach, where historical data served as the training set and recent data as the testing set. The evaluation results show that Random Forest achieved an MAE of 24.35, RMSE of 29.04, and R² of -0.9685, while XGBoost achieved an MAE of 25.50, RMSE of 30.58, and R² of -1.1825. The negative R² values indicate that both models were unable to explain data variation optimally, with performance falling below a simple baseline. Nevertheless, the feature importance analysis revealed that unit price and honey type were the dominant factors influencing sales. This study highlights the need for further model development through parameter optimization and improved data quality to enhance prediction accuracy.

Copyrights © 2025






Journal Info

Abbrev

bits

Publisher

Subject

Computer Science & IT

Description

Building of Informatics, Technology and Science (BITS) is an open access media in publishing scientific articles that contain the results of research in information technology and computers. Paper that enters this journal will be checked for plagiarism and peer-rewiew first to maintain its quality. ...