Question: why median is better than mean?
Answer: Unlike the mean, the median value doesn't depend on all the values in the dataset. Consequently, when some of the values are more extreme, the effect on the median is smaller. ... When you have a skewed distribution, the median is a better measure of central tendency than the mean.