Math Lab
Home/Class VIII/Ch 12/Median and its stability

Median and its stability

If five friends report their pocket money , Rs.50,60,70,80,1000\mathrm{Rs.}\,50, 60, 70, 80, 1000 , what's the "typical" amount? The mean comes out to Rs.252\mathrm{Rs.}\,252, which feels misleading. Almost everyone has under Rs.100\mathrm{Rs.}\,100. The median, by contrast, gives Rs.70\mathrm{Rs.}\,70. That single rich friend doesn't drag it.

Concept

The median is the middle value of a list of numbers after sorting them from smallest to largest. It splits the data into two halves with equal count.

Finding the median.

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

Example (odd nn). Sort: 4,7,9,12,154, 7, 9, 12, 15. Middle (3rd) is 99.

Example (even nn). Sort: 4,7,9,12,15,184, 7, 9, 12, 15, 18. Middle two are 99 and 1212. Median =9+122=10.5= \dfrac{9+12}{2} = 10.5.

Mean vs median , when do they differ?

  • For a symmetric, evenly spread dataset, they are nearly equal.
  • For data with one or more extreme values (outliers), the mean is pulled towards the outlier while the median stays put.
  • That makes the median the safer "typical" measure for skewed data like incomes, house prices, or test scores with a few very-low or very-high marks.

Stability of the median. Adding values has a surprisingly mild effect on the median.

  • Adding a value equal to the median doesn't change the median (it just adds another copy to the middle).
  • Adding a value larger than the current median can push the median up by at most one position.
  • Adding a value smaller than the current median can push it down by at most one position.
  • Removing a value works similarly , only the position of the middle shifts, not the values themselves much.

A useful fact. If the median of a list is MM, then adding a value larger than MM and a value smaller than MM together leaves the median unchanged in most cases , the new pair lands one on each side, and the middle stays where it was.

Worked examples

Example 1. Median of 3,9,12,15,6,11,203, 9, 12, 15, 6, 11, 20.

  • Sort: 3,6,9,11,12,15,203, 6, 9, 11, 12, 15, 20.
  • n=7n = 7 (odd). Middle position 44. Median =11= 11.

Example 2. Median of 8,10,19,23,26,34,40,41,41,48,51,55,70,84,91,928, 10, 19, 23, 26, 34, 40, 41, 41, 48, 51, 55, 70, 84, 91, 92.

  • Already sorted; n=16n = 16 (even). Middle two are at positions 8,98, 9: values 4141 and 4141. Median =41= 41.

Example 3. Compare the mean and median of {2,3,4,5,100}\{2, 3, 4, 5, 100\}.

  • Mean =114/5=22.8= 114/5 = 22.8. Median =4= 4.
  • The median better represents the "typical" value here; the mean is yanked up by the outlier 100100.

Example 4. Consider data 12,47,8,73,18,35,39,8,29,25,p12, 47, 8, 73, 18, 35, 39, 8, 29, 25, p. For which values of pp is the median equal to 2929?

  • Without pp, the sorted ten values are 8,8,12,18,25,29,35,39,47,738, 8, 12, 18, 25, 29, 35, 39, 47, 73.
  • With pp, count becomes 1111 (odd) , the median is the 66th value.
  • If p25p \le 25, the 66th value is 2525. If p29p \ge 29, the 66th value is 2929. If 25<p<2925 < p < 29, the 66th is pp.
  • So the median is 2929 when p29p \ge 29. That covers p{29,30,35,40,47,100,}p \in \{29, 30, 35, 40, 47, 100, \dots\} but not p=10p = 10 or 2525.

Try it yourself

  1. Median of 5,9,1,12,75, 9, 1, 12, 7.
  2. Median of 14,22,18,30,25,2814, 22, 18, 30, 25, 28.
  3. The mean of 77 numbers is 2020. Their median is 1414. Are the numbers symmetric? Why or why not?
  4. From the list 4,6,9,12,14,174, 6, 9, 12, 14, 17 remove 44. New median?
  5. To {10,20,30}\{10, 20, 30\}, what value should you add so the median becomes 2525?
  6. True/false: "Including a value less than the median always decreases the median." Justify.
  7. The median of a class's marks is 5050. A topper scoring 9898 joins. Does the median move much? Does the mean?
  8. Find the median of the first 5050 natural numbers.

Activity

Median sticker line. Get 1111 classmates to each write any positive number on a small sticker. Stand in a line ordered by the number. The person in the middle is the median holder. Now invite a 1212th person. The median is now the average of the two people in the centre. Try adding a person with a huge number (10001000): notice the median person barely changes, but if you computed the mean, it would jump dramatically.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Median and its stability
5 questions · pick the best answer
Q1

Median of 4,9,1,12,74, 9, 1, 12, 7

Q2

Median of 4,6,9,12,15,184, 6, 9, 12, 15, 18

Q3

Data: 2,3,4,5,1002, 3, 4, 5, 100. Compare mean and median

Q4

Median of the first 1010 even numbers (2,4,,202, 4, \dots, 20)

Q5

True or false: adding a value larger than the median always increases the median.