When the data values are arranged in numerical order, the median is the middle value of the set. If the set of data values is an odd set, then the median is the middle number. When the set is even, then the median is the average of the two middle numbers.