Data Handling

Take the JEE Foundation test on this chapter · free, no sign-in needed

Foundation Class 8 Mathematics. Our own notes: collecting and organising data, grouped data, histograms, bar graphs and pie charts, and the mean, median and mode, with solved examples and concept checks.

Class 8 is in the Class 8 school book. Foundation goes beyond the school book and is asked in Olympiads, NTSE and the JEE Foundation tests. Try each concept check before you open its answer. Questions to try at the end come from school books and exams, and a few are our own; their answers are folded under them.

On this page

Collecting and organising data Class 8

Data is a collection of facts or numbers gathered to answer a question: the marks of a class, the heights of the boys, the favourite sport of each student. Each single item is an observation. Data as first collected, in the order it came, is raw data (unorganised data). It is hard to read: asked “which shoe size is most common?”, you would have to count through the whole list.

To organise it we count how many times each value occurs. The number of times an observation occurs is its frequency. We count with tally marks: one stroke for each observation, and every fifth stroke is drawn across the four before it, so the strokes come in bunches of five. Counting bunches of five is quick and hard to get wrong. The result is a frequency distribution table.

The shoe sizes of 20 students, as collected: 6, 7, 5, 6, 8, 7, 6, 9, 7, 6, 5, 7, 8, 6, 7, 9, 6, 7, 8, 6.

SizeTallyFrequency5267768392Total20
The shoe sizes put into a frequency table: strokes, then a bunch of five for every five.

Two checks to make every time: the frequencies must add up to the number of observations, and no observation may be left out or counted twice. Tick each value off as you tally it.

Example 1. Using the shoe sizes above, say which size is worn by the most students, how many students wear size 7 or more, and what fraction of the class wears size 6.

Solution. The frequencies are for sizes , and as it should. The largest frequency is , so size is the most common. Size or more: students. Fraction wearing size : .

A tally for one value shows a bunch of five and then three single strokes. What is its frequency?

Answer

.

Drawing the fifth stroke as one more upright stroke. Then the bunches look alike and the count is lost. Cross the four strokes with the fifth.

Grouped data and class intervals Class 8

When the observations are many and spread over a wide range (marks out of 100, heights, ages), a table with one row per value would be as long as the raw list. We then group the data into class intervals, such as 30 to 40, 40 to 50, and so on, and give the frequency of each class.

Some words, with the class to as the example:

  • The range of the data is the highest observation minus the lowest. It tells how wide a spread the classes must cover.
  • The lower limit () and the upper limit () are the two ends of the class.
  • The class size (class width) is .
  • The class mark is the middle of the class: .
lower limit 20class mark 25upper limit 30class size = 30 − 20 = 10
One class interval, with its limits, its class mark and its size.

The boundary rule. In the classes – and – the number appears twice. The usual rule is that a value equal to the upper limit goes into the next class: is counted in –, not in –. So the class – holds the values from up to, but not including, . Every observation then has exactly one class. Choose the classes so that they are of the same size, the first one starts at or below the lowest value, and the last one reaches past the highest.

The marks of 30 students: 53, 61, 48, 60, 78, 68, 55, 100, 67, 90, 75, 88, 77, 37, 84, 58, 60, 48, 62, 56, 44, 58, 52, 64, 98, 59, 70, 39, 50, 60.

Example 2. Find the range of these marks and group them into classes of size , starting from .

Solution. Highest , lowest , so the range is . The value is an upper limit of the class –, so by the boundary rule it needs a class of its own, –. Tallying all 30 marks gives:

Class 30-40 40-50 50-60 60-70 70-80 80-90 90-100 100-110
Frequency 2 3 8 8 4 2 2 1

Check: . ✓ For example lie in –; lie in – because is the lower limit; lies in –.

Example 3. (a) Find the class size and class mark of – if the class includes both ends. (b) The class marks of a table are . Find the class that goes with the class mark .

Solution. (a) The class mark is and the class size, by the school-book rule upper limit minus lower limit, is . (Do not confuse the size with the number of whole numbers inside the class: are values, but that is a count, not the class size.) (b) Successive class marks differ by , which is the class size. The class mark is the middle, so the class stretches half the class size, , either side of : from to . Check: and . ✓

The first two classes of a table are – and –. Write the fourth class, and its class mark.

Answer

The size is , so the classes are –, –, –, –. The fourth is –, class mark .

Counting a value that equals an upper limit in both classes, or in the lower one. Under the usual rule it belongs to the class that begins with it.

Histograms Class 8

