Define median.
The median of a set of data is the middlemost number in the set. The median is also referred to as the number that is halfway into the set.
If the total number of observations given is odd, then the formula to calculate the median is:
If the total number of observation is even, then the median formula is:
.