Skip to content
Gioi Toan
Start learning
A smiling die next to a coin

Notes on Lesson 3: Class frequency. Relative frequency of a class (Maths 9 Canh Dieu, Chapter VI)

Lesson summary

Find a half-open interval [a;b)[a; b) such that every value of the sample belongs to [a;b)[a; b).

The class frequency (or frequency) of a class is the number of values of the sample that belong to that class.

Grouping is like putting shirts into drawers by size: you do not need to know how many centimetres long each one is, only how many are in each drawer.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Lập bảng tần số ghép nhóm, tần số tương đối ghép nhóm
  • Đọc và vẽ biểu đồ tần số tương đối ghép nhóm (dạng cột, dạng đoạn thẳng)

Measuring the height of 40 friends, almost every friend has a different number: 155, 156, 159, 162... Making a frequency table for each number gives a long table where the frequencies are all 1 or 2. This lesson helps you group numbers that are close together into classes, find the class frequency and the relative frequency of each class, then draw a bar chart or a line graph so the whole sample fits neatly in one picture.

Practise nowTextbook solutions for this lesson

Key ideas: what do you need to know?

Grouped data

To turn an ungrouped data sample into grouped data, we can do the following:

  • Find a half-open interval [a;b)[a; b) such that every value of the sample belongs to [a;b)[a; b).
  • Divide [a;b)[a; b) into several half-open intervals, usually of equal length. Each half-open interval is a class.
  • The half-open interval [a;b)[a; b) consists of the numbers xx with a≤x<ba \le x < b.

Note: When grouping, the endpoints of the classes may not be values of the data sample.

In plain words: Grouping is like putting shirts into drawers by size: you do not need to know how many centimetres long each one is, only how many are in each drawer. Look at the smallest and largest numbers to choose a range that covers them all, then divide it evenly so it is easy to compare. The symbol "[" means the left endpoint is included, ")" means the right endpoint is left out, so a friend exactly 158 cm tall goes into only one class [158;161)[158; 161) and is not counted twice.

Phrase by phrase
grouped data
The sample has been divided into classes of values.Example: The heights of 40 friends are divided into four classes.
half-open interval
An interval that includes the left endpoint and leaves out the right endpoint.Example: [155;158)[155; 158) contains 155, does not contain 158.
equal length
The classes are equally wide, equal to b−ab - a divided by the number of classes.Example: [155;167)[155; 167) is 12 long, divided into 4 classes of length 3.
endpoint
The two numbers at the two ends of a class.Example: 167 is an endpoint even though no friend is 167 cm tall.

Common mistakesChoose a half-open interval that covers the data, but whose endpoint must be exactly the largest number, making the largest number fall outside.

TipRemember "square brackets include, parentheses exclude": [a;b)[a; b) includes aa, excludes bb.

Class frequency, grouped frequency table and histogram

  • The class frequency (or frequency) of a class is the number of values of the sample that belong to that class. The frequencies of class 1, class 2, ..., class mm are denoted n1,n2,…,nmn_1, n_2, \ldots, n_m.
  • Grouped frequency table in horizontal form: Step 1, determine the classes and find the frequency of each class; Step 2, make a table with 2 rows, the first column headed Class, Frequency (nn); the next columns give each class and its frequency; the last column is headed Total, N=…N = \ldots A vertical table is made similarly.
  • Histogram in bar form: make the grouped frequency table, then draw a bar chart in which the bars are placed right next to each other.
Nhóm (cm)[155; 158)[158; 161)[161; 164)[164; 167)Cộng
Tần số (n)512158N = 40
Bảng tần số ghép nhóm chiều cao lớp 9A: 5, 12, 15, 8 bạn; cộng N = 40

In plain words: Make the table just like the frequency table in the previous lesson, except each column is a class instead of a value. The bars of the chart stand right next to each other with no gaps, because the classes follow one another on the number line: if this class ends at 158, the next class starts right at 158. At a glance you can see which height class has the most friends.

Phrase by phrase
Class frequency
The number of data values that fall into a class.Example: There are 15 friends from 161 to under 164 cm tall.
Grouped frequency table
A table showing the classes, the frequencies and a Total column NN.Example: [155;158)[155; 158): 5; Total: N=40N = 40.
the bars are placed right next to each other
The bars touch each other, with no gaps.Example: The bar for [155;158)[155; 158) touches the bar for [158;161)[158; 161).

