WishWasTraining Academy
CDS exam school
โ† home
Chapter A7-4 ยท 4 of 4 in Statistics ยท 19 min read

Median and mode

12 real CDS questions of this kind in the 6 papers from CDS I 2024 to CDS II 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. This chapter gave 12 questions in the 6 papers from CDS I 2024 to CDS II 2026, about 2 in every paper. Three ask for the median of a list of numbers, twice with an unknown โ€‹xโ€‹ in the list. Two ask for the median and the mode of a small frequency table. Five ask for the median or the mode of a grouped table, where a formula must be known by heart; in two of them the median is given and a missing frequency is asked. Two are one-line questions on what kind of average the median is. The two formulas are short, and each question uses only one of them.

What you will be able to do

  • Find the median and the mode of a list of numbers, and find an unknown in the list when the median is given.
  • Find the median and the mode of a frequency table of single values.
  • Use the formulas for the median and the mode of a grouped table, also when the classes have gaps or the table is cumulative.
  • Say how the mean, the median and the mode differ, and which of them an extreme value disturbs.

Before you start you should know: class limits, true limits and cumulative frequency (Chapter A7-1), and the mean (Chapter A7-3).

1. The median of a list

The median is the middle value when the observations are arranged in order. Half of the observations lie on each side of it.

First arrange the numbers in order. Then, for โ€‹nโ€‹ observations:

  • if โ€‹nโ€‹ is odd, the median is the observation at position โ€‹\dfrac{n + 1}{2}โ€‹;
  • if โ€‹nโ€‹ is even, the median is the mean of the two middle observations, at positions โ€‹\dfrac{n}{2}โ€‹ and โ€‹\dfrac{n}{2} + 1โ€‹.

For 3, 5, 8, 9, 12 the median is the 3rd value, 8. For 3, 5, 8, 9 it is โ€‹\frac{5 + 8}{2} = 6.5โ€‹.

The median looks only at the middle. Change the largest value of 2, 3, 4, 5, 6 to 600. The median is still 4, but the mean jumps from 4 to 122.8. So a change in one observation moves the median only if it changes which values stand in the middle.

An unknown in the list. If the list is given in order and the median is given, the middle position gives an equation. Solve it, and then check that the answer keeps the list in order (Example 2).

2. The median of a frequency table

When each value has a frequency, do not write the list out. Use the running total.

โ€‹xโ€‹ 1 2 3 4 5
โ€‹fโ€‹ 4 12 9 7 3
Running total 4 16 25 32 35

There are โ€‹N = 35โ€‹ observations, so the median is the observation at position โ€‹\frac{35 + 1}{2} = 18โ€‹. The running total shows that positions 1 to 4 hold the value 1, positions 5 to 16 hold the value 2, and positions 17 to 25 hold the value 3. The 18th observation is 3. The median is 3.

The rule: the median is the first value whose running total reaches the middle position.

3. The median of a grouped table

In a grouped table the single values are not known, so the median is estimated. Let โ€‹Nโ€‹ be the total frequency. The median class is the first class whose running total reaches โ€‹\dfrac{N}{2}โ€‹. Then

\text{Median} = l + \frac{\dfrac{N}{2} - cf}{f} \times h

Letter Meaning
โ€‹lโ€‹ lower limit of the median class
โ€‹cfโ€‹ running total of the class before the median class
โ€‹fโ€‹ frequency of the median class
โ€‹hโ€‹ class width

Take the table of 50 students whose mean was found in Chapter A7-3.

Marks 0-10 10-20 20-30 30-40 40-50
Number of students 5 8 15 16 6
Running total 5 13 28 44 50

Here โ€‹\frac{N}{2} = 25โ€‹. The running total first reaches 25 in the class 20-30. So โ€‹l = 20โ€‹, โ€‹cf = 13โ€‹, โ€‹f = 15โ€‹, โ€‹h = 10โ€‹, and

\text{Median} = 20 + \frac{25 - 13}{15} \times 10 = 20 + 8 = 28

Why the formula works. Below 20 there are 13 students. To reach the 25th we need 12 more, out of the 15 students in the class 20-30. Taking those 15 to be spread evenly over the class, we must go โ€‹\frac{12}{15}โ€‹ of the way across it: โ€‹\frac{12}{15} \times 10 = 8โ€‹ marks beyond 20.

