Analysis of Braycurtis, Canberra and Euclidean Distance in KNN Algorithm

Main Article Content

Annisa Fadhillah Pulungan Muhammad Zarlis Saib Suwilo
Corresponding Author:
Annisa Fadhillah Pulungan |

Copyright (C):
Annisa Fadhillah Pulungan, Muhammad Zarlis, Saib Suwilo


Classification is a technique used to build a classification model from a sample of training data. One of the most popular classification techniques is The K-Nearest Neighbor (KNN). The KNN algorithm has important parameter that affect the performance of the KNN Algorithm. The parameter is the value of the K and distance matrix. The distance between two points is determined by the calculation of the distance matrix before classification process by the KNN. The purpose of this study was to analyze and compare performance of the KNN using the distance function. The distance functions are Braycurtis Distance, Canberra Distance and Euclidean Distance based on an accuracy perspective. This study uses the Iris Dataset from the UCI Machine Learning Repository. The evaluation method used id 10-Fold Cross-Validation. The result showed that the Braycurtis distance method had better performance that Canberra Distance and Euclidean Distance methods at K=6, K=7, K=8 ad K=10 with accuracy values of 96 %.

Keyword: Classification, K-Nearest Neighbor


Download data is not yet available.

Article Details

How to Cite
PULUNGAN, Annisa Fadhillah; ZARLIS, Muhammad; SUWILO, Saib. Analysis of Braycurtis, Canberra and Euclidean Distance in KNN Algorithm. SinkrOn, [S.l.], v. 4, n. 1, p. 74-77, sep. 2019. ISSN 2541-2019. Available at: <>. Date accessed: 13 july 2020. doi:
* Abstract viewed = 140 times PDF downloaded = 131 times *


Alamri, S.S.A., Bin-Sama, A.S.A., & Bin-Habtoor, A.S.Y. (2016). Satellite Image Classification by Using Distance Metric. International Journal of Computer Science And Information Security.
Google Scholar

Hu, L.-Y., Huang, M.-W., Ke, S. –W., & Tsai C.-F. (2016). The distance function effect on K-Nearest Neighbor classification for medical datasets. SpringerPlus.
Google Scholar

Kaur, D. 2014. A comparative study of various distance measure for software fault prediction. International Journal of Computer Trends and Technology (IJCTT).
Google Scholar

Moghtadaiee, V. &Dempster, A. 2015. Vector distance measure comparison in indoor location fingerprinting. International Global Navigation Satellite Systems Society (IGNSS Symposium).
Google Scholar

Mulak&Talhar, N. 2015. Analysis of Distance Measurs Using K-Nearest Neighbor Algorithm on KDD Dataset. International Journal of Science and Research (IJSR).
Google Scholar

Okfalisa et al. 2017. Comparative Analysis of K-Nearest Neighbor and Modified K-Nearest Neighbor Algorithm for Data Classification. International Conference on Information Technology, Information Systems and Electrical Engineering (ICITISEE).

Vashistha, R., & Nagar, S.2017. An intelligent system for clustering using hybridization of distance function in learning vector quantization algorithm. 2017 Second International Conference on Electrical, Computer and Communication Technologies (ICECCT), pp. 1-7.
Google Scholar

Viriyavisuthisakul, S.,et al. 2015. A comparison of similarity measures for online social media Thai text classification. 2015 12th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON), pp. 1-6.
Google Scholar

Wurdianarto, S.R., Novianto,S. &Rosyidah, U. 2014. Perbandingan euclidean distance dengan canberra distance pada face recognition. Techni.COM13(1): 31-37.
Google Scholar