A histogram is the picture of a grouped frequency table. On the horizontal axis we mark the class intervals as a number line; over each class we draw a rectangle whose height is the frequency. Because the classes run on without a break, the rectangles touch each other, with no gaps. The vertical axis shows frequency.

0246830405060708090100110studentsmarks
The histogram of the marks of 30 students (Example 2). The bars touch because the classes run on without a gap.

A histogram is different from an ordinary bar graph. A bar graph compares separate categories (cricket, football), so its bars have gaps and could be put in any order. A histogram shows continuous numbers in order, so its bars touch and cannot be reordered. If the classes are of equal size, the heights are in the same ratio as the frequencies, so the tallest bar is the class with the most observations: the modal class.

Foundation If the class sizes are unequal, the height alone misleads; it is the area of a bar that must be proportional to the frequency, so the height is . In Class 8 the classes are equal, and the height is the frequency itself.

Example 4. Read the histogram above. How many students scored or more? Which classes tie for the most students? How many scored less than ?

Solution. or more means the bars from – on: . The tallest bars are – and –, both of height : two modal classes. Less than : students. Check: . ✓

Why are the bars of a histogram joined, while the bars of a bar graph of favourite fruits have gaps?

Answer

The classes of a histogram are consecutive stretches of one number line with no break between them. Fruits are separate categories with nothing between one and the next.

Leaving gaps between the rectangles of a histogram, or labelling the bars with their class names under the middle of each bar when the scale is a number line. Mark the limits at the edges of the bars.

Bar graphs and double bar graphs Class 8

A bar graph shows a category on one axis and its value on the other. A double bar graph puts two bars side by side for each category, so that two sets of data can be compared at a glance. The two bars of a pair have the same width; a key says which set each shade stands for. Before reading any graph, do three things: read the title and the key, read the scale (what one division stands for, and whether the axis starts at zero), then read the values.

05101520Cricket1814Football1216Kabaddi810Badminton69studentsClass 8AClass 8B
Favourite sport of the students of two sections. The filled bar is Class 8A, the outlined bar Class 8B.

Example 5. Use the double bar graph. (a) For which sports do more students of 8B than 8A have a liking, and by how many? (b) How many students are there in each section? (c) What fraction of 8A chose cricket?

Solution. (a) Football ( against ) by , kabaddi by and badminton by . (b) 8A: ; 8B: . (c) .

In a double bar graph of rainfall in two cities, the vertical scale starts at 100 mm instead of 0. Why is that misleading?

Answer

The bars are cut short, so a bar twice as tall does not mean twice the rain; the eye compares heights, not values. A scale should start at zero.

Pie charts Class 8

A pie chart (circle graph) shows how a whole is shared among its parts. The whole circle stands for the total, and each part is a sector whose size is in proportion to its share. The angle of all the sectors at the centre adds up to , so each part gets the same fraction of as it has of the total.

To draw one: (1) find the total; (2) find each angle with the formula; (3) check that the angles add up to ; (4) draw a circle, a radius, and with a protractor mark off the angles one after another; (5) label each sector with its name, and its value or percentage.

A pie chart shows share, not amount. Two pie charts of different totals can look alike. And it cannot show how a quantity changes with time: use a bar graph for that.

90°North Indian120°South Indian75°Chinese75°Others30 of 120 is 90°40 of 120 is 120°25 of 120 is 75°
Example 6 drawn: the angles are drawn to size, a quarter circle for the first, a third of the circle for the second.

Example 6. Draw a pie chart for the favourite food of 120 people: North Indian 30, South Indian 40, Chinese 25, Others 25.

Solution. The total is . The angles are , , and . Check: . ✓ The chart is drawn above.

Example 7. A family’s income is Rs 60,000 a month. In the pie chart of its spending the sector for rent has angle and the sector for food . How much is spent on each? What percentage of the income goes to food?

Solution. Rent: . Food: . Percentage on food: , and of is . ✓ Another way: a sector of is of the circle, so on a salary of Rs 15,000 it stands for Rs 2,500.

In a pie chart of 36 people’s favourite colours, 18 chose blue. What is the angle of the blue sector, and what do the other sectors add up to?

Answer

, a half circle. The others share the remaining .

Using the fraction of instead of the fraction of (writing as ). A percentage must be turned into ; for example is .

Mean of raw data Class 8

To describe a whole set of data by a single number we use an average, a number round which the data is centred. The commonest is the arithmetic mean, the one people mean by “average”:

