Learn on your own. Parents beside you. Teachers guide.

Lemonmath
Tiếng Việt

Frequency tables and frequency charts

Lesson 7.1 · 20 min read · Updated

Did you know that teenagers aged 13 to 18 are advised to sleep 8 to 10 hours in every 24? That is the recommendation of the American Academy of Sleep Medicine, as quoted by the US CDC. Suppose the form tutor of class 9A asks 30 students "How many hours did you sleep last night?" and writes down the answers, to the nearest hour:

7, 8, 8, 8, 8, 7, 8, 6, 7, 9, 6, 7, 6, 9, 7, 7, 5, 8, 5, 9, 7, 7, 5, 8, 6, 6, 6, 7, 8, 7.7,\ 8,\ 8,\ 8,\ 8,\ 7,\ 8,\ 6,\ 7,\ 9,\ 6,\ 7,\ 6,\ 9,\ 7,\ 7,\ 5,\ 8,\ 5,\ 9,\ 7,\ 7,\ 5,\ 8,\ 6,\ 6,\ 6,\ 7,\ 8,\ 7.

How many students in the class sleep enough? Thirty numbers in no order are hiding the answer. To bring it out, we need to arrange them neatly, and that is what this lesson does: with a frequency table and a chart, the answer shows up at a glance.

Frequency tables

Explore: counting each value

Look closely at the list and you will see only five different values: 55, 66, 77, 88, 99. So instead of reading thirty numbers, we count how many times each value appears:

Hours of sleep 55 66 77 88 99
Number of students 33 66 1010 88 33

Let us check: 3+6+10+8+3=303+6+10+8+3=30, which is exactly the number of students asked. Now we can answer the opening question: only 8+3=118+3=11 students slept 8 hours or more, less than half of the class.

Going deeper. A frequency table "compresses" thirty numbers into five (value; frequency) pairs. We lose only the order and who gave each answer ("who slept 5 hours"), and we gain a much shorter table. One spot to watch: the value 88 having frequency 88 is only a coincidence, and the two numbers have nothing to do with each other.

Frequency bar charts

A frequency table gives exact numbers; a chart shows us the shape of the data. Suppose the school asks 200 students in year 9 about their sleep and gets the frequency table below. With this much data, a picture is easier to read than a row of numbers:

Hours of sleep 5 6 7 8 9
Number of students 24 46 68 44 18

Here is how to draw a frequency bar chart. Put the values x on the horizontal axis and the frequencies m on the vertical axis. At each value x_i draw a bar of height m_i. All bars must have the same width and be equally spaced. Finally, give the chart a title.

456789101020304050607080xyO
Hours of sleep of 200 year 9 students

The horizontal axis (x) shows hours of sleep and the vertical axis (y) shows the number of students. At a glance, the bar at 7 is the tallest, and the bars get shorter on both sides.

Frequency line graphs

When the values are numbers in order, there is another way to draw the data: a frequency line graph. Mark the points (x_i, m_i) and join consecutive points with line segments.

456789101020304050607080xyO
Line graph of the same data set

The broken line shows the trend quite clearly: the frequency rises up to 7 hours and then falls. But this only suits data that are numbers. For a favourite sport, say, a segment joining "football" to "badminton" means nothing. Then we use a bar chart.

Connections. Frequency tables build on the charts you met in years 6 and 7, and they are the foundation of this chapter. In the next lesson we divide frequencies by the sample size to get relative frequencies. When there are too many values, we group the data. In year 10, you will find the mean and the median from a frequency table.

Key terms

Summary

  • Frequency: the number of times a value appears; m_1+m_2+\ldots+m_k=n (the sample size).
  • Bar chart: bar height equals the frequency; all bars have the same width.
  • Line graph: join the points (x_i, m_i); use it only when the values are numbers.
  • Total of the data: x_1m_1+x_2m_2+\ldots+x_km_k. Back to the form tutor's question: by counting and building a table, thirty jumbled numbers told us how many students sleep enough. One thing to remember: always add the frequencies and compare the total with the sample size.

Practice

Each exercise comes with what you need to remember and some hints. Try it yourself first, and open the solution only when you are stuck. After a few exercises it will feel much more familiar.

Exercise 1

Suppose the numbers of children in the families of 20 students are:

2,\ 2,\ 4,\ 3,\ 3,\ 2,\ 1,\ 1,\ 2,\ 1,\ 2,\ 3,\ 2,\ 1,\ 2,\ 3,\ 2,\ 1,\ 2,\ 2.

a) Build the frequency table of the data set.

b) How many families have 3 or more children?

What you need and how to start

What you need: the frequency is the number of times a value appears; the frequencies add up to the sample size.

