Overview
Test Series
In statistics, the median is the middle value of a set of numbers when they are arranged in order, from the smallest to the largest. It divides the data into two equal parts. Half of the numbers are smaller than the median, and half are larger. If the total number of values is odd, the median is the exact middle number. For example, in the set {3, 5, 7}, the median is 5. If the total number of values is even, the median is found by taking the average of the two middle numbers. For example, in {2, 4, 6, 8}, the two middle numbers are 4 and 6, so the median is (4 + 6)/2 = 5. The median is very useful because it shows the centre of the data and is not affected by very high or very low numbers. It is often used in exams and practical data analysis to quickly understand the central value of a data set.
The median of a given set of data is the value of the middle term in that data set when those values in the set are arranged in ascending or descending order. The set of data can be given in two forms.
Firstly, you can be given a raw list of values that represent a particular quantity. This is known as the raw data form. Secondly, you can be given a list of values that represent a particular quantity along with their frequency distribution. This is known as the tabulated form.
Maths Notes Free PDFs
| Topic | PDF Link |
|---|---|
| Class 12 Maths Important Topics Free Notes PDF | Download PDF |
| Class 10, 11 Mathematics Study Notes | Download PDF |
| Most Asked Maths Questions in Exams | Download PDF |
| Increasing and Decreasing Function in Maths | Download PDF |


Amongst the three most familiar central tendencies; mean, median and mode we are reading about median here. In simple terms, it is defined as the middle-most observation fetched after arranging the given data. If we consider a simple example: 4,5,7 as the data set, the median for this is 5.
Let us step through a quick example to understand what is median?
If we are given with the below data set:
6, 4, 7, 7, and 9.
The number of values is 5.
First arrange this information in ascending order: 4, 6, 7, 7, 9.
Point out the middle term/value as it is the required median. Therefore, median = 7.
In statistics, the median is the middle value of a group of numbers. To find the median, the numbers must first be arranged in order from smallest to largest. If there is an odd number of values, the median is the one that comes exactly in the middle. If there is an even number of values, the median is found by adding the two middle numbers and dividing the total by two. The median helps us understand the centre of the data. It is very useful because very large or very small values do not change it much. This makes the median easy to use and reliable for simple data.
The formula under this heading can be categorised as ungrouped data and grouped data. Again inside ungrouped data, we would learn about the formula when n is odd and even. So lets us proceed with the formulas now:
To find the median of a given list of observations, you have to first arrange the list in either ascending or descending order (if necessary) and then apply the formula:

