This Author published in this journals
All Journal Tsabit
Muammar Farhan
Universitas Muhammadiyah Sumatera Utara

Published : 1 Documents Claim Missing Document
Claim Missing Document
Check
Articles

Found 1 Documents
Search

Comparison of Random Forest and Multiple Linear Regression Algorithms in Predicting Daily Drug Expenditure: A Case Study At Bambuan Pharmacy Muammar Farhan; Zuli Agustina Gultom
Tsabit Journal of Computer Science Vol. 2 No. 2 (2025): December Edition
Publisher : Ilmu Bersama Center

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.56211/tsabit62

Abstract

Accurate drug inventory management is essential for pharmacies to avoid shortages or excess stock. This study aims to compare the performance of Multiple Linear Regression (MLR) and Random Forest Regression (RFR) in predicting daily drug sales at Apotek Bambuan. The dataset consists of sales records from 2022–2024, which were preprocessed and divided into training and testing sets. Both models were evaluated using Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and R² Score. The results show that Random Forest provides higher prediction accuracy with lower error values compared to MLR, although MLR remains useful for interpreting the contribution of predictor variables. Therefore, Random Forest is recommended for daily drug sales prediction due to its superior accuracy, while MLR offers advantages in model interpretability.