Quartiles and the Inter-quartile Range
Quartiles and the Inter-quartile Range
Q₁, the median, Q₃ and the IQR from a frequency table or bar chart.
- 228 bytes
- COMP mode
- Up to 6 groups
Worked examples
Example 1
The table shows the numbers of books borrowed from the school library last month by the 30 members of a reading club. Find the inter-quartile range of the distribution.
| Number of books | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|
| Number of members | 5 | 9 | 7 | 6 | 3 |
Answer
Standard solution (without a calculator)
- Total: N = 5 + 9 + 7 + 6 + 3 = 30
- Cumulative frequencies:
Cumulative frequencies for Example 1 Number of books 2 3 4 5 6 Cumulative frequency 5 14 21 27 30 - Median: position = = 15.5, the mean of the 15th and 16th data. From the cumulative frequencies, the 15th and 16th data are both 4.
∴ Q₂ = = 4 - Lower quartile: N is even, so the lower half is the 1st to 15th data. That half has 15 data, an odd number, so its median is a single datum.
Q₁ = the 8th datum = 3 - Upper quartile: the upper half is the 16th to 30th data; its median is the 8th datum of that half, the 23rd datum overall.
Q₃ = the 23rd datum = 5 - Inter-quartile range = Q₃ − Q₁ = 5 − 3 = 2
∴ The answer is B.
Common mistake: 6 − 2 = 4 is the range of the distribution, not the inter-quartile range (option D).
Example 2
The bar chart shows the distribution of the numbers of days on which 25 students of a class did exercise last week. Find the inter-quartile range of the distribution.
Answer
Standard solution (without a calculator)
- Total: N = 3 + 3 + 7 + 8 + 4 = 25
- Cumulative frequencies:
Cumulative frequencies for Example 2 Number of days 1 2 3 4 5 Cumulative frequency 3 6 13 21 25 - Median: position = = 13, ∴ Q₂ = the 13th datum = 3
- The two halves: N is odd, so the median (the 13th datum) belongs to neither half. The lower half is the 1st to 12th data; the upper half is the 14th to 25th data.
- Lower quartile: Q₁ = median of the lower half = = = 2.5
- Upper quartile: Q₃ = median of the upper half = = = 4
- Inter-quartile range = 4 − 2.5 = 1.5
∴ The answer is B.
Common mistake: counting the median in both halves (1st to 13th for the lower half) gives Q₁ = 3, Q₃ = 4 and IQR = 1 — the wrong option A.
Example 3
The table shows the distribution of the numbers of siblings of 40 students.
| Number of siblings | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| Number of students | 10 | 12 | 8 | 6 | 3 | 1 |
- (a)Find the median of the distribution.
- (b)Find the inter-quartile range of the distribution.
Answer
Standard solution (without a calculator)
- Total: N = 10 + 12 + 8 + 6 + 3 + 1 = 40
- Cumulative frequencies:
Cumulative frequencies for Example 3 Number of siblings 0 1 2 3 4 5 Cumulative frequency 10 22 30 36 39 40 - (a) Median: position = = 20.5
Median = = = 1 - (b) Lower quartile: the lower half is the 1st to 20th data.
Q₁ = = = 0.5 - Upper quartile: the upper half is the 21st to 40th data.
Q₃ = = = 2.5 - Inter-quartile range = Q₃ − Q₁ = 2.5 − 0.5 = 2
When to use it
In the Statistics strand of HKDSE Mathematics (Compulsory Part) you often need the lower quartile Q₁, the median Q₂, the upper quartile Q₃ and the inter-quartile range (IQR) from a frequency table or a bar chart. Program 086 does the counting for you.
Use it for
- Frequency tables or bar charts of discrete data
- The lower quartile, median, upper quartile or IQR
- Checking the quartiles and IQR in your own working
You enter
- Each value x and its frequency f (x first), smallest value first
- Up to 6 groups; then press EXE once at X? and once at Y?
- With exactly 6 groups it starts by itself
It shows
- Position of Q₁ → Q₁
- Position of Q₂ → Q₂ (the median)
- Position of Q₃ → Q₃
- Finally: IQR = Q₃ − Q₁
Check before you start
- Up to 6 groups; at least 2 data in total.
- Each x must be a whole number, entered in ascending order; the first x can be at most 99, and neighbouring values can differ by at most 99.
- The cumulative frequency before the last group can be at most 99 (the last frequency can be larger).
- Decimal, negative or large values must be converted first — the appendix shows how.
Checking access…