The histogram of the table with the part to the left of the mark 28 shaded; the shaded part holds 5, 8 and 12 students, 25 in all, and the unshaded part holds 3, 16 and 6 students, also 25

Three cautions:

  • In the grouped formula use โ€‹\dfrac{N}{2}โ€‹, whether โ€‹Nโ€‹ is odd or even. Do not use โ€‹\dfrac{N + 1}{2}โ€‹ here.
  • If the classes have gaps (18-26, 27-35), close the gaps first: 17.5-26.5, 26.5-35.5. Then โ€‹lโ€‹ and โ€‹hโ€‹ come from the true limits (Chapter A7-1, section 3).
  • If the table is cumulative ("Less than 10: 5, Less than 20: 30"), the running totals are already there. Get โ€‹fโ€‹ by subtracting neighbours.

4. The mode

The mode is the value that occurs most often. In 2, 3, 3, 5, 3, 7 the mode is 3.

In a frequency table of single values the mode is the value with the highest frequency. In the table of section 2 the highest frequency is 12, so the mode is 2. Take care: the mode is the value, 2, not the frequency, 12.

A list can have two modes (4, 4, 6, 6, 9 has modes 4 and 6), or none if no value repeats.

5. The mode of a grouped table

The modal class is the class with the highest frequency. Call its frequency โ€‹f_1โ€‹, the frequency of the class before it โ€‹f_0โ€‹, and the frequency of the class after it โ€‹f_2โ€‹. Then

\text{Mode} = l + \frac{f_1 - f_0}{2f_1 - f_0 - f_2} \times h

where โ€‹lโ€‹ is the lower limit of the modal class and โ€‹hโ€‹ is the class width.

In the table of section 3 the highest frequency is 16, in the class 30-40. So โ€‹l = 30โ€‹, โ€‹f_1 = 16โ€‹, โ€‹f_0 = 15โ€‹, โ€‹f_2 = 6โ€‹, and

\text{Mode} = 30 + \frac{16 - 15}{32 - 15 - 6} \times 10 = 30 + \frac{10}{11} \approx 30.9

A way to remember the fraction: the top is the step up to the modal class, โ€‹f_1 - f_0โ€‹. The bottom is the step up plus the step down, โ€‹(f_1 - f_0) + (f_1 - f_2)โ€‹. The mode is pulled towards the neighbour with the larger frequency.

6. Mean, median and mode compared

The three are called measures of central tendency: each gives one value that stands for the whole data.

Mean Median Mode
How it is found by a formula from all the values from the middle position from the highest frequency
Does one extreme value move it? yes, strongly hardly at all no
Name used in books mathematical average positional average the most frequent value

The geometric mean and the harmonic mean are also worked out from all the values, so an extreme value moves them too. Of all the averages, the median is the least affected by extreme values, and the median is the positional average. CDS II 2025 asked both facts as one-line questions (Q91 and Q96).

The picture shows the nine observations 1, 2, 2, 2, 4, 6, 7, 8, 13. The mode is 2, the median (the 5th value) is 4, and the mean is โ€‹\frac{45}{9} = 5โ€‹. The one large value, 13, pulls the mean to the right. It does not move the median or the mode.

A dot plot of the nine observations on a number line, with the mode 2, the median 4 and the mean 5 marked

Two more facts:

  • If the same number is added to every observation, or every observation is multiplied by the same positive number, the median and the mode change in the same way as the mean (Chapter A7-3, section 3).
  • For a table with one peak that is not far from symmetric, a rule of thumb links the three: โ€‹\text{Mode} \approx 3\,\text{Median} - 2\,\text{Mean}โ€‹. For the table of section 3, โ€‹3 \times 28 - 2 \times 27 = 30โ€‹, close to the mode 30.9. It is an approximate rule, not an exact one. Here the mean is the smallest of the three and the mode the largest, because the thin lower classes pull the mean down.

The histogram of the table with frequencies 5, 8, 15, 16 and 6, and three upright lines at the mean 27, the median 28 and the mode 30.9

Worked examples

Example 1. Find the median and the mode of 4, 3, 9, 5, 3, 8, 3. Then find the median of 20, 4, 12, 16, 8, 10.

