Skip to content
Gioi Toan
Start learning
A bar chart with three bars, the tallest one smiling

Notes on Lesson 24: Frequency table, relative frequency of a class and diagrams (Maths 9 Ket noi tri thuc)

Lesson summary

When the data has many different values, we split them into class intervals of the form [a;b)[a; b).

The top row lists the classes [a1;a2)[a_1; a_2), [a2;a3)[a_2; a_3), ..., [ak;ak+1)[a_k; a_{k+1}).

Picture some baskets for sorting fruit by weight.

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

  • Xác định được tần số, tần số tương đối ghép nhóm và lập bảng
  • Biểu diễn bảng ghép nhóm bằng biểu đồ tần số dạng cột, đoạn thẳng

The teacher measures the height of 40 students in the class and gets 40 separate numbers like 156, 157, 164... Looking at such a long list, it is hard to answer "how tall are most of us". This lesson helps you gather the data into groups, count how many students are in each group, turn that into a percentage, and then draw a chart so that one glance shows it all.

Practise nowTextbook solutions for this lesson

Key ideas: what do you need to know?

Class intervals and class frequency

When the data has many different values, we split them into class intervals of the form [a;b)[a; b).

  • The class [a;b)[a; b) contains the values xx with a≤x<ba \le x < b: include the left endpoint, exclude the right endpoint.
  • aa is the left endpoint, bb is the right endpoint, b−ab - a is the class width. Usually the classes have equal width and follow one another without overlapping.
  • The class frequency mim_i of the class [ai;ai+1)[a_i; a_{i+1}) is the number of values in the data sample that are greater than or equal to aia_i and less than ai+1a_{i+1}.
  • For example: the value 158 belongs to the class [158;161)[158; 161), not to the class [155;158)[155; 158).

In plain words: Picture some baskets for sorting fruit by weight. Each basket takes a range, for example from 155 to under 158. A fruit that weighs exactly 158 does not go into this basket but into the next one. Why do we agree on this? Because if two baskets both took the number 158, one student would be counted twice and the total would be too big. After counting, each basket has some fruits, and that is the class frequency.

Phrase by phrase
class interval
A range of values used to group numbers that are close together.Example: The class [155;158)[155; 158) groups the heights 155, 156, 157 cm.
include the left endpoint, exclude the right endpoint
The number at the left end belongs to the class, the number at the right end does not.Example: In [20;30)[20; 30): the number 20 belongs to the class, the number 30 does not belong to it.
class width
The difference between the right endpoint and the left endpoint.Example: The class [158;161)[158; 161) has class width 161−158=3161 - 158 = 3.
Frequency
The number of values that fall into that class.Example: If 5 friends are from 155 to under 158 cm tall, then the class frequency of [155;158)[155; 158) is 5.

Common mistakesPut a value exactly equal to the right endpoint into the group on the left, for example put the number 158 into the group [155;158)[155; 158). The right endpoint belongs to the next group.

Grouped frequency table

A grouped frequency table is a frequency table of class intervals, with two rows (or two columns):

  • The top row lists the classes [a1;a2)[a_1; a_2), [a2;a3)[a_2; a_3), ..., [ak;ak+1)[a_k; a_{k+1}).
  • The bottom row lists the corresponding frequencies m1m_1, m2m_2, ..., mkm_k.
  • The sample size n=m1+m2+...+mkn = m_1 + m_2 + ... + m_k, that is, the sum of the frequencies, equals the number of values in the sample.

How to make one: read each value in turn, make one tally mark in the class that contains it, then count the marks in each class.

In plain words: A grouped frequency table is like a summary sheet after sorting everything into baskets: this basket has 5, that basket has 12. You no longer need to remember every single number but you still see the whole picture. A simple check: add up all the frequencies and you must get exactly the number of original values. If it is off by one, you know right away that you missed or double-counted somewhere.

Phrase by phrase
Grouped frequency table
A table showing how many values each class interval has.Example: Class [155;158)[155; 158): 5 friends; class [158;161)[158; 161): 12 friends.
Sample size
The total number of values in the data sample, written nn.Example: Measuring the heights of 40 friends gives n=40n = 40.
make one tally mark
Mark one stroke for each value so you do not miss any.Example: A class with 5 marks has frequency 5.

