Loading

Chapter 13

Statistics

One number can stand for a whole table of data: the mean shares the total equally, the median is the middle value, and the mode is the most common one. This chapter first teaches frequency tables, classes and the three averages of a list from the start, then finds the mean of grouped data in three ways, the mode from the modal class, and the median from cumulative frequencies, with a picture showing why each formula works.

  • Frequency tables, classes, class marks and histograms (the Class IX ideas, from the start)
  • The mean, median and mode of a list of numbers
  • The mean of grouped data by the direct, assumed mean and step-deviation methods, and why they agree
  • The modal class and the mode formula, seen as two crossing lines on a histogram
  • Cumulative frequency tables of the less than and more than types
  • The median class and the median formula, seen on the less than curve
  • Finding a missing frequency from a given mean or median
  • Choosing between the mean, the median and the mode, and the empirical relationship
  • Spotting impossible data: a negative frequency, an open class with no class mark
Class 10, MathematicsOpen the original PDF

StartBefore you start: eleven ideas you already know

This chapter is about data: numbers collected about people or things, such as the marks of a class, the wages of workers or the heights of girls. It finds one number that stands for a whole collection: the mean, the median or the mode. The book says you met these ideas for lists of numbers in Class IX. Our Class 9 pages did not have a chapter on statistics, so the section "Data, frequency and the three averages", just after the introduction, teaches every Class IX idea the chapter uses, from the start.

Here are the eleven ideas from arithmetic and algebra that the chapter uses, each with a small example. Read them first; each one comes back many times.

1. The average of a list

To find the average of a few numbers, add them and divide by how many there are. Example: the average of 4, 7 and 10 is (4 + 7 + 10) ÷ 3 = 21 ÷ 3 = 7. If the same number appears twice, it is added twice: the average of 5, 5 and 8 is 18 ÷ 3 = 6.

2. Putting numbers in order

Ascending order means from the smallest to the largest; descending order means from the largest to the smallest. Example: 29, 20, 43, 25 in ascending order is 20, 25, 29, 43.

3. Decimals and rounding

A division may not end: 278 ÷ 7 = 39.714285... To round to two decimal places, look at the third decimal digit. If it is 5 or more, add 1 to the second digit; if it is 4 or less, leave the second digit as it is. So 39.714... becomes 39.71, and 12.475 becomes 12.48.

4. Negative numbers

A number below zero carries a minus sign. Multiplying a negative by a positive gives a negative: 2 × (−30) = −60. Adding a list with both signs: add the positives, add the negatives, then subtract. Example: −60 + (−45) + 0 + 90 + 180 + 270 = 540 − 105 = 435.

5. Distances on a number line

The difference x − a tells how far x is from a, and on which side. Example: with a = 47.5, the number 62.5 gives 62.5 − 47.5 = 15 (15 to the right), and 17.5 gives 17.5 − 47.5 = −30 (30 to the left).

6. A common factor makes numbers smaller

The numbers −30, −15, 0, 15, 30 and 45 are all multiples of 15. Dividing each by 15 gives −2, −1, 0, 1, 2 and 3: smaller numbers, easier to multiply. Multiplying back by 15 undoes it.

7. Equations in one unknown

To solve 752 + 20f = 18(44 + f), open the bracket and collect the f terms on one side: 752 + 20f = 792 + 18f, so 20f − 18f = 792 − 752, that is, 2f = 40 and f = 20. Check: 752 + 400 = 1152 and 18 × 64 = 1152.

8. The middle of two numbers

The number exactly halfway between p and q is (p + q) ÷ 2. Example: halfway between 10 and 25 is (10 + 25) ÷ 2 = 35 ÷ 2 = 17.5. Check: 17.5 is 7.5 above 10 and 7.5 below 25.

9. Sharing a length evenly

If 7 children stand evenly spaced along a 10 m path, each one has 10 ÷ 7 m of path. The first 4.5 of them cover 4.5 × 10 ÷ 7 = 45 ÷ 7 ≈ 6.43 m. This idea gives the median formula later.

10. Percentages

A percentage is a number out of 100. Half of a group is 50% of it. Example: if 26 of 53 students scored below 66.4, that is 26 ÷ 53 × 100 ≈ 49%, about half.

11. Reading a table

A table has rows (across) and columns (down). Each column has a heading that says what its numbers mean. A Total row at the bottom adds a column. Before using a table, read every heading and check the units (marks, rupees, cm, years).

By the end of this chapter you will be able to

  • arrange data in a frequency table, group it into classes, and find class marks;
  • find the mean of grouped data by the direct method, the assumed mean method and the step-deviation method, and explain why the three agree;
  • find the modal class and the mode of grouped data, and see the mode formula in a picture;
  • make cumulative frequency tables of the less than and the more than types, find the median class and the median;
  • find a missing frequency when the mean or the median is given;
  • choose between the mean, the median and the mode for a real question, and interpret each one in words.

13.1Introduction: one number for many

The book begins by recalling Class IX. There, it says, you studied how to arrange data in ungrouped and grouped frequency distributions, and how to draw bar graphs, histograms (including those of varying widths) and frequency polygons. You also studied three numbers that describe ungrouped data: the mean, the median and the mode. (Our Class 9 pages did not teach them; the next section, "Data, frequency and the three averages", teaches every one of these words with examples.)

In this chapter, the book says, we extend the mean, the median and the mode from ungrouped data to grouped data. We also meet cumulative frequency: a running total of frequencies. The book's introduction also names ogives, the curves drawn from cumulative frequencies. This edition has no section and no exercise on drawing ogives, so we show one only as a picture, to explain the median formula.

Measure of central tendency

Why we need it. A list of 400 lamp lifetimes or 225 component lifetimes is too long to read. We want one number that tells us what is typical.

The idea in plain words. Most data crowd around some middle value. A measure of central tendency is a single number that sits in that crowded middle and stands for the whole collection. The word "central" means near the centre; "tendency" means what the data tend to do.

The three measures. The mean is the ordinary average: the total shared out equally. The median is the middle value when the data are in order. The mode is the value that occurs most often.

Example. The marks 4, 6, 6, 7, 12 have mean (4 + 6 + 6 + 7 + 12) ÷ 5 = 35 ÷ 5 = 7, median 6 (the third of five in order) and mode 6 (it occurs twice).

Worked example 1

Five friends in Pune get weekly pocket money of ₹20, ₹25, ₹25, ₹30 and ₹400. Find the mean, the median and the mode. Which one describes a typical friend best?

What we know: The five amounts: 20, 25, 25, 30 and 400 rupees. They are already in ascending order.

What we need: The three measures, then a judgement about which one is typical.

The plan: Mean: add and divide by 5. Median: the middle (third) value in order. Mode: the value that occurs most often.

  1. Total = 20 + 25 + 25 + 30 + 400 = 500, so the mean = 500 ÷ 5 = ₹100.
  2. In order, the third of the five values is 25, so the median = ₹25.
  3. The value 25 occurs twice and every other value once, so the mode = ₹25.
  4. Four of the five friends get between ₹20 and ₹30. Only one gets ₹400, and that one value pulls the mean up to ₹100.

Mean ₹100, median ₹25, mode ₹25. The median (or the mode) describes a typical friend; the mean is pulled up by the one large amount.

Check: No friend except one gets anywhere near ₹100, which shows the mean is not typical here. The median has two friends below it and two above it, as a middle value should.

This is exactly the book's point near the end of the chapter: extreme values affect the mean, so for a "typical" value the median is often better.

Worked example 2

The marks of 30 students are to be described. Why does the book group them into classes such as 10 - 25 and 25 - 40, and what does grouping cost?

The plan: Compare a list of 30 numbers with a table of 6 classes.

  1. A list of 30 (or 3,000) separate marks is hard to read: the pattern is hidden in the detail.
  2. A grouped table, such as 2 students in 10 - 25, 3 in 25 - 40, 7 in 40 - 55, and so on, shows at once where the marks crowd.
  3. But once marks are grouped, we no longer know the exact marks inside a class. We know only that 7 students scored somewhere from 40 up to 55.
  4. So a mean found from a grouped table is an estimate. The book shows this with the same 30 students: the exact mean is 59.3, while the grouped table gives 62.

Grouping makes large data easy to read and to work with, but it loses the exact values, so the measures we compute become close estimates.

