What is the effect of applying `RobustScaler` to a dataset containing significant outliers?
Data ScienceMedium
Data Science — Medium
What is the effect of applying `RobustScaler` to a dataset containing significant outliers?
Explanation
RobustScaler uses the median and the interquartile range (IQR) to scale features. Because the median and IQR are not influenced by extreme values, the resulting scaled features remain unaffected by outliers. StandardScaler uses mean and standard deviation, which are heavily skewed by outliers, while Min-Max scaling compresses the majority of data into a tiny range if outliers are present.