The mean has a fair-share meaning: if every observation were made the same, with the total unchanged, each would equal the mean. Four children with sweets have together; shared out evenly, each has . So the mean is .

Three facts, each used again below:

  • The mean lies between the smallest and the largest observation, and need not be one of them (or even a possible value: children).
  • The sum of the distances of the observations from the mean, counting those below as negative, is zero. In symbols . It is the sum minus , and the two are equal by the definition of the mean.
  • Always: . Most problems in this chapter use it in one direction or the other.
02468101214mean = 6, the balance point−3−2−10+6distance from the mean
Data on a number line. The mean is where it balances: the pull of the far dot () cancels the three dots on the left ().

Example 8. Find the mean of and .

Solution. Sum and there are numbers, so the mean is . The distances from the mean are , which add to . ✓

The mean of 15 numbers is 134. What is their sum?

Answer

.

Dividing by the wrong count, for example by the number of different values instead of the number of observations when a value repeats. Divide by the number of observations.

Median and mode Class 8

The mean is not the only average, and it is not always the best.

The median is the middle value when the data is arranged in order. Arrange first, ascending or descending. If the number of observations is odd, the median is the -th value. If is even there are two middle values, and the median is their mean.

The mode is the observation that occurs most often (the highest frequency). A set may have one mode, more than one, or none (if every value occurs once).

Why use them? The mean is dragged by an extreme value: the monthly pay of five workers and (thousand rupees) has mean , but no worker is near that; the median is , a fair picture of the typical pay. The mode is the one to use for “the most popular size” (shoes, shirts), where the mean would be meaningless. The mean and median are numbers that need arithmetic; the mode works even for categories (the favourite colour).

Example 9. (a) Find the median of . (b) Find the median and range of the marks . (c) Find the mode of .

Solution. (a) In order: . There are values, so the median is the th: . (b) In order: . There are , so the median is the mean of the 6th and 7th: . Range . (c) occurs three times, twice, the rest once: mode .

Find the mean and the median of . Which is the better description of the data?

Answer

Mean ; median . The median is better: the one big value drags the mean away from all the others.

Taking the middle of the list as given, without arranging it in order first. The median of is , not .

Mean of grouped data Foundation

When the data is only given in classes, we have lost the exact values. We assume that the observations of a class are spread evenly about its class mark, so that the class as a whole behaves as if every one of its observations equalled the class mark . Then the class adds to the total, and

The answer is an estimate: the true mean of the original values is a little different. Narrower classes give a better estimate.

Example 10. Find the mean of the 30 marks of Example 2 from the frequency table, and compare it with the exact mean.

Solution. The class marks are . Then

Class Class mark Frequency
30-40 35 2 70
40-50 45 3 135
50-60 55 8 440
60-70 65 8 520
70-80 75 4 300
80-90 85 2 170
90-100 95 2 190
100-110 105 1 105
Total 30 1930

. The exact mean from the 30 marks is . The two differ by only .

Why is the mean from a grouped table only an estimate?

Answer

Inside each class we have thrown away the exact values and used the class mark for all of them. Values above the class mark and below it only roughly cancel.

Multiplying the frequency by a limit of the class instead of by its class mark, or dividing by the number of classes. Divide by , the number of observations.

Changing the data: what happens to the mean Foundation

Almost every Foundation question on the mean changes the data and asks for the new mean. Do not work with the individual numbers; work with the total, since sum .

Adding a value. If numbers have mean and a new value is included, the new mean is . It is higher than if , lower if and unchanged if (a value equal to the mean adds exactly a fair share). Removing a value works the same way in reverse.

Changing one value by an amount changes the sum by , so the mean changes by .

Changing every value. Add to each: the mean goes up by . Multiply each by : the mean is multiplied by . Both together, , give the mean . (This works for the mean and the median, but not for the range, which is only multiplied by and ignores .)

Example 11. The mean of 5 numbers is . A sixth number, , is included. What is the mean of the six?

Solution. The first sum is . The new sum is and the new mean is . It is higher because .

Example 12. The mean of a collection is . Every number is doubled and then is subtracted from each. What is the new mean? Then: the mean of 10 numbers is . One number, , is wrongly read for . Find the correct mean.

Solution. Using with , : . For the second part the sum was ; the correct sum is , so the mean is . Or: the value rose by , so the mean rises by , to . ✓

Example 13. The mean weight of students was recorded as kg. It was later found that one weight, kg, had been written as kg. Find the correct mean.

Solution. The wrong sum was . The wrong entry was too big, so the correct sum is and the correct mean is kg. Check by : . ✓