Steps:

  1. Count how many times 1, 2, 3, 4 appear.
  2. Add the frequencies of 3 and 4.
Show solution

a) The values 1, 2, 3, 4 have frequencies 5, 10, 4, 1 (total 20).

b) So 4+1=5 families have 3 or more children.

Answer. a) 5, 10, 4, 1; b) 5.

Exercise 2

Suppose 36 students in class 9B choose their favourite sport: 13 choose football, 9 badminton, 8 swimming and the rest basketball.

a) Find the number of students who chose basketball.

b) Should a bar chart or a line graph be used for these data? Explain.

What you need and how to start

What you need: the frequencies add up to the sample size; a line graph is only for values that are numbers.

Steps:

  1. Subtract the three known frequencies from 36.
  2. Are the names of sports numbers?
Show solution

a) The number of students who chose basketball is 36-(13+9+8)=6.

b) The values are names of sports, not numbers, so a segment joining two sports means nothing. So we use a bar chart.

Answer. a) 6; b) a bar chart.

Exercise 3

The frequency line graph of the numbers of spelling mistakes made by a group of students passes through the points (0, 4), (1, 9), (2, 7), (3, 3), (4, 1). Find the number of students and the total number of mistakes in the group.

What you need and how to start

What you need: the point (x_i, m_i) gives the value x_i and its frequency m_i.

Steps:

  1. Add the y-coordinates to get the sample size.
  2. Add the products x\cdot m.
Show solution

We have n=4+9+7+3+1=24. The total number of mistakes is

0\cdot4+1\cdot9+2\cdot7+3\cdot3+4\cdot1=36.

So the group has 24 students, who made 36 mistakes.

Answer. 24 students; 36 mistakes.

Exercise 4

Suppose that of the 60 motorbikes passing the school gate at 6:45 a.m., 21 carry 1 person, 34 carry 2 people and 5 carry 3 people.

a) Find the total number of people on these 60 motorbikes.

b) If all these people travelled by 40-seat bus instead, at least how many bus journeys would be needed? Comment.

What you need and how to start

What you need: the total of the data is x_1m_1+\ldots+x_km_k.

Steps:

  1. Work out 1\cdot21+2\cdot34+3\cdot5.
  2. Divide by 40 and round up.
Show solution

a) The frequency table is:

People on the motorbike 1 2 3
Motorbikes (frequency) 21 34 5

The total number of people is the sum of each value multiplied by its frequency: 1\cdot21+2\cdot34+3\cdot5=21+68+15=104.

So there are 104 people on the 60 motorbikes.

b) Each bus journey carries 40 people. We have 104\div40=2.6.

The number of journeys is a whole number and 2<2.6\le3, so at least 3 journeys are needed.

So at least 3 bus journeys are needed. Comment: just 3 bus journeys could replace 60 motorbikes, which would ease the congestion at the school gate.

Answer. a) 104; b) 3.

Exercise 5

(1.5 marks) Suppose the times (in minutes) taken by 20 students to travel from home to school are:

10,\ 15,\ 20,\ 10,\ 15,\ 30,\ 25,\ 5,\ 15,\ 10,\ 5,\ 10,\ 15,\ 20,\ 10,\ 15,\ 10,\ 20,\ 5,\ 15.

a) Build the frequency table of the data set.

b) How many students take more than 15 minutes?

c) Find the total travel time of the 20 students.

What you need and how to start

What you need: the frequency table; the total of the data is x_1m_1+\ldots+x_km_k.

Steps:

  1. Count how many times 5, 10, 15, 20, 25, 30 appear.
  2. "More than 15 minutes" does not include 15.
Show solution

a) Counting how many times each value appears in the data, we get the frequency table:

Time (minutes) 5 10 15 20 25 30
Frequency 3 6 6 3 1 1

Check: 3+6+6+3+1+1=20, which equals the number of students.

b) The students who take more than 15 minutes correspond to the values 20, 25, 30. Their number is 3+1+1=5.

So 5 students take more than 15 minutes.

c) The total time is the sum of each value multiplied by its frequency: 5\cdot3+10\cdot6+15\cdot6+20\cdot3+25\cdot1+30\cdot1=15+60+90+60+25+30=280.

So the total travel time of the 20 students is 280 minutes.

Answer. a) 3, 6, 6, 3, 1, 1; b) 5; c) 280 minutes.

Exercise 6

Suppose class 9C (40 students) has 14 students who sleep 8 hours or more, and class 9D (35 students) also has 14 such students. Ha says: "The two classes sleep equally well." Do you agree? Explain.

What you need and how to start

What you need: when two data sets have different sizes, compare the counts relative to the sample sizes.

Steps:

  1. Work out the ratio of students who sleep enough to the class size for each class.
  2. Compare the two ratios.
