Product Sales Prediction System at Starmart Using Linear Regression and Weighted Moving Average Methods

Authors

  • Dhias Arsyah Adiyatma Universitas Islam Lamongan, Jawa Timur, Indonesia
  • Muhammad Ghofar Rohman Universitas Islam Lamongan, Jawa Timur, Indonesia https://orcid.org/0000-0002-8153-5589
  • Munif Munif Universitas Islam Lamongan, Jawa Timur, Indonesia

DOI:

https://doi.org/10.51903/g260jt34

Keywords:

Sales Prediction, Linear regression, Weighted Moving Average

Abstract

This study aims to develop a web-based sales prediction system at Starmart by employing two methods: Linear Regression and Weighted Moving Average. The study was conducted in several stages, namely sales data collection, data processing, application of both prediction methods, and accuracy testing using Mean Squared Error (MSE) and Mean Absolute Percentage Error (MAPE). The author collected data directly from Starmart, covering 12 product categories in sales data. The data was then processed to build a sales prediction application that aims to forecast product sales at Starmart for the upcoming period. The results showed that the implementation of the Linear Regression method provided more stable prediction results, in accordance with historical data patterns, with an MSE value of 2184.18 and a MAPE of 10.88%. Meanwhile, the Weighted moving average method produced predictions that tended to fluctuate with an MSE value of 4715.66 and a MAPE of 17.35%. Based on a comparison of the two approaches, it can be concluded that Linear regression is more accurate than Weighted moving average in predicting product sales at Starmart.

References

[1] V. A. de O. Bobel et al., “Analysis of the Level of Adoption of Business Continuity Practices by Brazilian Industries: An Exploratory Study Using Fuzzy TOPSIS,” Mathematics, vol. 10, no. 21, p. 4041, Nov. 2022, doi: 10.3390/math10214041.

[2] S. C. Marselinus and E. Ardyan, “Pentingnya Orientasi Penjualan dan Pelatihan Penjualan dalam Meningkatkan Penjualan Adaptif pada Kinerja Tenaga Penjualan,” Jebdeker J. Ekon. Manajemen, Akuntansi, Bisnis Digit. Ekon. Kreat. Entrep., vol. 4, no. 2, pp. 488–498, 2024, doi: 10.56456/jebdeker.v4i2.280.

[3] F. Aulia, M. Nazaruddin, and A. Alwi, “Contestations Between Minimarket Retail and Local Grocery Stores in Aceh, Indonesia,” J. Ilmu Sos., vol. 23, no. 2, pp. 45–63, Jan. 2025, doi: 10.14710/jis.23.2.2024.45-63.

[4] H. Li et al., “ARIMA-Driven Vegetable Pricing and Restocking Strategy for Dual Optimization of Freshness and Profitability in Supermarket Perishables,” Sustainability, vol. 16, no. 10, p. 4071, May 2024, doi: 10.3390/su16104071.

[5] T. A. Syed, H. Aslam, Z. A. Bhatti, F. Mehmood, and A. Pahuja, “Dynamic Pricing for Perishable Goods: A Data-Driven Digital Transformation Approach,” Int. J. Prod. Econ., vol. 277, p. 109405, Nov. 2024, doi: 10.1016/j.ijpe.2024.109405.

[6] A. Oparebea Boateng, R. Kwasi Bannor, E. Bold, and O. K. Helena, “A Systematic Review of the Supply of Agriproducts to Supermarkets in Emerging Markets of Africa and Asia,” Cogent Food Agric., vol. 9, no. 1, p. 2247697, Dec. 2023, doi: 10.1080/23311932.2023.2247697.

[7] J. A. Olaghere, H. E. Inegbedion, and F. O. Osiobe, “The Implications of Digitalization in Retail Service Delivery on Circular Economy in Nigeria: An Exploratory Case Study,” Sustainability, vol. 15, no. 17, p. 13192, Sep. 2023, doi: 10.3390/su151713192.

[8] H. A. A. Al-Khamees, N. S. Sani, A. S. Gifal, L. X. W. Liu, and M. I. Esa, “A Dynamic Model Using K-NN Algorithm for Predicting Diabetes and Breast Cancer,” Comput. Biol. Med., vol. 192, p. 110276, Jun. 2025, doi: 10.1016/j.compbiomed.2025.110276.

[9] A. Anggrawan, H. Hairani, and N. Azmi, “Prediksi Penjualan Produk Unilever Menggunakan Metode Regresi Linear,” J. Bumigora Inf. Technol., vol. 4, no. 2, pp. 123–132, 2022, doi: 10.30812/bite.v4i2.2416.

[10] M. R. Sheikh and P. Coulibaly, “Review of Recent Developments in Hydrologic Forecast Merging Techniques,” Water, vol. 16, no. 2, p. 301, Jan. 2024, doi: 10.3390/w16020301.

[11] J. Haloho, R. H. Kiswanto, and J. Lahallo, “Web-Based Sales Management Information System for PT. Sinarta Karya Papua Using Rapid Application Development,” J. Ilm. Sist. Inf., vol. 4, no. 2, pp. 475–486, Aug. 2025, doi: 10.51903/5asdpn24.

