Frequency tables for categorical data

分类数据的频数表

How do you build a frequency table for categorical data?

List the count and the proportion for each category.

SkillKP000926

Sign in to read the whole lesson, with 6 exercises

Sign in / Sign up

Mastery goals

  • Can construct frequency and relative frequency tables for a categorical variable

Looking at collected data one by one, it is hard to find any pattern. For example, a student surveyed the class and collected the following data (each letter is one student's favourite after-school activity):

```
D C D E C E C D A D
A B B C A C D E A D
A C C E A D D B D D
D C B C B B C E C C
A D C A C C B C B B
```

From these data, can you tell how the class likes each kind of activity?

Messy data make patterns hard to see. To understand more clearly what the data tell us, we need to organise them, and in statistics we often organise data in a table. The table below organises the data above.

ActivityTallyStudentsPercentage
Literature (A)816%
Science (B)918%
Sport (C)1632%
Art (D)1224%
Crafts (E)510%
Total50100%
A table counting the students' favourite activities. In the "Tally" column each stroke stands for one student.

When recording data with tally marks, each stroke stands for one student, and a fifth stroke crosses a group of four. For example, the number of students for activity A is 8.

The table shows clearly how the class likes each kind of activity. For example, 8 students like literature best, which is of the class; 9 students like science best, ; and so on.

To show the information in the table more directly, we can also use a bar chart and a pie chart.

05101520students8916125Literature (A)Science (B)Sport (C)Art (D)Crafts (E)
Bar chart: one bar for each kind, the height showing the number of students.
16%18%32%24%10%Literature (A) 8(16%)Science (B) 9(18%)Sport (C) 16(32%)Art (D) 12(24%)Crafts (E) 5(10%)
Pie chart: the whole circle stands for the class, and the size of each sector shows the percentage of the class.

Related points

All points in this topic

Cite this page: Frequency tables for categorical data · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000926