In order: 3, 3, 3, 4, 5, 8, 9. There are 7 values, so the median is the 4th, which is 4. The mode is 3. The second list in order is 4, 8, 10, 12, 16, 20. There are 6 values, so the median is the mean of the 3rd and 4th: โ€‹\frac{10 + 12}{2} = 11โ€‹.

Example 2. The numbers 5, 8, 11, โ€‹xโ€‹, โ€‹x + 4โ€‹, 20, 23, 30 are in ascending order and their median is 15. Find โ€‹xโ€‹.

There are 8 numbers, so the median is the mean of the 4th and 5th: โ€‹\frac{x + (x + 4)}{2} = 15โ€‹. So โ€‹2x + 4 = 30โ€‹ and โ€‹x = 13โ€‹. Check the order: the list is 5, 8, 11, 13, 17, 20, 23, 30. It is in order, so โ€‹x = 13โ€‹ stands.

Example 3. A table is printed as: Less than 10: 4, Less than 20: 14, Less than 30: 32, Less than 40: 44, Less than 50: 50. Find the median and the mode.

The figures are running totals, and โ€‹N = 50โ€‹. Subtract neighbours: the classes 0-10 to 40-50 have 4, 10, 18, 12 and 6 students.

Median. โ€‹\frac{N}{2} = 25โ€‹. The running total first reaches 25 in the class 20-30, so โ€‹l = 20โ€‹, โ€‹cf = 14โ€‹, โ€‹f = 18โ€‹, โ€‹h = 10โ€‹. Median โ€‹= 20 + \frac{25 - 14}{18} \times 10 = 20 + 6.11 = 26.11โ€‹.

Mode. The highest frequency is 18, in 20-30, so โ€‹f_1 = 18โ€‹, โ€‹f_0 = 10โ€‹, โ€‹f_2 = 12โ€‹. Mode โ€‹= 20 + \frac{18 - 10}{36 - 10 - 12} \times 10 = 20 + \frac{80}{14} \approx 25.71โ€‹.

From the real papers

The first three questions are from CDS I 2024, CDS I 2025 and CDS II 2025 (Series A), and the answers agree with the final official key. The fourth and fifth are from the 2026 papers, where the official key is still provisional; our answers agree with it. Try each for 72 seconds before reading the solution.

CDS I 2024, Q15. Consider the following data : 110, 41, 43, 95, 127, 99, 61, 92, 71, 93, 110, 36. If 93 is replaced by 94, then consider the following statements :

  1. The difference between new median and old median is 1.

  2. The difference between new mean and old mean is less than 0ยท1.

  3. The difference between new mode and old mode is zero.

Which of the statements given above are correct?

(a) 1 and 2 only (b) 2 and 3 only (c) 1 and 3 only (d) 1, 2 and 3

Solution. In order: 36, 41, 43, 61, 71, 92, 93, 95, 99, 110, 110, 127. There are 12 values, so the median is the mean of the 6th and 7th: โ€‹\frac{92 + 93}{2} = 92.5โ€‹. After the change it is โ€‹\frac{92 + 94}{2} = 93โ€‹. The difference is 0.5, so statement 1 is wrong. The total rises by 1, so the mean rises by โ€‹\frac{1}{12} \approx 0.083โ€‹, which is less than 0.1: statement 2 is correct. The mode is 110 before and after: statement 3 is correct. Answer (b).

CDS I 2025, Q87. Consider the following for the next five (05) items that follow : The frequency distribution of 205 observations on X is given below :

X 3 5 6 7
Frequency โ€‹fโ€‹ โ€‹f + 2โ€‹ โ€‹f - 3โ€‹ โ€‹f + 6โ€‹

What is the median of the frequency distribution?

(a) 3 (b) 5 (c) 6 (d) It cannot be determined from the given data

Solution. The frequencies add up to 205, so โ€‹4f + 5 = 205โ€‹ and โ€‹f = 50โ€‹. The frequencies are 50, 52, 47, 56 and the running totals are 50, 102, 149, 205. With 205 observations the median is at position โ€‹\frac{205 + 1}{2} = 103โ€‹. The running total passes 103 at the value 6. (The next item, Q88, asked for the mode: the highest frequency is โ€‹f + 6 = 56โ€‹, so the mode is 7.) Answer (c).

CDS II 2025, Q99. For the following two (02) items: Consider the following distribution having median value 24:

