Free Mathematics Class 8 ICSE notes · practise this chapter with an AI quiz

← All study notes

Three Averages, One Data Set, Three Different Answers

Learn the difference between raw and arrayed data, find the range, build tally and grouped frequency tables with class marks, and calculate the mean, median and mode.

Which average should you actually use?

It depends on the question — and the three averages can disagree sharply on the same data.

Take the marks of 2020 students out of 3030:

12,15,18,12,20,15,12,25,18,20,15,12,22,25,15,15,20,12,18,1512, 15, 18, 12, 20, 15, 12, 25, 18, 20, 15, 12, 22, 25, 15, 15, 20, 12, 18, 15

The mean works out to 16.816.8, the median to 1515 and the mode to 1515. The mean is nearly two marks higher than the other two, and the reason is the handful of high scores at 2222 and 2525 pulling it upwards.

So the average mark was 16.8 and the average mark was 15 are both true statements about this class, and they would leave a reader with different impressions. Knowing which average a figure refers to matters as much as being able to calculate it.

This page covers the first part of the ICSE Class 8 Mathematics chapter on data handling, and works with that one data set throughout so the ideas can be compared directly.

What is the difference between raw data and arrayed data?

Raw data is recorded in the order it was collected; arrayed data has been sorted. Sorting changes nothing about the information and everything about how easily you can read it.

The marks above are raw — that is the order the papers came off the pile. Sorted into ascending order they become arrayed:

12,12,12,12,12,15,15,15,15,15,15,18,18,18,20,20,20,22,25,2512, 12, 12, 12, 12, 15, 15, 15, 15, 15, 15, 18, 18, 18, 20, 20, 20, 22, 25, 25

Now several things are visible at a glance: the lowest mark is 1212, the highest is 2525, and 1515 occurs more often than anything else. None of that was apparent in the raw list.

The range is the simplest measure of spread:

range=highest−lowest=25−12=13\text{range} = \text{highest} - \text{lowest} = 25 - 12 = 13

The range is a single number, not a pair. Writing *the range is 1212 to 2525* loses the mark; the range is 1313. And note the range has the same unit as the data — here marks — because it is a difference, not a count.

What the range hides. It uses only two values and ignores every other observation, so two very different classes can share a range. A class with marks 12,12,12,2512, 12, 12, 25 and one with 12,18,20,2512, 18, 20, 25 both have a range of 1313, though the first is clustered at the bottom and the second is spread out. The range is a quick check on spread, not a description of it — which is why the averages, and later the graphs, are needed as well.

Sort before doing anything else. The median cannot be found from raw data, and the mode is easy to miscount in an unsorted list. Arraying the data first is the step that makes the rest of this page routine, and it costs one line.

How do you make a frequency table with tally marks?

Write each distinct value once, then walk the raw list marking a tally against the value you meet.

Tally marks are grouped in fives — four upright strokes with the fifth drawn diagonally across them — because a human eye can count groups of five far more reliably than a row of nineteen strokes.

Worked example — the marks data. Going through the raw list once:

- 1212 — frequency 55
- 1515 — frequency 66
- 1818 — frequency 33
- 2020 — frequency 33
- 2222 — frequency 11
- 2525 — frequency 22

Always total the frequency column.

5+6+3+3+1+2=205 + 6 + 3 + 3 + 1 + 2 = 20

which matches the 2020 students. A frequency total that does not match the number of observations means a value was missed or double-counted, and that check is the entire reason tally marks exist — you are tallying precisely so you can prove nothing was lost.

Walk the raw list, not the sorted one. The point of a tally is that you can build the table directly from the data as recorded, in one pass, without sorting first. Going back and forth hunting for all the 1515s is exactly what causes the miscount.

The table has not lost any information. From the frequency table you could write the whole data set back out — five 1212s, six 1515s and so on. That is worth noticing, because the grouped table in the next section genuinely does lose information, and the difference between the two matters.

When to use an ungrouped table. This works well because the data has only six distinct values. If the 2020 students had scored 2020 different marks, a frequency table with 2020 rows each of frequency 11 would tell you nothing at all — and that is the situation grouping was invented for.

How do you build a grouped frequency distribution?

Choose class intervals of equal width covering all the data, then count how many observations fall in each.

Worked example — the same marks, grouped in fives. Using the exclusive form, where the upper limit belongs to the next class:

- 10−1510 - 15: the five 1212s, so frequency 55
- 15−2015 - 20: six 1515s and three 1818s, so frequency 99
- 20−2520 - 25: three 2020s and one 2222, so frequency 44
- 25−3025 - 30: two 2525s, so frequency 22

total=5+9+4+2=20\text{total} = 5 + 9 + 4 + 2 = 20

In the exclusive form, a value equal to a class boundary goes into the upper class. So the 1515s went into 15−2015 - 20, not 10−1510 - 15, and the 2525s into 25−3025 - 30. Deciding that rule once and applying it consistently is the whole of the difficulty — a value placed in the wrong class shifts two frequencies at once.

The vocabulary, applied to the class 15−2015 - 20:

