Refactored outlier detection notebook