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

What is Class frequency?

Short answer

The class frequency is the number of values of the data sample that fall into a given class.

Type
Definition
First learned
Grade 9
Also called
tần số của nhóm
In English
class frequency, grouped frequency

Explanation

The class frequency of a class is the number of data values of the sample that belong to that class. To find it, count how many values lie in the half-interval [a;b)[a; b) of the class.

The sum of the class frequencies of all classes equals the sample size N. A table listing the classes together with their corresponding frequencies is called a grouped frequency table.

A class frequency differs from an ordinary frequency in that it is attached to a whole interval of values rather than a single value. From the class frequency, you can calculate the relative frequency of a class by dividing by the sample size.

Examples

Example 1

The data sample of heights (cm) of 20 friends: 150; 152; 155; 157; 158; 160; 161; 163; 165; 166; 168; 170; 171; 172; 174; 175; 176; 178; 180; 182. Form the classes [150;160)[150; 160) and [160;170)[160; 170), and count the class frequencies.

See the solution to example 1

The class [150;160)[150; 160) contains 150; 152; 155; 157; 158, so its frequency is 5. The class [160;170)[160; 170) contains 160; 161; 163; 165; 166; 168, so its frequency is 6.

Example 2

The class [15;20)[15; 20) has 6 friends, the class [20;25)[20; 25) has 9 friends. Calculate the sum of the frequencies of the two classes.

See the solution to example 2

The sum of the frequencies is 6+9=156 + 9 = 15.

Common mix-ups

  • Confusing class frequency with relative frequency of a class: frequency is a count, while relative frequency is a ratio compared to the sample size, usually written as a percentage.
  • Counting values at the endpoint wrongly: the class [a;b)[a; b) includes values equal to a but not values equal to b.
  • Thinking the sum of class frequencies equals the number of classes; in fact the sum of frequencies equals the sample size N.