Mean and median
A cricket scoreboard gives one number for "average" — but a newspaper reporting "median income" is deliberately choosing a different number. Both are ways of squeezing a whole list of values down to a single figure that says where the data's centre lies, yet they can disagree, sometimes sharply. The mean adds up every value and shares it out equally; the median simply finds the middle value once the data is lined up in order. For a Class 9 ICSE student, the syllabus asks for exactly this: computing the mean and median of ungrouped data, for both odd and even counts of observations, and understanding why the two do not always match. This article builds both ideas from scratch, using the same two data sets — 9 test scores and 8 temperature readings — worked through fully, and shows why the choice between mean and median actually matters in real reporting.
The mean sums all values and divides by their count, , while the median is the middle value of the data once arranged in order — the mean uses every number's size, the median only its position, which is why the median resists being dragged by one extreme value.
The core idea
Mean. The arithmetic mean of observations is their total divided by how many there are:
where: ("sigma ") is the sum of all the observations, is the total number of observations, and (" bar") is the mean. Every single value pulls on in proportion to its own size — a very large or very small value shifts the mean noticeably.
Median. Arrange the data first, in an ascending or descending array. The median is whichever value (or pair of values) sits exactly in the middle of that ordered list.
- If is odd, there is a single middle position: the median is the value at position .
- If is even, two values sit in the middle, at positions and ; the median is their average:
where: is the number of observations once arranged in order, and the superscript "th" marks a position in that ordered list, not a value. The formula never has to be an integer to be useful — for it gives , telling you the median sits between the 4th and 5th values, which is exactly the even- rule above stated another way. The two "averages" measure different things. The mean is sensitive to magnitude — one wildly different value can drag it a long way. The median is sensitive only to rank — position in the ordered list — so a handful of extreme values barely move it, so long as they stay at the extremes and don't cross the middle. This single difference is the reason both are taught, and the reason a student must be able to tell which one a situation calls for.
The goal is to justify the two median rules above from a single idea — splitting an ordered list into two equal halves — so that a student can derive the correct position for any instead of memorising two separate formulas, and can explain why odd and even counts must be treated differently rather than just recalling that they are.
Step 1. Picture the data already arranged in ascending array, as dots in a row: , where the bracketed subscript means "the value at this rank," not the original list order. The median's job is to sit at the point that has exactly as many values on its left as on its right.
Step 2. Count how many values lie strictly to the left of a candidate middle position : it is . For the median to split the data evenly, the values to the left, , must equal the values to the right, . Setting them equal gives , so , so .
Step 3. Check what happens for odd and even separately. If is odd, is a whole number — a genuine single position exists exactly in the middle, and the median is simply , the value sitting there. For , , a real position: the median is the 5th value.
Step 4. If is even, lands on a half-integer (for , ) — there is no single "4.5th" value, because positions in a list are whole numbers only. The balance condition is instead satisfied by the two neighbouring whole positions and , which together straddle the true balance point, and the median is defined as their average, . This is not an arbitrary convention: it is the unique value that keeps exactly half the data below it and half above. Both rules therefore come from the same balancing idea; only whether happens to be a whole number decides which form to apply.
Worked example
The marks (out of 50) of 9 students in a class test were , and the noon temperatures (in degrees Celsius) recorded over the next 8 days were . Find the mean and median of each set.
Step 1. Sum and mean of the marks: , and , so (to 1 decimal place).
Step 2. Median of the marks: arrange in ascending array, . Since is odd, the median sits at position ; counting along the array, the 5th value is . So the median mark is , close to the mean of — a sign the marks are fairly symmetric, without extreme outliers.
Step 3. Sum and mean of the temperatures: , and , so .
Step 4. Median of the temperatures: arrange in ascending array, . Since is even, the two middle positions are and , whose values are both . So , exactly equal to the mean here, again pointing to evenly spread data.
The marks have mean and median ; the temperatures have mean and median both equal to .
Competitive stretch
Suppose the lowest mark in the 9-student set, , had instead been an error entered as . The new sum is , so the new mean is — a drop of about marks from one bad entry. But the new ordered array is , and the 5th value is still : the median does not move at all, because the outlier stayed at the low end of the order and never crossed the middle. This is exactly why the median is called resistant to outliers, while the mean is not.
Common traps
- Reading the median straight off an unordered list — the data must be arranged in ascending or descending array first; the median of an unsorted list is meaningless.
- Using as if it were the median's value — it gives the position in the array, and for even it is not even a whole number, so the two-middle-values rule must be used instead.
- For even , averaging the positions (treating "4.5" as an instruction to find a 4.5th item) instead of averaging the two actual values at positions and .
- Dividing the sum by the number of distinct values rather than by , the total count of observations, when some values repeat (as the s do in the temperature data).
Ask the tutor: want to check your working on a mean-and-median problem, or see exactly how much the median resists a single extreme value compared with the mean — bring your data set to the AI tutor.
Why do mean and median sometimes give completely different answers for the same data?
Because they measure different things. The mean adds up every value's actual size and divides by the count, so it is pulled toward whichever values are largest or smallest. The median only cares about a value's rank in the ordered list, ignoring how large or small it actually is once its position is fixed. If a data set has one or two extreme values sitting far from the rest — like one very high income in an otherwise ordinary group — the mean shifts a lot toward that extreme while the median barely moves, because ranks near the middle stay the same. When a data set is fairly symmetric, as in both examples above, the two end up close together.
Do I always have to rewrite the data in order before finding the median?
Yes, always. The median is defined by position after sorting, so there is no shortcut that skips the ordering step — picking the "middle" entry of the data exactly as it was given (say, the order marks were recorded in class) gives a meaningless number, since that order has nothing to do with size. Write the array first, ascending or descending (either works, since the middle position is the same either way), then apply the odd or even rule. This is the single most common place marks are lost in this topic.
Is the mode part of this Class 9 topic too?
No. The Class 9 ICSE Statistics chapter covers the arithmetic mean and the median of ungrouped data only. The mode, along with the mean of grouped data (and the direct, short-cut and step-deviation methods used to compute it), belongs to Class X. Keep this topic's scope to raw or arrayed lists of individual values — no frequency tables, no class intervals — and you are working within exactly what the syllabus asks for.