The calculation of outlier detection statistics