Common mistakesDraw grouped bars separated from each other like an ordinary bar chart.

Relative frequency of a class and relative frequency table

The relative frequency of a class (or relative frequency) fif_i of class ii is the ratio between the class frequency nin_i of that class and the number NN of values in the sample:
fi=niNf_i = \frac{n_i}{N}.

  • We usually write the relative frequency of a class as a percentage.
  • Relative frequency table in horizontal form: the first column is headed Class, Relative frequency (%); the next columns give each class and its relative frequency; the last column is headed Total, 100. A vertical table is made similarly.

In plain words: Calculate it just like the relative frequency in the previous lesson, except now you divide the frequency of a whole class by the sample size. Class [161;164)[161; 164) has 15 out of 40 friends, that is 37.5%, nearly four-tenths of the class. Percentages help you compare with another class that has a different number of students, or with your own class next year.

Phrase by phrase
Relative frequency of a class
The percentage of data values that fall into a class.Example: 1540=37,5%\frac{15}{40} = 37,5\%.
Relative frequency table
A table showing the classes, the relative frequencies and a Total column of 100.Example: [158;161)[158; 161): 30%.

Relative frequency histogram

First make the relative frequency table, then draw one of two forms:

  • Bar chart form: the bars are placed right next to each other, each bar corresponds to a class, and its height is the relative frequency of the class.
  • Line graph form: each class is represented by its representative value, which is the midpoint of the class, a+b2\frac{a + b}{2} for class [a;b)[a; b). Plot the points (representative value; relative frequency) and join them into a polyline from left to right.
01020304012,5[155; 158)30[158; 161)37,5[161; 164)20[164; 167)Tần số tương đối (%)
Biểu đồ cột tần số tương đối ghép nhóm chiều cao lớp 9A, các cột ghép sát nhau: [155; 158) 12,5%, [158; 161) 30%, [161; 164) 37,5%, [164; 167) 20%

In plain words: A class is a whole interval, but to plot a point you need a single number. People choose the midpoint of the interval as the representative, like choosing the friend in the middle of the row to hold up the sign for the whole group. Class [10;20)[10; 20) has representative value 15. The bar form shows the size of each class, the line graph form shows how the relative frequency rises and falls as you go from small classes to large ones.

Phrase by phrase
Bar chart form
The bars touch each other, and a bar's height equals the relative frequency of the class.Example: The bar for [161;164)[161; 164) is 37.5% tall.
representative value
The midpoint of the class, equal to the average of its two endpoints.Example: Class [158;161)[158; 161) has representative value 159.5.
a+b2\frac{a + b}{2}
Add the two endpoints and divide by two.Example: 20+302=25\frac{20 + 30}{2} = 25.

TipThe representative value is the midpoint: add the two endpoints and divide by two.

Worked examples

Example 1

The heights (cm) of the students of class 9A have a minimum value of 155 and a maximum of 166. Choose a half-open interval that contains all the data and divide it into four classes of equal length.

Show the solution to example 1

Step 1: We need a half-open interval [a;b)[a; b) that contains both 155 and 166. Choose [155;167)[155; 167).
Why: We do not choose [155;166)[155; 166), because the sign ") " leaves 166 out, so a student 166 cm tall would have no group.
Step 2: Length: 167−155=12167 - 155 = 12. Divide into 4 groups, each group has length 12:4=312 : 4 = 3.
Step 3: The groups: [155;158)[155; 158), [158;161)[158; 161), [161;164)[161; 164), [164;167)[164; 167).
Result: Four groups [155;158)[155; 158), [158;161)[158; 161), [161;164)[161; 164), [164;167)[164; 167); the endpoint 167 is not a value of the sample.

Example 2

Cycling time to school (minutes) of 20 students:
12, 18, 25, 9, 15, 22, 28, 14, 19, 21, 16, 11, 24, 17, 20, 13, 26, 18, 10, 23.
Group the data into the groups [5;10)[5; 10), [10;15)[10; 15), [15;20)[15; 20), [20;25)[20; 25), [25;30)[25; 30) and then make a grouped frequency table.