Common mistakesAfter counting, not adding the frequencies back up to compare with the sample size, so one value is missed or extra without you knowing.

TipCount with tally marks: read each number in turn, draw one mark in its group, and only count the marks after reading them all. The sum of the frequencies must equal nn exactly.

Relative frequency histogram table

The relative frequency of the iith class is the percentage between the frequency of that class and the sample size:
fi=min⋅100 (%)f_i = \frac{m_i}{n} \cdot 100\ (\%), with n=m1+...+mkn = m_1 + ... + m_k.

  • A relative frequency table lists the classes in the top row and f1f_1, f2f_2, ..., fkf_k in the bottom row.
  • The sum of the relative frequencies equals 100%100\% (it may be slightly off when rounded).
  • If you know nn and fif_i, you can find the frequency again: mi=fi⋅n100m_i = \frac{f_i \cdot n}{100}.

In plain words: Saying "there are 12 friends" does not tell you whether that is a lot or a little, because it depends on whether the class has 20 or 50 friends. Changing it to a percentage lets you compare right away: 12 out of 40 friends is 30%30\%, almost one third of the class. That is why people often use relative frequency to compare two classes or two schools with different numbers of students. All the percentages must add up to 100%100\%, because every friend is in exactly one class.

Phrase by phrase
Relative frequency
The frequency of a class as a percentage of the whole sample.Example: 12 friends out of 40: 1240⋅100%=30%\frac{12}{40} \cdot 100\% = 30\%.
sample size
The total number of values in the sample, which is also the sum of the frequencies.Example: 5+12+15+8=405 + 12 + 15 + 8 = 40.
The sum of the relative frequencies equals 100%100\%
Adding the percentages of all the classes covers the whole sample.Example: 12,5%+30%+37,5%+20%=100%12{,}5\% + 30\% + 37{,}5\% + 20\% = 100\%.

Common mistakesDrawing a histogram but leaving gaps between the columns, or drawing columns whose height does not match the relative frequency.

Relative frequency histogram in bar form

A relative frequency histogram in bar form consists of adjacent bars, one bar for each class, and the height of a bar equals the relative frequency of that class. This chart (using frequency or relative frequency) is also called a histogram.

How to draw it when the classes have equal widths:

  • Step 1: Draw the vertical axis and the horizontal axis. The vertical axis is scaled to suit the relative frequencies; the horizontal axis lists the classes.
  • Step 2: Draw adjacent bars, each bar as tall as the relative frequency of its class.
  • Step 3: Add a key for the two axes and the bars, and give the chart a title.

In plain words: A grouped bar chart differs from the bar chart you learned in earlier grades in one way: the bars stand right next to each other, with no gaps. Why? Because the classes follow one another on the number line: one class ends at 158 and the next starts right at 158. The tallest bar is the largest class. A quick look at your class height chart shows that most friends are about 161 to 164 cm tall.

Phrase by phrase
adjacent bars
The bars stand right next to each other, with no gap between two bars.Example: The bar for class [155;158)[155; 158) touches the bar for class [158;161)[158; 161).
bar height equals relative frequency
The taller the bar, the larger the percentage that class makes up.Example: Class 37,5%37{,}5\% has the tallest bar.
histogram
Another name for a grouped bar chart.Example: The chart of class 9A heights drawn with adjacent bars is a histogram.
key
The text naming the axes, the units and the numbers on the bars.Example: The vertical axis says "Percentage (%)", the horizontal axis says "Height (cm)".

TipThink of [a;b)[a; b) as a one-way door: the number aa may go in, the number bb must go to the next group.

Relative frequency histogram in polyline form

