Comparing distributions

比较多组数据的分布

How do you compare distributions?

Plot them on the same scale and compare centres; spreads and shapes numerically.

ApplicationKP000933

Sign in to read the whole lesson, with 1 exercise

Sign in / Sign up

Mastery 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 indexAQI)Frequency
Excellent (AQI ≤ 50)8322.74%
Good (50 < AQI ≤ 100)12133.15%
Light pollution (100 < AQI ≤ 150)6818.63%
Moderate pollution (150 < AQI ≤ 200)4913.42%
Heavy pollution (200 < AQI ≤ 300)308.22%
Severe pollution (AQI > 300)143.84%
Total365100%
Table 9.2-2: air quality grades of the city on the days of (here the relative frequencies are worked out from the frequencies to two decimal places; the textbook table rounds them to , , , , , , totalling ).

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 gradeDaysRelative frequency
Excellent1754.84%
Good1445.16%
Light00%
Moderate00%
Heavy00%
Severe00%
Total31100%
Table 9.2-4: days and relative frequencies of the air quality grades in May .

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).

05101520daysExcellentGoodLightModerateHeavySevereMayJune
Figure 9.2-6: days of each air quality grade in May and June (compound bar chart).

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).

00.20.40.60.81relative frequencyExcellentGoodLightModerateHeavySevereJune 2022Whole of 2015
Figure 9.2-7: relative frequencies of the air quality grades in June and over the whole of (compound bar chart, worked out from the numbers of days).

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 topic

Cite this page: Comparing distributions · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000933