The median is the value separating the higher half of the data set, from the lower half.
If the number of terms is odd, then the median is the middle element of the sorted set
If the number of terms is even, then the median is the arithmetic mean of the two middle elements of the sorted set