How to draw the polyline chart:

  • Step 1: Choose a representative value for each class [ai;ai+1)[a_i; a_{i+1}), which is the midpoint of the class: xi=ai+ai+12x_i = \frac{a_i + a_{i+1}}{2}.
  • Step 2: Draw the horizontal axis for the representative values and the vertical axis for the relative frequencies.
  • Step 3: For each xix_i, locate the point Mi(xi;fi)M_i(x_i; f_i). Join consecutive points with line segments.
  • Step 4: Add a key for the two axes and the points, and a title.

Note:

  • Replacing relative frequency with frequency gives a grouped frequency histogram in polyline form.
  • On the horizontal axis you can write the class intervals instead of the representative values.

In plain words: Each class is a whole interval, but to plot a point you must pick one number. The fairest number is the midpoint of the interval, like standing in the middle of a road to represent the whole road. The class from 158 to under 161 has representative value 159,5159{,}5. Once the points are plotted and joined, the polyline shows you where the data rise and where they fall.

Phrase by phrase
representative value
A number that stands for the whole class, taken at the very middle of the class.Example: The group [10;20)[10; 20) has representative value 10+202=15\frac{10 + 20}{2} = 15.
Join consecutive points
Join the first point to the second, the second to the third, and so on to the end.Example: M1M2M_1M_2, M2M3M_2M_3, M3M4M_3M_4 form a polyline.
histogram in line-segment form
Same way of drawing, but the vertical axis shows counts instead of percentages.Example: The point (156,5;5)(156{,}5; 5) stands for (156,5;12,5)(156{,}5; 12{,}5).

Worked examples

Example 1

The time 20 students of class 9B spend studying at home in one day (minutes) is as follows:
25 42 18 35 50 30 22 47 38 15
40 28 33 20 45 36 52 30 27 41
Group them into the groups [10;20)[10; 20), [20;30)[20; 30), [30;40)[30; 40), [40;50)[40; 50), [50;60)[50; 60) and make a grouped frequency table.

Show the solution to example 1

Step 1: Read each value and put it into the group that contains it.

  • [10;20)[10; 20): 18, 15. There are 2 values.
  • [20;30)[20; 30): 25, 22, 28, 20, 27. There are 5 values.
  • [30;40)[30; 40): 35, 30, 38, 33, 36, 30. There are 6 values.
  • [40;50)[40; 50): 42, 47, 40, 45, 41. There are 5 values.
  • [50;60)[50; 60): 50, 52. There are 2 values.

Why: The number 20 is in group [20;30)[20; 30), the number 30 in group [30;40)[30; 40), the number 50 in group [50;60)[50; 60). The right endpoint does not belong to the group.
Step 2: Check the sum: 2+5+6+5+2=202 + 5 + 6 + 5 + 2 = 20, exactly the number of students.
Step 3: Make the table.

Time (minutes)[10; 20)[20; 30)[30; 40)[40; 50)[50; 60)
Frequency25652
Time (minutes)Frequency
[10; 20)2
[20; 30)5
[30; 40)6
[40; 50)5
[50; 60)2

Result: The frequencies of the groups are 2, 5, 6, 5, 2 respectively.

Example 2

The heights (cm) of 40 students of class 9A are grouped as follows: [155;158)[155; 158) has 5 students, [158;161)[158; 161) has 12 students, [161;164)[161; 164) has 15 students, [164;167)[164; 167) has 8 students. Make a relative frequency histogram table.

Show the solution to example 2

Step 1: Sample size n=5+12+15+8=40n = 5 + 12 + 15 + 8 = 40.
Step 2: Calculate each relative frequency.

  • f1=540⋅100%=12,5%f_1 = \frac{5}{40} \cdot 100\% = 12{,}5\%.
  • f2=1240⋅100%=30%f_2 = \frac{12}{40} \cdot 100\% = 30\%.
  • f3=1540⋅100%=37,5%f_3 = \frac{15}{40} \cdot 100\% = 37{,}5\%.
  • f4=840⋅100%=20%f_4 = \frac{8}{40} \cdot 100\% = 20\%.

Why: The denominator is always the sample size 40, not the number of groups 4.
Step 3: Check the sum: 12,5+30+37,5+20=10012{,}5 + 30 + 37{,}5 + 20 = 100, correct.

