086Mathematics · Statistics

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
01

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.

Data for Example 1
Number of books23456
Number of members59763
  1. A.1
  2. B.2
  3. C.3
  4. D.4
Answer
B — the inter-quartile range is 2
Standard solution (without a calculator)
  1. Total: N = 5 + 9 + 7 + 6 + 3 = 30
  2. Cumulative frequencies:
    Cumulative frequencies for Example 1
    Number of books23456
    Cumulative frequency514212730
  3. 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
  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
  5. 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
  6. 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).

Do it on the calculator

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.

Days of exercise last weekNumber of days → Number of students: 1 → 3; 2 → 3; 3 → 7; 4 → 8; 5 → 4123450123456789Number of daysNumber of students
  1. A.1
  2. B.1.5
  3. C.2
  4. D.2.5
Answer
B — the inter-quartile range is 1.5
Standard solution (without a calculator)
  1. Total: N = 3 + 3 + 7 + 8 + 4 = 25
  2. Cumulative frequencies:
    Cumulative frequencies for Example 2
    Number of days12345
    Cumulative frequency36132125
  3. Median: position = = 13, ∴ Q₂ = the 13th datum = 3
  4. 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.
  5. Lower quartile: Q₁ = median of the lower half = = = 2.5
  6. Upper quartile: Q₃ = median of the upper half = = = 4
  7. 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.

Do it on the calculator

Example 3

The table shows the distribution of the numbers of siblings of 40 students.

Data for Example 3
Number of siblings012345
Number of students10128631
  1. (a)Find the median of the distribution.
  2. (b)Find the inter-quartile range of the distribution.
Answer
(a) Median = 1 (b) Inter-quartile range = 2
Standard solution (without a calculator)
  1. Total: N = 10 + 12 + 8 + 6 + 3 + 1 = 40
  2. Cumulative frequencies:
    Cumulative frequencies for Example 3
    Number of siblings012345
    Cumulative frequency102230363940
  3. (a) Median: position = = 20.5
    Median = = = 1
  4. (b) Lower quartile: the lower half is the 1st to 20th data.
    Q₁ = = = 0.5
  5. Upper quartile: the upper half is the 21st to 40th data.
    Q₃ = = = 2.5
  6. Inter-quartile range = Q₃ − Q₁ = 2.5 − 0.5 = 2
Do it on the calculator
02

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.

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.

Checking access…

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.