Frequency tables for categorical data
分类数据的频数表
How do you build a frequency table for categorical data?
List the count and the proportion for each category.
Sign in to read the whole lesson, with 6 exercises
Sign in / Sign upMastery 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.
| Activity | Tally | Students | Percentage |
|---|---|---|---|
| Literature (A) | 8 | 16% | |
| Science (B) | 9 | 18% | |
| Sport (C) | 16 | 32% | |
| Art (D) | 12 | 24% | |
| Crafts (E) | 5 | 10% | |
| Total | 50 | 100% |
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.
Related points
All points in this topicCite this page: Frequency tables for categorical data · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000926