using knn statistic for sigma