The median is similar to a type of average, that we utilised to locate the central value. Ungrouped data means the data which is not grouped or arranged properly. To work with such a group of data the below points are to be followed:
Check out this article on Variance and Standard Deviation.
The formula when the given set of numbers is odd or when the total number of observations tends to be odd is:
Median=\(({n+1\over{2}})^{th}\text{term}\)
An opposite case to the above condition, if the total number of observations tends to be even, then the formula is:
\(\text{Median}=\frac{\left(\left(\frac{n}{2}\right)^{\text{th}}\text{term}+\left(\frac{n}{2}+1\right)^{\text{th}}\text{term}\right)}{2}\)
To compute the median of a grouped or continuous frequency distribution, we follow the below steps:
So far we have learnt the definition, of all types of formulas along with the application. It’s time to learn how we can find the median. For example in the beginning we saw a small example but what if a large number data set is given to us. Finding the median manually for such a case is not possible. So here comes the role of formulas.
For ungrouped data:
We first sort the given data in an ordered manner. Next, as per the observation we use the odd or even number formulas as shown:
When n is even:
\(\text{Median}=\frac{\left(\left(\frac{n}{2}\right)^{\text{th}}\text{term}+\left(\frac{n}{2}+1\right)^{\text{th}}\text{term}\right)}{2}\)
When n is odd.
Median=\(\left(\frac{n+1}{2}\right)^{th}\text{term}\)
For grouped data we use the below formula: .
\(\text{Median}=l+\left(\frac{\frac{n}{2}-c}{f}\right)\times h\)
We will discuss related examples in the solved example heading concerning these formulas for more understanding.
The heights (in centimetres) of some students in a class are given below:
{145, 138, 150, 142, 155, 140, 148, 135}
Find the median of the data.
Solution:
Step 1: Arrange the numbers in ascending order.
Ordered data:
{135, 138, 140, 142, 145, 148, 150, 155}
Step 2: Count the total number of values.
Total number of observations, n = 8
Since n is even, we take the average of the 4th and 5th terms.
Step 3: Find the median.
4th term = 142
5th term = 145
Median = (142 + 145) ÷ 2
Median = 143.5
So, the median height is 143.5 cm.
When data is given in groups, we follow these steps:
Find the median for the following data:
Marks:
0–10, 10–20, 20–30, 30–40, 40–50
Number of students:
4, 10, 18, 6, 2
Solution:
First, find the cumulative frequency.
0–10: 4 → cumulative frequency = 4
10–20: 10 → cumulative frequency = 14
20–30: 18 → cumulative frequency = 32
30–40: 6 → cumulative frequency = 38
40–50: 2 → cumulative frequency = 40
Total number of students, n = 40
n/2 = 40 ÷ 2 = 20
The median class is 20–30 because the value 20 lies in this class.
Lower limit of median class (l) = 20
Cumulative frequency before median class (c) = 14
Frequency of median class (f) = 18
Class size (h) = 10
Median = l + [(n/2 − c) ÷ f] × h
Median = 20 + [(20 − 14) ÷ 18] × 10
Median = 20 + (6 ÷ 18) × 10
Median = 20 + 3.33
Median = 23.33
So, the median marks are 23.33.
Before we explain the properties of median, let’s quickly see an example of mean, median and mode.
Suppose we have this set of numbers:
3, 5, 7, 8, 8
Median – This is the middle value when numbers are arranged in order. Here, the middle number is 7, so the median = 7.
Mean – This is the sum of all numbers divided by the total number of numbers.
Mean = (3 + 5 + 7 + 8 + 8) / 5 = 31 / 5 = 6.2
Mode – This is the number that appears most often. In this case, 8 appears twice, so mode = 8.
In addition to the median, the additional two central tendencies are mean and mode. We define mean as the ratio of the summation of all observations to the total observations. On the other hand, the mode is the value in the given data-set that is repeated for the maximum time. Hence, these are called measures of central tendency.
The median for an ordered series is the digit that lies midway between the range extremes. It is generally not the same as the mean. But for a set of two numbers median=mean. This is due to the reason that the median is not the midpoint of the values but it is the value at the midpoint for a given dataset.
For example, two numbers say 4 and 8:
Mean=(4 + 8)/2 = 6
\(\text{Median}=\frac{\left(\left(\frac{n}{2}\right)^{\text{th}}\text{term}+\left(\frac{n}{2}+1\right)^{\text{th}}\text{term}\right)}{2}\)
\(=\frac{\left(\left(\frac{2}{2}\right)^{\text{th}}\text{term}+\left(\frac{2}{2}+1\right)^{\text{th}}\text{term}\right)}{2}\)
\(=\frac{\left(\left(1\right)^{\text{th}}\text{term}+\left(2\right)^{\text{th}}\text{term}\right)}{2}\)
\(=\frac{\left(4+8\right)}{2}=6\)
The median is the middle value of a set of numbers when they are arranged in order. It has some important properties that help us understand data better. Here are the main properties:
As per the definition, the median is the central value of a provided data set. Whether it be grouped or ungrouped data set in statistics there are formulas for them as discussed in the previous section along with the definitions and related terms. Moving forward let us look at some of the related applications for the same.
Throughout the article, we learnt about the definition, formulas for grouped and ungrouped data and also how we can find the median that is one of the measures of central tendency using the formulas. The only thing we are left with is the solved examples related to the topic which is important for exam purposes. Let us proceed with the same.
Solved Example 1: Find the median of 8, 13, 16, 7, 21, 9, 5, and 11.
Solution: First let us arrange the list in ascending order (or descending order)
5, 7, 8, 9, 11, 13, 16, 21
Total number of terms n=8(even)
Median=\({({n\over2})^{th} term+{({n\over2}+1})^{th} term\over{2}}\)
=\({1\over{2}}[5^{th} term+4^{th} term]={9+11\over{2}}\)
=10
Hence, the median of the given list of numbers is 10.
Solved Example 2: The following list of numbers is arranged in the ascending order of their values:
19, 23, 29, 30, 32 x-10, x-8, x-5, 54, 66, 70, 78.
If their median is 42, find the value of x.
Solution: Number of terms n=12 (even)
Therefore,
Median=\({({n\over2})^{th} term+{({n\over2}+1})^{th} term\over{2}}\)
Median=\({({12\over2})^{th} term+{({12\over2}+1})^{th} term\over{2}}\)
42=\({1\over{2}}[6^{th} term+7^{th} term]\)
84=x-10+x-8
2x=102
x=51
Also, read about covariance here.
In the case of tabulated data, we need to first calculate the cumulative frequency, to find the median of the given data. After calculating cumulative frequency, apply the median formula to find the correct answer from the table accordingly.
Solved Example 3: The weights of 55 children in a class were recorded, to the nearest kg, as follows:
|
Wt. (in nearest kg) |
45 |
49 |
53 |
54 |
56 |
57 |
59 |
|
No. of children |
6 |
5 |
9 |
15 |
12 |
5 |
3 |
Calculate the median weight of the class.
Solution: For tabulated data, we have to first calculate the cumulative frequency (c.f.). The c.f. of the first observation will remain the same. For the second observation, we will add the frequency of the first observation and the frequency of the second observation. The result of this addition will be added to the frequency of the third observation, to make the c.f. for the third observation. Repeat the process for the rest of the observations.
|
Weight (x) |
No. of children (f) |
Cumulative frequency (c.f.) |
|
45 |
6 |
6 |
|
49 |
5 |
6+5=11 |
|
53 |
9 |
11+9=20 |
|
54 |
15 |
20+15=35 |
|
56 |
12 |
35+12=47 |
|
57 |
5 |
47+5=52 |
|
59 |
3 |
52+3=55 |
|
n=55 |
The total number of children (n)=55, which is odd,
Therefore,
Median=\(({n+1\over{2}})^{th} term\)
=\(({55+1\over{2}})^{th} term=28^{th} term\)
Median weight =weight of 28thchild
In the above table, look at the column of cumulative frequency, and observe that the weight of each child from 21st child to 35nd child is 54kg.
Therefore,
The weight of the 28thchild = 54kg
Hence,
The Median weight = 54kg
Learn more about the Geometric Mean here.
Solved Example 4: The heights of 46 children in a class were recorded, to the nearest cm, as follows:
|
Height (in nearest cm) |
148 |
149 |
150 |
152 |
154 |
155 |
158 |
|
No. of children |
9 |
6 |
8 |
11 |
5 |
4 |
3 |
Calculate the median height of the class.
Solution: First calculate the cumulative frequency of the given data as follows:
|
Height (x) |
No. of children (f) |
Cumulative frequency (c.f.) |
|
148 |
9 |
9 |
|
149 |
6 |
9+6=15 |
|
150 |
8 |
15+8=23 |
|
152 |
11 |
23+11=34 |
|
154 |
5 |
34+5=39 |
|
155 |
4 |
39+4=43 |
|
158 |
3 |
43+3=46 |
|
n=46 |
The total number of children (n)=46, which is even,
Therefore,
Median=\({({n\over2})^{th} term+{({n\over2}+1})^{th} term\over{2}}\)
Median=\({({46\over2})^{th} term+{({46\over2}+1})^{th} term\over{2}}\)
=\({1\over{2}}[{23^{rd} term+24^{th} term}]\)
From the cumulative frequency column, we observe that the height of the 23rd child is 150cm and the height of each child after the 23rdchild to 34thchild is 152cm. So the height of 24thchild is 152cm.
Hence,
Median=(150+152)/2=302/2
=151cm
Hence, the median height of the class is 151 cm.
Hope you have understood the concept of Median by now. You can check out other related articles as well. If you have any issues with this topic or any other topic, then you can contact us. You may download the Testbook App, for free, to access study material for your preparation for competitive exams.
|
If you are checking the Median article, also check the related maths articles in the table below: |
|

Download the testbook app and unlock advanced analytics.

Scan this QR code to Get the Testbook App