The mean of 8 numbers is 20. A number equal to 20 is added. What is the new mean? What if a number is added that is ?

Answer

Unchanged at in the first case. In the second: , higher, since .

Averaging the old mean and the new value: “the mean of and is “. The old mean stands for numbers, not one, so it carries times the weight. Always use the totals.

Combined mean and missing values Foundation

Two groups. If one group has numbers with mean and another has numbers with mean , together they have

It is a weighted mean: it lies between and and is closer to the one with more numbers.

A missing value. Write the whole sum as , subtract the known values; the rest is the missing one. If the unknown is an expression ( and ), form an equation.

Overlapping groups. Fifteen numbers: the first have a mean, the last another. The two groups share the middle (8th) number, and it is counted twice when the two sums are added. So .

Example 14. The mean mark of boys is and of girls is . Find the mean of all .

Solution. Total marks . Mean . It is nearer to the boys’ since there are more boys. (The plain average would be wrong.)

Example 15. (a) The mean of is . Find . (b) The marks of students are and , with mean . Find .

Solution. (a) The sum must be ; known ; so . (b) The sum is ; known ; so .

Example 16. The average of numbers is . The average of the first is and of the last is . Find the th number. Then: the mean of observations is ; the mean of the first is and of the last is . Find the th.

Solution. The total is . The two sums are and , together . This counts the 8th number twice, so . Second part: total ; the sums and add to ; the 5th number is counted twice, so it is .

Example 17. The data in increasing order is and the mean is . Find , the median and the range.

Solution. The sum is . The known eight numbers add to , so , , . The data is The middle two (5th and 6th) are and : median . Range .

Example 18. (Olympiad) A batsman scores in his th innings, and his average rises by . Find his average after innings. Then: of three numbers the first is twice the second and half the third, and their average is . Find them.

Solution. Let the average after innings be . Then , so and . The new average is . Check: . ✓ Second part: let the second be ; the first is and the third is (the first is half the third). The sum is , so . The numbers are . Check: is twice and half of . ✓

Class A has 10 students with mean 60 and class B has 40 students with mean 70. Without calculating, is the mean of the 50 nearer to 60 or to 70? Then calculate it.

Answer

Nearer to since there are more students in B. .

Taking the mean of the two means. It is only right when the two groups have the same size.

A word on chance Class 8

Data handling in Class 8 also meets chance: an experiment (tossing a coin, rolling a die) has outcomes, and for a fair experiment with equally likely outcomes the chance of an event is . A coin has outcomes, a die ; two coin tosses have . The chance of a head in one toss is . This is only the first step: the separate chapter on Probability takes it much further, and we do not go on with it here.

The chapter on one page

  • Raw data is organised by counting with tally marks (a bunch of five) into a frequency table; the frequencies add to the number of observations.
  • Grouped data: ; class size upper lower; class mark ; an upper-limit value goes into the next class.
  • Histogram: bars touch; height is the frequency (for equal classes); the tallest bar is the modal class.
  • Bar graph: separate categories, with gaps. Double bar graph: two sets side by side; read the key and the scale; start the scale at zero.
  • Pie chart: angle ; the angles add to ; it shows share, not change over time.
  • Mean ; ; ; the mean is pulled by extreme values.
  • Median: the middle after arranging (mean of the two middle for even ); mode: the commonest value.
  • Grouped mean with the class mark: an estimate.
  • Add to values of mean : new mean ; one value changed by : mean changes by ; : .
  • Combined mean ; for overlapping groups subtract the shared number once.
  • Chance of an event for equally likely outcomes (see Probability).

Ten mistakes to avoid

  1. Drawing the fifth tally stroke upright instead of across the four.
  2. Counting a value equal to an upper limit in the class that ends with it.
  3. Leaving gaps between the bars of a histogram.
  4. Reading a double bar graph without the key, or a graph whose scale does not start at zero.
  5. Writing a percentage as degrees ( is , not ).
  6. Dividing by the number of different values instead of the number of observations when finding a mean.
  7. Finding the median without arranging the data first.
  8. Forgetting to take the mean of the two middle values when is even.
  9. Averaging two means instead of using the totals (weights).
  10. Counting the shared observation once when two overlapping groups are summed.

Questions to try

Class 8

NCERT · 3 marks

Draw a pie chart for the given data. Favourite food | Number of people North Indian | 30 South Indian | 40 Chinese | 25 Others | 25

Answer

Answer: 90°, 120°, 75°, 75°

