1. Home
  2. Data Science
  3. Scikit-learn
  4. Which statistics does RobustScaler use to centre and scale…

Added 30 Nov -0001

Which statistics does RobustScaler use to centre and scale each feature?

  1. The minimum and maximum, so every feature lands exactly in zero to one
  2. The median and the standard deviation, combining robustness with spread
  3. The median and the interquartile range, so outliers have little effect Correct answer
  4. The mean and the standard deviation, so outliers dominate the scaling

Correct answer

C. The median and the interquartile range, so outliers have little effect

21 views

MCQSEXAM

Explanation

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.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Scikit-learn MCQs

Practise all Scikit-learn MCQs

Similar MCQs