Drug Sales Forecasting at XYZ Pharmacy using Single Moving Average and Single Exponential Smoothing Methods Based on a Web-Based System
Open Access
- 15 October 2025
- journal article
- Published by Yayasan Kita Menulis in Journal of Artificial Intelligence and Engineering Applications (JAIEA)
- Vol. 5 (1) , 1201-1212
Abstract
This study aims to develop a web-based drug sales prediction system at XYZ Pharmacy by implementing two forecasting methods: Single Moving Average (SMA) and Single Exponential Smoothing (SES). The system is designed to help address fluctuations in drug demand that may lead to overstocking or stockouts, which can ultimately impact pharmacy operations and service quality. The system was built using PHP as the programming language and MySQL as the database, with a primary focus on the sales forecasting feature. The dataset used includes the sales of 5 types of drugs from July 2024 to May 2025, which were analyzed to predict sales for the following month. Evaluation results show that the SES method with a smoothing constant α = 0.2 achieved a Mean Absolute Percentage Error (MAPE) of 9.38%, while the SMA method with a 5-month period resulted in a MAPE of 9.43%. Among all the data, Mefenamic Acid yielded the most accurate prediction for June 2025. Both methods were successfully implemented in the system, with SES showing slightly better performance, especially in handling gradual trend changes. Additionally, the system allows users to compare forecasting results across methods and supports better decision-making in inventory management, helping to maintain optimal drug availability at the pharmacy.Keywords
This publication has 12 references indexed in Scilit:
- PERAMALAN PENJUALAN MOBIL DENGAN MENERAPKAN METODE SINGLE MOVING AVERAGE DAN SINGLE EXPONENTIAL SMOOTHINGJurnal Pariwisata Bisnis Digital dan Manajemen, 2024
- PERBANDINGAN METODE SINGLE EXPONENTIAL SMOOTHING DAN SINGLE MOVING AVERANGE DALAM PERAMALAN PERSEDIAAN BAHAN BAKU PADA ROEMAH DONAT LEZATJ-Com (Journal of Computer), 2024
- Perbandingan Single Moving Average dan Single Smoothing Eksponensial Dalam Peramalan Penjualan Barang Coupling Sucker di PT.Pertamina Ep Asset-1 Field JambiTechnologica, 2024
- Rancang Bangun Aplikasi Kasir Dan Stok Barang Di Apotek Munawwarah Farma Berbasis WebsiteJurnal Ilmiah Fakultas Teknik, 2023
- Implementasi Metode Time Series untuk Prediksi dan Monitoring Pendapatan Masla Delivery Berbasis WebsiteJoutica, 2023
- Penerapan Metode Exponential Smoothing Winters Pada Prediksi Harga BerasJurnal Ilmiah SINUS, 2022
- SISTEM PREDIKSI PENJUALAN OBAT MENGGUNAKAN METODE SINGLE MOVING AVERAGE (STUDI KASUS: APOTEK WILUJENG KECAMATAN PANCENG KAB.GRESIK)INDEXIA : Infomatic and Computational Intelligent Journal, 2022
- Peramalan Produksi Pempek Dengan Metode Moving Average Dan Exponential SmoothingJurnal Informatika Dan Rekayasa Komputer(JAKAKOM), 2022
- PERBANDINGAN PERAMALAN PENJUALAN PRODUK AKNIL PT.SUNTHI SEPURIMENGGUANAKAN METODE SINGLE MOVING AVERAGE DAN SINGLE EXPONENTIAL SMOOTINGJurnal Informatika Teknologi dan Sains (Jinteks), 2020
- SISTEM PREDIKSI JUMLAH PENGUNJUNG WISATA WEGO KEC.SUGIO KAB.LAMONGAN MENGGUNAKAN METODE FUZZY TIME SERIESJoutica, 2017