Nhóm (phút)[5; 10)[10; 15)[15; 20)[20; 25)[25; 30)Cộng
Tần số (n)15653N = 20
Bảng tần số ghép nhóm thời gian đạp xe: 1, 5, 6, 5, 3 bạn; cộng N = 20
Show the solution to example 2

Step 1: Arrange in ascending order: 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28. The smallest number is 9, the largest is 28, both belong to [5;30)[5; 30).
Step 2: Count by group. [5;10)[5; 10): 9, there is 1. [10;15)[10; 15): 10, 11, 12, 13, 14, there are 5. [15;20)[15; 20): 15, 16, 17, 18, 18, 19, there are 6. [20;25)[20; 25): 20, 21, 22, 23, 24, there are 5. [25;30)[25; 30): 25, 26, 28, there are 3.
Why: The numbers 10, 15, 20, 25 fall exactly on endpoints. Each number goes only into the group where it is the left endpoint, for example 15 goes into [15;20)[15; 20), not into [10;15)[10; 15).
Step 3: The "Total" column: 1+5+6+5+3=20=N1 + 5 + 6 + 5 + 3 = 20 = N.
Result: The frequencies of the groups are 1, 5, 6, 5, 3; N=20N = 20.

Common mistakesCount a value at an endpoint into both neighboring groups, or into the group on the left.

TipArrange the data in ascending order before counting by group, counting will be faster and you will miss fewer.

Example 3

From the grouped frequency table of heights of class 9A (5, 12, 15, 8 students in the groups [155;158)[155; 158), [158;161)[158; 161), [161;164)[161; 164), [164;167)[164; 167)), make a relative frequency histogram.

Show the solution to example 3

Step 1: N=5+12+15+8=40N = 5 + 12 + 15 + 8 = 40.
Step 2: f1=540=12,5%f_1 = \frac{5}{40} = 12,5\%; f2=1240=30%f_2 = \frac{12}{40} = 30\%; f3=1540=37,5%f_3 = \frac{15}{40} = 37,5\%; f4=840=20%f_4 = \frac{8}{40} = 20\%.
Why: The first group is from 155 cm to under 158 cm, exactly according to the half-open interval [155;158)[155; 158). Read the endpoints to match the table so you do not write the wrong group.
Step 3: The "Total" column: 12,5+30+37,5+20=10012,5 + 30 + 37,5 + 20 = 100.
Result: 12.5%, 30%, 37.5%, 20%.

Example 4

Draw a relative frequency histogram in bar form for the table in Example 3.

01020304012,5[155; 158)30[158; 161)37,5[161; 164)20[164; 167)Tần số tương đối (%)
Biểu đồ cột tần số tương đối ghép nhóm chiều cao lớp 9A, các cột ghép sát nhau: [155; 158) 12,5%, [158; 161) 30%, [161; 164) 37,5%, [164; 167) 20%
Show the solution to example 4

Step 1: On the horizontal axis mark the endpoints 155, 158, 161, 164, 167.
Step 2: On the vertical line write percentages, with marks at 10%, 20%, 30%, 40%.
Step 3: Draw four bars touching each other: from 155 to 158 height 12.5%; from 158 to 161 height 30%; from 161 to 164 height 37.5%; from 164 to 167 height 20%.
Why: The groups are joined on the number line, so the bars must touch each other, unlike a bar chart for each separate value.
Step 4: Write the axis names and the title.
Result: The bar [161;164)[161; 164) is the tallest, this height group has the most students.

Example 5

A library records the number of people coming to read books each day for 100 consecutive days. Relative frequency table: [10;20)[10; 20): 15%; [20;30)[20; 30): 35%; [30;40)[30; 40): 30%; [40;50)[40; 50): 20%.
a) How many days did the library welcome from 20 to under 30 people? b) State the points to draw a line graph.

Show the solution to example 5

