# Median

In statistics, the median is a value that separates the height half values from the lower half values of a data set. In this section, we will learn about what is median and how to find the median.

### Median

The median is the mid-value or average of a data set. The data set must be sorted either in ascending or descending order. In other words, it is a middle value of a sorted data set. We find mean or average by using the median.

### How to Find Median

To determine the median of a data set, the values of the data set must be sorted or arranged in either ascending or descending order. The data may be in two formats:

• Ungrouped Frequency Distribution
• Grouped Frequency Distribution

### Ungrouped Frequency Distribution

In an ungrouped frequency distribution, the data may of two types:

• When an odd number of the frequency distribution is given
• When even number of the frequency distribution is given

When an odd number of the frequency distribution is given

To find the median of odd frequency distribution follow the steps given below. But remember that data must be sorted. After sorting the data, use the following formula: Where n is the total number of items in the data set.

Another quick method to find the median is:

• First, sort the values or items.
• Pick the middle value as the median.

Let's understand the example of an odd frequency distribution.

Example 1: Find the median of 23, 2, 12, 33, 65, 45, and 9.

Solution:

First, we sort the given data set.

2, 9, 12, 23, 33, 45, 65

There is a total of 7 values, so the mid-value (4th) will be median, i.e. 23.

Similarly, we can find the median using the formula: Putting the value of n in the formula, we get: The 4th item or value will be median, i.e. 23.

Hence, the median of the given data set is 23.

When even number of the frequency distribution is given

To find the median of the data set that contains even number of frequency distribution, we must follow the steps given below:

• Sort the values of the data set.
• Find the middle pair and its values.
• Sum up the values and divide it by 2.

The value that we get on dividing is the median of the given data set.

We can also write the above steps in terms of the formula: Where N is the total number of items in the data set.

Let's understand the example of even frequency distribution.

Example 2: Find the median of the following list:

1, 5, 77, 32, 65, 12, 44, 21, 90, 34, 8, 56, 4, 99

Solution:

Step 1: Sort the given list.

1, 4, 5, 8, 12, 21, 32, 34, 44, 56, 65, 77, 90, 99

There are total 14 values in the list.

Step 2: Find the middle pair and its values.

The middle pair terms of the list are 7th and 8th and its values are 32 and 34, respectively.

Step 3: Sum up the values and divide it by 2. A point to be noticed here is that 33 is not in the list. But it indicates that half values in the list are less than 33, and half values are greater than 33.

Let's find the median through the formula which we have learned above.  Hence, the median of the given list is 33.

Example: In the following table, marks and number of students are given. Find the median.

 Marks Obtained (x) 20 25 28 29 33 38 42 43 No. of Students (f) 6 20 24 28 15 4 2 1

Solution:

Marks Obtained (x) No. of Students (f) Cumulative Frequency (c. f)
20 6 6
25 20 6 + 20 = 26
28 24 26 + 24 = 50
29 28 50 + 28 = 78
33 15 78 + 15 = 93
38 4 93 + 4 = 97
42 2 97 + 2 = 99
43 1 99 + 1 = 100 (N)  We see that there is no 50th and 51th item in the list. So, we have calculated the cumulative frequency (c.f). Therefore, the 50th item lies in:

 28 24 26 + 24 = 50

So, we will take 28 as the 50th item, and 29 as the 51th item. Putting the values, we get: ### Grouped Frequency Distribution

In the grouped frequency distribution, the data are sorted and divided into groups called classes. The number of data items belonging to each class is called frequency. We denote it by the letter f. The grouped frequency distribution is also known as the continuous series. We must aware of the following two terms while dealing with grouped data.

• Cumulative Frequency: It is the running total of the frequencies. It is denoted by f. To compute the cumulative frequency (c.f.), create a separate column of cumulative frequency, in the given table and then use the following steps:
• In the cumulative frequency column, write the first frequency as it is.
• To compute the second f., add the previous cumulative frequency to the next frequency.
• Similarly, compute all the cumulative frequency until you reach the last frequency.

To verify the cumulative frequency that you have calculated is correct or not, sum up the frequencies and match it with the last cumulative frequency. The last cumulative frequency and the sum of frequencies must be equal.

Median Class: It is the class where middle position is located. In other words, the class where the half of the cumulative frequency or sum of frequencies lies is called the median class. The median class interval is the corresponding class where the median value lies.

To find the median of ungrouped data, we must use the following formula.

Formula Where:

M is the median.

L1 is the lower limit of the median class.

N is the total number of observations or sum of frequencies.

c.f is the cumulative frequency of the class preceding the median class.

f is the frequency of the median class.

i is the class interval.

Example 3: Find the median of the data given below:

 Marks 5-10 10-15 15-20 20-25 25-30 30-35 35-40 40-45 45-50 No. of Students (f) 7 15 24 31 42 30 26 15 10

Solution:

First, we find the cumulative frequency (c. f).

Marks (C.I.) No. of Students (f) Cumulative Frequency (c. f)
5-10 7 7
10-15 15 7 + 15 = 22
15-20 24 22 + 24 = 46
20-25 31 46 + 31 = 77
25-30 42 77 + 42 = 119
30-35 30 119 + 30 = 149
35-40 26 149 + 26 = 175
40-45 15 175 + 15 = 190
45-50 10 190 + 10 = 200 (N)

Find the value of . Let's see in which class the value 100 lies.

 25-30 42 77 + 42 = 119

The value 100 lies in the above class. It is the median class.

Now we will apply the formula: L1=25 (lower limit of the median class) c.f=77 (cumulative frequency of the class preceding the median class)

f=42 (frequency of the median class)

i=30-25=5 (class interval)

Putting the values in the above formula, we get: ### Feedback   