Check: In real surveys (a census, a school board's results), the data are far too many to list, so grouped tables are the normal way to report them.

When you are stuck: the three averages

Ask what the question wants: the total shared equally (mean), the middle in order (median), or the most common value (mode).

Try a tiny list first, such as 4, 6, 6, 7, 12, and find all three; then do the same steps on the real data.

Look for one extreme value. If one value is far from the rest, expect the mean to move towards it while the median and mode stay put.

Where large data sets come from

India's Census counts every person once in ten years; the National Sample Survey studies spending, jobs and health; school boards publish the marks of lakhs of students every year. The book's Example 2 uses the Seventh All India School Education Survey conducted by NCERT.

Such data are far too large to list one by one. They are published as grouped frequency tables, and the mean, median and mode of this chapter are how we summarise them.

Worked example 3

Which measure answers each question best: (a) the average rainfall of a district over 30 years; (b) the most common shoe size sold in a shop; (c) the typical house price in a city where a few houses are worth crores?

The plan: Ask what the question wants: a share of the total (mean), the most common value (mode), or a typical middle value that ignores extremes (median).

  1. (a) Total rainfall shared equally over the years: the mean.
  2. (b) The size bought most often: the mode.
  3. (c) A few very costly houses would pull the mean up, so the middle price, the median, is more typical.

(a) mean, (b) mode, (c) median.

Check: The section "Which measure should we use?" near the end of 13.4 gives the same three reasons.

Your turn

1. Find the mean, the median and the mode of 3, 5, 5, 6, 11.Tap to reveal
  1. Mean = (3 + 5 + 5 + 6 + 11) ÷ 5 = 30 ÷ 5 = 6.
  2. The list is in order; the third value is 5, so the median is 5.
  3. The value 5 occurs twice, more than any other, so the mode is 5.

Mean 6, median 5, mode 5.

2. In a list of the daily wages of 10 workers, one manager's wage of ₹5,000 is added. Which measure changes the most: the mean or the median?Tap to reveal
  1. The mean adds the ₹5,000 into the total, so it jumps up.
  2. The median moves at most from one middle value to the next, because only the order matters to it.

The mean changes the most; the median hardly moves.

3. Find the mean, the median and the mode of 7, 9, 9, 10, 15.Tap to reveal
  1. Mean = (7 + 9 + 9 + 10 + 15) ÷ 5 = 50 ÷ 5 = 10.
  2. Median: the 3rd of 5 values in order, 9.
  3. Mode: 9 occurs twice, so the mode is 9.

Mean 10, median 9, mode 9.

4. In a class test, 4 students scored 10, 5 scored 15 and 1 scored 50. Which is larger, the mean or the median?Tap to reveal
  1. Mean = (40 + 75 + 50) ÷ 10 = 165 ÷ 10 = 16.5.
  2. In order, the 5th and 6th values are both 15, so the median = 15.

The mean (16.5) is larger than the median (15): the single score of 50 pulls the mean up.

In one line

A measure of central tendency is one number that stands for the whole data: the mean shares the total equally, the median is the middle in order, and the mode is the most common value.

BasicsData, frequency and the three averages (the Class IX ideas)

The book builds on Class IX statistics: frequency tables, grouped data, histograms, and the mean, median and mode of a list. Our Class 9 pages did not teach these, so this section teaches each one from the start, with examples. If you already know them, read the "In one line" boxes and the worked examples as a quick refresher.

Data and frequency

Data, observations and raw data

Why we need it. A teacher wants to know how her class did in a test. She has to begin with the marks themselves.

The idea in plain words. Data are facts, usually numbers, collected to answer a question. Each single value is an observation. Data written down just as they were collected, in no order, are called raw data.

Example. The marks (out of 10) of ten students, as the teacher read them out: 6, 8, 4, 8, 5, 8, 6, 9, 7, 8. There are ten observations; this list is raw data.

Frequency and a frequency table

The idea in plain words. The frequency of a value is the number of times it occurs. A frequency table (also called a frequency distribution) lists each value once, with its frequency beside it.

How to make one. Write the possible values in order. Go through the raw data once, putting a stroke (a tally mark) against each value as you meet it. Every fifth stroke is drawn across the four before it, so the strokes are easy to count in fives. Then count the strokes.

The total. The frequencies add up to the number of observations, written n. This is a quick check that no observation was missed or counted twice.

Marks (xᵢ)456789Total
Number of students (fᵢ)11214110

A table like this, where each single value has its own frequency, is an ungrouped frequency distribution.

The sigma sign

Statistics adds long lists all the time, so it uses a short way to write a sum. We name the values x₁, x₂, x₃ and so on (read "x one, x two, x three"), and their frequencies f₁, f₂, f₃. A general value is xᵢ (read "x i"): the i-th value, where i can be 1, 2, 3 and so on.

The sigma sign

The Greek capital letter Σ (sigma, the Greek S, for sum) means "add up all the terms of this kind". Read Σfᵢ as "sigma f i" or "the sum of the frequencies".

Σfᵢxᵢ means f₁x₁ + f₂x₂ + ... + fₙxₙ: multiply each value by its frequency, then add the products. Read it as "sigma f i x i".

Example: for the table above, Σfᵢ = 1 + 1 + 2 + 1 + 4 + 1 = 10 and Σfᵢxᵢ = 4 + 5 + 12 + 7 + 32 + 9 = 69.

The mean, the median and the mode of a list

The mean

The idea in plain words. The mean (the ordinary average) is the total of all the observations shared out equally among them. It is written x̄, read "x bar".

The exact statement. For n observations x₁, x₂, ..., xₙ: x̄ = (x₁ + x₂ + ... + xₙ) ÷ n = Σxᵢ ÷ n.

With frequencies. If the value xᵢ occurs fᵢ times, it adds fᵢ × xᵢ to the total, and the number of observations is Σfᵢ. So x̄ = Σfᵢxᵢ ÷ Σfᵢ. This is the formula the book recalls at the start of 13.2.

The mean of data with frequencies

Read: x bar equals sigma f i x i over sigma f i. The top is the total of all the observations; the bottom is how many there are.

Worked example 4

Find the mean of the ten marks 6, 8, 4, 8, 5, 8, 6, 9, 7, 8, first from the list and then from the frequency table.

What we know: Ten observations; the frequency table above: 4 (1), 5 (1), 6 (2), 7 (1), 8 (4), 9 (1).

What we need: x̄, two ways, to see that they agree.

The plan: From the list: add all ten and divide by 10. From the table: Σfᵢxᵢ ÷ Σfᵢ.

  1. From the list: 6 + 8 + 4 + 8 + 5 + 8 + 6 + 9 + 7 + 8 = 69, and 69 ÷ 10 = 6.9.
  2. From the table: Σfᵢxᵢ = 1 × 4 + 1 × 5 + 2 × 6 + 1 × 7 + 4 × 8 + 1 × 9 = 4 + 5 + 12 + 7 + 32 + 9 = 69.
  3. Σfᵢ = 10, so x̄ = 69 ÷ 10 = 6.9.

The mean mark is 6.9.

Check: Both ways give the same total, 69, because 4 × 8 is just 8 + 8 + 8 + 8 written short. The mean 6.9 lies between the smallest mark 4 and the largest 9, as a mean must.

The median

The idea in plain words. The median is the middle value when the observations are arranged in order. Half of the observations are at or below it, and half at or above it.

The exact statement. Arrange the n observations in ascending order. If n is odd, the median is the ((n + 1) ÷ 2)-th observation. If n is even, there are two middle observations, the (n ÷ 2)-th and the (n ÷ 2 + 1)-th, and the median is their average.

Examples. For 3, 7, 9, 12, 20 (n = 5, odd), the median is the 3rd value, 9. For 3, 7, 9, 12 (n = 4, even), it is the average of the 2nd and 3rd values: (7 + 9) ÷ 2 = 8.

Worked example 5

Find the median of the ten marks 6, 8, 4, 8, 5, 8, 6, 9, 7, 8.

What we know: n = 10, which is even.

The plan: Put the marks in ascending order and average the 5th and 6th values (n ÷ 2 = 5 and n ÷ 2 + 1 = 6).

  1. In ascending order: 4, 5, 6, 6, 7, 8, 8, 8, 8, 9.
  2. The 5th value is 7 and the 6th value is 8.
  3. Median = (7 + 8) ÷ 2 = 15 ÷ 2 = 7.5.

The median mark is 7.5.

Check: Five marks (4, 5, 6, 6, 7) are below 7.5 and five (8, 8, 8, 8, 9) are above it: exactly half on each side.

A path that fails: taking the middle of the raw list without sorting it. The raw list's 5th and 6th values are 5 and 8, which would give 6.5, a wrong answer. Always sort first.

The mode

The idea in plain words. The mode is the value that occurs most often: the value with the highest frequency.

More than one. If two or more values share the highest frequency, the data have more than one mode and are called multimodal. Example: in 2, 3, 3, 5, 5, 7, both 3 and 5 occur twice, so both are modes.

Example. In the ten marks, 8 occurs 4 times, more than any other mark, so the mode is 8.

Worked example 6

The shoe sizes sold by a shop in Jaipur on one day were 6, 7, 8, 7, 9, 7, 6, 8, 7, 10, 7, 8. Find the mode. Why is the mode the useful average for the shopkeeper?

What we know: Twelve observations.

The plan: Count how often each size occurs and take the size with the highest count.

  1. Size 6: 2 pairs; size 7: 5 pairs; size 8: 3 pairs; size 9: 1 pair; size 10: 1 pair. Total 2 + 5 + 3 + 1 + 1 = 12, as it should be.
  2. The highest frequency is 5, for size 7.

The mode is size 7. The shopkeeper should keep the most stock of size 7.

Check: A mean shoe size, here 90 ÷ 12 = 7.5, is not a size anyone wears; the mode is always one of the actual values, which is what a shopkeeper needs.

Grouped data

When there are many observations spread over a wide range, a table with one row for every single value would be very long. So we group the values into ranges called classes.

Class intervals, limits, size and class mark

Class interval. A range of values, written like 10 - 25 (read "10 to 25"). We use the short dash of the book; it is not a minus sign.

Class limits. In 10 - 25, the lower class limit is 10 and the upper class limit is 25.

Class size. The class size (or width) is upper limit − lower limit: 25 − 10 = 15. It is usually written h.

Class mark. The class mark (or mid-point) of a class is (upper limit + lower limit) ÷ 2. For 10 - 25 it is (25 + 10) ÷ 2 = 17.5. It stands for the whole class in the mean.

The boundary rule. A value equal to an upper limit is counted in the next class. So 40 marks go into 40 - 55, not into 25 - 40. In effect, 25 - 40 means "25 or more, but less than 40".

Class mark

Read: the class mark is the sum of the two limits, divided by 2: the number halfway between them.

A table that gives the frequency of each class is a grouped frequency distribution. The worked example below builds one from raw data.

Worked example 7

These are the ages (in years) of 20 people in a housing society's yoga class in Chennai: 20, 34, 40, 25, 31, 47, 52, 38, 40, 29, 33, 45, 30, 50, 36, 41, 28, 39, 44, 35. Group them into the classes 20 - 30, 30 - 40, 40 - 50 and 50 - 60, and find each class mark.

What we know: 20 observations; four classes of size 10.

The plan: Go through the list once, put each age into its class (an age equal to an upper limit goes to the next class), then count.

  1. 20 - 30 (20 or more, below 30): 20, 25, 29, 28. Frequency 4.
  2. 30 - 40: 34, 31, 38, 33, 30, 36, 39, 35. Frequency 8. The age 30 goes here, not in 20 - 30, by the boundary rule.
  3. 40 - 50: 40, 47, 40, 45, 41, 44. Frequency 6. Both 40s go here.
  4. 50 - 60: 52, 50. Frequency 2.
  5. Total: 4 + 8 + 6 + 2 = 20, so every person is counted exactly once.
  6. Class marks: (20 + 30) ÷ 2 = 25, then 35, 45 and 55.

The grouped table is 20 - 30: 4, 30 - 40: 8, 40 - 50: 6, 50 - 60: 2, with class marks 25, 35, 45 and 55.

Check: The class marks go up by 10, the class size, as they should for equal classes.

Age (in years)20 - 3030 - 4040 - 5050 - 60
Number of people4862
Inclusive classes and continuous classes

Two ways to write classes. Classes like 10 - 20, 20 - 30 touch each other: one ends where the next begins. They are continuous (also called the exclusive form). Classes like 50 - 52, 53 - 55, 56 - 58 leave gaps (nothing between 52 and 53). They are called inclusive, because both limits belong to the class; they suit whole numbers such as counts.

Why it matters. The mean only needs class marks, which are the same either way. But the formulas for the mode and the median need continuous classes (the book's Note to the Reader says so).

How to convert. Find the gap between one upper limit and the next lower limit (53 − 52 = 1). Take half of it (0.5). Subtract it from every lower limit and add it to every upper limit: 50 - 52 becomes 49.5 - 52.5, and 53 - 55 becomes 52.5 - 55.5.

What does not change. The class marks: (50 + 52) ÷ 2 = 51 and (49.5 + 52.5) ÷ 2 = 51. The class size becomes the distance from one lower limit to the next: 3.

Worked example 8

The lengths of leaves, measured to the nearest millimetre, are grouped as 118 - 126, 127 - 135, 136 - 144. Make the classes continuous, and give each class size and class mark.

What we know: Inclusive classes; the gap between 126 and 127 is 1 mm.

The plan: Half the gap is 0.5: subtract 0.5 from each lower limit and add 0.5 to each upper limit.

  1. 118 - 126 becomes 117.5 - 126.5; 127 - 135 becomes 126.5 - 135.5; 136 - 144 becomes 135.5 - 144.5.
  2. Class size: 126.5 − 117.5 = 9 mm for each class.
  3. Class marks: (118 + 126) ÷ 2 = 122, (127 + 135) ÷ 2 = 131 and (136 + 144) ÷ 2 = 140.

The continuous classes are 117.5 - 126.5, 126.5 - 135.5, 135.5 - 144.5, each of size 9 mm, with class marks 122, 131 and 140.

Check: A leaf measured as 126 mm was really between 125.5 and 126.5 mm long, so the class 117.5 - 126.5 holds it. These are the classes of Exercise 13.3 Q4's hint.

Pictures of grouped data

A histogram draws a grouped frequency distribution as bars standing side by side, with no gaps. Each bar sits on its class interval, and its height shows the class's frequency (when all classes have the same size). Here is Table 13.2 of the book, the marks of 30 students.

1025405570851002468Marks (class intervals)Number of students
Table 13.2 as a histogram. The dots sit at the class marks; the line through them is the frequency polygon.

The dots in the figure stand at the class marks, at the height of each frequency. Joining them gives a frequency polygon. It is closed at the class marks of the empty classes on each side (2.5 and 107.5), so that it starts and ends on the axis.

A bar graph looks similar, but its bars stand apart, because each bar is a separate category (cricket, football, hockey), not a class of numbers that runs into the next one.

When the classes have different sizes, heights alone would mislead: a class twice as wide would look too important. So the heights are scaled: each height is the frequency × (the chosen width) ÷ (the class's own width). Then the area of each bar shows its frequency. The figure below does this for the book's Example 3, with the chosen width 40.

20601001502503504504812Number of wicketsHeight: bowlers per 40 wickets
Example 3's data with unequal widths: each height is the frequency × 40 ÷ the class width, so areas, not heights, show the numbers.

Worked example 9

In the histogram of unequal widths above, the class 150 - 250 has 12 bowlers. What height does its bar get, and why not 12?

What we know: Chosen width 40 wickets; the class 150 - 250 is 100 wickets wide; frequency 12.

The plan: Height = frequency × chosen width ÷ class width.

  1. Height = 12 × 40 ÷ 100 = 480 ÷ 100 = 4.8.
  2. A bar of height 12 on a base 100 wide would have area 1200, while the class 100 - 150 (16 bowlers, base 50) would have area 16 × 50 = 800 at height 16. The class with fewer bowlers would get the bigger bar, which is misleading.

The bar gets height 4.8, so that its area (4.8 × 100 = 480) is in step with the others (16 bowlers on a base of 50 get height 12.8 and area 640).

Check: Area ÷ frequency is 40 for every bar: 480 ÷ 12 = 40 and 640 ÷ 16 = 40. Equal areas per bowler is exactly what a fair picture needs.

Common mistakes with tables and classes

Counting a boundary value twice (or not at all). A mark of 40 goes in 40 - 55 only.

Forgetting to sort before finding a median.

Using the frequency as a value. In the table 8 (4 students), 8 is the mark and 4 is how many students got it.

Mixing up the class mark and the class size. For 10 - 25 the mark is 17.5 (the middle) and the size is 15 (the width).

Drawing unequal classes with plain heights in a histogram. Scale the heights so that areas show the frequencies.

When you are stuck: tables, classes and the three averages of a list

Check the total first. The frequencies must add up to n. If they do not, a value was missed or counted twice.

Write out one class in words: "30 - 40 means 30 or more, but less than 40". Then decide where a boundary value goes.

For a median, list the positions: with n = 10 the middle positions are the 5th and 6th; with n = 11 it is the 6th alone.

For gaps between classes, halve the gap and move every limit out by that half.

Worked example 10

A batsman's scores in 12 innings were 45, 12, 0, 45, 78, 33, 45, 12, 101, 60, 33, 45. Find the mean, the median and the mode of his scores.

What we know: n = 12 observations.

The plan: Mean: total ÷ 12. Median: sort; n is even, so average the 6th and 7th values. Mode: the most frequent score.

  1. Total = 45 + 12 + 0 + 45 + 78 + 33 + 45 + 12 + 101 + 60 + 33 + 45 = 509, so the mean = 509 ÷ 12 ≈ 42.42.
  2. In order: 0, 12, 12, 33, 33, 45, 45, 45, 45, 60, 78, 101. The 6th and 7th values are 45 and 45, so the median = 45.
  3. 45 occurs four times, more than any other score, so the mode = 45.

Mean ≈ 42.42, median 45, mode 45.

Check: The single low score 0 and the two 12s pull the mean below the median; the century (101) pulls the other way, but less. Six scores are 45 or more, six are at or below 45, as the median says.

Worked example 11

The marks of 30 students run from 10 (the lowest) to 95 (the highest). How might we choose classes for a grouped table?

What we know: The range (highest minus lowest) is 95 − 10 = 85.

The plan: Choose a convenient number of classes, usually 5 to 10, and a class size that covers the range with round limits.

  1. With 6 classes, each must be about 85 ÷ 6 ≈ 14.2 wide; round up to 15.
  2. Start at the lowest value, 10: the classes are 10 - 25, 25 - 40, 40 - 55, 55 - 70, 70 - 85, 85 - 100.
  3. The last class reaches 100, which covers the highest mark 95.

Six classes of size 15, from 10 - 25 to 85 - 100: exactly the book's Table 13.2.

Check: Too few classes hide the pattern (everything in two or three bars); too many leave most classes nearly empty. Five to ten classes is the usual middle way.

Worked example 12

In the frequency polygon of the histogram above, the points are (17.5, 2), (32.5, 3), (47.5, 7), (62.5, 6), (77.5, 6) and (92.5, 6). Rebuild the grouped table from the points.

The plan: Each point is (class mark, frequency). Neighbouring class marks are one class size apart, and each class reaches half a class size on each side of its mark.

  1. Class size = 32.5 − 17.5 = 15; half of it is 7.5.
  2. 17.5 gives the class 10 - 25; 32.5 gives 25 - 40; and so on up to 92.5, which gives 85 - 100.
  3. The heights give the frequencies 2, 3, 7, 6, 6, 6.

The table is 10 - 25 (2), 25 - 40 (3), 40 - 55 (7), 55 - 70 (6), 70 - 85 (6), 85 - 100 (6).

Check: The frequencies add to 30, the number of students in Example 1.

Worked example 13

For the 20 ages of the yoga class (grouped above as 20 - 30: 4, 30 - 40: 8, 40 - 50: 6, 50 - 60: 2), compare the exact mean of the list with the mean from the grouped table.

What we know: The 20 ages add up to 737. The class marks are 25, 35, 45 and 55.

The plan: Exact mean: 737 ÷ 20. Grouped mean: Σfᵢxᵢ ÷ Σfᵢ with the class marks.

  1. Exact mean = 737 ÷ 20 = 36.85 years.
  2. Grouped: Σfᵢxᵢ = 4 × 25 + 8 × 35 + 6 × 45 + 2 × 55 = 100 + 280 + 270 + 110 = 760, so the grouped mean = 760 ÷ 20 = 38 years.

Exact mean 36.85 years; grouped estimate 38 years.

Check: Inside most classes the ages sit below the class mark (for example, 30 to 39 in 30 - 40 average 34.5, not 35), so the class marks overstate the total a little. This is the same effect the book shows with 59.3 and 62.

Worked example 14

Should each of these be drawn as a bar graph or a histogram? (a) The number of students in a school who like cricket, football, kabaddi and badminton. (b) The heights of 51 girls in classes 140 - 145, 145 - 150, and so on. (c) The number of rainy days in each month of a year.

The plan: A histogram is for classes of numbers that run into each other; a bar graph is for separate categories.

  1. (a) Sports are separate categories with no order between them: a bar graph, with gaps between the bars.
  2. (b) Height classes run on from one to the next, with no gaps: a histogram.
  3. (c) Months are separate labels (though in order), and the data are counts for each label: a bar graph.

(a) bar graph, (b) histogram, (c) bar graph.

Check: Ask: could a value fall between two bars? A height of 145.2 cm falls between 140 - 145 and 150 - 155, inside 145 - 150, so the bars must touch. No sport falls between cricket and football.

Your turn

1. Find the mean, the median and the mode of 12, 15, 11, 15, 17, 15, 12.Tap to reveal
  1. Total = 12 + 15 + 11 + 15 + 17 + 15 + 12 = 97, and n = 7, so the mean = 97 ÷ 7 ≈ 13.86.
  2. In order: 11, 12, 12, 15, 15, 15, 17. n = 7 is odd, so the median is the 4th value, 15.
  3. 15 occurs three times, more than any other value, so the mode is 15.

Mean ≈ 13.86, median 15, mode 15.

2. Give the class size and the class mark of the class 150 - 200.Tap to reveal
  1. Class size = 200 − 150 = 50.
  2. Class mark = (150 + 200) ÷ 2 = 350 ÷ 2 = 175.

Class size 50, class mark 175.

3. Make the classes 1 - 5, 6 - 10, 11 - 15 continuous.Tap to reveal
  1. The gap between 5 and 6 is 1; half of it is 0.5.
  2. Subtract 0.5 from each lower limit and add 0.5 to each upper limit.

0.5 - 5.5, 5.5 - 10.5, 10.5 - 15.5.

4. Find the median of 14, 9, 22, 17, 9, 30, 11.Tap to reveal
  1. In order: 9, 9, 11, 14, 17, 22, 30.
  2. n = 7 is odd, so the median is the ((7 + 1) ÷ 2)-th = 4th value.

The median is 14.

5. A table has classes 0 - 10, 10 - 20, 20 - 30, 30 - 40 with frequencies 4, 9, 5, 2. How many observations are there, and how many are less than 20?Tap to reveal
  1. Total: 4 + 9 + 5 + 2 = 20 observations.
  2. Less than 20: the classes 0 - 10 and 10 - 20, so 4 + 9 = 13.

20 observations, of which 13 are less than 20.

Check: 13 is the cumulative frequency of 10 - 20, an idea the median section uses.

In one line

Frequencies count how often values occur, and grouped data put values into classes with limits, a size and a class mark (the middle). The mean, median and mode of a list are the shared-out total, the middle in order and the most frequent value.

13.2Mean of grouped data

The mean (or average) of observations, as we know, is the sum of the values of all the observations divided by the total number of observations. Recall it from Class IX, or from the section "Data, frequency and the three averages" above. If x₁, x₂, ..., xₙ are observations with frequencies f₁, f₂, ..., fₙ, then the observation x₁ occurs f₁ times, x₂ occurs f₂ times, and so on.

So the sum of the values of all the observations is f₁x₁ + f₂x₂ + ... + fₙxₙ, and the number of observations is f₁ + f₂ + ... + fₙ. The mean x̄ of the data is therefore given by

With the Greek letter Σ (capital sigma), which means summation, the same formula is written

The small "i = 1" under the sigma and the "n" over it say that i runs through 1, 2, 3, ..., n: every row of the table is included. When that is understood, the book writes it more briefly as x̄ = Σfᵢxᵢ ÷ Σfᵢ. Let us apply this formula to find the mean in the following example.

Example 1

The marks obtained by 30 students of Class X of a certain school in a Mathematics paper consisting of 100 marks are presented in the table below. Find the mean of the marks obtained by the students. Marks (xᵢ): 10, 20, 36, 40, 50, 56, 60, 70, 72, 80, 88, 92, 95. Number of students (fᵢ): 1, 1, 3, 4, 3, 2, 4, 4, 1, 1, 2, 3, 1.

What we know: Thirteen different marks xᵢ, each with its frequency fᵢ. The frequencies add up to 30, the number of students.

What we need: The mean mark x̄.

The plan: Use x̄ = Σfᵢxᵢ ÷ Σfᵢ. We need the product of each xᵢ with its fᵢ, so we put them in a column (Table 13.1).

  1. Multiply each mark by its frequency: for example, 36 × 3 = 108 and 92 × 3 = 276. The products are in the last column of Table 13.1 below.
  2. Add the frequencies: Σfᵢ = 30.
  3. Add the products: Σfᵢxᵢ = 1779.
  4. x̄ = Σfᵢxᵢ ÷ Σfᵢ = 1779 ÷ 30 = 59.3.

The mean marks obtained is 59.3.

Check: The marks run from 10 to 95, and 59.3 lies between them. Most students scored between 36 and 92, so a mean near 60 is sensible.

Table 13.1

Marks obtained (xᵢ)Number of students (fᵢ)fᵢxᵢ
10110
20120
363108
404160
503150
562112
604240
704280
72172
80180
882176
923276
95195
TotalΣfᵢ = 30Σfᵢxᵢ = 1779

In most real situations, data are so large that, to make a meaningful study, they need to be condensed as grouped data. So we need to convert ungrouped data into grouped data, and find a way to compute its mean.

Let us convert the ungrouped data of Example 1 into grouped data by forming class intervals of width 15. Remember the boundary rule: a student whose mark equals an upper class limit is counted in the next class. For example, the 4 students who obtained 40 marks are counted in the class 40 - 55, not in 25 - 40. With this rule, every student finds exactly one class:

  • 10 - 25: the marks 10 and 20, so 2 students.
  • 25 - 40: the three students with 36, so 3 students.
  • 40 - 55: four students with 40 and three with 50, so 7 students.
  • 55 - 70: two with 56 and four with 60, so 6 students.
  • 70 - 85: four with 70, one with 72 and one with 80, so 6 students.
  • 85 - 100: two with 88, three with 92 and one with 95, so 6 students.

This gives the grouped frequency distribution of Table 13.2. The total is 2 + 3 + 7 + 6 + 6 + 6 = 30, so no student was lost.

Table 13.2

Class interval10 - 2525 - 4040 - 5555 - 7070 - 8585 - 100
Number of students237666

Now, for each class interval, we need one number to represent the whole class. It is assumed that the frequency of each class is centred around its mid-point. So the mid-point, or class mark, of each class is chosen to represent the observations falling in the class. Recall that the class mark is the average of the upper and lower limits:

Class mark

For the class 10 - 25, the class mark is (10 + 25) ÷ 2 = 35 ÷ 2 = 17.5. In the same way the other class marks are 32.5, 47.5, 62.5, 77.5 and 92.5: each one is 15 (the class size) more than the one before.

These class marks serve as our xᵢ. In general, for the i-th class interval we have the frequency fᵢ belonging to the class mark xᵢ, and we can compute the mean in the same manner as in Example 1. We put everything in Table 13.3.

Table 13.3

Class intervalNumber of students (fᵢ)Class mark (xᵢ)fᵢxᵢ
10 - 25217.535
25 - 40332.597.5
40 - 55747.5332.5
55 - 70662.5375
70 - 85677.5465
85 - 100692.5555
TotalΣfᵢ = 30Σfᵢxᵢ = 1860

The sum of the values in the last column gives Σfᵢxᵢ. So the mean x̄ of the given data is

This method of finding the mean is known as the Direct Method.

We observe that Tables 13.1 and 13.3 use the same data and the same formula, but the results are different: 59.3 and 62. Can you think why this is so, and which one is more accurate? The difference comes from the mid-point assumption in Table 13.3. The value 59.3 is the exact mean, while 62 is an approximate mean. The table below shows, class by class, where the difference comes from.

ClassThe marks inside itTheir true totalClass mark × frequency
10 - 2510, 203017.5 × 2 = 35
25 - 4036, 36, 3610832.5 × 3 = 97.5
40 - 5540 (four times), 50 (three times)31047.5 × 7 = 332.5
55 - 7056 (twice), 60 (four times)35262.5 × 6 = 375
70 - 8570 (four times), 72, 8043277.5 × 6 = 465
85 - 10088 (twice), 92 (three times), 9554792.5 × 6 = 555
Total17791860

In the class 40 - 55, for example, the seven students really scored 310 marks in all, but the class mark pretends they scored 47.5 each, 332.5 in all. In this data most students sit at or below the middle of their class, so the class marks overstate the total: 1860 instead of 1779. That is why the grouped mean, 62, comes out higher than the exact mean, 59.3.

Why we accept an approximate mean

With real data (lakhs of census entries, thousands of board results), the exact values are often not kept, and the grouped table is all we have. The class-mark mean is the best estimate from that table. When classes are narrow and the data spread evenly inside them, the estimate is very close to the exact mean.

The assumed mean method

Sometimes the values of xᵢ and fᵢ are large, and finding each product fᵢxᵢ becomes tedious and time-consuming. Let us look for a way to reduce these calculations.

We can do nothing with the fᵢ, because they are counts. But we can change each xᵢ into a smaller number, so that the multiplying becomes easy. What about subtracting a fixed number from each xᵢ? Let us try this.

The first step is to choose one of the xᵢ as the assumed mean, and denote it by a. To reduce the work further, we may take a to be an xᵢ near the centre of x₁, x₂, ..., xₙ. Here we could choose a = 47.5 or a = 62.5. Let us choose a = 47.5.

The next step is to find the difference dᵢ between each xᵢ and a. It is called the deviation of xᵢ from a:

The third step is to multiply each dᵢ by its fᵢ and add all the fᵢdᵢ. The calculations are in Table 13.4.

Table 13.4

Class intervalNumber of students (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 47.5fᵢdᵢ
10 - 25217.5−30−60
25 - 40332.5−15−45
40 - 55747.500
55 - 70662.51590
70 - 85677.530180
85 - 100692.545270
TotalΣfᵢ = 30Σfᵢdᵢ = 435
17.532.547.562.577.592.5xᵢ−30−150153045dᵢ−2−10123uᵢ
The same six points, measured three ways: from 0 (xᵢ), from the assumed mean 47.5 (dᵢ), and in steps of the class size 15 (uᵢ).

From Table 13.4, the mean of the deviations is d̄ = Σfᵢdᵢ ÷ Σfᵢ (read "d bar"). How is d̄ related to x̄? To get each dᵢ we subtracted a from xᵢ; so, to get back to x̄, we must add a to d̄. Here is the reasoning, one step per line.

  1. d̄ = Σfᵢdᵢ ÷ Σfᵢ, the definition of the mean of the deviations.
  2. d̄ = Σfᵢ(xᵢ − a) ÷ Σfᵢ, because each dᵢ is xᵢ − a.
  3. d̄ = Σfᵢxᵢ ÷ Σfᵢ − Σfᵢa ÷ Σfᵢ, because fᵢ(xᵢ − a) = fᵢxᵢ − fᵢa, and a sum of differences is the difference of the sums.
  4. d̄ = x̄ − a × (Σfᵢ ÷ Σfᵢ), because Σfᵢxᵢ ÷ Σfᵢ is x̄, and a is the same in every term, so it comes out of the sum: Σfᵢa = a × Σfᵢ.
  5. d̄ = x̄ − a, because Σfᵢ ÷ Σfᵢ = 1.
  6. So x̄ = a + d̄, that is, x̄ = a + Σfᵢdᵢ ÷ Σfᵢ.
The assumed mean method

Read: x bar equals a plus sigma f i d i over sigma f i. The assumed mean a is a convenient guess; the second term is the average amount by which the data sit above it (or, if negative, below it).

Substituting a = 47.5, Σfᵢdᵢ = 435 and Σfᵢ = 30 from Table 13.4:

Therefore the mean of the marks obtained by the students is 62, the same as by the direct method. This method is called the Assumed Mean Method.

17.532.547.562.577.592.5balance point: mean 620100
Each student is a counter at the class mark of the class. The beam balances at the mean, 62.

The figure shows what the mean means. Put a counter for each student at the class mark of the class, on a light beam. The beam balances at the mean, 62. The deviations from the balance point cancel out: the counters to the left pull one way exactly as hard as those to the right pull the other. The assumed mean method measures the same pulls from a convenient point a instead, and then corrects for the choice of a.

Activity 1

From Table 13.3, find the mean by taking each of the xᵢ (17.5, 32.5, and so on) as a. What do you observe? Why?

What we know: Σfᵢxᵢ = 1860 and Σfᵢ = 30 (Table 13.3). The six class marks 17.5, 32.5, 47.5, 62.5, 77.5 and 92.5.

The plan: For each choice of a, find Σfᵢdᵢ and then a + Σfᵢdᵢ ÷ Σfᵢ. A shortcut: Σfᵢdᵢ = Σfᵢ(xᵢ − a) = Σfᵢxᵢ − a × Σfᵢ = 1860 − 30a, by the same steps as the proof above.

  1. The table below works out all six choices.
  2. Every row ends with 62.

The mean is 62 for every choice of a. The value of the mean does not depend on the choice of a.

Check: Why: a + Σfᵢdᵢ ÷ Σfᵢ = a + (Σfᵢxᵢ − aΣfᵢ) ÷ Σfᵢ = a + x̄ − a = x̄. Whatever a we add at the start, we take away again inside the deviations. A good choice of a only makes the numbers smaller; it never changes the answer.

aΣfᵢdᵢ = Σfᵢxᵢ − 30aΣfᵢdᵢ ÷ Σfᵢx̄ = a + Σfᵢdᵢ ÷ Σfᵢ
17.51860 − 525 = 133544.517.5 + 44.5 = 62
32.51860 − 975 = 88529.532.5 + 29.5 = 62
47.51860 − 1425 = 43514.547.5 + 14.5 = 62
62.51860 − 1875 = −15−0.562.5 − 0.5 = 62
77.51860 − 2325 = −465−15.577.5 − 15.5 = 62
92.51860 − 2775 = −915−30.592.5 − 30.5 = 62

The step-deviation method

Look at Table 13.4 again. The deviations −30, −15, 0, 15, 30 and 45 are all multiples of 15. If we divide each of them by 15, we get smaller numbers to multiply with the fᵢ. Here 15 is the class size of each class interval.

So let uᵢ = (xᵢ − a) ÷ h, where a is the assumed mean and h is the class size. We calculate the uᵢ in this way and continue as before: find each fᵢuᵢ, then Σfᵢuᵢ. Taking h = 15, we get Table 13.5.

Table 13.5

Class intervalfᵢClass mark (xᵢ)dᵢ = xᵢ − 47.5uᵢ = dᵢ ÷ 15fᵢuᵢ
10 - 25217.5−30−2−4
25 - 40332.5−15−1−3
40 - 55747.5000
55 - 70662.51516
70 - 85677.530212
85 - 100692.545318
TotalΣfᵢ = 30Σfᵢuᵢ = 29

Let ū = Σfᵢuᵢ ÷ Σfᵢ (read "u bar"), the mean of the uᵢ. How is ū related to x̄? Each step below gives its reason.

  1. ū = Σfᵢuᵢ ÷ Σfᵢ, the definition.
  2. ū = Σfᵢ(xᵢ − a) ÷ h ÷ Σfᵢ, because each uᵢ is (xᵢ − a) ÷ h.
  3. ū = (1 ÷ h) × [Σfᵢxᵢ ÷ Σfᵢ − a × Σfᵢ ÷ Σfᵢ], because h is the same in every term, so it comes out of the sum, and then the sum splits as in the assumed mean method.
  4. ū = (1 ÷ h) × (x̄ − a), because Σfᵢxᵢ ÷ Σfᵢ = x̄ and Σfᵢ ÷ Σfᵢ = 1.
  5. So hū = x̄ − a, and x̄ = a + hū.
The step-deviation method

Read: x bar equals a plus h times sigma f i u i over sigma f i. We shrank every deviation by the factor h, so at the end we stretch the average back by h.

Substituting a = 47.5, h = 15, Σfᵢuᵢ = 29 and Σfᵢ = 30 from Table 13.5:

So the mean marks obtained by a student is 62. This method is called the Step-deviation method.

The book notes four things, each worth a sentence of explanation.

  • The step-deviation method is convenient when all the dᵢ have a common factor. Then the uᵢ are small whole numbers, like −2, −1, 0, 1, 2, 3 here.
  • The mean obtained by all three methods is the same. Here it is 62 every time, because each formula was proved equal to Σfᵢxᵢ ÷ Σfᵢ.
  • The assumed mean method and the step-deviation method are simplified forms of the direct method. They do the same calculation with smaller numbers: shift by a, shrink by h, then undo both at the end.
  • The formula x̄ = a + hū still holds if a and h are any numbers (h not zero) with uᵢ = (xᵢ − a) ÷ h. The proof above never used the fact that a is a class mark or that h is the class size. Choosing them that way only makes the uᵢ simple.

Let us apply these methods in another example.

Example 2

The table below gives the percentage distribution of female teachers in the primary schools of rural areas of various states and union territories (U.T.) of India. Find the mean percentage of female teachers by all the three methods discussed in this section. Percentage of female teachers: 15 - 25, 25 - 35, 35 - 45, 45 - 55, 55 - 65, 65 - 75, 75 - 85. Number of States/U.T.: 6, 11, 7, 4, 4, 2, 1. (Source: Seventh All India School Education Survey conducted by NCERT.)

What we know: Seven classes of size 10, with 35 states and union territories in all.

What we need: The mean percentage, three ways, to see that they agree.

The plan: Find the class marks xᵢ (Table 13.6). Take a = 50 (the middle class mark) and h = 10, so dᵢ = xᵢ − 50 and uᵢ = (xᵢ − 50) ÷ 10 (Table 13.7). Then use the three formulas.

  1. Class marks: (15 + 25) ÷ 2 = 20, then 30, 40, 50, 60, 70 and 80 (Table 13.6).
  2. From Table 13.7: Σfᵢ = 35, Σfᵢxᵢ = 1390, Σfᵢdᵢ = −360 and Σfᵢuᵢ = −36.
  3. Direct method: x̄ = Σfᵢxᵢ ÷ Σfᵢ = 1390 ÷ 35 = 39.714... ≈ 39.71.
  4. Assumed mean method: x̄ = a + Σfᵢdᵢ ÷ Σfᵢ = 50 + (−360) ÷ 35 = 50 − 10.286... ≈ 39.71.
  5. Step-deviation method: x̄ = a + h × Σfᵢuᵢ ÷ Σfᵢ = 50 + 10 × (−36) ÷ 35 = 50 − 360 ÷ 35 ≈ 39.71.

The mean percentage of female teachers in the primary schools of rural areas is 39.71.

Check: All three methods agree, as they must. The classes from 15 to 45 hold 24 of the 35 states, so a mean below 45 is sensible. The negative Σfᵢdᵢ says the data sit mostly below the assumed mean 50.

Table 13.6

Percentage of female teachersNumber of States/U.T. (fᵢ)xᵢ
15 - 25620
25 - 351130
35 - 45740
45 - 55450
55 - 65460
65 - 75270
75 - 85180

Table 13.7

Percentage of female teachersNumber of States/U.T. (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 50uᵢ = dᵢ ÷ 10fᵢxᵢfᵢdᵢfᵢuᵢ
15 - 25620−30−3120−180−18
25 - 351130−20−2330−220−22
35 - 45740−10−1280−70−7
45 - 554500020000
55 - 65460101240404
65 - 75270202140404
75 - 8518030380303
TotalΣfᵢ = 35Σfᵢxᵢ = 1390Σfᵢdᵢ = −360Σfᵢuᵢ = −36

Remark. All three methods give the same result, so the choice of method depends on the numbers. If the xᵢ and fᵢ are small, the direct method is an appropriate choice. If they are large, the assumed mean method or the step-deviation method saves work. If the class sizes are unequal and the xᵢ are large, we can still use the step-deviation method by taking h to be a suitable divisor of all the dᵢ.

Example 3

The distribution below shows the number of wickets taken by bowlers in one-day cricket matches. Find the mean number of wickets by choosing a suitable method. What does the mean signify? Number of wickets: 20 - 60, 60 - 100, 100 - 150, 150 - 250, 250 - 350, 350 - 450. Number of bowlers: 7, 5, 16, 12, 2, 3.

What we know: Six classes of unequal sizes (40, 40, 50, 100, 100, 100) and 45 bowlers. The class marks are large: 40, 80, 125, 200, 300 and 400.

What we need: The mean number of wickets, and what it tells us.

The plan: The class size varies and the xᵢ are large. We still use the step-deviation method, with a = 200 and h = 20 (Table 13.8). Most dᵢ are multiples of 20; the formula holds for any h, even where uᵢ is not a whole number.

  1. dᵢ = xᵢ − 200: −160, −120, −75, 0, 100 and 200.
  2. uᵢ = dᵢ ÷ 20: −8, −6, −3.75, 0, 5 and 10.
  3. fᵢuᵢ: 7 × (−8) = −56, 5 × (−6) = −30, 16 × (−3.75) = −60, 0, 2 × 5 = 10 and 3 × 10 = 30.
  4. Σfᵢuᵢ = −56 − 30 − 60 + 0 + 10 + 30 = −146 + 40 = −106, and Σfᵢ = 45.
  5. ū = −106 ÷ 45, so x̄ = 200 + 20 × (−106 ÷ 45) = 200 − 2120 ÷ 45 = 200 − 47.11 = 152.89.

The mean is 152.89 wickets. On an average, these 45 bowlers took about 153 wickets each in one-day cricket.

Check: The direct method gives the same: Σfᵢxᵢ = 280 + 400 + 2000 + 2400 + 600 + 1200 = 6880, and 6880 ÷ 45 = 152.89.

Notice that the class 100 - 150 gives uᵢ = −3.75, not a whole number. Nothing goes wrong: the fourth note above says the formula holds for any non-zero h.

Table 13.8

Number of wicketsNumber of bowlers (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 200uᵢ = dᵢ ÷ 20fᵢuᵢ
20 - 60740−160−8−56
60 - 100580−120−6−30
100 - 15016125−75−3.75−60
150 - 25012200000
250 - 3502300100510
350 - 45034002001030
TotalΣfᵢ = 45Σfᵢuᵢ = −106

Now let us see how well you can apply the ideas of this section.

Activity 2

Divide the students of your class into three groups. Group 1 collects the latest Mathematics marks of the class and forms a grouped frequency distribution. Group 2 does the same for the daily maximum temperatures of your city for 30 days, and group 3 for the heights of the students in cm. Each group then finds the mean by the method it finds appropriate.

What we know: This is a class activity, so the numbers will be your own. Here is how group 2's work might look, with a sample table of 30 days of maximum temperatures like those of a city in central India in May.

The plan: Choose classes of equal size covering all the readings; count the days in each class; then, since the class marks and frequencies are small, use the direct method.

  1. Suppose the readings run from 36 °C to 45 °C. Classes of size 2 °C: 36 - 38, 38 - 40, 40 - 42, 42 - 44, 44 - 46.
  2. Count the days in each class, using the boundary rule (a reading of 40 °C goes in 40 - 42). Suppose the counts are 3, 6, 10, 8 and 3: 30 days in all.
  3. Class marks: 37, 39, 41, 43 and 45. Products: 111, 234, 410, 344 and 135. Σfᵢxᵢ = 1234 (see the table below).
  4. x̄ = 1234 ÷ 30 = 41.13 °C.

For this sample, the mean maximum temperature is about 41.13 °C. Your own group's answer will depend on your data.

Check: The busiest class is 40 - 42, and the mean lies inside it, near its middle. A mean outside the range of the readings would mean an arithmetic slip.

Maximum temperature (°C)Number of days (fᵢ)Class mark (xᵢ)fᵢxᵢ
36 - 38337111
38 - 40639234
40 - 421041410
42 - 44843344
44 - 46345135
TotalΣfᵢ = 30Σfᵢxᵢ = 1234

More examples

Worked example 15

In a frequency table, Σfᵢ = 40 and Σfᵢxᵢ = 2180. In another, with the assumed mean 25, Σfᵢ = 50 and Σfᵢdᵢ = −60. In a third, with a = 150 and h = 20, Σfᵢ = 60 and Σfᵢuᵢ = 18. Find the three means.

The plan: Substitute in the formula that matches what is given: direct, assumed mean, step-deviation.

  1. Direct: x̄ = 2180 ÷ 40 = 54.5.
  2. Assumed mean: x̄ = 25 + (−60) ÷ 50 = 25 − 1.2 = 23.8.
  3. Step-deviation: x̄ = 150 + 20 × 18 ÷ 60 = 150 + 6 = 156.

The means are 54.5, 23.8 and 156.

Check: A negative Σfᵢdᵢ puts the mean below a (23.8 < 25); a positive Σfᵢuᵢ puts it above a (156 > 150).

Worked example 16

The monthly electricity bills of 40 households in an Indore colony are: ₹200 - 400 (5 households), ₹400 - 600 (9), ₹600 - 800 (14), ₹800 - 1000 (8), ₹1000 - 1200 (4). Find the mean bill.

What we know: Five classes of size 200; 40 households.

The plan: The class marks (300, 500, 700, 900, 1100) are large, but all the deviations from 700 are multiples of 200, so use the step-deviation method with a = 700 and h = 200.

  1. uᵢ = (xᵢ − 700) ÷ 200: −2, −1, 0, 1 and 2 (table below).
  2. fᵢuᵢ: −10, −9, 0, 8 and 8, so Σfᵢuᵢ = −19 + 16 = −3.
  3. x̄ = 700 + 200 × (−3) ÷ 40 = 700 − 600 ÷ 40 = 700 − 15 = 685.

The mean monthly bill is ₹685.

Check: Direct method: Σfᵢxᵢ = 1500 + 4500 + 9800 + 7200 + 4400 = 27,400, and 27,400 ÷ 40 = 685. The same.

Monthly bill (₹)Households (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 700uᵢ = dᵢ ÷ 200fᵢuᵢ
200 - 4005300−400−2−10
400 - 6009500−200−1−9
600 - 80014700000
800 - 1000890020018
1000 - 12004110040028
TotalΣfᵢ = 40Σfᵢuᵢ = −3

Worked example 17

Use the histogram of Table 13.2 (the figure in the section "Data, frequency and the three averages") to find the mean mark, and say in which bar it falls.

What we know: The bars stand on 10 - 25, 25 - 40, 40 - 55, 55 - 70, 70 - 85 and 85 - 100, with heights 2, 3, 7, 6, 6 and 6.

The plan: Read the frequencies from the heights and the class marks from the middles of the bars; then use the direct method.

  1. Class marks: 17.5, 32.5, 47.5, 62.5, 77.5 and 92.5.
  2. Σfᵢxᵢ = 35 + 97.5 + 332.5 + 375 + 465 + 555 = 1860, and Σfᵢ = 30.
  3. x̄ = 1860 ÷ 30 = 62.

The mean is 62, which falls in the bar 55 - 70.

Check: This is the balance point of the beam figure above: the counters left of 62 balance those to the right.

Worked example 18

The mean of the following distribution is 27. Find the missing frequency p. Classes: 0 - 10, 10 - 20, 20 - 30, 30 - 40, 40 - 50. Frequencies: 5, 8, p, 12, 7.

What we know: x̄ = 27; one unknown frequency p.

The plan: Write Σfᵢ and Σfᵢxᵢ in terms of p, put them into x̄ = Σfᵢxᵢ ÷ Σfᵢ, and solve the equation for p.

  1. Class marks: 5, 15, 25, 35, 45.
  2. Σfᵢ = 5 + 8 + p + 12 + 7 = 32 + p.
  3. Σfᵢxᵢ = 25 + 120 + 25p + 420 + 315 = 880 + 25p.
  4. (880 + 25p) ÷ (32 + p) = 27, so 880 + 25p = 27(32 + p) = 864 + 27p.
  5. 27p − 25p = 880 − 864, so 2p = 16 and p = 8.

The missing frequency is p = 8.

Check: With p = 8: Σfᵢ = 40 and Σfᵢxᵢ = 880 + 200 = 1080, and 1080 ÷ 40 = 27.

A path that fails: writing 27 = (880 + 25p) ÷ 5, dividing by the number of classes. The mean divides by the number of observations, Σfᵢ = 32 + p, which itself contains p.

Worked example 19

The mean of the following distribution of 120 observations is 50. Find f₁ and f₂. Classes: 0 - 20, 20 - 40, 40 - 60, 60 - 80, 80 - 100. Frequencies: 17, f₁, 32, f₂, 19.

What we know: Σfᵢ = 120 and x̄ = 50: two facts for two unknowns.

The plan: Use the total to get one equation and the mean to get another; solve them together (Chapter 3).

  1. Total: 17 + f₁ + 32 + f₂ + 19 = 120, so f₁ + f₂ = 120 − 68 = 52.
  2. Class marks: 10, 30, 50, 70, 90. Σfᵢxᵢ = 170 + 30f₁ + 1600 + 70f₂ + 1710 = 3480 + 30f₁ + 70f₂.
  3. Mean: 3480 + 30f₁ + 70f₂ = 50 × 120 = 6000, so 30f₁ + 70f₂ = 2520, that is, 3f₁ + 7f₂ = 252.
  4. Put f₂ = 52 − f₁: 3f₁ + 364 − 7f₁ = 252, so −4f₁ = −112 and f₁ = 28.
  5. Then f₂ = 52 − 28 = 24.

f₁ = 28 and f₂ = 24.

Check: Σfᵢxᵢ = 3480 + 840 + 1680 = 6000, and 6000 ÷ 120 = 50.

Common mistakes with the mean of grouped data

Dividing by the number of classes instead of Σfᵢ. Six classes of 30 students: divide by 30, not 6.

Adding the class marks without the frequencies. Each class mark must be counted as many times as its frequency.

Forgetting to add a back (assumed mean), or to multiply by h (step deviation). The answer then sits near 0, far from the data.

Sign slips with negative deviations. Add the negatives and the positives separately, then combine.

Using the class limits instead of the class marks. 10 - 25 is represented by 17.5, not by 10 or 25.

When you are stuck: the mean of grouped data

Estimate first: the mean must lie inside the range of the data, usually near the busiest classes. An answer outside that is a slip.

Work it two ways. If the step-deviation answer is in doubt, check it by the direct method (or the other way round).

For a missing frequency, write both Σfᵢ and Σfᵢxᵢ with the unknown in them before dividing.

If the uᵢ are not whole numbers, that is fine (Example 3); or pick an h that divides every dᵢ.

The deviations from the mean always add up to zero

Take a = x̄ in the assumed mean method. Then x̄ = x̄ + Σfᵢdᵢ ÷ Σfᵢ, so Σfᵢdᵢ = 0: the deviations from the mean balance exactly. This is the balance-beam picture in symbols.

Check with Table 13.3, where x̄ = 62: the deviations −44.5, −29.5, −14.5, 0.5, 15.5 and 30.5, times the frequencies 2, 3, 7, 6, 6, 6, give −89 − 88.5 − 101.5 + 3 + 93 + 183 = −279 + 279 = 0.

Worked example 20

Section A of Class X has 30 students with mean marks 62; section B has 20 students with mean marks 55. Find the mean marks of all 50 students together.

What we know: n₁ = 30, x̄₁ = 62; n₂ = 20, x̄₂ = 55.

The plan: A mean times its number of observations gives the total. Add the two totals and divide by the total number.

  1. Total of section A = 30 × 62 = 1860.
  2. Total of section B = 20 × 55 = 1100.
  3. Combined mean = (1860 + 1100) ÷ (30 + 20) = 2960 ÷ 50 = 59.2.

The mean of all 50 students is 59.2.

Check: The combined mean lies between 55 and 62, nearer 62, because section A has more students.

A path that fails: averaging the two means, (62 + 55) ÷ 2 = 58.5. That treats the two sections as if they were the same size. Each mean must be weighted by its number of students.

Worked example 21

A teacher adds 5 grace marks to every student's score in Table 13.3. What is the new mean? What if every score is doubled instead?

What we know: Old mean 62; Σfᵢ = 30.

The plan: Follow what happens to the total Σfᵢxᵢ.

  1. Adding 5 to each of 30 scores adds 30 × 5 = 150 to the total: 1860 + 150 = 2010. New mean = 2010 ÷ 30 = 67, which is 62 + 5.
  2. Doubling every score doubles the total: 3720. New mean = 3720 ÷ 30 = 124, which is 2 × 62.

Adding 5 to every value gives mean 67; doubling every value gives mean 124.

Check: This is the assumed mean and step-deviation idea run backwards: shifting all values shifts the mean by the same amount, and stretching them stretches the mean by the same factor.

Worked example 22

Which method would you choose for each table, and why? (a) Classes 0 - 4, 4 - 8, 8 - 12 with frequencies 3, 5, 2. (b) Classes 1500 - 2000, ..., 4500 - 5000 with frequencies near 50. (c) Classes 20 - 60, 60 - 100, 100 - 150, 150 - 250.

The plan: Look at the size of the class marks and frequencies, and whether the classes are equal.

  1. (a) Class marks 2, 6, 10 and small frequencies: the direct method is quickest.
  2. (b) Class marks 1750 to 4750 and large frequencies, all 500 apart: step deviation with h = 500.
  3. (c) Unequal classes: the direct method, or step deviation with an h that divides the deviations, as in Example 3.

(a) direct; (b) step deviation; (c) direct (or step deviation with a suitable h).

Check: Every choice gives the same mean; the choice only changes how much arithmetic we do.

Worked example 23

A shopkeeper in Kochi weighed 40 bags of rice: 24.5 - 25.0 kg (6 bags), 25.0 - 25.5 kg (14), 25.5 - 26.0 kg (12), 26.0 - 26.5 kg (8). Find the mean weight of a bag.

What we know: Four classes of size 0.5 kg; 40 bags. Class marks 24.75, 25.25, 25.75 and 26.25: awkward decimals.

The plan: Step deviation with a = 25.25 and h = 0.5 turns the class marks into −1, 0, 1, 2.

  1. uᵢ: (24.75 − 25.25) ÷ 0.5 = −1, then 0, 1 and 2.
  2. fᵢuᵢ: −6, 0, 12 and 16, so Σfᵢuᵢ = −6 + 28 = 22.
  3. x̄ = 25.25 + 0.5 × 22 ÷ 40 = 25.25 + 11 ÷ 40 = 25.25 + 0.275 = 25.525.

The mean weight is about 25.53 kg per bag.

Check: The busiest classes are 25.0 to 26.0 kg, and the mean is inside that range. The direct method gives Σfᵢxᵢ = 148.5 + 353.5 + 309 + 210 = 1021, and 1021 ÷ 40 = 25.525.

Your turn

1. Find the mean of: 0 - 10 (3), 10 - 20 (5), 20 - 30 (9), 30 - 40 (5), 40 - 50 (3).Tap to reveal
  1. Class marks: 5, 15, 25, 35, 45; Σfᵢ = 25.
  2. Σfᵢxᵢ = 15 + 75 + 225 + 175 + 135 = 625.
  3. x̄ = 625 ÷ 25 = 25.

The mean is 25.

Check: The table is symmetric about the class 20 - 30, so the mean is its class mark, 25.

2. With a = 45 and h = 10, a table gives Σfᵢ = 50 and Σfᵢuᵢ = −7. Find the mean.Tap to reveal
  1. x̄ = a + h × Σfᵢuᵢ ÷ Σfᵢ = 45 + 10 × (−7) ÷ 50 = 45 − 1.4 = 43.6.

The mean is 43.6.

3. Why do the three methods always give the same mean?Tap to reveal
  1. The assumed mean method only subtracts a from every xᵢ and adds it back at the end.
  2. The step-deviation method also divides by h and multiplies back by h.
  3. Both were proved equal to Σfᵢxᵢ ÷ Σfᵢ, the direct method.

Because they are the same calculation with smaller numbers: every shift and shrink is undone at the end.

4. The means of two groups of 10 and 15 students are 40 and 50. Find the mean of all 25.Tap to reveal
  1. Totals: 10 × 40 = 400 and 15 × 50 = 750.
  2. Combined mean = (400 + 750) ÷ 25 = 1150 ÷ 25 = 46.

The combined mean is 46.

5. The mean of 0 - 10 (4), 10 - 20 (k), 20 - 30 (6) is 16. Find k.Tap to reveal
  1. Class marks 5, 15, 25: Σfᵢ = 10 + k and Σfᵢxᵢ = 20 + 15k + 150 = 170 + 15k.
  2. 170 + 15k = 16(10 + k) = 160 + 16k, so k = 10.

k = 10.

Check: Σfᵢ = 20 and Σfᵢxᵢ = 320, and 320 ÷ 20 = 16.

In one line

The mean of grouped data treats each class as its class mark: x̄ = Σfᵢxᵢ ÷ Σfᵢ, or, with smaller numbers, x̄ = a + Σfᵢdᵢ ÷ Σfᵢ or x̄ = a + h × Σfᵢuᵢ ÷ Σfᵢ; all three give the same value.

Ex 13.1Exercise 13.1, solved

Every question of Exercise 13.1, in the book's order. Each answer gives the table, the method chosen and why, every step, and a check. Try each one yourself first, then open the reveal. Answers agree with the book's key.

1. A survey was conducted by a group of students as a part of their environment awareness programme, in which they collected the following data regarding the number of plants in 20 houses in a locality. Find the mean number of plants per house. Number of plants: 0 - 2, 2 - 4, 4 - 6, 6 - 8, 8 - 10, 10 - 12, 12 - 14. Number of houses: 1, 2, 1, 5, 6, 2, 3. Which method did you use for finding the mean, and why?Tap to reveal
Number of plantsNumber of houses (fᵢ)Class mark (xᵢ)fᵢxᵢ
0 - 2111
2 - 4236
4 - 6155
6 - 85735
8 - 106954
10 - 1221122
12 - 1431339
TotalΣfᵢ = 20Σfᵢxᵢ = 162

What we know: Seven classes of size 2; Σfᵢ = 1 + 2 + 1 + 5 + 6 + 2 + 3 = 20 houses.

What we need: The mean number of plants per house, and the method with a reason.

The plan: The class marks (1, 3, 5, ..., 13) and the frequencies are small numbers, so the direct method is quickest: x̄ = Σfᵢxᵢ ÷ Σfᵢ.

  1. Class marks: (0 + 2) ÷ 2 = 1, then 3, 5, 7, 9, 11, 13. Products and totals: see the table at the start of this answer.
  2. Σfᵢxᵢ = 1 + 6 + 5 + 35 + 54 + 22 + 39 = 162.
  3. x̄ = 162 ÷ 20 = 8.1.

The mean is 8.1 plants per house. We used the direct method, because the values of xᵢ and fᵢ are small, so the products are easy.

Check: 11 of the 20 houses have 6 to 10 plants, so a mean near 8 is sensible. The book's key: 8.1 plants, direct method.

Another way: Step deviation with a = 7 and h = 2: the uᵢ are −3, −2, −1, 0, 1, 2, 3, and the fᵢuᵢ are −3, −4, −1, 0, 6, 4, 9. So Σfᵢuᵢ = −8 + 19 = 11, and x̄ = 7 + 2 × 11 ÷ 20 = 7 + 1.1 = 8.1. The same, as it must be.

2. Consider the following distribution of daily wages of 50 workers of a factory. Daily wages (in ₹): 500 - 520, 520 - 540, 540 - 560, 560 - 580, 580 - 600. Number of workers: 12, 14, 8, 6, 10. Find the mean daily wages of the workers of the factory by using an appropriate method.Tap to reveal
Daily wages (₹)Number of workers (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 550uᵢ = dᵢ ÷ 20fᵢuᵢ
500 - 52012510−40−2−24
520 - 54014530−20−1−14
540 - 5608550000
560 - 58065702016
580 - 6001059040220
TotalΣfᵢ = 50Σfᵢuᵢ = −12

What we know: Five classes of size 20; 50 workers. The class marks 510, 530, 550, 570, 590 are large.

The plan: The deviations from 550 are all multiples of 20, so the step-deviation method keeps the numbers tiny: a = 550, h = 20.

  1. uᵢ = (xᵢ − 550) ÷ 20 gives −2, −1, 0, 1, 2. The working: see the table at the start of this answer.
  2. Σfᵢuᵢ = −24 − 14 + 0 + 6 + 20 = −38 + 26 = −12.
  3. x̄ = 550 + 20 × (−12) ÷ 50 = 550 − 240 ÷ 50 = 550 − 4.8 = 545.2.

The mean daily wage is ₹545.20.

Check: Direct method: Σfᵢxᵢ = 6120 + 7420 + 4400 + 3420 + 5900 = 27,260, and 27,260 ÷ 50 = 545.2. The same. The book's key: ₹545.20.

3. The following distribution shows the daily pocket allowance of children of a locality. The mean pocket allowance is ₹18. Find the missing frequency f. Daily pocket allowance (in ₹): 11 - 13, 13 - 15, 15 - 17, 17 - 19, 19 - 21, 21 - 23, 23 - 25. Number of children: 7, 6, 9, 13, f, 5, 4.Tap to reveal
Daily pocket allowance (₹)Number of children (fᵢ)Class mark (xᵢ)fᵢxᵢ
11 - 1371284
13 - 1561484
15 - 17916144
17 - 191318234
19 - 21f2020f
21 - 23522110
23 - 2542496
TotalΣfᵢ = 44 + fΣfᵢxᵢ = 752 + 20f

What we know: x̄ = 18; one unknown frequency f in the class 19 - 21.

What we need: The value of f.

The plan: Write Σfᵢ and Σfᵢxᵢ with f in them, then solve Σfᵢxᵢ ÷ Σfᵢ = 18.

  1. Class marks: 12, 14, 16, 18, 20, 22, 24. The working: see the table at the start of this answer.
  2. Σfᵢ = 7 + 6 + 9 + 13 + f + 5 + 4 = 44 + f.
  3. Σfᵢxᵢ = 84 + 84 + 144 + 234 + 20f + 110 + 96 = 752 + 20f.
  4. (752 + 20f) ÷ (44 + f) = 18, so 752 + 20f = 792 + 18f.
  5. 20f − 18f = 792 − 752, so 2f = 40 and f = 20.

The missing frequency is f = 20.

Check: With f = 20: Σfᵢ = 64 and Σfᵢxᵢ = 752 + 400 = 1152, and 1152 ÷ 64 = 18.

Another way: Take a = 18, the given mean. Then dᵢ = −6, −4, −2, 0, 2, 4, 6 and Σfᵢdᵢ = −42 − 24 − 18 + 0 + 2f + 20 + 24 = 2f − 40. Since x̄ = a, the mean deviation must be 0: 2f − 40 = 0, so f = 20. The same, with less work.

4. Thirty women were examined in a hospital by a doctor and the number of heartbeats per minute were recorded and summarised as follows. Find the mean heartbeats per minute for these women, choosing a suitable method. Number of heartbeats per minute: 65 - 68, 68 - 71, 71 - 74, 74 - 77, 77 - 80, 80 - 83, 83 - 86. Number of women: 2, 4, 3, 8, 7, 4, 2.Tap to reveal
Heartbeats per minuteNumber of women (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 75.5uᵢ = dᵢ ÷ 3fᵢuᵢ
65 - 68266.5−9−3−6
68 - 71469.5−6−2−8
71 - 74372.5−3−1−3
74 - 77875.5000
77 - 80778.5317
80 - 83481.5628
83 - 86284.5936
TotalΣfᵢ = 30Σfᵢuᵢ = 4

What we know: Seven classes of size 3; 30 women. The class marks are 66.5, 69.5, ..., 84.5: decimals, awkward to multiply.

The plan: Step-deviation with a = 75.5 (the middle class mark) and h = 3: the uᵢ become −3 to 3.

  1. The working: see the table at the start of this answer.
  2. Σfᵢuᵢ = −6 − 8 − 3 + 0 + 7 + 8 + 6 = −17 + 21 = 4.
  3. x̄ = 75.5 + 3 × 4 ÷ 30 = 75.5 + 12 ÷ 30 = 75.5 + 0.4 = 75.9.

The mean is 75.9 heartbeats per minute.

Check: Most women (8 + 7 = 15) are in 74 - 80, and 75.9 is inside that range. A normal resting heart rate is about 60 to 100 beats per minute, so 75.9 is sensible. The book's key: 75.9.

Another way: Direct method: Σfᵢxᵢ = 133 + 278 + 217.5 + 604 + 549.5 + 326 + 169 = 2277, and 2277 ÷ 30 = 75.9. It works, but every product has a decimal, which is why step deviation was the better choice.

5. In a retail market, fruit vendors were selling mangoes kept in packing boxes. These boxes contained varying number of mangoes. The following was the distribution of mangoes according to the number of boxes. Number of mangoes: 50 - 52, 53 - 55, 56 - 58, 59 - 61, 62 - 64. Number of boxes: 15, 110, 135, 115, 25. Find the mean number of mangoes kept in a packing box. Which method of finding the mean did you choose?Tap to reveal
Number of mangoesNumber of boxes (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 57uᵢ = dᵢ ÷ 3fᵢuᵢ
50 - 521551−6−2−30
53 - 5511054−3−1−110
56 - 5813557000
59 - 611156031115
62 - 6425636250
TotalΣfᵢ = 400Σfᵢuᵢ = 25

What we know: Inclusive classes (counts of mangoes are whole numbers, so 52 and 53 leave no value between them). 400 boxes in all.

The plan: The mean needs only class marks, which are the same for inclusive and continuous classes: 51, 54, 57, 60, 63. They go up in steps of 3, and the frequencies are large, so use step deviation with a = 57 and h = 3.

  1. The working: see the table at the start of this answer.
  2. Σfᵢuᵢ = −30 − 110 + 0 + 115 + 50 = −140 + 165 = 25.
  3. x̄ = 57 + 3 × 25 ÷ 400 = 57 + 75 ÷ 400 = 57 + 0.1875 = 57.1875 ≈ 57.19.

The mean is about 57.19 mangoes per box. We chose the step-deviation method, because the frequencies are large and the class marks are evenly spaced.

Check: The busiest class is 56 - 58 (class mark 57), and the classes on each side are nearly equal (110 and 115), so the mean is just above 57. The book's key: 57.19.

Another way: Direct method: Σfᵢxᵢ = 765 + 5940 + 7695 + 6900 + 1575 = 22,875, and 22,875 ÷ 400 = 57.1875. The same, with much bigger products.

A path that fails: taking h = 2 because "50 - 52 is 2 wide". The class marks are 3 apart, so the step must be 3; with h = 2 the uᵢ would not even be whole numbers.

6. The table below shows the daily expenditure on food of 25 households in a locality. Daily expenditure (in ₹): 100 - 150, 150 - 200, 200 - 250, 250 - 300, 300 - 350. Number of households: 4, 5, 12, 2, 2. Find the mean daily expenditure on food by a suitable method.Tap to reveal
Daily expenditure (₹)Number of households (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 225uᵢ = dᵢ ÷ 50fᵢuᵢ
100 - 1504125−100−2−8
150 - 2005175−50−1−5
200 - 25012225000
250 - 30022755012
300 - 350232510024
TotalΣfᵢ = 25Σfᵢuᵢ = −7

What we know: Five classes of size 50; 25 households.

The plan: Class marks 125 to 325 are large and 50 apart: step deviation with a = 225, h = 50.

  1. The working: see the table at the start of this answer.
  2. Σfᵢuᵢ = −8 − 5 + 0 + 2 + 4 = −13 + 6 = −7.
  3. x̄ = 225 + 50 × (−7) ÷ 25 = 225 − 350 ÷ 25 = 225 − 14 = 211.

The mean daily expenditure on food is ₹211.

Check: Direct method: Σfᵢxᵢ = 500 + 875 + 2700 + 550 + 650 = 5275, and 5275 ÷ 25 = 211. The book's key: ₹211.

7. To find out the concentration of SO₂ in the air (in parts per million, that is, ppm), the data was collected for 30 localities in a certain city and is presented below. Concentration of SO₂ (in ppm): 0.00 - 0.04, 0.04 - 0.08, 0.08 - 0.12, 0.12 - 0.16, 0.16 - 0.20, 0.20 - 0.24. Frequency: 4, 9, 9, 2, 4, 2. Find the mean concentration of SO₂ in the air.Tap to reveal
Concentration of SO₂ (ppm)Frequency (fᵢ)Class mark (xᵢ)fᵢxᵢ
0.00 - 0.0440.020.08
0.04 - 0.0890.060.54
0.08 - 0.1290.10.9
0.12 - 0.1620.140.28
0.16 - 0.2040.180.72
0.20 - 0.2420.220.44
TotalΣfᵢ = 30Σfᵢxᵢ = 2.96

What we know: Six classes of size 0.04; 30 localities. ppm means parts per million.

The plan: The direct method works well here: the class marks 0.02, 0.06, ... are small decimals.

  1. The working: see the table at the start of this answer.
  2. Σfᵢxᵢ = 0.08 + 0.54 + 0.90 + 0.28 + 0.72 + 0.44 = 2.96.
  3. x̄ = 2.96 ÷ 30 = 0.0986... ≈ 0.099.

The mean concentration of SO₂ is about 0.099 ppm.

Check: Step deviation with a = 0.10 and h = 0.04: the uᵢ are −2, −1, 0, 1, 2, 3, and Σfᵢuᵢ = −8 − 9 + 0 + 2 + 8 + 6 = −1, so x̄ = 0.10 − 0.04 ÷ 30 ≈ 0.0987. The same. The book's key: 0.099 ppm.

8. A class teacher has the following absentee record of 40 students of a class for the whole term. Find the mean number of days a student was absent. Number of days: 0 - 6, 6 - 10, 10 - 14, 14 - 20, 20 - 28, 28 - 38, 38 - 40. Number of students: 11, 10, 7, 4, 4, 3, 1.Tap to reveal
Number of daysNumber of students (fᵢ)Class mark (xᵢ)fᵢxᵢ
0 - 611333
6 - 1010880
10 - 1471284
14 - 2041768
20 - 2842496
28 - 3833399
38 - 4013939
TotalΣfᵢ = 40Σfᵢxᵢ = 499

What we know: Seven classes of unequal sizes (6, 4, 4, 6, 8, 10, 2); 40 students.

The plan: With unequal classes the class marks (3, 8, 12, 17, 24, 33, 39) have no common step, so the direct method is simplest.

  1. Class marks: (0 + 6) ÷ 2 = 3, (6 + 10) ÷ 2 = 8, 12, 17, 24, 33, 39. The working: see the table at the start of this answer.
  2. Σfᵢxᵢ = 33 + 80 + 84 + 68 + 96 + 99 + 39 = 499.
  3. x̄ = 499 ÷ 40 = 12.475 ≈ 12.48.

The mean is about 12.48 days of absence per student.

Check: 21 of the 40 students were absent fewer than 10 days, but a few were absent 28 days or more, and those pull the mean up to about 12.5. The book's key: 12.48 days.

Another way: Assumed mean a = 17 (the middle class mark): the dᵢ are −14, −9, −5, 0, 7, 16, 22, and Σfᵢdᵢ = −154 − 90 − 35 + 0 + 28 + 48 + 22 = −279 + 98 = −181. So x̄ = 17 − 181 ÷ 40 = 17 − 4.525 = 12.475. With unequal classes there is no common step h, so step deviation saves nothing here.

9. The following table gives the literacy rate (in percentage) of 35 cities. Find the mean literacy rate. Literacy rate (in %): 45 - 55, 55 - 65, 65 - 75, 75 - 85, 85 - 95. Number of cities: 3, 10, 11, 8, 3.Tap to reveal
Literacy rate (%)Number of cities (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 70uᵢ = dᵢ ÷ 10fᵢuᵢ
45 - 55350−20−2−6
55 - 651060−10−1−10
65 - 751170000
75 - 858801018
85 - 953902026
TotalΣfᵢ = 35Σfᵢuᵢ = −2

What we know: Five classes of size 10; 35 cities.

The plan: Step deviation with a = 70 (the middle class mark) and h = 10.

  1. The working: see the table at the start of this answer.
  2. Σfᵢuᵢ = −6 − 10 + 0 + 8 + 6 = −16 + 14 = −2.
  3. x̄ = 70 + 10 × (−2) ÷ 35 = 70 − 20 ÷ 35 = 70 − 0.571... ≈ 69.43.

The mean literacy rate is about 69.43%.

Check: Direct method: Σfᵢxᵢ = 150 + 600 + 770 + 640 + 270 = 2430, and 2430 ÷ 35 = 69.43. The book's key: 69.43%.

When you are stuck: Exercise 13.1

Choose the method by the numbers: small class marks and frequencies, direct; large ones, step deviation with a in the middle and h the step between class marks.

Unequal classes? Use the direct method, or an h that divides every deviation (Example 3).

Inclusive classes (50 - 52, 53 - 55) need no change for the mean: the class marks are the same.

A missing frequency: take a equal to the given mean; then Σfᵢdᵢ must be 0 (Q3).

13.3Mode of grouped data

Recall that a mode is the value among the observations that occurs most often, that is, the value of the observation with the maximum frequency. In the section "Data, frequency and the three averages" we found the mode of ungrouped data. Here we find the mode of grouped data.

It is possible that more than one value has the same maximum frequency. In such situations the data are said to be multimodal. Grouped data can also be multimodal, but, like the book, we restrict ourselves to problems with a single mode. Let us first recall how we find the mode of ungrouped data.

Example 4

The wickets taken by a bowler in 10 cricket matches are as follows: 2, 6, 4, 5, 0, 2, 1, 3, 2, 3. Find the mode of the data.

What we know: Ten observations, the wickets in each match.

What we need: The number of wickets taken most often.

The plan: Form the frequency table and pick the value with the highest frequency.

  1. Count each value: 0 wickets in 1 match, 1 in 1, 2 in 3, 3 in 2, 4 in 1, 5 in 1, 6 in 1 (the table below). The total is 10 matches.
  2. The highest frequency is 3, for 2 wickets: the bowler took 2 wickets in more matches (three) than any other number.

The mode of the data is 2 wickets.

Check: The frequencies add to 1 + 1 + 3 + 2 + 1 + 1 + 1 = 10, so every match is counted once. No other value reaches 3.

Number of wickets0123456
Number of matches1132111

In a grouped frequency distribution, it is not possible to find the mode by looking at the frequencies, because we do not know the single values inside a class. We can only find the class with the maximum frequency, called the modal class. The mode is a value inside the modal class, given by the formula below.

The mode of grouped data

l = the lower limit of the modal class;

h = the size of the class interval (all class sizes are assumed equal);

f₁ = the frequency of the modal class (read "f one");

f₀ = the frequency of the class just before the modal class ("f nought");

f₂ = the frequency of the class just after the modal class ("f two").

Read the whole formula as: the mode is l plus the fraction (f₁ minus f₀) over (2 f₁ minus f₀ minus f₂), times h.

Why the formula is true

Inside the modal class, where is the most crowded point? If the class before it (f₀) is almost as busy as the modal class, the crowd leans to the left end of the modal class. If the class after it (f₂) is almost as busy, the crowd leans to the right end. The formula measures this lean. The picture below shows it for the book's Example 6 (classes 25 - 40, 40 - 55 and 55 - 70, with frequencies 3, 7 and 6).

25405570367mode = 52f₀ = 3f₁ = 7f₂ = 6
The mode formula as a picture: the two lines cross above the mode, nearer the taller neighbour.

Draw two lines on the histogram. The first runs from the top left corner of the modal bar to the top left corner of the next bar. The second runs from the top right corner of the bar before to the top right corner of the modal bar. They cross at a point P. The mode is the value under P. Here is why that value is given by the formula, one step at a time.

  1. At the left edge of the modal bar (the value l), the two lines are f₁ − f₀ apart: one starts at height f₁, the other at f₀.
  2. At the right edge (the value l + h), they are f₁ − f₂ apart: one ends at f₂, the other at f₁.
  3. The two lines and these two vertical pieces make two triangles that meet at P. The angles at P are vertically opposite, so they are equal. The vertical pieces are parallel, so the angles they make with each line are alternate angles, also equal. So the triangles are similar (AA similarity, Chapter 6).
  4. In similar triangles, corresponding lengths are in the same ratio. So the horizontal distances from P to the left edge and to the right edge are in the ratio (f₁ − f₀) : (f₁ − f₂).
  5. These two distances add up to the class size h. So the distance from l to P is h × (f₁ − f₀) ÷ [(f₁ − f₀) + (f₁ − f₂)].
  6. The bottom of that fraction is (f₁ − f₀) + (f₁ − f₂) = 2f₁ − f₀ − f₂. So the mode, the value under P, is l + (f₁ − f₀) ÷ (2f₁ − f₀ − f₂) × h, which is the formula.

Two checks of the idea. If f₀ = f₂ (equal neighbours), the fraction is (f₁ − f₀) ÷ (2f₁ − 2f₀) = ½, and the mode is the middle of the modal class, as it should be by symmetry. If f₀ is close to f₁, the fraction is close to 0, and the mode is near the left end, as the lean suggests.

Let us consider the following examples to see the formula at work.

Example 5

A survey conducted on 20 households in a locality by a group of students resulted in the following frequency table for the number of family members in a household. Family size: 1 - 3, 3 - 5, 5 - 7, 7 - 9, 9 - 11. Number of families: 7, 8, 2, 2, 1. Find the mode of this data.

What we know: Five classes of size 2; 20 households.

What we need: The mode of the family size.

The plan: Find the modal class (the class with the maximum frequency), read off l, h, f₁, f₀ and f₂, and substitute in the formula.

  1. The maximum class frequency is 8, for the class 3 - 5. So the modal class is 3 - 5.
  2. Lower limit l = 3; class size h = 2.
  3. f₁ = 8 (the modal class); f₀ = 7 (the class 1 - 3, just before); f₂ = 2 (the class 5 - 7, just after).
  4. Mode = 3 + (8 − 7) ÷ (2 × 8 − 7 − 2) × 2 = 3 + 1 ÷ 7 × 2 = 3 + 2/7.
  5. 2/7 = 0.2857..., so the mode = 3.286 (to three decimal places).

The mode of the data is 3.286 members.

Check: The mode lies inside the modal class 3 - 5, and close to its left end 3, because the class before (7 families) is almost as busy as the modal class (8), while the class after has only 2.

Example 6

The marks distribution of 30 students in a mathematics examination is given in Table 13.3 of Example 1. Find the mode of this data. Also compare and interpret the mode and the mean.

What we know: Table 13.3: 10 - 25 (2), 25 - 40 (3), 40 - 55 (7), 55 - 70 (6), 70 - 85 (6), 85 - 100 (6). The mean was found to be 62.

The plan: The maximum number of students (7) scored in 40 - 55, so that is the modal class. Read off the values and use the formula.

  1. l = 40, h = 15, f₁ = 7, f₀ = 3 (the class 25 - 40), f₂ = 6 (the class 55 - 70).
  2. Mode = 40 + (7 − 3) ÷ (14 − 3 − 6) × 15 = 40 + 4 ÷ 5 × 15 = 40 + 12 = 52.

The mode marks is 52. So the largest number of students obtained about 52 marks, while on an average a student obtained 62 marks.

Check: The picture above shows the same: the crossing point P stands above 52, inside the modal class 40 - 55, nearer its right end, because the class after (6) is busier than the class before (3).

Remarks.

  1. In Example 6 the mode is less than the mean. For other data it may be equal to the mean, or more than it. (In Exercise 13.2 Q1 below, for instance, the mode 36.8 is more than the mean 35.4.)
  2. Which one we want depends on the question. If we want the average marks obtained by the students, we need the mean. If we want the marks obtained by most of the students, we need the mode.

Activity 3

Continuing with the same groups as in Activity 2, each group finds the mode of its data, compares it with the mean, and interprets the meaning of both.

What we know: Our sample for group 2 (maximum temperatures for 30 days): 36 - 38 (3), 38 - 40 (6), 40 - 42 (10), 42 - 44 (8), 44 - 46 (3). The mean was 41.13 °C.

The plan: The modal class is 40 - 42. Use the mode formula, then compare.

  1. l = 40, h = 2, f₁ = 10, f₀ = 6, f₂ = 8.
  2. Mode = 40 + (10 − 6) ÷ (20 − 6 − 8) × 2 = 40 + 4 ÷ 6 × 2 = 40 + 4/3 ≈ 41.33.

For the sample, the mode is about 41.33 °C and the mean about 41.13 °C. The most common maximum temperature was about 41.3 °C; the average maximum was about 41.1 °C.

Check: The two are close because the data are nearly balanced around the busiest class. The mode is a little higher because the class after (8 days) is busier than the class before (6 days).

Remark. The mode can also be calculated for grouped data with unequal class sizes, but the book does not discuss it, and neither shall we.

More examples

Worked example 24

For a modal class with l = 20 and h = 10, the frequencies are f₁ = 15, f₀ = 10 and f₂ = 5. Find the mode.

The plan: Substitute in the formula.

  1. 2f₁ − f₀ − f₂ = 30 − 10 − 5 = 15.
  2. f₁ − f₀ = 15 − 10 = 5.
  3. Mode = 20 + 5 ÷ 15 × 10 = 20 + 10/3 ≈ 23.33.

The mode is about 23.33.

Check: 23.33 is inside 20 - 30 and to the left of its middle (25), because the class before (10) is busier than the class after (5).

Worked example 25

A mobile phone shop in Lucknow recorded the ages of its 50 customers in one day: 15 - 20 (6), 20 - 25 (14), 25 - 30 (18), 30 - 35 (8), 35 - 40 (4). The shop wants to aim its advertisements at the most typical customer. Find the mode of the ages.

What we know: Five classes of size 5; 50 customers.

The plan: The most typical customer is the most frequent age: the mode. The modal class is 25 - 30 (18 customers).

  1. l = 25, h = 5, f₁ = 18, f₀ = 14, f₂ = 8.
  2. 2f₁ − f₀ − f₂ = 36 − 14 − 8 = 14.
  3. Mode = 25 + (18 − 14) ÷ 14 × 5 = 25 + 20/14 = 25 + 10/7 ≈ 26.43.

The modal age is about 26.4 years. The advertisements should aim at people in their mid-twenties.

Check: The mode lies in 25 - 30, a little to the left of its middle, because the class before (14) is busier than the class after (8).

Worked example 26

In the picture of the mode formula above, read off f₀, f₁ and f₂, and confirm the position of the crossing point P.

What we know: The bars 25 - 40, 40 - 55 and 55 - 70 have heights 3, 7 and 6.

The plan: Use the similar triangles: P divides the modal class in the ratio (f₁ − f₀) : (f₁ − f₂).

  1. f₀ = 3, f₁ = 7, f₂ = 6, so f₁ − f₀ = 4 and f₁ − f₂ = 1.
  2. The class width 15 splits in the ratio 4 : 1, that is, into 12 and 3.
  3. So P is 12 to the right of 40: at 52.

P stands above 52, the mode of Example 6.

Check: The ratio rule and the formula are the same thing: 15 × 4 ÷ (4 + 1) = 12.

Worked example 27

The mode of the following data is 36. Find the missing frequency x. Classes: 0 - 10, 10 - 20, 20 - 30, 30 - 40, 40 - 50, 50 - 60, 60 - 70. Frequencies: 8, 10, x, 16, 12, 6, 7.

What we know: Mode = 36, which lies in the class 30 - 40, so that is the modal class.

The plan: Put l = 30, h = 10, f₁ = 16, f₀ = x and f₂ = 12 into the formula, and solve for x.

  1. 36 = 30 + (16 − x) ÷ (32 − x − 12) × 10.
  2. 6 = 10(16 − x) ÷ (20 − x).
  3. 6(20 − x) = 160 − 10x, so 120 − 6x = 160 − 10x.
  4. 10x − 6x = 160 − 120, so 4x = 40 and x = 10.

The missing frequency is x = 10.

Check: With x = 10: mode = 30 + 6 ÷ 10 × 10 = 36. Also 16 is still the largest frequency, so 30 - 40 really is the modal class.

Worked example 28

Find the mode of: 0 - 10 (12), 10 - 20 (9), 20 - 30 (6), 30 - 40 (3).

What we know: The modal class is the first class, 0 - 10. There is no class before it.

The plan: A class that is not there has frequency 0, so take f₀ = 0.

  1. l = 0, h = 10, f₁ = 12, f₀ = 0, f₂ = 9.
  2. Mode = 0 + (12 − 0) ÷ (24 − 0 − 9) × 10 = 12 ÷ 15 × 10 = 8.

The mode is 8.

Check: 8 is inside 0 - 10, to the right of its middle, because the class after it (9) is busy and the class before it is empty.

Worked example 29

Find the mode of: 0 - 10 (5), 10 - 20 (12), 20 - 30 (8), 30 - 40 (12), 40 - 50 (3).

The plan: Look for the modal class first.

  1. The highest frequency, 12, belongs to two classes: 10 - 20 and 30 - 40.
  2. The data are multimodal. The formula needs one modal class, and gives a different answer for each: 10 + 7 ÷ 11 × 10 ≈ 16.36, and 30 + 4 ÷ 13 × 10 ≈ 33.08.

There is no single mode. The data have two modal classes, so the formula, which assumes one, does not settle the question.

Check: Report both modal classes, 10 - 20 and 30 - 40, or use the mean or the median instead.

The dead end, and what it means: the book restricts itself to data with a single mode. When two classes tie, the honest answer is that the data have two peaks.

Common mistakes with the mode

Taking the modal class's class mark as the mode. The class mark of 40 - 55 is 47.5, but the mode is 52.

Mixing up f₀ and f₂. f₀ is the class just before (smaller values); f₂ the class just after.

Using the cumulative frequency instead of the frequency. The mode uses plain frequencies.

Writing 2f₁ − f₀ + f₂. Both f₀ and f₂ are subtracted.

Forgetting to make classes continuous (50 - 52, 53 - 55 must become 49.5 - 52.5, 52.5 - 55.5) before using l.

When you are stuck: the mode of grouped data

Circle the largest frequency and write its class; then write the frequencies on each side of it.

Estimate before computing: the mode is inside the modal class, nearer the busier neighbour.

If the modal class is the first or the last, the missing neighbour has frequency 0.

If two classes tie, say the data are multimodal instead of forcing one answer.

Worked example 30

Find the mode of the ungrouped marks of Example 1 (before grouping). Compare it with the grouped mode 52 of Example 6.

What we know: Example 1: marks 10, 20, 36, 40, 50, 56, 60, 70, 72, 80, 88, 92, 95 with frequencies 1, 1, 3, 4, 3, 2, 4, 4, 1, 1, 2, 3, 1.

The plan: Look for the highest frequency in the ungrouped table.

  1. The highest frequency is 4, and it belongs to three marks: 40, 60 and 70.
  2. So the ungrouped data are multimodal, with modes 40, 60 and 70.

The ungrouped marks have three modes: 40, 60 and 70; grouping gives one mode, 52.

Check: Grouping smooths out small ties: the class 40 - 55 holds 7 students, more than any other class, so the grouped data have a single modal class.

A loose end: the grouped mode 52 is not one of the actual marks at all. It estimates where the marks crowd most, which is a different question from which single mark was scored most often.

Worked example 31

Find the mode of: 0 - 5 (2), 5 - 10 (4), 10 - 15 (7), 15 - 20 (11).

What we know: The modal class is the last class, 15 - 20; there is no class after it.

The plan: A missing class has frequency 0, so f₂ = 0.

  1. l = 15, h = 5, f₁ = 11, f₀ = 7, f₂ = 0.
  2. 2f₁ − f₀ − f₂ = 22 − 7 − 0 = 15.
  3. Mode = 15 + (11 − 7) ÷ 15 × 5 = 15 + 20 ÷ 15 = 15 + 1.33 = 16.33.

The mode is about 16.33.

Check: It is inside 15 - 20, to the left of its middle, because the only neighbour (7) is on the left.

Worked example 32

Find the mode of the marks: 10 - 19 (5), 20 - 29 (9), 30 - 39 (15), 40 - 49 (10), 50 - 59 (6).

What we know: Inclusive classes: marks are whole numbers, and there is a gap of 1 between 19 and 20.

The plan: The mode formula needs continuous classes (the book's Note to the Reader). Move every limit out by half the gap, 0.5, then use the formula.

  1. Continuous classes: 9.5 - 19.5, 19.5 - 29.5, 29.5 - 39.5, 39.5 - 49.5, 49.5 - 59.5; h = 10.
  2. The modal class is 29.5 - 39.5: l = 29.5, f₁ = 15, f₀ = 9, f₂ = 10.
  3. 2f₁ − f₀ − f₂ = 30 − 19 = 11. Mode = 29.5 + 6 ÷ 11 × 10 = 29.5 + 5.45 = 34.95.

The mode is about 34.95 marks.

Check: It lies inside 30 - 39, a little right of the middle (34.5), because the class after (10) is busier than the class before (9).

A path that fails: using l = 30, the printed lower limit. That gives 35.45, half a mark too high, because a mark of 30 belongs to a class that really starts at 29.5.

Worked example 33

In a distribution, the mean is 52.5 and the median is 54. Estimate the mode, and say what the three values suggest about the shape of the data.

The plan: Use the empirical relationship Mode ≈ 3 Median − 2 Mean.

  1. 3 × 54 = 162 and 2 × 52.5 = 105.
  2. Mode ≈ 162 − 105 = 57.

The mode is about 57. The mean (52.5) is below the median (54), which is below the mode (57): the data have a tail of smaller values that pulls the mean down.

Check: With a tail of small values, the mean moves furthest towards the tail and the mode least, which is the order we found.

Your turn

1. Find the mode of: 10 - 20 (4), 20 - 30 (9), 30 - 40 (14), 40 - 50 (9), 50 - 60 (4).Tap to reveal
  1. Modal class 30 - 40: l = 30, h = 10, f₁ = 14, f₀ = 9, f₂ = 9.
  2. Mode = 30 + 5 ÷ (28 − 18) × 10 = 30 + 5 = 35.

The mode is 35, the middle of the modal class, because the neighbours are equal.

2. In a distribution the modal class is 60 - 80, with f₁ = 61, f₀ = 52 and f₂ = 38. Find the mode.Tap to reveal
  1. 2f₁ − f₀ − f₂ = 122 − 52 − 38 = 32.
  2. Mode = 60 + 9 ÷ 32 × 20 = 60 + 5.625 = 65.625.

The mode is 65.625.

3. Find the mode of: 0 - 20 (6), 20 - 40 (16), 40 - 60 (10), 60 - 80 (4).Tap to reveal
  1. Modal class 20 - 40: l = 20, h = 20, f₁ = 16, f₀ = 6, f₂ = 10.
  2. Mode = 20 + 10 ÷ (32 − 16) × 20 = 20 + 12.5 = 32.5.

The mode is 32.5.

4. The modal class of a table is 40 - 50, with frequency 20; the classes before and after it have frequencies 12 and 11. Find the mode.Tap to reveal
  1. 2f₁ − f₀ − f₂ = 40 − 12 − 11 = 17.
  2. Mode = 40 + 8 ÷ 17 × 10 = 40 + 4.71 = 44.71.

The mode is about 44.7 (the numbers of Exercise 13.2 Q6).

5. Why can the mode of grouped data be a value that nobody actually scored?Tap to reveal
  1. Grouped data hide the single values inside each class.
  2. The formula estimates where inside the modal class the data crowd most, using the neighbouring classes.
  3. That point is a position on the number line, not a score picked from the list.

Because the grouped mode is an estimate of where the data crowd most, found from the class frequencies, not one of the observed values. Example 6's mode, 52, was scored by no student.

In one line

The mode of grouped data lies in the modal class: Mode = l + (f₁ − f₀) ÷ (2f₁ − f₀ − f₂) × h, which places it nearer the busier neighbour.

Ex 13.2Exercise 13.2, solved

Every question of Exercise 13.2, in the book's order, in the full format. For each mode: the modal class, the values of l, h, f₁, f₀ and f₂, the formula, and a check that the answer lies inside the modal class on the correct side. Answers agree with the book's key.

1. The following table shows the ages of the patients admitted in a hospital during a year. Age (in years): 5 - 15, 15 - 25, 25 - 35, 35 - 45, 45 - 55, 55 - 65. Number of patients: 6, 11, 21, 23, 14, 5. Find the mode and the mean of the data given above. Compare and interpret the two measures of central tendency.Tap to reveal
Age (years)Number of patients (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 40uᵢ = dᵢ ÷ 10fᵢuᵢ
5 - 15610−30−3−18
15 - 251120−20−2−22
25 - 352130−10−1−21
35 - 452340000
45 - 55145010114
55 - 6556020210
TotalΣfᵢ = 80Σfᵢuᵢ = −37

What we know: Six classes of size 10; Σfᵢ = 80 patients.

What we need: The mode, the mean, and what each says about the patients.

The plan: Mode: the modal class is 35 - 45 (23 patients). Mean: step deviation with a = 40 and h = 10.

  1. Mode: l = 35, h = 10, f₁ = 23, f₀ = 21, f₂ = 14. 2f₁ − f₀ − f₂ = 46 − 21 − 14 = 11.
  2. Mode = 35 + (23 − 21) ÷ 11 × 10 = 35 + 20/11 = 35 + 1.818... ≈ 36.8.
  3. Mean: see the table at the start of this answer.
  4. Σfᵢuᵢ = −18 − 22 − 21 + 0 + 14 + 10 = −61 + 24 = −37.
  5. x̄ = 40 + 10 × (−37) ÷ 80 = 40 − 370 ÷ 80 = 40 − 4.625 = 35.375.

Mode ≈ 36.8 years; mean 35.375 years (about 35.38). The largest number of patients admitted were about 36.8 years old, while the average age of a patient admitted was about 35.4 years.

Check: Both lie in the busiest part of the table, 25 - 45, where 44 of the 80 patients are. Here the mode is more than the mean: the young patients (5 - 25) pull the mean down a little.

The book's key prints the mean as 35.37. The exact value is 35.375; rounded to two places it is 35.38. The key has cut off the last digit instead of rounding. Either is accepted.

2. The following data gives the information on the observed lifetimes (in hours) of 225 electrical components. Lifetimes (in hours): 0 - 20, 20 - 40, 40 - 60, 60 - 80, 80 - 100, 100 - 120. Frequency: 10, 35, 52, 61, 38, 29. Determine the modal lifetimes of the components.Tap to reveal

What we know: Six classes of size 20; 225 components.

The plan: The highest frequency, 61, belongs to 60 - 80: the modal class. Use the mode formula.

  1. l = 60, h = 20, f₁ = 61, f₀ = 52, f₂ = 38.
  2. f₁ − f₀ = 9 and 2f₁ − f₀ − f₂ = 122 − 52 − 38 = 32.
  3. Mode = 60 + 9 ÷ 32 × 20 = 60 + 180 ÷ 32 = 60 + 5.625 = 65.625.

The modal lifetime of the components is 65.625 hours.

Check: 65.625 is in 60 - 80, left of its middle (70), because the class before (52) is busier than the class after (38). The book's key: 65.625 hours.

3. The following data gives the distribution of total monthly household expenditure of 200 families of a village. Find the modal monthly expenditure of the families. Also, find the mean monthly expenditure. Expenditure (in ₹): 1000 - 1500, 1500 - 2000, 2000 - 2500, 2500 - 3000, 3000 - 3500, 3500 - 4000, 4000 - 4500, 4500 - 5000. Number of families: 24, 40, 33, 28, 30, 22, 16, 7.Tap to reveal
Expenditure (₹)Number of families (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 2750uᵢ = dᵢ ÷ 500fᵢuᵢ
1000 - 1500241250−1500−3−72
1500 - 2000401750−1000−2−80
2000 - 2500332250−500−1−33
2500 - 3000282750000
3000 - 3500303250500130
3500 - 40002237501000244
4000 - 45001642501500348
4500 - 5000747502000428
TotalΣfᵢ = 200Σfᵢuᵢ = −35

What we know: Eight classes of size 500; 200 families.

The plan: Mode: the modal class is 1500 - 2000 (40 families). Mean: step deviation with a = 2750 and h = 500.

  1. Mode: l = 1500, h = 500, f₁ = 40, f₀ = 24, f₂ = 33. 2f₁ − f₀ − f₂ = 80 − 24 − 33 = 23.
  2. Mode = 1500 + 16 ÷ 23 × 500 = 1500 + 8000 ÷ 23 = 1500 + 347.83 = 1847.83.
  3. Mean: see the table at the start of this answer.
  4. Σfᵢuᵢ = −72 − 80 − 33 + 0 + 30 + 44 + 48 + 28 = −185 + 150 = −35.
  5. x̄ = 2750 + 500 × (−35) ÷ 200 = 2750 − 87.5 = 2662.5.

Modal monthly expenditure ₹1847.83; mean monthly expenditure ₹2662.50.

Check: Here the mean is far above the mode: most families spend near ₹1,850, but the families spending ₹3,000 to ₹5,000 pull the average up. The book's key: ₹1847.83 and ₹2662.5.

4. The following distribution gives the state-wise teacher-student ratio in higher secondary schools of India. Find the mode and mean of this data. Interpret the two measures. Number of students per teacher: 15 - 20, 20 - 25, 25 - 30, 30 - 35, 35 - 40, 40 - 45, 45 - 50, 50 - 55. Number of states/U.T.: 3, 8, 9, 10, 3, 0, 0, 2.Tap to reveal
Students per teacherStates/U.T. (fᵢ)Class mark (xᵢ)dᵢ = xᵢ − 32.5uᵢ = dᵢ ÷ 5fᵢuᵢ
15 - 20317.5−15−3−9
20 - 25822.5−10−2−16
25 - 30927.5−5−1−9
30 - 351032.5000
35 - 40337.5513
40 - 45042.51020
45 - 50047.51530
50 - 55252.52048
TotalΣfᵢ = 35Σfᵢuᵢ = −23

What we know: Eight classes of size 5; Σfᵢ = 35 states and union territories.

The plan: Mode: the modal class is 30 - 35 (10). Mean: step deviation with a = 32.5 and h = 5.

  1. Mode: l = 30, h = 5, f₁ = 10, f₀ = 9, f₂ = 3. 2f₁ − f₀ − f₂ = 20 − 9 − 3 = 8.
  2. Mode = 30 + 1 ÷ 8 × 5 = 30 + 0.625 = 30.625 ≈ 30.6.
  3. Mean: see the table at the start of this answer.
  4. Σfᵢuᵢ = −9 − 16 − 9 + 0 + 3 + 0 + 0 + 8 = −34 + 11 = −23.
  5. x̄ = 32.5 + 5 × (−23) ÷ 35 = 32.5 − 115 ÷ 35 = 32.5 − 3.286 = 29.214 ≈ 29.2.

Mode ≈ 30.6, mean ≈ 29.2 students per teacher. Most states and union territories have about 30.6 students per teacher, and on an average the ratio is about 29.2.

Check: The two empty classes 40 - 45 and 45 - 50 contribute 0, as they should. The book's key: mode 30.6, mean 29.2.

5. The given distribution shows the number of runs scored by some top batsmen of the world in one-day international cricket matches. Runs scored: 3000 - 4000, 4000 - 5000, 5000 - 6000, 6000 - 7000, 7000 - 8000, 8000 - 9000, 9000 - 10,000, 10,000 - 11,000. Number of batsmen: 4, 18, 9, 7, 6, 3, 1, 1. Find the mode of the data.Tap to reveal

What we know: Eight classes of size 1000; 49 batsmen.

The plan: The modal class is 4000 - 5000 (18 batsmen).

  1. l = 4000, h = 1000, f₁ = 18, f₀ = 4, f₂ = 9.
  2. f₁ − f₀ = 14 and 2f₁ − f₀ − f₂ = 36 − 4 − 9 = 23.
  3. Mode = 4000 + 14 ÷ 23 × 1000 = 4000 + 14,000 ÷ 23 = 4000 + 608.70 = 4608.70.

The mode is about 4608.7 runs.

Check: It is in 4000 - 5000, right of its middle, because the class after (9) is busier than the class before (4). The book's key: 4608.7 runs.

Another way: For comparison, the mean of this table is 2,80,500 ÷ 49 ≈ 5724.5 runs, more than 1100 runs above the mode. The few batsmen with 8000 to 11,000 runs pull the mean up, while the mode stays where most batsmen are.

6. A student noted the number of cars passing through a spot on a road for 100 periods each of 3 minutes and summarised it in the table given below. Find the mode of the data. Number of cars: 0 - 10, 10 - 20, 20 - 30, 30 - 40, 40 - 50, 50 - 60, 60 - 70, 70 - 80. Frequency: 7, 14, 13, 12, 20, 11, 15, 8.Tap to reveal

What we know: Eight classes of size 10; 100 periods.

The plan: The modal class is 40 - 50 (frequency 20).

  1. l = 40, h = 10, f₁ = 20, f₀ = 12, f₂ = 11.
  2. f₁ − f₀ = 8 and 2f₁ − f₀ − f₂ = 40 − 12 − 11 = 17.
  3. Mode = 40 + 8 ÷ 17 × 10 = 40 + 80 ÷ 17 = 40 + 4.71 = 44.71.

The mode is about 44.7 cars in a 3-minute period.

Check: It is in 40 - 50, just left of the middle, as the two neighbours are nearly equal (12 and 11). The book's key: 44.7 cars.

Another way: For comparison, the mean is 4070 ÷ 100 = 40.7 cars: Σfᵢxᵢ = 35 + 210 + 325 + 420 + 900 + 605 + 975 + 600 = 4070. The table has a second busy class (60 - 70) and many quiet periods (0 - 40), so the mean and the mode differ by 4 cars.

A path that fails: choosing 60 - 70 (frequency 15) because it is "the second peak". Only the single highest frequency, 20, decides the modal class.

When you are stuck: Exercise 13.2

Write the three frequencies in a row: f₀, f₁, f₂, and check that f₁ is the largest in the whole table.

Compute the bottom first: 2f₁ − f₀ − f₂; a zero or negative bottom means a misread frequency.

Interpret in words: the mode is the most common value; the mean is the value each would have if the total were shared equally.

13.4Median of grouped data

As you saw in the section "Data, frequency and the three averages", the median is a measure of central tendency that gives the value of the middle-most observation in the data. Recall that to find the median of ungrouped data, we first arrange the observations in ascending order. Then, if n is odd, the median is the ((n + 1) ÷ 2)-th observation; and if n is even, the median is the average of the (n ÷ 2)-th and the (n ÷ 2 + 1)-th observations.

Suppose we have to find the median of the following data, which gives the marks, out of 50, obtained by 100 students in a test. Marks obtained: 20, 29, 28, 33, 42, 38, 43, 25. Number of students: 6, 28, 24, 15, 2, 4, 1, 20.

First we arrange the marks in ascending order and prepare a frequency table (Table 13.9).

Table 13.9

Marks obtainedNumber of students (frequency)
206
2520
2824
2928
3315
384
422
431
Total100

Here n = 100, which is even. The median is the average of the (n ÷ 2)-th and the (n ÷ 2 + 1)-th observations, that is, of the 50th and the 51st. To find these observations, we keep a running total of the students, mark by mark (Table 13.10).

Table 13.10

Marks obtainedNumber of students
206
up to 256 + 20 = 26
up to 2826 + 24 = 50
up to 2950 + 28 = 78
up to 3378 + 15 = 93
up to 3893 + 4 = 97
up to 4297 + 2 = 99
up to 4399 + 1 = 100

We add this information as a new column to the frequency table and call it the cumulative frequency column. "Cumulative" means "added up as we go": the cumulative frequency of a value is the number of observations up to and including it.

Table 13.11

Marks obtainedNumber of studentsCumulative frequency
2066
252026
282450
292878
331593
38497
42299
431100

From the table we see that the 50th observation is 28 and the 51st observation is 29. Why? The cumulative frequency of 28 is 50: the first 50 students in order are exactly those with 28 marks or fewer, so the 50th student is the last of those with 28. The cumulative frequency of 29 is 78, so the students numbered 51 to 78 all have 29: the 51st has 29.

Remark. The part of Table 13.11 consisting of Column 1 and Column 3 is known as a cumulative frequency table. The median 28.5 tells us that about 50% of the students obtained less than 28.5 marks, and the other 50% obtained more than 28.5.

Cumulative frequency of grouped data

Now let us see how to obtain the median of grouped data. Consider the grouped frequency distribution of marks obtained, out of 100, by 53 students in an examination (Table 13.12).

Table 13.12

MarksNumber of students
0 - 105
10 - 203
20 - 304
30 - 403
40 - 503
50 - 604
60 - 707
70 - 809
80 - 907
90 - 1008

From the table, try to answer these questions. How many students scored less than 10 marks? The answer is 5, the frequency of 0 - 10.

How many students scored less than 20 marks? They include the students who scored from 0 to 10 and those who scored from 10 to 20. So the number with less than 20 marks is 5 + 3 = 8. We say that the cumulative frequency of the class 10 - 20 is 8.

In the same way we compute the cumulative frequencies of the other classes: the number of students with marks less than 30, less than 40, ..., less than 100. They are in Table 13.13.

Table 13.13

Marks obtainedNumber of students (cumulative frequency)
Less than 105
Less than 205 + 3 = 8
Less than 308 + 4 = 12
Less than 4012 + 3 = 15
Less than 5015 + 3 = 18
Less than 6018 + 4 = 22
Less than 7022 + 7 = 29
Less than 8029 + 9 = 38
Less than 9038 + 7 = 45
Less than 10045 + 8 = 53

This is called the cumulative frequency distribution of the less than type. Here 10, 20, 30, ..., 100 are the upper limits of the class intervals.

We can also make a table of the number of students with marks more than or equal to 0, 10, 20, and so on. All 53 students scored 0 or more. Since 5 students are in 0 - 10, there are 53 − 5 = 48 students with 10 marks or more. Continuing in the same way, 48 − 3 = 45 scored 20 or more, 45 − 4 = 41 scored 30 or more, and so on (Table 13.14).

Table 13.14

Marks obtainedNumber of students (cumulative frequency)
More than or equal to 053
More than or equal to 1053 − 5 = 48
More than or equal to 2048 − 3 = 45
More than or equal to 3045 − 4 = 41
More than or equal to 4041 − 3 = 38
More than or equal to 5038 − 3 = 35
More than or equal to 6035 − 4 = 31
More than or equal to 7031 − 7 = 24
More than or equal to 8024 − 9 = 15
More than or equal to 9015 − 7 = 8

This is a cumulative frequency distribution of the more than type. Here 0, 10, 20, ..., 90 are the lower limits of the class intervals. To find the median of grouped data, we can use either type. Let us combine Tables 13.12 and 13.13 into Table 13.15.

Table 13.15

MarksNumber of students (f)Cumulative frequency (cf)
0 - 1055
10 - 2038
20 - 30412
30 - 40315
40 - 50318
50 - 60422
60 - 70729
70 - 80938
80 - 90745
90 - 100853

The median class and the median formula

In grouped data we may not be able to find the middle observation by looking at the cumulative frequencies, because the middle observation is some value inside a class interval. So we need to find the value inside a class that divides the whole distribution into two halves. But which class is it?

To find this class, we find the cumulative frequencies of all the classes and n ÷ 2. Then we locate the class whose cumulative frequency is greater than (and nearest to) n ÷ 2. This class is called the median class. In the distribution above, n = 53, so n ÷ 2 = 26.5. The class 60 - 70 has cumulative frequency 29, which is greater than (and nearest to) 26.5. So 60 - 70 is the median class.

After finding the median class, we use the following formula.

The median of grouped data

l = the lower limit of the median class;

n = the number of observations;

cf = the cumulative frequency of the class preceding the median class (the class just before it);

f = the frequency of the median class;

h = the class size (all class sizes assumed equal).

Read: the median is l plus (n over 2 minus c f) over f, times h.

Why the formula is true

Picture the 53 students standing in a line in order of their marks. The median is the mark of the student halfway along, at position n ÷ 2 = 26.5. Here is how the formula finds that mark, one step per line.

  1. Up to the start of the median class (60 marks) there are cf = 22 students.
  2. So we still need n ÷ 2 − cf = 26.5 − 22 = 4.5 more students, and they come from the median class.
  3. The median class holds f = 7 students. We assume they are spread evenly across its h = 10 marks, so each student takes up h ÷ f = 10 ÷ 7 marks of the class.
  4. So 4.5 students take up 4.5 × 10 ÷ 7 = 45 ÷ 7 ≈ 6.43 marks (this is idea 9 of "Before you start": sharing a length evenly).
  5. The median is therefore 6.43 marks past the start of the class: 60 + 6.43 = 66.43. In letters, l + (n ÷ 2 − cf) ÷ f × h.

The picture below shows the same thing. It plots the less than cumulative frequencies of Table 13.13 and joins them by straight lines. (Such a curve is called an ogive; the book's introduction names it, though this edition has no exercises on drawing it.) A straight piece between (60, 22) and (70, 29) is exactly the "spread evenly" assumption. The level n ÷ 2 = 26.5 meets that piece above the median.

0204060701001020304050median ≈ 66.4n ÷ 2 = 26.5Students with fewer marks
The less than curve (an ogive) of Table 13.13. Half of 53 students is 26.5; the line at 26.5 meets the piece from 60 to 70 above 66.4.

Substituting n ÷ 2 = 26.5, l = 60, cf = 22, f = 7 and h = 10 in the formula, we get

So about half the students scored less than 66.4 marks, and the other half scored more than 66.4.

Why "greater than n ÷ 2", and why the class before

The median class is the first class whose running total passes the halfway point n ÷ 2: the halfway student is inside it. The cf in the formula belongs to the class before, because it counts the students we have already passed when we reach the median class's lower limit l.

Example 7

A survey regarding the heights (in cm) of 51 girls of Class X of a school was conducted and the following data was obtained. Height (in cm): less than 140, less than 145, less than 150, less than 155, less than 160, less than 165. Number of girls: 4, 11, 29, 40, 46, 51. Find the median height.

What we know: A cumulative frequency table of the less than type, with n = 51 girls.

What we need: The median height.

The plan: The formula needs class intervals and their frequencies, so first turn the cumulative frequencies back into frequencies by subtracting each from the next.

  1. The table is of the less than type, so 140, 145, 150, ..., 165 are the upper limits. The classes are: below 140, 140 - 145, 145 - 150, ..., 160 - 165.
  2. 4 girls are shorter than 140 cm: the frequency of "below 140" is 4.
  3. 11 girls are shorter than 145 cm and 4 shorter than 140 cm, so 11 − 4 = 7 are in 140 - 145. Likewise 29 − 11 = 18 in 145 - 150, 40 − 29 = 11 in 150 - 155, 46 − 40 = 6 in 155 - 160 and 51 − 46 = 5 in 160 - 165 (Table 13.16).
  4. n = 51, so n ÷ 2 = 25.5. The first cumulative frequency greater than 25.5 is 29, so the median class is 145 - 150.
  5. l = 145, cf = 11 (the class before, 140 - 145), f = 18, h = 5.
  6. Median = 145 + (25.5 − 11) ÷ 18 × 5 = 145 + 14.5 × 5 ÷ 18 = 145 + 72.5 ÷ 18 = 145 + 4.03 = 149.03.

The median height of the girls is 149.03 cm.

Check: About 50% of the girls are shorter than 149.03 cm and 50% are taller. The median is in 145 - 150, the class with the most girls (18), which is sensible.

Table 13.16

Class intervalsFrequencyCumulative frequency (cf)
Below 14044
140 - 145711
145 - 1501829
150 - 1551140
155 - 160646
160 - 165551

Notice that the open class "below 140" caused no trouble: the median formula only needs the median class and the cumulative frequency before it. (The mean would need a class mark for "below 140", which we do not have.)

Example 8

The median of the following data is 525. Find the values of x and y, if the total frequency is 100. Class intervals: 0 - 100, 100 - 200, 200 - 300, 300 - 400, 400 - 500, 500 - 600, 600 - 700, 700 - 800, 800 - 900, 900 - 1000. Frequency: 2, 5, x, 12, 17, 20, y, 9, 7, 4.

What we know: n = 100; median = 525; two unknown frequencies x and y.

What we need: x and y.

The plan: Make the cumulative frequency column with x and y in it (the table below). The total gives one equation. The median 525 tells us the median class (500 - 600), and the median formula gives a second equation.

  1. The last cumulative frequency is 76 + x + y, and it must equal n = 100. So x + y = 24. Call this (1).
  2. The median 525 lies in the class 500 - 600, so that is the median class: l = 500, f = 20, h = 100, and cf = 36 + x (the cumulative frequency of 400 - 500).
  3. n ÷ 2 = 50. The formula: 525 = 500 + (50 − 36 − x) ÷ 20 × 100.
  4. 525 − 500 = (14 − x) × 5, so 25 = 70 − 5x.
  5. 5x = 70 − 25 = 45, so x = 9.
  6. From (1): 9 + y = 24, so y = 15.

x = 9 and y = 15.

Check: With x = 9: the cumulative frequency of 400 - 500 is 45 and of 500 - 600 is 65, so 500 - 600 really is the median class (45 < 50 < 65). Median = 500 + (50 − 45) ÷ 20 × 100 = 500 + 25 = 525.

Class intervalsFrequencyCumulative frequency
0 - 10022
100 - 20057
200 - 300x7 + x
300 - 4001219 + x
400 - 5001736 + x
500 - 6002056 + x
600 - 700y56 + x + y
700 - 800965 + x + y
800 - 900772 + x + y
900 - 1000476 + x + y

Which measure should we use?

Now that you have studied all three measures of central tendency, let us discuss which one suits a particular requirement.

The mean is the most frequently used measure of central tendency, because it takes all the observations into account, and it lies between the extremes, the largest and the smallest observations. It also lets us compare two or more distributions. For example, by comparing the average (mean) results of students of different schools in a particular examination, we can conclude which school has the better performance.

However, extreme values affect the mean. The mean of classes with roughly equal frequencies is a good representative of the data. But suppose one class has frequency 2 and the five others have frequencies 20, 25, 20, 21 and 18. If that small class lies far away from the others, its few extreme values can still drag the mean away from where the data really crowd, and then the mean does not reflect the way the data behave. In such cases, the mean is not a good representative.

In problems where individual observations are not important and we want a "typical" observation, the median is more appropriate: for example, the typical productivity rate of workers, or the typical wage in a country. These are situations where extreme values may be present. So, rather than the mean, we take the median as a better measure of central tendency.

In situations that need the most frequent value or the most popular item, the mode is the best choice. Examples: the most popular television programme being watched, the consumer item in greatest demand, or the colour of vehicle used by most people.

MeasureWhat it isBest whenWeakness
Meanthe total shared equallyyou need to use every value, or compare groupspulled by extreme values
Medianthe middle value in orderyou want a typical value and there are extreme valuesignores how far the extremes are
Modethe most frequent valueyou want the most common or most popular valuemay not be unique; ignores most values

Remarks.

  1. There is an empirical relationship between the three measures of central tendency: 3 Median = Mode + 2 Mean. "Empirical" means it was found by observing many real data sets, not proved; it works well when the data are only slightly lopsided. For Exercise 13.3 Q1 below: 3 × 137 = 411, while 135.77 + 2 × 137.06 = 409.89, close but not equal.
  2. The median of grouped data with unequal class sizes can also be calculated, but the book does not discuss it here.
The empirical relationship

Read: three times the median equals the mode plus twice the mean (approximately). It lets us estimate one measure from the other two: Mode ≈ 3 Median − 2 Mean.

More examples

Worked example 34

For a distribution, n = 60, the median class is 30 - 40, the cumulative frequency before it is 22, and its frequency is 15. Find the median.

The plan: Substitute in the median formula with l = 30, n ÷ 2 = 30, cf = 22, f = 15, h = 10.

  1. n ÷ 2 − cf = 30 − 22 = 8.
  2. Median = 30 + 8 ÷ 15 × 10 = 30 + 80 ÷ 15 = 30 + 5.33 = 35.33.

The median is about 35.33.

Check: The halfway point needs 8 of the class's 15 members, a little over half, so the median is a little past the middle of 30 - 40 (35).

Worked example 35

An office in Hyderabad asked its 50 employees how long their daily commute takes: 10 - 20 minutes (8 employees), 20 - 30 (12), 30 - 40 (15), 40 - 50 (10), 50 - 60 (5). Find the median commute time. Why might the office prefer the median to the mean?

What we know: Five classes of size 10; n = 50.

The plan: Make the cumulative frequency column (table below), find the median class and use the formula.

  1. n ÷ 2 = 25. Cumulative frequencies: 8, 20, 35, 45, 50.
  2. The first cumulative frequency greater than 25 is 35, so the median class is 30 - 40: l = 30, cf = 20, f = 15, h = 10.
  3. Median = 30 + (25 − 20) ÷ 15 × 10 = 30 + 50 ÷ 15 = 30 + 3.33 = 33.33.

The median commute is about 33.3 minutes. Half the employees travel less than this, and half more. One employee with a very long commute would pull the mean up, but would hardly move the median.

Check: The median lies in the busiest class, 30 - 40, near its lower end, since only 5 of its 15 members are needed.

Daily commute (minutes)Number of employees (f)Cumulative frequency (cf)
10 - 2088
20 - 301220
30 - 401535
40 - 501045
50 - 60550

Worked example 36

In the less than curve shown earlier in this section (Table 13.13), read off how many students scored less than 50 marks, and use the curve to check that the median is about 66.4.

What we know: The curve passes through (50, 18), (60, 22) and (70, 29).

The plan: Read the height at 50; then find where the height reaches 26.5.

  1. At 50 marks the height is 18: 18 students scored less than 50.
  2. Between 60 and 70 the curve rises from 22 to 29, that is, 7 students over 10 marks.
  3. The height 26.5 is 4.5 above 22, so it is reached 4.5 ÷ 7 of the way along: 4.5 ÷ 7 × 10 ≈ 6.43 marks past 60.

18 students scored less than 50, and the curve reaches 26.5 at about 66.4, the median.

Check: Reading a straight piece of the curve is the same calculation as the formula.

Worked example 37

The median of the following distribution is 32. Find the missing frequency p. Classes: 0 - 10, 10 - 20, 20 - 30, 30 - 40, 40 - 50, 50 - 60. Frequencies: 10, p, 25, 30, 16, 10. The total frequency is 100.

What we know: n = 100, median = 32, one unknown p.

The plan: Use the total first: it fixes p at once. Then check that the median really is 32.

  1. 10 + p + 25 + 30 + 16 + 10 = 91 + p = 100, so p = 9.
  2. Cumulative frequencies: 10, 19, 44, 74, 90, 100. n ÷ 2 = 50, so the median class is 30 - 40, with cf = 44 and f = 30.
  3. Median = 30 + (50 − 44) ÷ 30 × 10 = 30 + 2 = 32.

p = 9, and the median is indeed 32.

Check: The two facts agree. If the median had come out different, the data would be impossible.

A path that fails: starting with the median formula and taking cf = 10 + p + 25 = 35 + p while guessing the wrong median class. Always find the median class from the given median (32 is in 30 - 40) before writing the formula.

Worked example 38

Find the median of: 0 - 10 (5), 10 - 20 (15), 20 - 30 (12), 30 - 40 (8).

What we know: n = 40, so n ÷ 2 = 20. Cumulative frequencies: 5, 20, 32, 40.

The plan: The halfway point 20 equals the cumulative frequency of 10 - 20 exactly. The median class is the first class whose cumulative frequency is greater than 20.

  1. The first cumulative frequency greater than 20 is 32, so the median class is 20 - 30: l = 20, cf = 20, f = 12, h = 10.
  2. Median = 20 + (20 − 20) ÷ 12 × 10 = 20 + 0 = 20.

The median is 20, the boundary between the classes.

Check: Exactly 20 of the 40 observations are below 20: half. Taking 10 - 20 as the median class instead gives 10 + (20 − 5) ÷ 15 × 10 = 20 too, so both readings agree here.

Worked example 39

A distribution has mean 24.5 and median 25. Estimate its mode with the empirical relationship.

The plan: Mode ≈ 3 Median − 2 Mean.

  1. 3 × 25 = 75 and 2 × 24.5 = 49.
  2. Mode ≈ 75 − 49 = 26.

The mode is about 26.

Check: The three measures are close together, which is when the empirical relationship works well.

Common mistakes with the median

Using the cumulative frequency of the median class as cf. The cf in the formula belongs to the class before the median class.

Using the cumulative frequency as f. f is the plain frequency of the median class.

Finding the median class from the largest frequency. That is the modal class. The median class comes from n ÷ 2 and the cumulative frequencies.

Using (n + 1) ÷ 2 for grouped data. For grouped data the book uses n ÷ 2.

Forgetting to turn a less than table back into frequencies (Example 7) before using f.

When you are stuck: the median of grouped data

Write the cumulative frequency column first, every time, and put n ÷ 2 beside it.

Draw an arrow to the first cumulative frequency greater than n ÷ 2: that row is the median class; the row above gives cf.

If the table is of the less than or more than type, subtract neighbours to get the frequencies back.

Check the answer is inside the median class; if it is not, l, cf or f was misread.

Worked example 40

Find the median of the 53 students from the more than table, Table 13.14, without using Table 13.13.

What we know: Table 13.14: 53, 48, 45, 41, 38, 35, 31, 24, 15, 8 students have at least 0, 10, ..., 90 marks.

The plan: Turn the more than table back into frequencies (subtract each number from the one before it), then proceed as usual.

  1. Frequencies: 53 − 48 = 5, 48 − 45 = 3, 4, 3, 3, 4, 7, 9, 7 and finally 8 (the last class holds all 8 who have 90 or more).
  2. These are the frequencies of Table 13.12, so the running totals are 5, 8, 12, 15, 18, 22, 29, 38, 45, 53.
  3. n ÷ 2 = 26.5 lies in 60 - 70, with cf = 22 and f = 7: median = 60 + 4.5 ÷ 7 × 10 ≈ 66.4.

The median is again 66.4.

Check: Both types of cumulative table describe the same students, so they must give the same median. From the more than side: 31 students have 60 or more, and we need to go 31 − 26.5 = 4.5 students into the class from the top end, the same 4.5 ÷ 7 of the class.

Worked example 41

The monthly salaries of 9 people in a small office are ₹12,000, ₹14,000, ₹15,000, ₹15,000, ₹16,000, ₹18,000, ₹20,000, ₹22,000 and ₹1,50,000 (the owner). Find the mean and the median, and say which describes a typical salary.

What we know: n = 9 (odd); the values are already in order.

The plan: Median: the 5th value. Mean: total ÷ 9.

  1. Median = the 5th value = ₹16,000.
  2. Total = 12,000 + 14,000 + 15,000 + 15,000 + 16,000 + 18,000 + 20,000 + 22,000 + 1,50,000 = 2,82,000.
  3. Mean = 2,82,000 ÷ 9 ≈ ₹31,333.

Mean ≈ ₹31,333, median ₹16,000. The median describes a typical salary; the owner's salary drags the mean far above what 8 of the 9 people earn.

Check: Without the owner, the mean of the other 8 is 1,32,000 ÷ 8 = ₹16,500, close to the median. One extreme value moved the mean by almost ₹15,000 but the median hardly at all.

Worked example 42

Find the median of the marks: 10 - 19 (5), 20 - 29 (9), 30 - 39 (15), 40 - 49 (10), 50 - 59 (6).

What we know: The same inclusive classes as in the mode example: continuous form 9.5 - 19.5, ..., 49.5 - 59.5; n = 45.

The plan: Make the classes continuous, find the cumulative frequencies and n ÷ 2, then use the formula.

  1. Cumulative frequencies: 5, 14, 29, 39, 45. n ÷ 2 = 22.5.
  2. The first cumulative frequency greater than 22.5 is 29, so the median class is 29.5 - 39.5, with cf = 14, f = 15, h = 10.
  3. Median = 29.5 + (22.5 − 14) ÷ 15 × 10 = 29.5 + 85 ÷ 15 = 29.5 + 5.67 = 35.17.

The median is about 35.17 marks.

Check: Here the median (35.17) and the mode (34.95) are close, because the table is nearly balanced about the busiest class.

Mean, median and mode in a lopsided table

When a table has a long tail of large values (a few very high incomes, a few very long lamp lives), the mean is pulled furthest towards the tail, the median less, and the mode least. Exercise 13.2 Q3 shows it: mode ₹1847.83, mean ₹2662.50.

When the table is balanced, the three measures nearly agree, as in Exercise 13.3 Q1 (135.77, 137, 137.06). Looking at all three together tells us the shape of the data, not only its centre.

Worked example 43

Use the less than curve of Table 13.13 to estimate how many students scored less than 75 marks.

What we know: The curve passes through (70, 29) and (80, 38), and is straight between them.

The plan: 75 is halfway from 70 to 80, so on a straight piece the height is halfway from 29 to 38.

  1. The rise from 70 to 80 is 38 − 29 = 9 students.
  2. Halfway along, the curve has risen 9 ÷ 2 = 4.5 students.
  3. Height at 75 = 29 + 4.5 = 33.5.

About 33 or 34 students scored less than 75 marks.

Check: The answer must lie between 29 (less than 70) and 38 (less than 80), and it does. The estimate assumes the 9 students of 70 - 80 are spread evenly, the same assumption as the median formula.

Your turn

1. For n = 40, the median class is 20 - 30 with cf = 14 and f = 12. Find the median.Tap to reveal
  1. n ÷ 2 = 20, so n ÷ 2 − cf = 6.
  2. Median = 20 + 6 ÷ 12 × 10 = 20 + 5 = 25.

The median is 25.

2. Turn this less than table into class frequencies: less than 10 (3), less than 20 (10), less than 30 (24), less than 40 (30).Tap to reveal
  1. 0 - 10: 3.
  2. 10 - 20: 10 − 3 = 7.
  3. 20 - 30: 24 − 10 = 14.
  4. 30 - 40: 30 − 24 = 6.

Frequencies 3, 7, 14, 6 for 0 - 10, 10 - 20, 20 - 30, 30 - 40.

3. The mean and the mode of a distribution are 30 and 27. Estimate the median.Tap to reveal
  1. 3 Median = Mode + 2 Mean = 27 + 60 = 87.
  2. Median = 87 ÷ 3 = 29.

The median is about 29.

4. Find the median of: 0 - 10 (2), 10 - 20 (6), 20 - 30 (8), 30 - 40 (4).Tap to reveal
  1. n = 20, so n ÷ 2 = 10. Cumulative frequencies: 2, 8, 16, 20.
  2. The median class is 20 - 30, with cf = 8, f = 8.
  3. Median = 20 + (10 − 8) ÷ 8 × 10 = 20 + 2.5 = 22.5.

The median is 22.5.

5. A more than table reads: 0 or more (30), 10 or more (26), 20 or more (16), 30 or more (6), 40 or more (0). Find the median.Tap to reveal
  1. Frequencies: 30 − 26 = 4, 26 − 16 = 10, 16 − 6 = 10, 6 − 0 = 6 for 0 - 10, 10 - 20, 20 - 30, 30 - 40.
  2. Cumulative frequencies: 4, 14, 24, 30; n ÷ 2 = 15, so the median class is 20 - 30 with cf = 14 and f = 10.
  3. Median = 20 + (15 − 14) ÷ 10 × 10 = 20 + 1 = 21.

The median is 21.

In one line

The median of grouped data lies in the median class, the first class whose cumulative frequency passes n ÷ 2: Median = l + (n ÷ 2 − cf) ÷ f × h, where cf belongs to the class before.

Ex 13.3Exercise 13.3, solved

Every question of Exercise 13.3, in the book's order, in the full format. Each median starts from the cumulative frequency column, finds n ÷ 2 and the median class, and checks that the answer lies inside the median class. Answers agree with the book's key.

1. The following frequency distribution gives the monthly consumption of electricity of 68 consumers of a locality. Find the median, mean and mode of the data and compare them. Monthly consumption (in units): 65 - 85, 85 - 105, 105 - 125, 125 - 145, 145 - 165, 165 - 185, 185 - 205. Number of consumers: 4, 5, 13, 20, 14, 8, 4.Tap to reveal

Table 1

Monthly consumption (units)Number of consumers (f)Cumulative frequency (cf)
65 - 8544
85 - 10559
105 - 1251322
125 - 1452042
145 - 1651456
165 - 185864
185 - 205468

Table 2

Monthly consumption (units)fᵢClass mark (xᵢ)dᵢ = xᵢ − 135uᵢ = dᵢ ÷ 20fᵢuᵢ
65 - 85475−60−3−12
85 - 105595−40−2−10
105 - 12513115−20−1−13
125 - 14520135000
145 - 1651415520114
165 - 185817540216
185 - 205419560312
TotalΣfᵢ = 68Σfᵢuᵢ = 7

What we know: Seven classes of size 20; n = 68.

What we need: All three measures, and a comparison.

The plan: Median: cumulative frequencies and n ÷ 2 = 34. Mean: step deviation with a = 135 and h = 20. Mode: the modal class 125 - 145.

  1. Cumulative frequencies: see table 1 at the start of this answer.
  2. The first cumulative frequency greater than 34 is 42, so the median class is 125 - 145: l = 125, cf = 22, f = 20, h = 20.
  3. Median = 125 + (34 − 22) ÷ 20 × 20 = 125 + 12 = 137.
  4. Mean: see table 2 at the start of this answer.
  5. Σfᵢuᵢ = −12 − 10 − 13 + 0 + 14 + 16 + 12 = −35 + 42 = 7, so x̄ = 135 + 20 × 7 ÷ 68 = 135 + 140 ÷ 68 = 135 + 2.06 = 137.06.
  6. Mode: l = 125, h = 20, f₁ = 20, f₀ = 13, f₂ = 14; 2f₁ − f₀ − f₂ = 40 − 27 = 13. Mode = 125 + 7 ÷ 13 × 20 = 125 + 140 ÷ 13 = 125 + 10.77 = 135.77.

Median 137 units, mean ≈ 137.06 units, mode ≈ 135.77 units. The three measures are approximately the same: the data are nearly symmetric about the class 125 - 145.

Check: All three lie in the busiest class, 125 - 145. The empirical relationship nearly holds: 3 × 137 = 411 and 135.77 + 2 × 137.06 = 409.89.

The book's key prints the mean as 137.05 and the mode as 135.76. The exact values are 137.0588... and 135.7692..., which round to 137.06 and 135.77; the key has cut off the decimals instead of rounding. Either is accepted.

2. If the median of the distribution given below is 28.5, find the values of x and y. Class interval: 0 - 10, 10 - 20, 20 - 30, 30 - 40, 40 - 50, 50 - 60. Frequency: 5, x, 20, 15, y, 5. Total: 60.Tap to reveal
Class intervalFrequencyCumulative frequency
0 - 1055
10 - 20x5 + x
20 - 302025 + x
30 - 401540 + x
40 - 50y40 + x + y
50 - 60545 + x + y

What we know: n = 60, median = 28.5, two unknowns.

The plan: The total gives one equation. The median 28.5 lies in 20 - 30, so that is the median class; the formula gives the second equation.

  1. Cumulative frequencies: see the table at the start of this answer.
  2. Total: 45 + x + y = 60, so x + y = 15.
  3. Median class 20 - 30: l = 20, cf = 5 + x, f = 20, h = 10; n ÷ 2 = 30.
  4. 28.5 = 20 + (30 − 5 − x) ÷ 20 × 10, so 8.5 = (25 − x) ÷ 2.
  5. 17 = 25 − x, so x = 8.
  6. Then y = 15 − 8 = 7.

x = 8 and y = 7.

Check: With x = 8: the cumulative frequency before 20 - 30 is 13 and after it 33, and 13 < 30 < 33, so 20 - 30 is the median class. Median = 20 + 17 ÷ 20 × 10 = 28.5. The book's key: x = 8, y = 7.

3. A life insurance agent found the following data for distribution of ages of 100 policy holders. Calculate the median age, if policies are given only to persons having age 18 years onwards but less than 60 years. Age (in years): below 20, below 25, below 30, below 35, below 40, below 45, below 50, below 55, below 60. Number of policy holders: 2, 6, 24, 45, 78, 89, 92, 98, 100.Tap to reveal
Age (years)Number of policy holders (f)Cumulative frequency (cf)
18 - 20 (below 20)22
20 - 2546
25 - 301824
30 - 352145
35 - 403378
40 - 451189
45 - 50392
50 - 55698
55 - 602100

What we know: A less than table, n = 100. Policies start at age 18, so the first class is 18 - 20.

The plan: Turn the cumulative frequencies back into frequencies, find the median class from n ÷ 2 = 50, and use the formula.

  1. Frequencies by subtraction: 2, 6 − 2 = 4, 24 − 6 = 18, 45 − 24 = 21, 78 − 45 = 33, 89 − 78 = 11, 92 − 89 = 3, 98 − 92 = 6, 100 − 98 = 2. The working: see the table at the start of this answer.
  2. The first cumulative frequency greater than 50 is 78, so the median class is 35 - 40: l = 35, cf = 45, f = 33, h = 5.
  3. Median = 35 + (50 − 45) ÷ 33 × 5 = 35 + 25 ÷ 33 = 35 + 0.76 = 35.76.

The median age is about 35.76 years.

Check: The answer is inside 35 - 40, near its lower end, because only 5 of the class's 33 people are needed to reach the halfway point. The odd-sized first class (18 - 20) does not matter for the median. The book's key: 35.76 years.

4. The lengths of 40 leaves of a plant are measured correct to the nearest millimetre, and the data obtained is represented in the following table. Length (in mm): 118 - 126, 127 - 135, 136 - 144, 145 - 153, 154 - 162, 163 - 171, 172 - 180. Number of leaves: 3, 5, 9, 12, 5, 4, 2. Find the median length of the leaves. (Hint: the data needs to be converted to continuous classes for finding the median, since the formula assumes continuous classes. The classes then change to 117.5 - 126.5, 126.5 - 135.5, ..., 171.5 - 180.5.)Tap to reveal
Length (mm)Number of leaves (f)Cumulative frequency (cf)
117.5 - 126.533
126.5 - 135.558
135.5 - 144.5917
144.5 - 153.51229
153.5 - 162.5534
162.5 - 171.5438
171.5 - 180.5240

What we know: Inclusive classes; n = 40.

The plan: Make the classes continuous (subtract 0.5 from each lower limit, add 0.5 to each upper limit), then use the median formula with h = 9.

  1. Continuous classes and cumulative frequencies: see the table at the start of this answer.
  2. n ÷ 2 = 20. The first cumulative frequency greater than 20 is 29, so the median class is 144.5 - 153.5: l = 144.5, cf = 17, f = 12, h = 9.
  3. Median = 144.5 + (20 − 17) ÷ 12 × 9 = 144.5 + 27 ÷ 12 = 144.5 + 2.25 = 146.75.

The median length of the leaves is 146.75 mm.

Check: It lies in 144.5 - 153.5, the class of the original 145 - 153. The book's key: 146.75 mm.

Another way: For comparison, the mean length is 5879 ÷ 40 = 146.975 mm (class marks 122, 131, ..., 176), close to the median: the leaves are spread almost evenly on both sides of the busiest class.

A path that fails: using l = 145 from the original class. That gives 145 + 2.25 = 147.25, which is 0.5 too much, because the leaves measured as 145 mm really start at 144.5 mm.

5. The following table gives the distribution of the life time of 400 neon lamps. Life time (in hours): 1500 - 2000, 2000 - 2500, 2500 - 3000, 3000 - 3500, 3500 - 4000, 4000 - 4500, 4500 - 5000. Number of lamps: 14, 56, 60, 86, 74, 62, 48. Find the median life time of a lamp.Tap to reveal
Life time (hours)Number of lamps (f)Cumulative frequency (cf)
1500 - 20001414
2000 - 25005670
2500 - 300060130
3000 - 350086216
3500 - 400074290
4000 - 450062352
4500 - 500048400

What we know: Seven classes of size 500; n = 400, so n ÷ 2 = 200.

The plan: Cumulative frequencies, the median class, then the formula.

  1. Cumulative frequencies: see the table at the start of this answer.
  2. The first cumulative frequency greater than 200 is 216, so the median class is 3000 - 3500: l = 3000, cf = 130, f = 86, h = 500.
  3. Median = 3000 + (200 − 130) ÷ 86 × 500 = 3000 + 35,000 ÷ 86 = 3000 + 406.98 = 3406.98.

The median life time of a lamp is about 3406.98 hours.

Check: Half the lamps (200) last less than about 3407 hours. The answer is inside 3000 - 3500. The book's key: 3406.98 hours.

Another way: For comparison, the mean life is 13,64,000 ÷ 400 = 3410 hours (class marks 1750 to 4750). It is very close to the median, because the table is nearly balanced around the busiest class, 3000 - 3500.

6. 100 surnames were randomly picked up from a local telephone directory and the frequency distribution of the number of letters in the English alphabets in the surnames was obtained as follows. Number of letters: 1 - 4, 4 - 7, 7 - 10, 10 - 13, 13 - 16, 16 - 19. Number of surnames: 6, 30, 40, 16, 4, 4. Determine the median number of letters in the surnames. Find the mean number of letters in the surnames. Also, find the modal size of the surnames.Tap to reveal

Table 1

Number of lettersNumber of surnames (f)Cumulative frequency (cf)
1 - 466
4 - 73036
7 - 104076
10 - 131692
13 - 16496
16 - 194100

Table 2

Number of lettersfᵢClass mark (xᵢ)dᵢ = xᵢ − 8.5uᵢ = dᵢ ÷ 3fᵢuᵢ
1 - 462.5−6−2−12
4 - 7305.5−3−1−30
7 - 10408.5000
10 - 131611.53116
13 - 16414.5628
16 - 19417.59312
TotalΣfᵢ = 100Σfᵢuᵢ = −6

What we know: Six classes of size 3; n = 100.

The plan: Median from the cumulative frequencies (n ÷ 2 = 50); mean by step deviation with a = 8.5 and h = 3; mode from the modal class 7 - 10.

  1. Cumulative frequencies: see table 1 at the start of this answer.
  2. Median class 7 - 10 (the first cumulative frequency above 50 is 76): l = 7, cf = 36, f = 40, h = 3. Median = 7 + 14 ÷ 40 × 3 = 7 + 1.05 = 8.05.
  3. Mean: see table 2 at the start of this answer.
  4. Σfᵢuᵢ = −12 − 30 + 0 + 16 + 8 + 12 = −42 + 36 = −6, so x̄ = 8.5 + 3 × (−6) ÷ 100 = 8.5 − 0.18 = 8.32.
  5. Mode: l = 7, h = 3, f₁ = 40, f₀ = 30, f₂ = 16; 2f₁ − f₀ − f₂ = 80 − 46 = 34. Mode = 7 + 10 ÷ 34 × 3 = 7 + 0.88 = 7.88.

Median 8.05 letters, mean 8.32 letters, modal size 7.88 letters.

Check: All three lie in 7 - 10, the busiest class. The mean is the largest, pulled up a little by the few long surnames (13 to 19 letters). The book's key: 8.05, 8.32 and 7.88.

7. The distribution below gives the weights of 30 students of a class. Find the median weight of the students. Weight (in kg): 40 - 45, 45 - 50, 50 - 55, 55 - 60, 60 - 65, 65 - 70, 70 - 75. Number of students: 2, 3, 8, 6, 6, 3, 2.Tap to reveal
Weight (kg)Number of students (f)Cumulative frequency (cf)
40 - 4522
45 - 5035
50 - 55813
55 - 60619
60 - 65625
65 - 70328
70 - 75230

What we know: Seven classes of size 5; n = 30, so n ÷ 2 = 15.

The plan: Cumulative frequencies, the median class, then the formula.

  1. Cumulative frequencies: see the table at the start of this answer.
  2. The first cumulative frequency greater than 15 is 19, so the median class is 55 - 60: l = 55, cf = 13, f = 6, h = 5.
  3. Median = 55 + (15 − 13) ÷ 6 × 5 = 55 + 10 ÷ 6 = 55 + 1.67 = 56.67.

The median weight is about 56.67 kg.

Check: The answer is inside 55 - 60. Note that the modal class is 50 - 55 (8 students), a different class: the median class comes from n ÷ 2, not from the largest frequency. The book's key: 56.67 kg.

Another way: For comparison, the mean weight is 1715 ÷ 30 ≈ 57.17 kg, and the mode is 50 + 5 ÷ 7 × 5 ≈ 53.57 kg (modal class 50 - 55, with f₁ = 8, f₀ = 3, f₂ = 6). Mode, median and mean rise in that order, a sign that the heavier students spread further out than the lighter ones.

When you are stuck: Exercise 13.3

A less than or more than table? Subtract neighbours to get the frequencies before anything else (Q3).

Gaps between classes? Make them continuous before reading l (Q4).

Unknown frequencies? Use the total for one equation and the median formula for the other, after fixing the median class from the given median (Q2).

MixMixed practice: the whole chapter together

These problems mix the ideas of the chapter, as exam questions often do. Two of them are dead ends on purpose, one has a tempting step that fails, and one shows where a rule of thumb lets us down. Watch how each one recovers.

A. Find the mean, the median and the mode of: 0 - 10 (4), 10 - 20 (6), 20 - 30 (10), 30 - 40 (6), 40 - 50 (4).Tap to reveal

What we know: Five classes of size 10; n = 30. The frequencies read the same from both ends.

The plan: Find all three, then see what the symmetry says.

  1. Mean: class marks 5, 15, 25, 35, 45; Σfᵢxᵢ = 20 + 90 + 250 + 210 + 180 = 750, so x̄ = 750 ÷ 30 = 25.
  2. Median: cumulative frequencies 4, 10, 20, 26, 30; n ÷ 2 = 15, so the median class is 20 - 30 with cf = 10, f = 10. Median = 20 + 5 ÷ 10 × 10 = 25.
  3. Mode: modal class 20 - 30, f₁ = 10, f₀ = 6, f₂ = 6. Mode = 20 + 4 ÷ 8 × 10 = 25.

Mean, median and mode are all 25.

Check: For a symmetric distribution, all three measures sit at the centre of symmetry, here the middle of the class 20 - 30.

B. The ages of 50 visitors to a museum are: below 20 (5), 20 - 30 (12), 30 - 40 (18), 40 - 50 (10), 50 and above (5). Find the mean age, and the median age.Tap to reveal

What we know: The first and last classes are open: they have no lower limit and no upper limit.

The plan: The mean needs a class mark for every class; the median needs only the median class.

  1. Mean: the class "below 20" has no lower limit, so it has no class mark; neither does "50 and above". Without them, Σfᵢxᵢ cannot be found. A dead end.
  2. Median: n ÷ 2 = 25; cumulative frequencies 5, 17, 35, 45, 50. The median class is 30 - 40, with cf = 17 and f = 18.
  3. Median = 30 + (25 − 17) ÷ 18 × 10 = 30 + 80 ÷ 18 = 30 + 4.44 = 34.44.

The mean cannot be found from this table, but the median age is about 34.4 years.

Check: The median class 30 - 40 is the busiest, and the halfway point needs 8 of its 18 visitors, a little under half: 34.44 is a little below the middle, 35.

The dead end, and what it means: open classes hide the extreme values, which the mean needs and the median does not. This is one more reason the median is preferred when extremes are unknown or unusual.

C. For the marks of Table 13.15 (53 students), a student writes: Median = 60 + (26.5 − 29) ÷ 7 × 10. What went wrong, and what is the right answer?Tap to reveal

What we know: The median class is 60 - 70, with cumulative frequency 29; the class before it has cumulative frequency 22.

The plan: Check which cumulative frequency belongs in the formula.

  1. The student used 29, the cumulative frequency of the median class itself. That gives 60 − 2.5 ÷ 7 × 10 = 60 − 3.57 = 56.43, a value below 60, outside the median class.
  2. The formula needs the cumulative frequency of the class before: cf = 22.
  3. Median = 60 + (26.5 − 22) ÷ 7 × 10 = 60 + 45 ÷ 7 = 66.43.

The median is 66.4; the student used the wrong cumulative frequency.

Check: A median must lie inside the median class; 56.43 does not, which flags the slip at once.

A path that fails: using the median class's own cumulative frequency. The cf counts the students already passed at the lower limit l, and they are those of the earlier classes.

D. The mean of the following data is 10. Find the missing frequency p. Classes: 0 - 10, 10 - 20, 20 - 30, 30 - 40. Frequencies: 5, 8, p, 2.Tap to reveal

What we know: x̄ = 10; class marks 5, 15, 25, 35.

The plan: Set up Σfᵢxᵢ ÷ Σfᵢ = 10 and solve for p.

  1. Σfᵢ = 15 + p and Σfᵢxᵢ = 25 + 120 + 25p + 70 = 215 + 25p.
  2. 215 + 25p = 10(15 + p) = 150 + 10p, so 15p = −65 and p = −13/3.
  3. A frequency counts people or things, so it must be a whole number, 0 or more. A negative fraction is impossible: a dead end.

No such p exists: the data are impossible.

Check: Even with p = 0 the mean is 215 ÷ 15 ≈ 14.33, and adding observations in 20 - 30 (class mark 25) only raises it. A mean of 10 can never be reached.

The dead end, and what it means: the given mean is too small for the other frequencies. Before solving, a quick estimate (the smallest possible mean) would have shown this.

E. A more than table gives the marks of 50 students: 0 or more (50), 10 or more (46), 20 or more (38), 30 or more (23), 40 or more (10), 50 or more (3), 60 or more (0). Find the median and the mode.Tap to reveal

The plan: Turn the more than table into frequencies by subtracting each number from the one before it; then make the less than cumulative frequencies.

  1. Frequencies: 0 - 10: 50 − 46 = 4; 10 - 20: 46 − 38 = 8; 20 - 30: 38 − 23 = 15; 30 - 40: 23 − 10 = 13; 40 - 50: 10 − 3 = 7; 50 - 60: 3 − 0 = 3.
  2. Cumulative frequencies: 4, 12, 27, 40, 47, 50. n ÷ 2 = 25, so the median class is 20 - 30, with cf = 12 and f = 15.
  3. Median = 20 + (25 − 12) ÷ 15 × 10 = 20 + 130 ÷ 15 = 20 + 8.67 = 28.67.
  4. Mode: modal class 20 - 30, f₁ = 15, f₀ = 8, f₂ = 13. Mode = 20 + 7 ÷ (30 − 21) × 10 = 20 + 70 ÷ 9 = 20 + 7.78 = 27.78.

Median ≈ 28.67, mode ≈ 27.78.

Check: Both are in 20 - 30. The mode is right of the middle because the class after (13) is busier than the class before (8).

F. Two schools sent 50 students each to a mathematics olympiad. School P's marks: 0 - 20 (5), 20 - 40 (15), 40 - 60 (20), 60 - 80 (8), 80 - 100 (2). School Q's marks: 0 - 20 (2), 20 - 40 (10), 40 - 60 (18), 60 - 80 (15), 80 - 100 (5). Which school did better on average?Tap to reveal

The plan: Compare the means, which use every student's marks (the book says the mean is the measure for comparing groups).

  1. Class marks: 10, 30, 50, 70, 90.
  2. P: Σfᵢxᵢ = 50 + 450 + 1000 + 560 + 180 = 2240, so x̄ = 2240 ÷ 50 = 44.8.
  3. Q: Σfᵢxᵢ = 20 + 300 + 900 + 1050 + 450 = 2720, so x̄ = 2720 ÷ 50 = 54.4.

School Q did better on average: 54.4 against 44.8.

Check: Q has 20 students at 60 marks or more, P only 10, which agrees with Q's higher mean.

G. For Table 13.3 (the 30 students of Example 1), find the median, and test the empirical relationship 3 Median = Mode + 2 Mean with the mean 62 and the mode 52.Tap to reveal

The plan: Find the median from the cumulative frequencies, then compare both sides of the relationship.

  1. Cumulative frequencies: 2, 5, 12, 18, 24, 30; n ÷ 2 = 15, so the median class is 55 - 70, with cf = 12, f = 6, h = 15.
  2. Median = 55 + (15 − 12) ÷ 6 × 15 = 55 + 7.5 = 62.5.
  3. 3 × Median = 187.5, but Mode + 2 × Mean = 52 + 124 = 176.

The median is 62.5, and the relationship is off by 11.5 for this data.

Check: The two sides differ a lot, because these data are lopsided: the low classes are thin and the top three classes are full.

A loose end: the empirical relationship is a rule of thumb, found by observation, not a theorem. It works for gently lopsided data, such as Exercise 13.3 Q1, and can fail badly otherwise. Use it to estimate, never to replace a calculation.

I. The daily wages of 60 workers at a brick kiln are: ₹300 - 400 (10), ₹400 - 500 (20), ₹500 - 600 (15), ₹600 - 700 (10), ₹700 - 800 (5). Find the mean, the median and the mode, and say which one the workers' union should quote as the typical wage.Tap to reveal

What we know: Five classes of size 100; n = 60.

The plan: Mean by step deviation (a = 550, h = 100); median from the cumulative frequencies; mode from the modal class 400 - 500.

  1. Mean: uᵢ = −2, −1, 0, 1, 2 and fᵢuᵢ = −20, −20, 0, 10, 10, so Σfᵢuᵢ = −20. x̄ = 550 + 100 × (−20) ÷ 60 = 550 − 33.33 = 516.67.
  2. Median: cumulative frequencies 10, 30, 45, 55, 60; n ÷ 2 = 30, which equals the cumulative frequency of 400 - 500, so the median class is 500 - 600 with cf = 30. Median = 500 + 0 = 500.
  3. Mode: l = 400, f₁ = 20, f₀ = 10, f₂ = 15. Mode = 400 + 10 ÷ (40 − 25) × 100 = 400 + 66.67 = 466.67.

Mean ≈ ₹516.67, median ₹500, mode ≈ ₹466.67. The median is a fair typical wage: half the workers earn less than ₹500 and half more.

Check: The few high wages (₹600 to ₹800) pull the mean above the median; the mode sits lowest, where most workers are. The empirical rule: 3 × 500 = 1500, against 466.67 + 2 × 516.67 = 1500.01, almost equal.

H. The class marks of a distribution are 47, 52, 57 and 62. Find the class size and the classes.Tap to reveal

The plan: Equal classes have class marks one class size apart; each class reaches half a class size on each side of its mark.

  1. Class size = 52 − 47 = 5.
  2. Half of it is 2.5, so the first class is 47 − 2.5 to 47 + 2.5, that is, 44.5 - 49.5.
  3. The others: 49.5 - 54.5, 54.5 - 59.5 and 59.5 - 64.5.

Class size 5; classes 44.5 - 49.5, 49.5 - 54.5, 54.5 - 59.5, 59.5 - 64.5.

Check: The class mark of 44.5 - 49.5 is (44.5 + 49.5) ÷ 2 = 47, as given.

RecapThe whole chapter on one screen

  • Data in a frequency table: each value xᵢ with its frequency fᵢ; grouped data: classes with limits, size h and class mark (lower limit + upper limit) ÷ 2.
  • The mean for grouped data can be found by: (i) the direct method, x̄ = Σfᵢxᵢ ÷ Σfᵢ; (ii) the assumed mean method, x̄ = a + Σfᵢdᵢ ÷ Σfᵢ with dᵢ = xᵢ − a; (iii) the step-deviation method, x̄ = a + (Σfᵢuᵢ ÷ Σfᵢ) × h with uᵢ = (xᵢ − a) ÷ h. All assume that the frequency of a class is centred at its class mark.
  • The mode for grouped data: Mode = l + (f₁ − f₀) ÷ (2f₁ − f₀ − f₂) × h, where l is the lower limit of the modal class.
  • The cumulative frequency of a class is the frequency obtained by adding the frequencies of all the classes before it to its own.
  • The median for grouped data: Median = l + (n ÷ 2 − cf) ÷ f × h, where l is the lower limit of the median class and cf the cumulative frequency of the class before it.
  • Empirical relationship (approximate): 3 Median = Mode + 2 Mean.
  • A note to the reader (from the book): before using the mode and median formulas, make sure the class intervals are continuous. The same applies to drawing an ogive, whose two axes may have different scales.
MeasureFormulaSymbolsUse it for
Mean (direct)Σfᵢxᵢ ÷ Σfᵢxᵢ class marks, fᵢ frequenciessmall numbers
Mean (assumed mean)a + Σfᵢdᵢ ÷ Σfᵢdᵢ = xᵢ − alarge class marks
Mean (step deviation)a + h × Σfᵢuᵢ ÷ Σfᵢuᵢ = (xᵢ − a) ÷ hlarge marks with a common factor
Model + (f₁ − f₀) ÷ (2f₁ − f₀ − f₂) × hmodal class: l, f₁; neighbours f₀, f₂the most common value
Medianl + (n ÷ 2 − cf) ÷ f × hmedian class: l, f; cf of the class beforethe middle value

WordsWords to know

Data
Facts, usually numbers, collected to answer a question; each single value is an observation.
Frequency
The number of times a value (or a class) occurs.
Frequency distribution
A table of values (or classes) with their frequencies; grouped when the values are put into classes.
Class interval
A range of values such as 10 - 25, with a lower and an upper class limit.
Class size
The width of a class: upper limit − lower limit (h).
Class mark
The middle of a class: (upper limit + lower limit) ÷ 2.
Measure of central tendency
One number that stands for the centre of the data: the mean, the median or the mode.
Mean
The total of the observations divided by their number (x̄).
Assumed mean
A convenient value a chosen to make the deviations dᵢ = xᵢ − a small.
Deviation
How far a value is from a chosen point: xᵢ − a.
Step deviation
A deviation divided by the class size: uᵢ = (xᵢ − a) ÷ h.
Mode
The value that occurs most often.
Modal class
The class with the highest frequency.
Multimodal
Having more than one mode.
Median
The middle value of the data in order.
Cumulative frequency
A running total of the frequencies, of the less than or the more than type.
Median class
The first class whose cumulative frequency is greater than n ÷ 2.
Histogram
Bars standing side by side on the class intervals, their areas showing the frequencies.
Frequency polygon
The line joining the points (class mark, frequency).
Ogive
The curve of the cumulative frequencies.

CheckQuick self-check

What is the class mark of the class 25 - 35?Answer

(25 + 35) ÷ 2 = 30.

In which class is a mark of 40 counted: 25 - 40 or 40 - 55?Answer

In 40 - 55: a value equal to an upper limit goes to the next class.

Write the direct-method formula for the mean of grouped data.Answer

x̄ = Σfᵢxᵢ ÷ Σfᵢ.

With a = 50, Σfᵢ = 35 and Σfᵢdᵢ = −360, find the mean.Answer

50 − 360 ÷ 35 ≈ 39.71.

Does the mean depend on the choice of the assumed mean a?Answer

No: a is added back at the end, so every choice gives the same mean.

Why is the grouped mean of Example 1's marks (62) different from the exact mean (59.3)?Answer

Because of the mid-point assumption: each class is treated as if all its values were at its class mark.

What is the modal class?Answer

The class with the highest frequency.

In the mode formula, what are f₀ and f₂?Answer

The frequencies of the classes just before and just after the modal class.

How do you find the median class?Answer

The first class whose cumulative frequency is greater than n ÷ 2.

In the median formula, whose cumulative frequency is cf?Answer

The class before the median class.

State the empirical relationship.Answer

3 Median = Mode + 2 Mean (approximately).

Which measure would a shopkeeper use to decide which shoe size to stock most?Answer

The mode, the most frequent size.

Make 50 - 52 and 53 - 55 continuous.Answer

49.5 - 52.5 and 52.5 - 55.5.

PDF