Testing the ratio for outlier removal