In: Statistics and Probability
Solution:
The median of a set of numbers is the value that is in the middle (In a set with an odd number of values, it's the middle value. In a set with an even number of values, it's the mean of the two middle values).
The mean is the generally understood "average", where the sum of the values is divided by the number of values (sometimes referred to as the count of the values).
We take the following values of the variable X:
The variable X is right-skewed.
The median is = 1.
The mean is = 10000
So, here mean is much larger than the median.
Now we take the following values of the variable Y:
The variable Y is left-skewed.
The median is = -1.
The mean is = -10000
So, here mean is much smaller than the median.