Jurnal Pengabdian Masyarakat dan Riset Pendidikan
Vol. 4 No. 3 (2026): Jurnal Pengabdian Masyarakat dan Riset Pendidikan Volume 4 Nomor 3 (Januari 202

Segmentasi Pelanggan Grosir Menggunakan K-Means: Analisis Outlier dan Ketidakseimbangan Data : Penelitian

N Tahta Phudjashakty (Unknown)
Hasbi Firmansyah (Unknown)
Wahyu Asriyani (Unknown)
Ali Sofyan (Unknown)



Article Info

Publish Date
02 Jan 2026

Abstract

This study aims to segment wholesale customers using the K-Means clustering algorithm and to examine the impact of outliers and data imbalance on the clustering results. The data are taken from the Wholesale Customers Dataset of the UCI Machine Learning Repository, consisting of 440 customers with eight numerical attributes representing annual purchase amounts. The preprocessing steps include exploratory data analysis, outlier detection using Z-Score and boxplot visualization, handling of extreme values with winsorizing, and Z-Score normalization to make the attribute scales comparable. The number of clusters is determined using the Elbow Method. Applying K-Means with produces two highly imbalanced clusters, with 437 customers in Cluster 0 and 3 customers in Cluster 1. Cluster 0 represents regular customers whose purchasing patterns are close to the overall average, while Cluster 1 consists of customers with very high purchases, especially in Frozen and Delicassen categories. Evaluation using the average within centroid distance and the Davies–Bouldin Index shows that, after outlier handling and normalization, the cluster structure becomes more stable and easier to interpret. The resulting segmentation can support differentiated marketing and service strategies for regular and high-spending customers and highlights the importance of proper preprocessing when applying K-Means.

Copyrights © 2026






Journal Info

Abbrev

jerkin

Publisher

Subject

Humanities Education Languange, Linguistic, Communication & Media Mathematics Other

Description

Jurnal Pengabdian Masyarakat dan Riset Pendidikan is a journal on Faculty of Education. Jurnal JERKIN: Jurnal Pengabdian Masyarakat dan Riset Pendidikan is under the auspices of the Faculty of Education, Universitas Pahlawan Tuanku Tambusai. The journal is registered with E-ISSN: 2961-9890. Jurnal ...