Kombinasi Model ARIMA dan KNN Dalam Peramalan Harga Produk
Abstract
This study proposes a product price forecasting model for PT ABC by integrating the Autoregressive Integrated Moving Average (ARIMA) model and the K-Nearest Neighbor (KNN) method into a hybrid predictive approach. The company faces recurring challenges related to product price fluctuations and stock availability caused by unstable market conditions and irregular supply distribution. To address these issues, a data-driven forecasting model is required to support inventory planning and price stabilization strategies. The dataset used in this study consists of historical cement purchase records from January 2023 to September 2025, obtained from the company’s ERP system. The research process includes data cleansing, transformation, monthly price aggregation, and the application of ARIMA, KNN, and a hybrid ARIMA–KNN model designed to improve forecasting accuracy. The evaluation results indicate that the hybrid ARIMA–KNN model outperforms the standalone ARIMA model in short-term price forecasting. Based on three performance metrics, the hybrid model achieved a Mean Absolute Error (MAE) of 1604.94, a Root Mean Square Error (RMSE) of 2299.37, and a Coefficient of Determination (R²) of 0.2881. These results suggest that while the model captures a portion of price variability, it still faces limitations in modeling non-linear fluctuations and sudden extreme changes. Nevertheless, the hybrid approach demonstrates improved stability by reducing extreme prediction variations, maintaining trend continuity, and generating smoother prediction curves that more closely align with actual price movements. This research contributes practically by providing PT ABC with a forecasting tool to support future price estimation, improve inventory management, and maintain market price stability. Additionally, the findings offer a foundation for future research on advanced non-linear and deep learning–based forecasting models.
Keywords
References
B. Jie, E. Eric, D. Mervyn, V. Anggrianto, and K. Kelvin, “Pemanfaatan Dan Dampak Penggunaan Teknologi Informasi Pada Bidang Sosial,” Journal of Information System and Technology, vol. 4, no. 2, pp. 392–397, Jul. 2023, doi: 10.37253/joint.v4i2.6298.
R. D. Tri Wulandari, N. Nurmalitasari, and H. Permatasari, “Prediksi Harga Saham Pt Bank Central Asia Tbk Dengan Menggunakan Algoritma Autoregressive Integrated Moving Average (Arima),” Infotech: Journal of Technology Information, vol. 10, no. 2, pp. 173–178, Nov. 2024, doi: 10.37365/jti.v10i2.278.
Naomi Dada Kodi, Gergorius Kopong Pati, and Agustina P. Setiawi, “Klasifikasi Data Mining Prediksi Penjualan dengan Metode Appriori,” Jurnal Penelitian Teknologi Informasi dan Sains, vol. 2, no. 3, pp. 186–193, Sep. 2024, doi: 10.54066/jptis.v2i3.2405.
H. Handayani, K. U. Faizah, A. Mutiara Ayulya, M. F. Rozan, D. Wulan, and M. L. Hamzah, “Perancangan Sistem Informasi Inventory Barang Berbasis Web Menggunakan Metode Agile Software Development Designing A Web-Based Inventory Information System Using The Agile Software Development Method.”
B. Mulyono, “Volume 6 Issue 2 Februari 2023 Jurnal Kolaboratif Sains Prediksi Rentet Waktu Penjualan Barang Menggunakan Algoritma Backpropagation Prediction of Time Series of Goods Sales Using the Backpropagation Algorithm,” 2023. [Online]. Available: https://jurnal.unismuhpalu.ac.id/index.php/JKS
S. Handoko, F. Fauziah, and E. T. E. Handayani, “Implementasi Data Mining Untuk Menentukan Tingkat Penjualan Paket Data Telkomsel Menggunakan Metode K-Means Clustering,” Jurnal Ilmiah Teknologi dan Rekayasa, vol. 25, no. 1, pp. 76–88, 2020, doi: 10.35760/tr.2020.v25i1.2677.
D. Setiadi, “Analisis Prediksi Harga Beras Berbasis Kualitas Menggunakan Algoritma K-Nearest Neighbord”.
O. A. Alghanam, S. N. Al-Khatib, and M. O. Hiari, “Data Mining Model for Predicting Customer Purchase Behavior in e-Commerce Context,” 2022. [Online]. Available: www.ijacsa.thesai.org
E. Mardiani et al., “Membandingkan Algoritma Data Mining Dengan Tools Orange untuk Social Economy,” Digital Transformation Technology, vol. 3, no. 2, pp. 686–693, Nov. 2023, doi: 10.47709/digitech.v3i2.3256.
A. Akbar Rismayadi, R. Wahyudi Febrianto, A. Rachmat Raharja, and I. Hariyanti, “Ifani Hariyanti Perbandingan Kinerja Metode Machine Learning SVM, Random Forest, dan KNN dalam Prediksi Harga Saham Apple.”
M. Junaidi and F. Achmadi, “Analisis Prediksi Kinerja Perusahaan Menggunakan Rasio Profitabilitas Time Series Dan Algoritma Neuro-Fuzzy,” Jurnal Ilmiah Pendidikan Teknik dan Kejuruan, vol. 12, no. 1, p. 65, Jan. 2019, doi: 10.20961/jiptek.v12i1.30260.
E. Sefry et al., “Analisis Peramalan Persediaan Barang Menggunakan Metode Moving Average Dan Exponential Smoothing Pada CV. Sanjaya Bangun Pratama.”
S. Agustini Sinaga, “Implementasi Metode Arima (Autoregressive Moving Average) Untuk Prediksi Penjualan Mobil,” Journal Global Tecnology Computer, vol. 2, no. 3, pp. 102–109, 2023.
“Cryptocurrency Price Predictor: Aplikasi Prediksi Harga Crypto Dengan Perbandingan Metode ARIMA, LSTM Dan SARIMAX Archels Ramadhany Salsabila a1 , I Made Agus Dwi Suarjaya a2 , Wayan Oger Vihikan a3.”
R. F. Dalimunthe and R. A. Putri, “Data Mining on Women’s Clothing Sales in Market Places with the K-Means Clustering Algorithm,” Indonesian Journal of Artificial Intelligence and Data Mining, vol. 7, no. 2, p. 476, Aug. 2024, doi: 10.24014/ijaidm.v7i2.31384.
A. Aryanusa and S. Zahara, “Terbit online pada laman web jurnal: http://ejurnal.unim.ac.id/index.php/submit SUBMIT (Jurnal Ilmiah Teknologi Informasi dan Sains ) Analisis Prediksi Harga Bitcoin Dengan Menggunakan Metode Arima Analysis Of Bitcoin Price Prediction Using Arima Method,” vol. 4, no. 1, pp. 15–18, 2026, [Online]. Available: http://ejurnal.unim.ac.id/index.php/submit
T. O. Hodson, “Root-mean-square error (RMSE) or mean absolute error (MAE): when to use them or not,” Jul. 19, 2022, Copernicus GmbH. doi: 10.5194/gmd-15-5481-2022.
DOI: https://doi.org/10.30591/jpit.v11i1.10163
Refbacks
- There are currently no refbacks.

This work is licensed under a Creative Commons Attribution 4.0 International License.
JPIT INDEXED BY
![]() | ![]() | ![]() | ![]() |
![]() | ![]() | ![]() | |

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