Marks Number of Students
Less than 10 5
Less than 20 30
Less than 30 โ€‹30 + kโ€‹
Less than 40 โ€‹48 + kโ€‹
Less than 50 โ€‹55 + kโ€‹

What is the value of โ€‹kโ€‹?

(a) 20 (b) 22 (c) 25 (d) 30

Solution. Subtract neighbours: the classes 0-10 to 40-50 have 5, 25, โ€‹kโ€‹, 18 and 7 students, and โ€‹N = 55 + kโ€‹. The median 24 lies in the class 20-30, so โ€‹l = 20โ€‹, โ€‹cf = 30โ€‹, โ€‹f = kโ€‹, โ€‹h = 10โ€‹. The formula gives โ€‹20 + \frac{\frac{55 + k}{2} - 30}{k} \times 10 = 24โ€‹. So โ€‹\frac{55 + k}{2} - 30 = 0.4kโ€‹, which gives โ€‹0.1k = 2.5โ€‹ and โ€‹k = 25โ€‹. Check: โ€‹N = 80โ€‹, โ€‹\frac{N}{2} = 40โ€‹, and โ€‹20 + \frac{40 - 30}{25} \times 10 = 24โ€‹. Answer (c).

CDS I 2026, Q40. The numbers 59, 53, 51, 43, 36, โ€‹(8x + 1)โ€‹, โ€‹(x^2 + 1)โ€‹, 13, 12, 9, 7, 3 are written in descending order and their median is 25. What is/are the values of x?

(a) โ€‹-12โ€‹ only (b) 4 only (c) โ€‹-12โ€‹, 4 (d) 12, โ€‹-4โ€‹

Solution. There are 12 numbers, so the median is the mean of the 6th and 7th: โ€‹\frac{(8x + 1) + (x^2 + 1)}{2} = 25โ€‹. So โ€‹x^2 + 8x - 48 = 0โ€‹, that is โ€‹(x + 12)(x - 4) = 0โ€‹, and โ€‹x = 4โ€‹ or โ€‹x = -12โ€‹. Now check the order. For โ€‹x = 4โ€‹ the two terms are 33 and 17, which fit between 36 and 13. For โ€‹x = -12โ€‹ the 6th term is โ€‹-95โ€‹, which breaks the descending order. Only โ€‹x = 4โ€‹ stands. Answer (b). (Provisional key.)

CDS II 2026, Q96. Consider the following grouped data:

Class 0 โ€“ 10 10 โ€“ 20 20 โ€“ 30 30 โ€“ 40 40 โ€“ 50
Frequency 4 8 15 10 3

What is the mode of the above distribution?

(a) 25ยท83 (b) 25ยท43 (c) 25ยท00 (d) 24ยท73

Solution. The highest frequency is 15, so the modal class is 20-30, with โ€‹l = 20โ€‹, โ€‹f_1 = 15โ€‹, โ€‹f_0 = 8โ€‹, โ€‹f_2 = 10โ€‹ and โ€‹h = 10โ€‹. Mode โ€‹= 20 + \frac{15 - 8}{30 - 8 - 10} \times 10 = 20 + \frac{70}{12} = 25.83โ€‹. A quick check without the formula: the class after has a larger frequency than the class before, so the mode lies above the middle of the class, 25. Only option (a) is above 25. Answer (a). (Provisional key.)

A question from CDS II 2024 (no official key was published; the answer is our own working)

CDS II 2024, Q54. Consider the following for the next two (02) items that follow: A frequency distribution is as follows:

Marks 18-26 27-35 36-44 45-53 54-62 63-71 72-80
Number of students 5 7 10 15 8 3 2

What is the median of the distribution?

(a) 44.9 (b) 45.5 (c) 45.9 (d) 46.3

Solution. The classes have gaps (26 to 27), so close them first: 17.5-26.5, 26.5-35.5, 35.5-44.5, 44.5-53.5 and so on. Each has width 9. โ€‹N = 50โ€‹, so โ€‹\frac{N}{2} = 25โ€‹. The running totals are 5, 12, 22, 37, so the median class is 44.5-53.5 with โ€‹l = 44.5โ€‹, โ€‹cf = 22โ€‹, โ€‹f = 15โ€‹, โ€‹h = 9โ€‹. Median โ€‹= 44.5 + \frac{25 - 22}{15} \times 9 = 44.5 + 1.8 = 46.3โ€‹. Answer (d).

