Why may median be preferable to mean for skewed data?
Reveal the answer and explore the explanation.
02EasyCoreWhy may median be preferable to mean for skewed data?
Answer
EasyCore
Why may median be preferable to mean for skewed data?
Answer
The median is an order statistic and is less sensitive to extreme observations than the mean.
Practical example
Describe a highly skewed salary distribution.
PythonRelated concept example
import pandas as pd
s = pd.Series([10, 12, 13, 14, 200])
print(s.describe())
print('median:', s.median())A large observation affects the mean much more than the median.
Reference: Further reading ↗