-
Lower class limit
: 1515
- Upper class limit: 2020
- Class size (or width): 20−15=520 - 15 = 5
- Class mark (the midpoint): 15+202=17.5\dfrac{15 + 20}{2} = 17.5

The class marks of the four classes are 12.512.5, 17.517.5, 22.522.5 and 27.527.5 — each 55 apart, as they must be when the classes have equal width.

Worked example — the inclusive form. The same data can be grouped as 10−1410 - 14, 15−1915 - 19, 20−2420 - 24, 25−2925 - 29, where both limits belong to the class:

- 10−1410 - 14: frequency 55
- 15−1915 - 19: frequency 99
- 20−2420 - 24: frequency 44
- 25−2925 - 29: frequency 22

The frequencies are identical, but the arithmetic of the class details is not:

class size=14−10+1=5,class mark=10+142=12\text{class size} = 14 - 10 + 1 = 5, \qquad \text{class mark} = \frac{10 + 14}{2} = 12

In the inclusive form the class size needs the +1+1, because 10,11,12,13,1410, 11, 12, 13, 14 is five values. Using 14−10=414 - 10 = 4 is the standard error, and it also throws off the class mark.

Choosing the class size. Aim for somewhere between five and ten classes: too few and the shape of the data is flattened away, too many and the table is as unhelpful as the raw list. With a range of 1313, classes of width 55 gave four classes, which is reasonable for 2020 observations.

Grouping loses information, deliberately. Once you know that nine students scored between 1515 and 2020, you can no longer recover that six scored exactly 1515. That is the price paid for seeing the shape of the distribution, and it is why calculations from grouped data use the class mark as a stand-in for every value in the class.

How do you calculate the mean, median and mode?

The mean is the total shared out, the median is the middle value of sorted data, and the mode is the most frequent value.

mean=sum of all observationsnumber of observations\text{mean} = \frac{\text{sum of all observations}}{\text{number of observations}}

Worked example 1 — the mean of the marks data. Using the frequency table rather than adding twenty numbers one at a time:

sum=12(5)+15(6)+18(3)+20(3)+22(1)+25(2)\text{sum} = 12(5) + 15(6) + 18(3) + 20(3) + 22(1) + 25(2)

=60+90+54+60+22+50=336= 60 + 90 + 54 + 60 + 22 + 50 = 336

mean=33620=16.8\text{mean} = \frac{336}{20} = 16.8

Multiplying each value by its frequency is the same as adding them all, and far less error-prone — which is a second reason to build the frequency table first.

Worked example 2 — the median. With 2020 observations the middle falls between the 1010th and 1111th values in the arrayed list. Both are 1515, so

median=15+152=15\text{median} = \frac{15 + 15}{2} = 15

For an even number of observations the median is the average of the two middle values; for an odd number it is the single middle value. With nn observations the median position is n+12\frac{n+1}{2}, so n=20n = 20 gives position 10.510.5 — halfway between the tenth and eleventh, exactly as found.

Worked example 3 — the mode. The highest frequency in the table is 66, against the value 1515, so

mode=15\text{mode} = 15

The mode is the value, not the frequency. Answering 66 is the classic slip — 66 is how often the mode occurs.

Worked example 4 — a smaller set, all three averages. For 3,5,5,7,8,10,113, 5, 5, 7, 8, 10, 11:

mean=497=7,median=7  (the 4th of 7),mode=5\text{mean} = \frac{49}{7} = 7, \qquad \text{median} = 7 \; (\text{the 4th of 7}), \qquad \text{mode} = 5

Worked example 5 — an even count. For 6,8,10,146, 8, 10, 14:

mean=384=9.5,median=8+102=9\text{mean} = \frac{38}{4} = 9.5, \qquad \text{median} = \frac{8 + 10}{2} = 9

There is no mode, since every value appears once. A data set may have no mode, one mode, or several — unlike the mean and median, which always exist and are always unique.

Worked example 6 — a missing observation. The mean of five numbers is 1818, and four of them are 12,15,20,2212, 15, 20, 22. Find the fifth.

If the mean is 1818, the total must be 5×18=905 \times 18 = 90:

fifth=90−(12+15+20+22)=90−69=21\text{fifth} = 90 - (12 + 15 + 20 + 22) = 90 - 69 = 21

Check: 12+15+20+22+215=905=18\frac{12 + 15 + 20 + 22 + 21}{5} = \frac{90}{5} = 18. Correct.

Sort before finding the median. Taking the middle of the raw list gives 1515 here by luck — the 1010th and 1111th raw values happen to be 1515 and 1515 — but that is a coincidence, and on almost any other data set it would be wrong. The median is defined on arrayed data, and the sorting step is not optional.

Why the mean sits above the other two here. The mean uses every value, so the two scores of 2525 and the one of 2222 each pull it upward. The median only cares about position, so an extreme value moves it hardly at all. That is exactly when the median is the more honest summary — and why it is preferred for figures like household income, where a few very large values would otherwise dominate.
Exam tip