In the three questions that needed a formula, most of the work was in reading the table: closing a gap, subtracting neighbours, or finding the right class.

Mistakes that cost marks

  1. Taking the median without arranging the data. Sort first. For an even number of values, take the mean of the two middle ones.
  2. Using the wrong โ€‹cfโ€‹. In the median formula, โ€‹cfโ€‹ is the running total of the class before the median class, not of the median class itself.
  3. Giving the frequency as the mode. The mode is the value (or the point in the modal class) that has the highest frequency. It is not the frequency.
  4. Keeping an answer that breaks the order. When an unknown stands in an ordered list, put each root back and check the order.

Quick check

Do these without help. Answers are at the end.

  1. Find the median and the mode of 7, 2, 9, 2, 5, 11, 2, 8.
  2. Find the median and the mode of the table: โ€‹xโ€‹ = 10, 20, 30, 40 with โ€‹fโ€‹ = 3, 6, 8, 4.
  3. For the median class of a table, โ€‹l = 30โ€‹, โ€‹N = 60โ€‹, โ€‹cf = 22โ€‹, โ€‹f = 20โ€‹ and โ€‹h = 10โ€‹. Find the median.
  4. For the modal class of a table, โ€‹l = 40โ€‹, โ€‹f_1 = 20โ€‹, โ€‹f_0 = 12โ€‹, โ€‹f_2 = 8โ€‹ and โ€‹h = 10โ€‹. Find the mode.
  5. The numbers 6, 9, โ€‹xโ€‹, โ€‹x + 2โ€‹, 20, 24 are in ascending order and their median is 13. Find โ€‹xโ€‹.

Read and watch more, free

What Where Language
Textbook, median and mode of grouped data NCERT Class 10 Mathematics, Chapter 13 Statistics ยท Hindi edition English, Hindi
Textbook, median and mode of a list NCERT Class 7 Ganita Prakash Part II, Chapter 5 Connecting the Dots, section 5.2 ยท Hindi edition English, Hindi
Self-study notes NIOS Secondary Mathematics, Lesson 25 Measures of Central Tendency ยท Hindi edition English, Hindi
Practice with answers NCERT Exemplar Class 10, Unit 13 Statistics ยท Hindi edition English, Hindi
The real papers UPSC previous question papers English, Hindi
Video, a full CDS course R.S SIR: Maths Playlist for CDS 2025 (the statistics lesson, about 55 minutes) Hindi and Hinglish
Video, numbered classes Chandigarh Career Group: CDS advance maths by Sandeep Brar (the five statistics classes) Hinglish
Video, in Hindi Rojgar with Ankit Defence: CDS 01 2025, Maths By Neeraj Baisla Sir (the six statistics lessons) Hindi

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. In order: 2, 2, 2, 5, 7, 8, 9, 11. Median โ€‹= \frac{5 + 7}{2} = 6โ€‹. Mode โ€‹= 2โ€‹.
  2. โ€‹N = 21โ€‹, so the median is the 11th value. The running totals are 3, 9, 17, 21, so the median is 30. The highest frequency is 8, so the mode is 30.
  3. โ€‹30 + \frac{30 - 22}{20} \times 10 = 34โ€‹.
  4. โ€‹40 + \frac{20 - 12}{40 - 12 - 8} \times 10 = 40 + \frac{8}{20} \times 10 = 44โ€‹.
  5. โ€‹\frac{x + (x + 2)}{2} = 13โ€‹, so โ€‹x = 12โ€‹. The list 6, 9, 12, 14, 20, 24 is in order.

Next chapter: How CDS asks: statement questions, data sufficiency and linked items.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    The marks of 50 students are given as: Less than 20: 7, Less than 40: 19, Less than 60: 43, Less than 80: 48, Less than 100: 50. What is the median of the marks?
  2. Question 2 of 3
    Consider the following statements about a grouped frequency table: I. In the formula for the median, โ€‹cfโ€‹ is the cumulative frequency of the median class itself. II. The class with the highest frequency is always the median class. Which of the statements given above is/are correct?
  3. Question 3 of 3
    The marks of 50 students are grouped as follows. Marks: 0-10, 10-20, 20-30, 30-40, 40-50. Number of students: 6, 9, 20, 10, 5 respectively. What is the median of the marks?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the working is WishWas's own, checked against UPSC's answer key where one has been published. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.