6285641688335, 628551515511 info@scirepid.com

 
JT - Jurnal Transformatika - Vol. 22 Issue. 2 (2025)

Boosting Performance Klasifikasi kNN Customer Loyalty dengan Chi-Square dan Information Gain

Atika Mutiarachim, Fari Katul Fikriah, Basirudin Ansor, Aditya Putra Ramdani,



Abstract

Understanding customer purchasing behavior is essential for predicting customer loyalty, which directly impacts a company's long-term success. This research aims to determine the effect of chi-square and information gain feature selection in optimizing customer loyalty classification performance, compared to pure kNN. Using a public customer purchasing behavior dataset from Kaggle, containing 10,000 data, 12 attributes with loyalty_status as the label (Gold, Regular, Silver). Evaluating performance by accuracy, kappa, classification error, recall, precision, and RMSE. The highest accuracy 91.99% was obtained by kNN k=3 with information gain, kappa 0.844, precision 95.44%, recall 86.30%, with the lowest classification error 8.01% and the second lowest RMSE 0.245, after kNN k=3 with chi-square. Results show that feature selection has a positive impact on classification, increasing accuracy and reducing errors, with the combination of the kNN k=3 method and information gain proving successful in obtaining high accuracy in classifying customer loyalty.







Publisher :

Universitas Semarang

DOI :


Sitasi :

0

PISSN :

1693-3656

EISSN :

2460-6731

Date.Create Crossref:

17-Mar-2025

Date.Issue :

11-Mar-2025

Date.Publish :

11-Mar-2025

Date.PublishOnline :

11-Mar-2025



PDF File :

Resource :

Open

License :

http://creativecommons.org/licenses/by/4.0