The median is the midpoint of a distribution: the same number of observations are above the median as below it
To calculate the median:- Sort the values into ascending order.
- If you have an odd number of values, the median is the middle value.
- If you have an even number of values, the median is the arithmetic mean (see above) of the two middle values.