Exam tip: sort first, total the frequencies, and state the value not the count

Array the data before anything else. The median is defined on sorted data, and the mode is easy to miscount otherwise.

Range is one number: 25−12=1325 - 12 = 13, not *1212 to 2525*.

Total your frequency column and match it to the number of observations — that is what tally marks are for. Build the table in one pass through the raw list.

In the exclusive form (10−1510 - 15, 15−2015 - 20), a value on a boundary goes into the upper class. In the inclusive form (10−1410 - 14, 15−1915 - 19), class size is 14−10+1=514 - 10 + 1 = 5 — do not forget the +1+1.

Class mark is the midpoint
: 15+202=17.5\frac{15 + 20}{2} = 17.5 in exclusive form, 10+142=12\frac{10 + 14}{2} = 12 in inclusive. Aim for five to ten classes.

Find the mean with ∑fx÷∑f\sum fx \div \sum f: 33620=16.8\frac{336}{20} = 16.8. Far safer than adding twenty numbers.

The median position is n+12\frac{n+1}{2}, so n=20n = 20 gives the average of the 1010th and 1111th values.

The mode is the value, not its frequency — 1515, not 66. And a set may have no mode or several.

For a missing observation, multiply the mean by the count to get the total, then subtract.

And state the units on every answer.
Did you know

Why the middle value is sometimes the fairer summary

Imagine nine people in a small shop, each earning ₹2000020000 a month. The mean monthly earning is ₹2000020000, the median is ₹2000020000, and both describe the room accurately.

Now one more person walks in, earning ₹20000002000000 a month. The mean leaps to

9×20000+200000010=218000010=₹218000\frac{9 \times 20000 + 2000000}{10} = \frac{2180000}{10} = ₹218000

while the median moves to the average of the fifth and sixth values, which are still ₹2000020000 each — so the median stays at ₹2000020000.

The mean now says the average person in the room earns ₹218000218000 a month, which describes nobody in it. Nine of the ten earn far less and one earns far more. The median's ₹2000020000 describes nine of the ten exactly.

Neither figure is wrong. The mean is the correct answer to if the total were shared equally, what would each get? The median answers what is a typical person here? — and when a few values are extreme, those two questions have very different answers.

This is why figures about income, house prices and land holdings are usually quoted as medians, while figures about rainfall or examination marks are usually means. It is also the reason the marks data in this page had a mean of 16.816.8 and a median of 1515: a few high scores, and the two averages parted company. Asking which average a number is is often more useful than asking how it was calculated.
Key takeaways

Data, frequency tables and averages: quick revision

- Raw data is in collection order; arrayed data is sorted. Always array first.
- Range == highest −- lowest =25−12=13= 25 - 12 = 13 — a single number with the data's unit. It uses only two values, so it hides the shape.
- Tally marks in groups of five let you build a frequency table in one pass through the raw data.
- For the marks data: 1212 occurs 55 times, 1515 six times, 1818 three, 2020 three, 2222 once, 2525 twice — totalling 2020. Always total the frequency column.
- An ungrouped table loses no information; a grouped one does, deliberately.
- Exclusive form 10−1510 - 15, 15−2015 - 20, 20−2520 - 25, 25−3025 - 30 gives frequencies 5,9,4,25, 9, 4, 2. A boundary value goes to the upper class.
- For the class 15−2015 - 20: lower limit 1515, upper limit 2020, class size 55, class mark 17.517.5. The class marks are 12.5,17.5,22.5,27.512.5, 17.5, 22.5, 27.5.
- Inclusive form 10−1410 - 14, 15−1915 - 19, 20−2420 - 24, 25−2925 - 29 gives the same frequencies, but class size is 14−10+1=514 - 10 + 1 = 5 and the class mark is 10+142=12\frac{10+14}{2} = 12. The +1+1 matters.
- Aim for
five to ten classes of equal width.
-
Mean
=∑fx∑f= \frac{\sum fx}{\sum f}. Here 33620=16.8\frac{336}{20} = 16.8, from 60+90+54+60+22+5060 + 90 + 54 + 60 + 22 + 50.
- Median position is n+12\frac{n+1}{2}. With n=20n = 20 that is 10.510.5, so average the 1010th and 1111th values: 15+152=15\frac{15+15}{2} = 15.
- Mode is the most frequent value — 1515, not its frequency of 66.
- 3,5,5,7,8,10,113, 5, 5, 7, 8, 10, 11 gives mean 77, median 77, mode 55. And 6,8,10,146, 8, 10, 14 gives mean 9.59.5, median 99, and no mode.
- A set may have no mode or several; the mean and median are always unique.
- Missing observation: mean 1818 over five numbers means a total of 9090, so the fifth is 90−69=2190 - 69 = 21.
- The mean is pulled by extreme values and the median is not — which is why the marks data gave 16.816.8 against 1515, and why incomes are usually reported as medians.

Take the marks data, add one score of 3030, and recalculate all three averages — watching which of them move and by how much is the fastest way to understand what each one measures.

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Data Handling — Part 1Create a free account
← Back to all articles