Frequency histograms
频数分布直方图
How do you build a frequency histogram?
Choose equal-width bins; count the data in each; draw bars whose heights are those counts.
Sign in to read the whole lesson, with 1 interactive aid, 12 exercises
Sign in / Sign upMastery goals
- Can choose a class width and number of classes, make a frequency distribution table and draw a frequency histogram with equal class widths
- Can read the frequency of each class from a frequency histogram and describe roughly how the data are spread
We have learned bar charts, pie charts and line charts for describing data. Now we meet another chart that is often used.
Problem 1 For a sports meeting, the school wants to pick Year 7 students of similar height for the marching guard. students sign up, and their heights (in cm) are:
```
149 155 153 150 167 155 159 156 160 168 161 153 161 163
163 153 160 156 163 158 160 167 166 158 151 161 161 157
161 171 156 160 155 163 149 159 164 161 162 165 167 160
161 150 162 160 168 155 154 151 159 159 155 166 156 159
```
Which range of heights should we choose from?
For the chosen students to look about the same height when they line up, we first need to see how the heights are spread out: which height ranges have many students and which have few. The way to do this is to sort the data into a suitable number of groups.
1. Find the difference between the maximum and the minimum
In these data the maximum is and the minimum is , so the difference is : the heights range over .
2. Decide the class width and the number of classes
Divide all the data into groups. The distance between the two ends of a group (the range of the values in it) is called the class width. According to the need, the class widths may be equal or different. Here we use equal class widths. If we start from the minimum and make a group every , then since
the data go into groups: , , …, , where is the height. The class width is and the number of classes is .
How wide the classes are and how many there are is not fixed by any rule; it comes from experience and the problem at hand. Usually, the more data there are, the more groups we use; with no more than data, we normally use to groups, depending on how many data there are.
3. Make a frequency table
Count the data falling into each group; the number of data in a group is called its frequency. We get this frequency table:
| Height group (cm) | Tally | Frequency | Percentage |
|---|---|---|---|
| 149≤x<152 | 6 | 10.71% | |
| 152≤x<155 | 4 | 7.14% | |
| 155≤x<158 | 10 | 17.86% | |
| 158≤x<161 | 13 | 23.21% | |
| 161≤x<164 | 13 | 23.21% | |
| 164≤x<167 | 4 | 7.14% | |
| 167≤x<170 | 5 | 8.93% | |
| 170≤x<173 | 1 | 1.79% | |
| Total | 56 | 100% |
4. Draw a frequency histogram
To see the distribution more directly, we can draw a histogram from the frequency table.
In a histogram the horizontal axis shows height. If the vertical axis shows the ratio of the frequency to the class width, then
So a histogram uses the area of each small rectangle to show the frequency of the data falling into that group, and the height of the rectangle is the ratio of the frequency to the class width.
With equal class widths, the ratio of the area of each rectangle (the frequency) to its height is a constant (the class width). So for convenience in drawing and reading a histogram with equal class widths, we usually let the height of each rectangle show the frequency directly, as below.
From the table and the histogram, the groups , and have the most students, in all. So the guard can be chosen from the students whose heights are from cm to cm (not including cm).
Example 3
To study how the masses of a batch of oranges are distributed, oranges were taken from it and weighed. Their masses (in g) are:
```
184 191 196 196 196 196 197 198 199 200
202 203 203 203 203 204 205 205 206 206
207 207 208 208 209 210 211 211 211 212
212 212 214 214 215 215 216 216 216 216
216 217 217 218 218 218 219 221 221 222
222 223 224 224 224 225 225 225 226 226
227 228 228 229 229 229 229 229 229 230
230 230 230 230 231 231 231 231 231 231
232 232 232 232 232 233 234 234 235 236
236 236 238 242 242 246 247 248 248 250
```
Make a frequency table of the sample, draw a histogram, and estimate how the masses of the batch are distributed.
Solution: (1) Find the difference between the maximum and the minimum.
In the sample the maximum is and the minimum is , and the difference is .
(2) Decide the class width and the number of classes.
Here the difference is . If we take the class width , then since
we can use groups, a suitable number. So the class width is and the number of classes is .
(3) Make the frequency table.
| Mass group (g) | Tally | Frequency | Percentage |
|---|---|---|---|
| 184≤x<192 | 2 | 2% | |
| 192≤x<200 | 7 | 7% | |
| 200≤x<208 | 13 | 13% | |
| 208≤x<216 | 14 | 14% | |
| 216≤x<224 | 16 | 16% | |
| 224≤x<232 | 28 | 28% | |
| 232≤x<240 | 13 | 13% | |
| 240≤x<248 | 4 | 4% | |
| 248≤x<256 | 3 | 3% | |
| Total | 100 | 100% |
(4) Draw the histogram.
From the table and the histogram, most oranges have a mass from g to g (not including g): of them, and fewer fall in the other ranges. The range has the most oranges, , while the ranges , and have very few, only in all. So we can estimate that the masses of the batch lie mainly from g to g (not including g), with the most oranges from g to g (not including g).
Related points
All points in this topicCite this page: Frequency histograms · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000930