Jurnal Teknik Informatika (JUTIF)
Vol. 6 No. 6 (2025): JUTIF Volume 6, Number 6, Desember 2025

Comparative Analysis of Classification Models for Sales Prediction in E-commerce: Decision Tree, Random Forest, SVM, Naive Bayes, and KNN

Purwanto, Eko (Unknown)
Cipto Utomo, Bangun Prajadi (Unknown)
Permatasari, Hanifah (Unknown)
Mohd, Farahwahida (Unknown)



Article Info

Publish Date
05 Jan 2026

Abstract

The swift expansion of e-commerce has markedly heightened the necessity for precise sales forecasting, essential for efficient marketing tactics and inventory control. This research evaluates five classification models—Decision Tree, Random Forest, Support Vector Machine (SVM), Naive Bayes, and K-Nearest Neighbors (KNN)—to predict sales outcomes using e-commerce transaction data. The models were assessed utilizing criteria including accuracy, precision, recall, F1-score, AUC, and Log Loss. The findings indicate that Random Forest exceeds the performance of the other models, with an accuracy of 97.5% and an AUC of 0.991, markedly outperforming the alternatives. This study presents a unique contribution by contrasting these classification models in the realm of e-commerce in Indonesia, yielding significant insights for the advancement of more effective predictive algorithms in informatics. The results not only enhance the optimization of marketing strategies but also enrich the comprehension of machine learning applications in sales forecasting. This study underscores the necessity of choosing the appropriate model for enhanced sales forecasting, with considerable ramifications for data-driven decision-making in the e-commerce sector.

Copyrights © 2025






Journal Info

Abbrev

jurnal

Publisher

Subject

Computer Science & IT

Description

Jurnal Teknik Informatika (JUTIF) is an Indonesian national journal, publishes high-quality research papers in the broad field of Informatics, Information Systems and Computer Science, which encompasses software engineering, information system development, computer systems, computer network, ...