QUESTION 2 OF 10

Why may median be preferable to mean for skewed data?

Reveal the answer and explore the explanation.

02
EasyCore

Why may median be preferable to mean for skewed data?

Answer
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 ↗

Last 30 min revisionHigh-yield interview Q&As