Exercise: Find the Median

Let's figure out how to find the median of a list of numbers.

We'll cover the following

Find the median

The median is the middle of a sorted list of numbers. For example, the median of the dataset 1,1,2, 5,6,6,91, 1, 2, 5, 6, 6, 9 is 55. If there is an even number of data values, then the median is the mean of the two data values in the middle. For example, the median of the dataset 4,2,1,3,5,44, 2, 1, 3, 5, 4 is 33. It is the mean of 33 and 44 or, (3+4)/2=3.5(3 + 4) / 2 = 3.5.

Get hands-on with 1400+ tech skills courses.