Comparing distributions
比较多组数据的分布
How do you compare distributions?
Plot them on the same scale and compare centres; spreads and shapes numerically.
Sign in to read the whole lesson, with 1 exercise
Sign in / Sign upMastery goals
- Can compare two or more distributions using parallel graphs and summary statistics
(Example 1, continued) The air quality grades of a city over the whole of are given in Table 9.2-2.
| Air quality grade (air quality index | AQI) | Frequency |
|---|---|---|
| Excellent (AQI ≤ 50) | 83 | 22.74% |
| Good (50 < AQI ≤ 100) | 121 | 33.15% |
| Light pollution (100 < AQI ≤ 150) | 68 | 18.63% |
| Moderate pollution (150 < AQI ≤ 200) | 49 | 13.42% |
| Heavy pollution (200 < AQI ≤ 300) | 30 | 8.22% |
| Severe pollution (AQI > 300) | 14 | 3.84% |
| Total | 365 | 100% |
The air quality indices for May and June were:
May:
```
33 47 61 75 77 52 36 26 32 70
43 30 26 27 28 32 58 44 73 85
81 83 71 66 29 31 43 84 45 31
51
```
June:
```
44 78 89 49 37 25 31 48 47 60
51 38 30 36 43 66 78 84 75 85
100 74 41 27 89 58 43 27 22 30
```
Example 1
(2) Compare the city's air quality in May and in June . Which month had better air quality?
(3) Compare the city's air quality in June with that over the whole of . Was the air quality in June better than in ?
Solution: (2) From the city's air quality indices in May and the grading standard, we can make a table of the frequencies and relative frequencies of the grades that month (Table 9.2-4).
| Air quality grade | Days | Relative frequency |
|---|---|---|
| Excellent | 17 | 54.84% |
| Good | 14 | 45.16% |
| Light | 0 | 0% |
| Moderate | 0 | 0% |
| Heavy | 0 | 0% |
| Severe | 0 | 0% |
| Total | 31 | 100% |
To make the comparison easier we use a compound bar chart, which puts both sets of data on one bar chart. The heights of the bars let us compare the two months' air quality more directly (Figure 9.2-6).
Table 9.2-4 and Figure 9.2-6 show that the air quality in May and June was much the same: both months had "Excellent" days; May had more "Good" day than June; neither month had any day of light pollution or worse.
(3) To compare June with the whole of : a month and a year have very different numbers of days, so comparing frequencies directly is meaningless; we should turn them into relative frequency distributions and compare those. We can compare the relative frequency histograms of their air quality indices, or bar charts of the relative frequencies of the air quality grades (Figure 9.2-7).
Figure 9.2-7 shows that the relative frequencies of "Excellent" and "Good" in June are both clearly higher than in , and that the relative frequency of polluted days in June is , clearly lower than in . So, on the whole, the air quality in June was clearly better than over the whole of .
Related points
All points in this topicCite this page: Comparing distributions · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000933