Finding the Median

In this lesson, you will learn

  • How to find the median by putting the data in order.
  • How to find the median when the number of values is odd.
  • How to find the median when the number of values is even.
  • How to use the median formula to find the middle term.

How to Find the Median

When finding the median of a set of data, first put the data in order and then find the number located right in the middle. The process is illustrated and summarized in the figure below.

Finding the median. Odd number of values: in 8, 11, 15, 18, 24, 30, 31 the middle value 18 is the median. Even number of values: in 11, 15, 18, 24, 30, 31 the two middle values are 18 and 24, and 21 is halfway between them, so the median is 21.

As you can see from the figure above, the median is 18 when the dataset is {8, 11, 15, 18, 24, 30, 31}.

The figure also shows that the median is 21 when the dataset is {11, 15, 18, 24, 30, 31}.

When the number of values is even, it may not be obvious to see the middle value. In this case, you can find the median by taking the average of the two numbers in the middle.

The two values in the middle for the dataset {11, 15, 18, 24, 30, 31} are 18 and 24.

Since (18 + 24) / 2 = 42 / 2 = 21, the median is 21.

What is the median of {3, 9, 4, 1, 7}?

Show answer

4. In order: 1, 3, 4, 7, 9. The number in the middle is 4.

Finding the Median When the Number of Values Is Odd

Example #1: Find the median of the following set: S1 = {15, 14, 11}

Put the numbers in the set in order

11, 14, 15

The median is 14 because it is in the middle.

Example #2: Find the median of the following set: S2 = {5, 3, 7, 2, 4}

Put the numbers in the set in order

2, 3, 4, 5, 7

In the example above, the median is 4 because 4 is in the middle.

Rule

When the number of numbers in the set is an odd number as in the two sets above, your median is right in the middle.

Common mistake

Taking the middle number before putting the set in order. In S2 = {5, 3, 7, 2, 4}, the middle number as written is 7, but the median is 4.

What is the median of {9, 2, 6, 10, 5, 1, 8}?

Show answer

6. In order: 1, 2, 5, 6, 8, 9, 10. There are 7 values, and the 4th one, 6, is in the middle.

Finding the Median When the Number of Values Is Even

Example #3: Find the median of the following set: S3 = {15, 14, 11, 16}

Put S3 in order

11, 14, 15, 16

The two values in the middle are 14 and 15

The average is (14 + 15) / 2 = 29 / 2 = 14.5

So, the median is 14.5

Example #4: Find the median of the following set: S4 = {6, 2, 8, 9, 1, 10, 4, 12}

Remember

Tips when finding the median: when a set contains many numbers, cross out numbers as you put them in order to keep yourself organized.

For example for S4, put 1 in your new ordered list and then cross it out. Then, put 2 and cross it out...

Put S4 in order

1, 2, 4, 6, 8, 9, 10, 12

The two numbers in the middle are 6 and 8

(6 + 8) / 2 is 7, so the median is 7

Rule

When the number of numbers in the set is an even number, you will end up with two numbers in the middle. In this case, just take the average of the numbers.

Worked example: Find the median of {7, 3, 12, 5, 9, 4}.
  1. Put the numbers in order: 3, 4, 5, 7, 9, 12.
  2. There are 6 values, an even number, so there are two numbers in the middle: 5 and 7.
  3. Take their average: (5 + 7) / 2 = 12 / 2 = 6.

The median is 6.

What is the median of {20, 13, 17, 10}?

Show answer

15. In order: 10, 13, 17, 20. The middle numbers are 13 and 17, and (13 + 17) / 2 = 15.

Finding the Median Using the Median Formula

You can also find the median quickly using the median formula below.

Median = value of the n + 12th term

The term is counted in a ranked data set, with n equal to the number of values.

The lesson about median of a set of data will show you how.

A ranked data set has 9 values. Which term is the median?

Show answer

The 5th term. (9 + 1) / 2 = 10 / 2 = 5.

Finding the Median FAQs

What is the median of 4 and 7?

The median of 4 and 7 is the value in the middle of 4 and 7. This value is between 5 and 6 as you can see in the list below.

4   5   6   7

Since 5.5 is the value between 5 and 6, the median of 4 and 7 is 5.5

How do you find the median if there are two numbers?

If there are two numbers, just take the average of the two numbers to find the median.

What is the median of 1 to 10?

From 1 to 10, the dataset is 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.

The median is 5.5 or the value between 5 and 6.

What is a median in statistics?

Definition

The median is the middle value of a set of numbers after the set has been ordered from least to greatest or from greatest to least.

How to find the median?

  1. Suppose you have a list of numbers. First, order the list.
  2. Then, find the value in the middle of the list.
  3. If there is an odd amount of numbers in the list, the median is the number in the middle of the list.
  4. If there is an even amount of numbers in the list, the median is the average of the two numbers in the middle of the list.

Are medians affected by outliers?

Unless you have only two values in the dataset, the size of an outlier has no effect on the median.

For example, suppose the dataset is 4, 6, 10, 200. Since you are using 6 and 10 to find the median, the outlier 200 has no effect.

Suppose the dataset has only two numbers such as 10, 200. Since you are using 10 and 200 to find the median, the outlier 200 will have an effect.

When looking for the average salary, statisticians prefer to find the median salary instead of using the mean. This ensures that those who are making millions do not skew or distort the data.

Summary

  • To find the median, first put the data in order.
  • Odd number of values: the median is the number right in the middle.
  • Even number of values: the median is the average of the two numbers in the middle.
  • The median is the value of the (n + 1) / 2th term of the ranked data set.
  • The size of an outlier does not change the median, unless there are only two values.

Test Yourself: Interactive 10-Question Quiz

Now check what you learned. Every answer is explained, and each time you play you get new questions.

Question 1 of 10Score: 0