Comparative Analysis of KNN and Neavy Bayes Algorithms in Socio-Economic Data Classification in Indonesia

The global economy continues to recover as trade flows, employment, and incomes improve. However, the economic recovery is uneven across countries and business sectors. The economic recovery has also resulted in structural changes, meaning that some sectors, jobs, technologies and behaviors will not...

Full description

Saved in:
Bibliographic Details
Published inDigital zone Vol. 15; no. 2; pp. 222 - 232
Main Authors Buhori, Kiki, Andrianingsih
Format Journal Article
LanguageEnglish
Indonesian
Published Universitas Lancang Kuning 30.11.2024
Subjects
Online AccessGet full text
ISSN2086-4884
2477-3255
2477-3255
DOI10.31849/digitalzone.v15i2.23337

Cover

More Information
Summary:The global economy continues to recover as trade flows, employment, and incomes improve. However, the economic recovery is uneven across countries and business sectors. The economic recovery has also resulted in structural changes, meaning that some sectors, jobs, technologies and behaviors will not return to pre-pandemic trends. Future developments depend on local economic conditions. The economy has the most important aspect in a country where the economy makes a country capable of meeting its needs by utilizing limited resources. This study aims to compare two data mining classification algorithms, namely Naïve Bayes and K-Nearest Neighbor, in analyzing socio-economic data in Indonesia. Based on this problem, the data mining classification method is used in determining the algorithm that is suitable for predicting socio-economic data in Indonesia. The two algorithms used are K-NN and Naive Bayes. After testing the two algorithms using confusion matrix and K-Fold Cross Validation, the results obtained from the two models have an accuracy of Naïve Bayes 98.25% and K-NN 97.78% and the results of K-Fold Cross Validation Naïve Bayes 98% and K-NN 96%. Naïve Bayes is superior to K-NN in this context of socioeconomic data classification in Indonesia, especially in terms of accuracy. Although K-NN shows good consistency, Naïve Bayes provides more accurate results.
ISSN:2086-4884
2477-3255
2477-3255
DOI:10.31849/digitalzone.v15i2.23337