Which statistics does RobustScaler use to centre and scale each feature?
Correct answer
C. The median and the interquartile range, so outliers have little effect
21 views
C. The median and the interquartile range, so outliers have little effect
21 views
RobustScaler subtracts the median and divides by the interquartile range, so a handful of extreme values cannot compress the rest of the distribution. StandardScaler uses mean and standard deviation and is pulled by outliers, while MinMaxScaler uses min and max. The IQR version maps the central half of the data to roughly -0.5 to 0.5, which keeps the scale interpretable.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is C? Ask here and get an explanation.