[12] A. Azis, A. T. Zy, and A. S. Sunge, “Prediksi Penjualan Obat Dan Alat Kesehatan Terlaris Menggunakan Algoritma K-Nearest Neighbor,” J. Teknol. Dan Sist. Inf. Bisnis, vol. 6, no. 1, pp. 117–124, 2024, doi: 10.47233/jteksis.v6i1.1078.

[13] N. Hendrastuty, “Penerapan Data Mining Menggunakan Algoritma K-Means Clustering dalam Evaluasi Hasil Pembelajaran Siswa,” J. Ilm. Inform. dan Ilmu Komput., vol. 3, no. 1, pp. 46–56, 2024, doi: 10.58602/jima-ilkom.v3i1.26.

[14] Sekar Setyaningtyas, B. Indarmawan Nugroho, and Z. Arif, “Tinjauan Pustaka Sistematis: Penerapan Data Mining Teknik Clustering Algoritma K-Means,” J. Teknoif Tek. Inform. Inst. Teknol. Padang, vol. 10, no. 2, pp. 52–61, 2022, doi: 10.21063/jtif.2022.v10.2.52-61.

[15] N. Sholikha and N. Nafiiyah, “Implementasi Regresi Linear Sederhana dalam Memprediksi Penjualan Susu Cimory Berdasarkan Data Historis,” J. Ilm. Sist. Inf., vol. 4, no. 3, pp. 511–522, Oct. 2025, doi: 10.51903/j62ypt43.

[16] Ilham Amansyah, Jamaludin Indra, Euis Nurlaelasari, and Ayu Ratna Juwita, “Prediksi Penjualan Kendaraan Menggunakan Regresi Linear: Studi Kasus pada Industri Otomotif di Indonesia,” Innov. J. Soc. Sci. Res., vol. 4, no. 4, pp. 1199–1216, 2024, doi: 10.31004/innovative.v4i4.12735.

[17] Ma’rufatul Amelianti, K. F. Mauladi, and Affan Bachri, “Penerapan Metode Weighted Moving Average (WMA) Untuk Memprediksi Penjualan Sparepart Motor (Studi Kasus: Bengkel Putra Jaya Motor),” J. Ilmu Komput. dan Teknol., vol. 5, no. 2, pp. 7–12, 2024, doi: 10.35960/ikomti.v5i2.1395.

[18] A. Tripena, “Penggunaan Metode Mean Square Error Pada Regresi Spline Orde 2,” in Prosiding Seminar Nasional Matematika dan Terapannya (Senamantra), 2022, pp. 269–284. [Online]. Available: https://matematika.fmipa.unsoed.ac.id/wp-content/uploads/21.-agustini.pdf

[19] L. P. Sulis, “Perancangan Data Warehouse Pada Software Laboratorium PT. Sainfest: Data Warehouse Design at PT. Sainfest,” J. Ilm. Sist. Inf., vol. 2, no. 2, pp. 30–38, Jul. 2023, doi: 10.51903/juisi.v2i2.685.

[20] K. S. Kartini, I. N. T. Anindia Putra, K. J. Atmaja, and N. P. S. Widiani, “Sistem Informasi Penjualan Pada Salad Yoo,” J. Krisnadana, vol. 1, no. 2, pp. 45–53, 2022, doi: 10.58982/krisnadana.v1i2.112.

[21] S. P. Dewi, N. Nurwati, and E. Rahayu, “Penerapan Data Mining untuk Prediksi Penjualan Produk Terlaris Menggunakan Metode K-Nearest Neighbor,” Build. Informatics, Technol. Sci., vol. 3, no. 4, pp. 639–648, 2022, doi: 10.47065/bits.v3i4.1408.

[22] O. J. Ababil, S. A. Wibowo, and H. Zulfia Zahro’, “Penerapan Metode Regresi Linier dalam Prediksi Penjualan Liquid Vape di Toko Vapor Pandaan Berbasis Website,” JATI (Jurnal Mhs. Tek. Inform., vol. 6, no. 1, pp. 186–195, 2022, doi: 10.36040/jati.v6i1.4537.

[23] S. Rifadli and R. Sari, “Implementasi Metode Weighted Moving Average (WMA) Pada Prediksi Penjualan Gas Elpiji Berbasis Website,” J. Desain Dan Anal. Teknol., vol. 3, no. 2, pp. 88–95, 2024, doi: 10.58520/jddat.v3i2.47.

[24] R. Yulianto and I. Dzikria, “Prediksi Pengiriman Barang dengan Algoritma Weighted Moving Average pada Sistem Manajemen Rantai Pasok UMKM,” in Prosiding Seminar Nasional Sains Data, 2025, pp. 1–11. [Online]. Available: https://prosiding-senada.upnjatim.ac.id/index.php/senada/article/view/437

[25] B. A. Laksono, D. Sasmoko, and C. Supriadi, “Sistem Pendukung Keputusan Penentuan Pembelian Laptop Kualitas Terbaik di Guava Komputer dengan Metode AHP Berbasis Web,” J. Ilm. Sist. Inf., vol. 3, no. 3, pp. 19–29, Jan. 2024, doi: 10.51903/avceqq43.

[26] N. H. Pajriati, E. Kurniati, and D. Suhaedi, “Penerapan Metode Average Based Fuzzy Time Series Lee Untuk Peramalan Harga Emas di PT. X,” J. Ris. Mat., vol. 1, no. 1, pp. 73–81, 2021, doi: 10.29313/jrm.v1i1.221.

Published

2025-11-12