Math Lab
Home/Class IX/Ch 12/Median and Mode

Median and Mode

The mean is just one way to summarise data. Two others , the median and the mode , are equally important. The median tells you the middle value; the mode tells you the most common value. Each has its strengths: the median is robust against outliers, and the mode captures "typicality" even when the mean is misleading.

Definitions

The median of a data set is the middle value when the data is arranged in order (ascending or descending).

  • If the number of observations nn is odd, the median is the value at position n+12\dfrac{n+1}{2}.
  • If nn is even, the median is the average of the values at positions n2\dfrac{n}{2} and n2+1\dfrac{n}{2} + 1.

The mode of a data set is the value (or values) that occurs most frequently.

  • A data set can have one mode (unimodal), two modes (bimodal), or no mode (if all values occur equally often).

Computing the median

Step 1. Arrange the data in ascending order.

Step 2. Count the number of observations nn.

Step 3. If nn is odd, the median is at position n+12\dfrac{n+1}{2}. If nn is even, average the two middle values.

Example. Data: 5,8,12,15,18,22,255, 8, 12, 15, 18, 22, 25. n=7n = 7 (odd). Median at position 44: value 1515.

Example. Data: 5,8,12,15,18,225, 8, 12, 15, 18, 22. n=6n = 6 (even). Middle values at positions 33 and 44: 1212 and 1515. Median: 12+152=13.5\dfrac{12 + 15}{2} = 13.5.

Computing the mode

Inspect the data for the most frequent value.

Example. Data: 3,5,5,7,8,5,93, 5, 5, 7, 8, 5, 9. The value 55 appears three times; all others appear once. Mode: 55.

Example. Data: 1,2,2,3,4,51, 2, 2, 3, 4, 5. Mode: 22 (only value that appears twice).

Example. Data: 1,2,3,4,51, 2, 3, 4, 5. No value repeats. No mode, or every value is its own mode , depending on convention.

For grouped data, the modal class is the class with the highest frequency. The mode itself can be estimated by a formula: Mode=L+f1f02f1f0f2×h,\text{Mode} = L + \frac{f_1 - f_0}{2 f_1 - f_0 - f_2} \times h, where LL is the lower limit of the modal class, f0,f1,f2f_0, f_1, f_2 are the frequencies of the previous, modal, and next classes, and hh is the class width. (This formula appears in Class X; for Class IX, identifying the modal class is enough.)

Comparing mean, median, mode

MeasureAffected by outliers?Best for what kind of data?
MeanYes, veryNumerical data with no extreme outliers
MedianNoNumerical data with outliers (e.g. income)
ModeNoCategorical or discrete data (most common option)

When all three coincide , the data is symmetric and unimodal.

When they differ , the direction of difference tells you about skewness:

  • Mean >> median >> mode: data is skewed right (tail on the right).
  • Mean << median << mode: data is skewed left (tail on the left).

Worked examples

Example 1. Find the median of 4,9,12,15,22,28,334, 9, 12, 15, 22, 28, 33.

Already sorted. n=7n = 7. Median is the 44th value: 1515.

Example 2. Find the median of 4,9,12,15,22,284, 9, 12, 15, 22, 28.

n=6n = 6. Middle values: 1212 and 1515. Median: 13.513.5.

Example 3. Find the mode of 7,5,8,9,5,6,5,8,57, 5, 8, 9, 5, 6, 5, 8, 5.

55 appears 44 times, more than any other value. Mode: 55.

Example 4. Find the median and mode of: 2,4,4,6,8,8,8,102, 4, 4, 6, 8, 8, 8, 10.

Sorted. n=8n = 8. Middle values: 44th and 55th, namely 66 and 88. Median: 77. Mode: 88.

Example 5. In a class of 20 students, marks: 00 (4 students), 55 (8), 1010 (5), 1515 (3). Find the mean, median, and mode.

Mean: 04+58+105+15320=0+40+50+4520=13520=6.75\dfrac{0 \cdot 4 + 5 \cdot 8 + 10 \cdot 5 + 15 \cdot 3}{20} = \dfrac{0 + 40 + 50 + 45}{20} = \dfrac{135}{20} = 6.75.

Median: n=20n = 20 (even). Sort: 4 zeros, 8 fives, 5 tens, 3 fifteens. Positions 1010 and 1111. Position 1010 is a 55 (4 zeros + 6 of the 8 fives = position 10), and position 1111 is also 55. So median is 55.

Mode: most frequent value is 55 (8 times).

Try it yourself

  1. Median of 3,5,7,9,113, 5, 7, 9, 11.
  2. Median of 2,4,6,82, 4, 6, 8.
  3. Mode of 4,5,5,6,7,5,84, 5, 5, 6, 7, 5, 8.
  4. Median and mode of 1,2,2,3,4,5,5,6,71, 2, 2, 3, 4, 5, 5, 6, 7.
  5. Why might the median be preferred over the mean for incomes?
  6. Find the median of 12,18,20,25,3012, 18, 20, 25, 30.
  7. Find the mean, median, and mode of 5,6,6,7,8,9,9,9,105, 6, 6, 7, 8, 9, 9, 9, 10.
  8. State which of mean, median, mode is unaffected by extreme values.
  9. In the data 30,35,30,40,30,35,4530, 35, 30, 40, 30, 35, 45, find all three measures.
  10. A class has 20 students. Marks: 3030 (4), 4040 (6), 5050 (8), 6060 (2). Find the median.

Pitfalls / Insight

  • Sort first. Median calculation requires ordered data.
  • Even nn: average the two middle values.
  • No mode is possible. If all values are distinct, some textbooks say "no mode"; others say "every value is a mode". Be consistent.

Insight. The three measures , mean, median, mode , give three perspectives on "typical". When they agree, the data is well-behaved. When they disagree, the disagreement itself tells you something important about the shape of the distribution.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Median and mode
6 questions · pick the best answer
Q1

Median of 3, 5, 7, 9, 11:

Q2

Median of 4, 6, 8, 10:

Q3

Mode of 1, 2, 2, 3, 4, 2, 5:

Q4

If data is 5, 5, 7, 8, 9, 10, 10, mode is:

Q5

Mean, median, mode of 4, 4, 4 are:

Q6

Which is unaffected by extreme values?