Show solution

The two classes have different sizes, so we compare the relative frequencies (proportions) of students who sleep enough rather than the numbers of students.

In class 9C, the relative frequency is \dfrac{14}{40}=0.35=35\%.

In class 9D, the relative frequency is \dfrac{14}{35}=0.4=40\%.

Since 35\%<40\%, a larger proportion of students sleep enough in class 9D than in class 9C.

So we do not agree with Ha: the numbers are equal, but class 9D sleeps better.

Answer. No (0.35<0.4).

Exercise 7

Suppose the test marks of 40 students are given in the table below, where x and y are whole numbers. The total of the marks of all 40 students is 312. Find x and y. (Revise solving simultaneous equations.)

Mark 6 7 8 9 10
Number of students 5 x 12 y 3
What you need and how to start

What you need: the frequencies add up to the sample size; the total of the marks is x_1m_1+\ldots+x_km_k.

Steps:

  1. Form two equations from the sample size and the total.
  2. Solve them by substitution.
Show solution

From the question, 5+x+12+y+3=40 and 30+7x+96+9y+30=312, so

\begin{cases} x+y=20\\ 7x+9y=156.\end{cases}

Substituting y=20-x into the second equation, we get 7x+180-9x=156, so x=12 and y=8 (these satisfy the conditions).

So x=12, y=8.

Answer. x=12, y=8.

Exercise 8 Challenge

A data set consists of 15 numbers, each equal to 1, 2 or 3. The total of the 15 numbers is 34, and 3 appears twice as often as 1. Build the frequency table of the data set.

What you need and how to start

What you need: let the frequencies of 1, 2, 3 be a, b, c; use the sample size and the total.

Steps:

  1. Write a+b+c=15, a+2b+3c=34, c=2a.
  2. Substitute c=2a to get two equations in two unknowns.
Show solution

Let a, b, c be the frequencies of 1, 2, 3 (a, b, c\in\mathbb{N}). We have a+b+c=15, a+2b+3c=34, c=2a.

Substituting c=2a, we get 3a+b=15 and 7a+2b=34. Substituting b=15-3a into the second: 7a+30-6a=34, so a=4, and hence b=3, c=8.

So the values 1, 2, 3 have frequencies 4, 3, 8.

Answer. 4, 3, 8.

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. Consider the data set 3, 5, 4, 5, 2, 5, 4, 3, 5, 1. The frequency of the value 5 is
Question 2. A data set has the frequency table: values 1, 2, 3, 4 with frequencies 6, 9, 4, 1. The sample size is
Question 3. In a frequency bar chart, the height of each bar represents
Question 4. The numbers of goals in some matches have the frequency table: values 0, 1, 2, 3 with frequencies 4, 7, 6, 3. The number of matches with at least 2 goals is

Part II. True or false

Question 1. The daily hours of private study of a group of students take the values 1, 2, 3, 4 with frequencies 5, 8, 4, 3. Decide whether each statement is true or false.
a) The sample size is 20.
b) The value with the largest frequency is 8.
c) 7 students study for 3 hours or more.
d) The total study time of the group is 45 hours.

Part III. Short answer

Question 1. A data set of size 20 has the frequency table: values 5, 6, 7, 8 with frequencies 3, x, 7, 4. Find x.

Question 2. The numbers of goals in some matches have the frequency table: values 0, 1, 2, 3 with frequencies 4, 7, 6, 3. Find the total number of goals in all the matches.

Show answers and explanations
  1. Part I, question 1: C. The value 5 appears 4 times. A confuses the value with its frequency, B is the sample size, D is the frequency of the value 3 (or 4).
  2. Part I, question 2: A. n=6+9+4+1=20. B adds the values, C is the number of different values, D is the largest frequency.
  3. Part I, question 3: D. The height of a bar equals the frequency of its value. The value is written under the bar (A), the sample size is the total height of all the bars (B), and the number of different values is the number of bars (C).
  4. Part I, question 4: B. 6+3=9. A counts only the matches with exactly 2 goals, D only those with 3 goals, C counts the matches with at least 1 goal.
  5. Part II, question 1: a) True; b) False; c) True; d) True. a) True. b) False: 8 is the frequency; the value is 2. c) True: 4+3=7. d) True: 5+16+12+12=45.
  6. Part III, question 1: 6. x=20-(3+7+4)=6.
  7. Part III, question 2: 28. 0\cdot4+1\cdot7+2\cdot6+3\cdot3=0+7+12+9=28.
📈 My progress

Finding Lemonmath useful?

Send this page to a friend, a parent or a teacher who could use it. Studying on your own is easier with company, and Lemonmath is free for everyone.

Facebook ✉ Email