Height (cm)[155; 158)[158; 161)[161; 164)[164; 167)
Relative frequency12.5%30%37.5%20%
Height (cm)Relative frequency
[155; 158)12.5%
[158; 161)30%
[161; 164)37.5%
[164; 167)20%

Result: The relative frequencies are 12,5%12{,}5\%, 30%30\%, 37,5%37{,}5\%, 20%20\% respectively.

Example 3

In a survey of the weights of 50 students, the relative frequency table is: [40;45)[40; 45): 10%10\%; [45;50)[45; 50): 24%24\%; [50;55)[50; 55): 36%36\%; [55;60)[55; 60): 30%30\%. How many students are in each group?

Show the solution to example 3

Step 1: From fi=min⋅100%f_i = \frac{m_i}{n} \cdot 100\% deduce mi=fi⋅n100m_i = \frac{f_i \cdot n}{100}, with n=50n = 50.
Step 2: Calculate each group.

  • [40;45)[40; 45): 10⋅50100=5\frac{10 \cdot 50}{100} = 5 students.
  • [45;50)[45; 50): 24⋅50100=12\frac{24 \cdot 50}{100} = 12 students.
  • [50;55)[50; 55): 36⋅50100=18\frac{36 \cdot 50}{100} = 18 students.
  • [55;60)[55; 60): 30⋅50100=15\frac{30 \cdot 50}{100} = 15 students.

Why: 10%10\% means 10 parts out of 100 parts, so you must multiply by 50 and then divide by 100, not just take the number 10.
Step 3: Check: 5+12+18+15=505 + 12 + 18 + 15 = 50, correct sample size.
Result: The groups have 5, 12, 18, 15 students respectively.

Common mistakesDividing by the number of groups instead of by the sample size when computing the relative frequency.

Example 4

Describe how to draw a relative frequency histogram in bar form for the height table in Example 2.

Show the solution to example 4

Step 1: Draw the horizontal axis with the groups [155;158)[155; 158), [158;161)[158; 161), [161;164)[161; 164), [164;167)[164; 167), the marks 155, 158, 161, 164, 167 equidistant. Draw the vertical axis with percentages, marked 0, 10, 20, 30, 40.
Step 2: Draw four adjacent bars. The bar over group [155;158)[155; 158) is 12,512{,}5 high, bar [158;161)[158; 161) is 30 high, bar [161;164)[161; 164) is 37,537{,}5 high, bar [164;167)[164; 167) is 20 high.
Why: The groups follow one another on the number line, so the bars must stand close together. Leaving gaps is wrong for this type of histogram.
Step 3: Write the percentage on top of each bar, write "Height (cm)" on the horizontal axis, "Percentage (%)" on the vertical axis, and the title "Heights of the students of class 9A".
Result: The chart has 4 adjacent bars, the bar of group [161;164)[161; 164) is the tallest, showing that this group is the largest.

Example 5

The lifetime (hours) of a type of light bulb has the relative frequency table: [1000;1200)[1000; 1200): 8%8\%; [1200;1400)[1200; 1400): 22%22\%; [1400;1600)[1400; 1600): 45%45\%; [1600;1800)[1600; 1800): 25%25\%. Find the representative value of each group and state the points to plot to draw the line-segment chart.

Show the solution to example 5

Step 1: The representative value is the midpoint of each group.

  • x1=1000+12002=1100x_1 = \frac{1000 + 1200}{2} = 1100.
  • x2=1200+14002=1300x_2 = \frac{1200 + 1400}{2} = 1300.
  • x3=1400+16002=1500x_3 = \frac{1400 + 1600}{2} = 1500.
  • x4=1600+18002=1700x_4 = \frac{1600 + 1800}{2} = 1700.

Why: Take the average of the two endpoints, not the left endpoint 1000 or the right endpoint 1200.
Step 2: The points to plot are M1(1100;8)M_1(1100; 8), M2(1300;22)M_2(1300; 22), M3(1500;45)M_3(1500; 45), M4(1700;25)M_4(1700; 25).
Step 3: Draw the horizontal axis marked 1100, 1300, 1500, 1700; the vertical axis shows percentage (%). Plot the four points and join M1M2M_1M_2, M2M3M_2M_3, M3M4M_3M_4. Write the key and the title.
Result: The polyline goes up to M3(1500;45)M_3(1500; 45) and then goes down, meaning this type of bulb usually lights for about 1400 to under 1600 hours.

