This article is about supervised classification/regression, but NOT a clustering algorithm. For algorithms for finding nearest neighbors, see Nearest neighbor search. In statistics, the k-nearest neighbors algorithm (k-NN) is a non-parametric supervised learning method first developed by Evelyn Fix and Joseph Hodges in 1951,[1] and later expanded by Thomas Cover.[2] It is used for classification a