ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude
Mean, median and mode of a data set: odd and even counts
Find the mean, median and mode of a list of values, take the middle pair when the count is even, read a frequency table of single values and see how all three measures shift when every value changes.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Find the mean of a data set by dividing the sum of its values by the number of values.
- Arrange a data set in order and find the median for an odd or an even count of values.
- Identify the mode of a data set as its most frequent value, including a bimodal data set.
- Use a frequency table of single values to find the mean, median and mode.
- Predict how the mean, median and mode change when the same number is added to every value.
Before you start
A data set is a list of values, such as the marks of eight students or the rainfall in mm on each day of a week. The mean and the median each give the centre of the list as a single number. The mode works differently: it is the most frequent value, and some lists have two or more modes. Before working, count the values and call the count n, counting a repeated value every time it appears. All three measures keep the unit of the data, so the median of weights in kg is also in kg. This lesson uses ungrouped data, where each single value is known, either listed one by one or counted in a frequency table; the averages lesson has more practice with totals.
The mean and the median
Mean = sum of the values / n. Median = the middle value once the list is sorted from smallest to largest. When n is odd, the median is the value in position (n + 1) / 2, so with 9 values it is the 5th value. When n is even, no single value sits in the middle. The median is then the mean of the two middle values, in positions n / 2 and n / 2 + 1: with 10 values, add the 5th and 6th values and halve the result. For an even count, the median need not be one of the data values at all.
The mode and frequency tables
The mode is the value that occurs most often. A list may have one mode, two modes (it is then called bimodal) or more, and when every value occurs equally often the mode tells you nothing useful. The mode is always one of the data values. When the data come as a frequency table, such as shoe sizes with the number of pairs sold in each size, the mode is the size with the highest frequency. The mean is the sum of (value x frequency) divided by the total frequency. For the median, keep a running total of the frequencies to see which value holds each middle position.
When every value changes
Adding the same number k to every value raises the mean, the median and the mode by k, and subtracting k lowers all three by k. Multiplying every value by k multiplies all three by k. This saves work: the mean of 102, 105 and 111 is 100 more than the mean of 2, 5 and 11, so it is 100 + 6 = 106. One extreme value, such as a single very high salary, pulls the mean a long way but hardly moves the median. Some questions give two of the measures and ask for the third through the empirical relation mode = 3 x median - 2 x mean. It is only a rough link that suits moderately skewed data, so use it when a question asks for it.
Common mistakes
The most common slip is taking the middle of an unsorted list, so sort first every time. For an even count, do not stop at position n / 2 or round (n + 1) / 2 up to a whole number; average the two middle values instead. Keep a position apart from a value: with 12 values the median lies between the 6th and 7th values, which does not make it 6.5. Write each repeated value as often as it occurs, both in the sorted list and in n. The mode is the value, not the number of times it appears. A zero is a genuine value, so it belongs in the sum and in n.
A five-step routine
1. Count the values and write down n. 2. Sort them from smallest to largest, keeping every repeat. 3. For the mean, add all the values and divide by n. 4. For the median, take position (n + 1) / 2 when n is odd, or average the values in positions n / 2 and n / 2 + 1 when n is even. 5. For the mode, pick the value, or values, with the highest frequency. Before moving on, check that the mean and the median lie between the smallest and largest values and that each mode is one of the listed values.
Worked examples
Eight friends read these numbers of books in a month: 7, 3, 9, 3, 12, 5, 3 and 8. Find the mean, the median and the mode.
- Sorted list: 3, 3, 3, 5, 7, 8, 9, 12, so n = 8.
- Mean = (3 + 3 + 3 + 5 + 7 + 8 + 9 + 12) / 8 = 50 / 8 = 6.25.
- n is even, so the median is the mean of the 4th and 5th values: (5 + 7) / 2 = 6.
- 3 appears three times, more often than any other value, so the mode is 3.
Answer: Mean = 6.25 books, median = 6 books and mode = 3 books.
The values 11, 14, 17, k, 23 and 26 are in ascending order, and their median is 19. Find k.
- There are 6 values, an even count, so the median is the mean of the 3rd and 4th values, which are 17 and k.
- (17 + k) / 2 = 19, so 17 + k = 38.
- k = 38 - 17 = 21. Check the order: 17 < 21 < 23, so the list is still ascending.
Answer: k = 21.
A shop sold 30 pairs of school shoes in a day: size 5: 2 pairs, size 6: 5 pairs, size 7: 8 pairs, size 8: 9 pairs and size 9: 6 pairs. Find the mean, median and mode of the sizes sold.
- Sum of (size x pairs) = 5 x 2 + 6 x 5 + 7 x 8 + 8 x 9 + 9 x 6 = 10 + 30 + 56 + 72 + 54 = 222, so the mean = 222 / 30 = 7.4.
- Running totals of the pairs: 2, 7, 15, 24, 30. With n = 30, the middle positions are the 15th and the 16th.
- The running total reaches 15 at size 7, so the 15th pair is size 7 and the 16th pair is size 8. Median = (7 + 8) / 2 = 7.5.
- Size 8 has the highest frequency, 9 pairs, so the mode is 8.
Answer: Mean = 7.4, median = 7.5 and mode = 8.
Practice checks
- What is the median of 15, 8, 21, 11, 30 and 18?
- For the data 5, 8, 8, 10, 12, 12 and 15, which statement is correct?
- Five numbers have a mean of 24 and a median of 22. If 6 is added to each number, the new mean and median are:
- Marks out of 10 for 20 students: 4 marks: 2 students, 5 marks: 3, 6 marks: 5, 7 marks: 6 and 8 marks: 4. The median mark is:
- For a moderately skewed distribution, the mean is 34 and the median is 31. Using mode = 3 x median - 2 x mean, the estimated mode is:
Sources checked
- SSC CGL Scheme and Syllabus, labelled 2024 — Tier-I Quantitative Aptitude and Tier-II Mathematical Abilities (Statistics (central tendency)); not verified as the full 2026-cycle syllabus
- OpenStax, Introductory Statistics 2e — Section 2.5, the mean, the median as the middle of the ordered data (the two middle values averaged when n is even) and the mode as the most frequent value, including bimodal data; mathematical relationships only