Common mistakesTaking the left endpoint as the representative value, instead of taking the midpoint ai+ai+12\frac{a_i + a_{i+1}}{2}.

TipThe representative value is the average of the two endpoints, which is also the midpoint of the column on the chart.

Example 6

The 60 m running times (seconds) of 30 students are grouped: [8;9)[8; 9) has 7 students, [9;10)[9; 10) has 11 students, [10;11)[10; 11) has 12 students. Make a relative frequency table (round to the hundredths place) and say what percentage of students run in 9 seconds or more.

Show the solution to example 6

Step 1: n=7+11+12=30n = 7 + 11 + 12 = 30.
Step 2: f1=730⋅100%≈23,33%f_1 = \frac{7}{30} \cdot 100\% \approx 23{,}33\%; f2=1130⋅100%≈36,67%f_2 = \frac{11}{30} \cdot 100\% \approx 36{,}67\%; f3=1230⋅100%=40%f_3 = \frac{12}{30} \cdot 100\% = 40\%.
Why: since each number is rounded, the ≈\approx sign must be written. Here the sum still comes out to 100%100\%; in some problems, rounding first and then adding gives 99,99%99{,}99\% or 100,01%100{,}01\%, and that is not wrong either.
Step 3: 9 seconds or more covers two groups [9;10)[9; 10) and [10;11)[10; 11): there are 11+12=2311 + 12 = 23 students, making up 2330⋅100%≈76,67%\frac{23}{30} \cdot 100\% \approx 76{,}67\%.
Result: the relative frequencies are about 23,33%23{,}33\%, 36,67%36{,}67\%, 40%40\%; about 76,67%76{,}67\% students ran the distance in 9 seconds or more.

Terms

Grouped data
A data sample that has been divided into groups of values.Example: The heights of 40 students are divided into 4 groups [155;158)[155; 158), ..., [164;167)[164; 167).
Class interval
The interval [a;b)[a; b) consists of the values xx with a≤x<ba \le x < b.Example: The group [20;30)[20; 30) contains 20, 25, 29 but does not contain 30.
Class width
The difference b−ab - a of the group [a;b)[a; b).Example: The group [40;45)[40; 45) has class width 5.
Class frequency
The number of values in the sample that belong to one group.Example: The group [158;161)[158; 161) has class frequency 12.
Relative frequency of a class
The class frequency divided by the sample size, written as a percentage.Example: 1240⋅100%=30%\frac{12}{40} \cdot 100\% = 30\%.
Sample size
The total number of values in the data sample, equal to the sum of the frequencies.Example: n=40n = 40.
Representative value
The midpoint of the group, used in place of the whole group.Example: The group [1000;1200)[1000; 1200) has representative value 1100.
Histogram
A bar chart with adjacent columns showing a frequency table or a relative frequency table of grouped data.Example: The height chart of class 9A has 4 columns touching each other.
Frequency polygon
A polyline joining the points Mi(xi;fi)M_i(x_i; f_i).Example: Join M1(1100;8)M_1(1100; 8), M2(1300;22)M_2(1300; 22), ...

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 1Multiple choice · Recall

The class interval [a;b)[a; b) consists of values xx satisfying which condition?

Choose one option

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

Extra practice

  • Tính tần số tương đối ghép nhóm và lập bảng (Applying, Understanding)
  • Đọc bảng ghép nhóm, tính số đối tượng thuộc một khoảng (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 (Applying)

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, Understanding, Applying)
  • Đọc bảng ghép nhóm, tính số đối tượng thuộc một khoảng (Understanding, Applying)
  • Chia nhóm số liệu và lập bảng tần số ghép nhóm (Applying)

Challenge yourself

  • Dạng khác (Applying, 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.