Total number of people . Central angle for each sector . North Indian: . South Indian: . Chinese: . Others: . Check: . Draw a circle and mark sectors with these angles.

NCERT · 1 mark

In a pie chart, the total angle at the centre of the circle is

Answer

Answer: (b)

The sectors of a pie chart together fill the full circle, so the total angle at the centre is . So the answer is (b).

NCERT · 1 mark

The fourth class interval for a grouped data whose first and second class intervals are 10 –15 and 15 –20 respectively is __________.

Answer

Answer: 25 – 30

The class width is . The intervals run 10–15, 15–20, 20–25, 25–30, so the fourth is 25–30.

NCERT · 1 mark

Monthly salary of a person is Rs. 15000. The central angle of the sector representing his expenses on food and house rent on a pie chart is 60°. The amount he spends on food and house rent is

  1. Rs. 5000
  2. Rs. 2500
  3. Rs. 6000
  4. Rs. 9000
Answer

Answer: (b) Rs. 2500

Amount . Hence option (b).

Practice question · 1 mark

The ages of 50 teachers in a school are grouped as: 25-30 (4), 30-35 (5), 35-40 (10), 40-45 (15), 45-50 (8), 50-55 (5), 55-60 (1). What is the class size?

Answer

Answer: 5

Practice question · 1 mark

Find the median of the following values: 37, 31, 42, 43, 46, 25, 39, 45, 32.

  1. 31
  2. 37
  3. 39
  4. 45
Answer

Answer: (c) 39

Practice question · 1 mark

The mode of the distribution 3, 5, 7, 4, 2, 1, 4, 3, 4 is:

  1. 4
  2. 2
  3. 3
  4. 5
Answer

Answer: (a) 4

Foundation

Our question · 1 mark

The mean of 5 numbers is 20. A sixth number, 32, is included. What is the mean of the 6 numbers?

  1. 26
  2. 23
  3. 22
  4. 25
Answer

Answer: (c) 22

The sum of the 5 numbers is 5 × 20 = 100. The new sum is 100 + 32 = 132, and 132 ÷ 6 = 22. Answer: C.

Our question · 1 mark

The mean of 6 numbers is 15. Five of the numbers are 12, 18, 20, 9 and 14. What is the sixth number?

  1. 15
  2. 17
  3. 18
  4. 16
Answer

Answer: (b) 17

The total of all six numbers is 6 × 15 = 90. The five known numbers add up to 73, so the sixth number is 90 − 73 = 17. Answer: B.

Our question · 1 mark

The mean of 8 values is 20. Three more values are included, two of which are 15 and 18. What must the third value be so that the mean stays 20?

  1. 20
  2. 25
  3. 30
  4. 27
Answer

Answer: (d) 27

With 11 values and mean 20, the total must be 220. The original total is 8 × 20 = 160, so the three new values add up to 60. The third value is 60 − 15 − 18 = 27. Answer: D.

Our question · 5 marks

The mean weight of students in a class was recorded as kg. Later it was found that one student’s weight had been written as kg instead of the correct kg.

(a) Find the total weight that was recorded.

(b) Find the correct total weight and the correct mean.

(c) A new student weighing kg joins the class. Find the new mean, and say whether it increases or decreases and why.

Answer

Answer: (a) kg; (b) Total kg; mean kg; (c) New mean kg; it decreases because is less than the mean

See parts.

Practice question · 1 mark

The mean of 9 observations is 13. The mean of the first 5 observations is 11 and the mean of the last 5 observations is 14. Then the 5th observation is:

  1. 11
  2. 12
  3. 8
  4. 13
Answer

Answer: (c) 8

Challenge (Olympiad)

Practice question · 1 mark

The average of 15 numbers is 18. The average of the first 8 is 19 and that of the last 8 is 17. Then the 8th number is:

  1. 15
  2. 16
  3. 18
  4. 20
Answer

Answer: (c) 18

Practice question · 1 mark

The data in increasing order is 40, 42, 45, 49, , , 58, 62, 64, 68. Find the value of if the mean of the data is 53.

Answer

Answer: 50

Practice question · 1 mark

A batsman makes a score of 148 in his 29th innings and therefore his average increases by 4. His average after 29 innings is:

  1. 32
  2. 34
  3. 36
  4. 38
Answer

Answer: (c) 36

Read the notes? Test yourselfA short quiz on this chapter, free, no sign-in needed. Sign in free afterwards to keep your score and try the JEE Foundation test. Your score at once.
Try it yourself: live simulations for this chapter. Move the sliders and watch what happens.Every simulation in the Lab