MARKET SUPPLY AND DEMAND PREDICTION USING RANDOM FOREST AND PRINCIPAL COMPONENT ANALYSIS METHOD

  • Fransiscus Aditya Wibowo Universitas Multi Data Palembang
  • Mardiani Mardiani Fakultas Ilmu Komputer dan Rekayasa, Universitas Multi Data palembang
Keywords: Inventory Prediction, Machine Learning, Market Demand, PCA, Random Forest

Abstract

Inaccurate forecasting of stock requirements and market demand is a major challenge faced by PT Bintang Jaya, which may lead to excess inventory (overstock) or stock shortages (stockout). This issue occurs because the company’s stock planning process still relies on manual approaches and historical experience without optimal utilization of data analytics. Therefore, this study aims to apply machine learning–based prediction techniques to estimate stock needs and market demand more accurately. The methods used in this research include the Random Forest algorithm as the baseline model, and Random Forest combined with Principal Component Analysis (PCA) as a hybrid model to evaluate the impact of dimensionality reduction on prediction performance. The dataset consists of historical sales transaction records from PT Bintang Jaya during the 2022–2024 period, which were processed through data preprocessing, monthly aggregation, and time series feature engineering. The results show that the Random Forest model provides more stable demand predictions and is closer to the actual values compared to the hybrid RF+PCA model. The application of PCA did not improve prediction performance due to the characteristics of the dataset, which is relatively low-dimensional and non-linear. Overall, the baseline Random Forest model demonstrates good and stable performance, indicated by consistent MAE and RMSE values and a coefficient of determination (R²) of approximately 0.69, meaning that the model explains around 69% of the demand variation based on the historical features.

References

[1] J. Lim and K. Lee, “Supply Chain Optimization Us-ing Random Forest and PCA,” International Journal of Supply Chain Management, vol. 9, no. 4, pp. 300–309, 2020.
[2] A. Budi and F. Ahmad, “Prediksi Penjualan Bahan Bangunan Menggunakan Principal Component Analysis dan Random Forest,” Jurnal Sistem Infor-masi, vol. 15, no. 2, pp. 120–130, 2019.
[3] A. Dharma, “Penerapan Algoritma Random Forest untuk Prediksi Churn Pelanggan di Sektor Ritel,” Jurnal Teknologi Informasi, vol. 8, no. 2, pp. 55–66, 2023.
[4] L. Gao, W. Zhang, and H. Chen, “Comparison of Random Forest and KNN for Product Classifica-tion,” International Journal of Data Science, vol. 5, no. 2, pp. 89–99, 2020.
[5] L. Chen, S. Wang, and Y. Zhou, “Applying PCA in Real Estate Valuation Models,” Journal of Property Science, vol. 12, no. 4, pp. 123–132, 2017.
[6] R. F. Tarigan, J. T. Informatika, S. Tinggi, T. Hara-pan, and S. M. Honda, “Sistem Pendukung Kepu-tusan Untuk Pembelian Sepeda Motor Merek Honda Menggunakan Metode Analytic Hierarchy Process,” pp. 1–9.
[7] Q. Lu, Z. Li, M. Kihl, L. Zhu, and W. Zhang, “CF4BDA: A Conceptual Framework for Big Data Analytics Applications in the Cloud,” IEEE Access, vol. 3, pp. 1944–1952, 2015, doi: 10.1109/ACCESS.2015.2490085.
[8] R. Akbar, “Pemanfaatan Principal Component Analysis dalam Visualisasi Data Spasial,” Jurnal Geoinformatika, vol. 10, no. 3, pp. 112–119, 2022.
[9] D. Farizal and I. Setiawan, “Reduksi Dimensi Fitur Menggunakan PCA pada Dataset Penjualan,” Jurnal Informatika, vol. 7, no. 3, pp. 210–218, 2020.
[10] R. Koushiki, “Retail Sales Forecasting: Random Forest vs LSTM,” Journal of Retail Analytics, vol. 6, no. 2, pp. 101–110, 2021.
[11] M. Ahmed, “Random Forest for Beginners: A Step-by-Step Explanation,” International Journal of Da-ta Science, vol. 3, no. 1, pp. 45–53, 2018.
[12] I. T. Jolliffe and J. Cadima, “Principal Component Analysis: A Review and Recent Developments,” Philosophical Transactions of the Royal Society A, vol. 374, no. 2065, p. 20150202, 2016.
[13] W. Sari and R. Taufik, “Prediksi Permintaan Produk Digital Menggunakan Algoritma Random Forest,” Jurnal Informatika, vol. 9, no. 1, pp. 23–31, 2021.
[14] J. Lei, T. Wang, and M. Liu, “Sales Prediction Using PCA and Random Forest,” Journal of Big Data Ana-lytics, vol. 4, no. 1, pp. 1–12, 2019.
[15] Y. Huang, T. Yang, and J. Zhang, “Forecasting De-mand with Random Forest Algorithm in Logistics Industry,” International Journal of Forecasting and Planning, vol. 11, no. 2, pp. 97–108, 2022.
[16] C. Wu and Y. Zhang, “Seasonal Demand Forecasting Using Optimized Random Forest,” Expert Syst. Appl., vol. 210, pp. 118–130, 2025.
[17] R. Emha and S. Totok, “Stabilisasi Prediksi Kebu-tuhan Stok Barang Menggunakan Kombinasi PCA dan Random Forest,” Jurnal Teknologi Informasi, vol. 9, no. 1, pp. 45–55, 2021.
[18] L. Wu and X. Zhang, “Random Forest Parameter Tuning for Seasonal Demand Forecasting,” Journal of Applied AI and Data Science, vol. 10, no. 1, pp. 71–84, 2025.
Published
2026-06-13
How to Cite
Wibowo, F. A., & Mardiani, M. (2026). MARKET SUPPLY AND DEMAND PREDICTION USING RANDOM FOREST AND PRINCIPAL COMPONENT ANALYSIS METHOD. TEKNIMEDIA: Teknologi Informasi Dan Multimedia, 7(1), 31-40. https://doi.org/10.46764/teknimedia.v7i1.358
Section
Articles
Abstract viewed = 0 times
PDF (INDONESIA) downloaded = 0 times