Distance-Based Detection and Prediction of Outliers