Step 1: a) 100⋅35%=35100 \cdot 35\% = 35 days.
Step 2: b) Representative values: 10+202=15\frac{10 + 20}{2} = 15; 20+302=25\frac{20 + 30}{2} = 25; 30+402=35\frac{30 + 40}{2} = 35; 40+502=45\frac{40 + 50}{2} = 45.
Why: The x-coordinate of a point is the representative value (the middle of the group), not the left endpoint. Using 10, 20, 30, 40 as x-coordinates shifts the whole line.
Step 3: The points: (15;15)(15; 15), (25;35)(25; 35), (35;30)(35; 30), (45;20)(45; 20), with y-coordinates calculated in %.
Step 4: Join them in order with a polyline from left to right.
Result: a) 35 days. b) Four points (15;15)(15; 15), (25;35)(25; 35), (35;30)(35; 30), (45;20)(45; 20).

Common mistakesUse the left endpoint as the x-coordinate when drawing a line graph, instead of the representative value.

Example 6

One student is exactly 161 cm tall and another is 157.5 cm tall. Which group does each student belong to among the groups [155;158)[155; 158), [158;161)[158; 161), [161;164)[161; 164), [164;167)[164; 167)?

Show the solution to example 6

Step 1: The group [a;b)[a; b) consists of the values xx with a≤x<ba \le x < b.
Step 2: For 161: 161<161161 < 161 is false, so 161 does not belong to [158;161)[158; 161). But 161≤161<164161 \le 161 < 164 is true.
Why: The sign ")" at 161 means the group [158;161)[158; 161) does not contain 161. Thanks to this, each value belongs to exactly one group.
Step 3: For 157.5: 155≤157,5<158155 \le 157,5 < 158, true.
Result: The student 161 cm tall belongs to the group [161;164)[161; 164); the student 157.5 cm tall belongs to the group [155;158)[155; 158).

Terms

Grouped data
The data sample has been divided into groups of values.Example: The height is divided into four groups.
Half-open interval
The interval [a;b)[a; b) consists of the numbers xx with a≤x<ba \le x < b.Example: [10;15)[10; 15) contains 10, does not contain 15.
Endpoint
The two numbers at the two ends of a class.Example: [20;25)[20; 25) has endpoints 20 and 25.
Class frequency
The number of data values that belongs to the group.Example: The group [15;20)[15; 20) has 6 students.
Grouped frequency table
A table that records the groups along with frequencies, the last column Total NN.Example: [155;158)[155; 158): 5.
Relative frequency of a class
The ratio niN\frac{n_i}{N} of the group, usually written as a percentage.Example: 1240=30%\frac{12}{40} = 30\%.
Representative value
The midpoint of the group [a;b)[a; b), equal to a+b2\frac{a + b}{2}.Example: The group [30;40)[30; 40) has representative value 35.

Practise this lesson with instant marking and saved progress in the study app. Suggested plan: Class lessons plan, Maths 9.

Practice

Answer each question, then press Check. If you get stuck, open the hints under the question one step at a time.

Question 1 of 1Written answer · Understanding

This content is not yet available in English. It is shown below in the original Vietnamese.

Nhà may Hưng Thịnh tặng áo phông cho 40 học sinh của lớp 9A. Nhà may đo chiều cao (đơn vị: centimét) của cả lớp để quyết định chọn các cỡ áo khi may, kết quả như sau:
161 159 168 153 150 157 172 165 161 158
169 153 164 167 172 174 163 156 166 166
161 152 165 169 160 152 165 163 174 168
159 168 164 169 156 172 167 158 161 160
a) Mẫu số liệu trên có bao nhiêu giá trị khác nhau?
b) Có nên dùng bảng tần số (hay bảng tần số tương đối) để biểu diễn mẫu số liệu thống kê đó không?

Do this question in your notebook and show every step. When you finish, press the button below to compare with the mark scheme.

Asking the teacher while practising is for children who have a profile. It is free to turn on: Parent sign-in.

More practice questions for you

Additional exercises

  • Tính tần số tương đối ghép nhóm và lập bảng (Recall, Applying)
  • Vẽ biểu đồ tần số hoặc tần số tương đối ghép nhóm dạng cột, đoạn thẳng (Recall)
  • Chia nhóm số liệu và lập bảng tần số ghép nhóm (Understanding)

Challenge yourself

  • Chia nhóm số liệu và lập bảng tần số ghép nhóm (Understanding)
  • Dạng khác (Understanding)

Ask a parent to sign in and create your profile to unlock more. It's free. Sign in

Skills in this lesson

Tap a skill to see what to secure first, what comes next, and more practice.