← Data and scatterplots

📖 Compare two sets

The rule

  • To compare two sets, look at three things: the centre, the spread, and anything odd like outliers.
  • Centre: compare the medians. The higher median means a higher typical value.
  • Spread: compare the IQRs, which are the box widths. A wider box means the middle half is more spread out.
  • Name the group each time. “Class B has the higher median” is clearer than “B is higher”.
  • Back up your words with numbers read from the plot.
  • Boxes that do not overlap show a clear difference between the groups. Overlapping boxes show the groups share many values.
  • A higher median does not mean every value is higher. Some of the lower group can beat some of the higher group.
  • Compare like with like: both plots must use the same number line.

Examples

Class A median 50. Class B median 60. Which has the higher centre? → Class B

  1. Class A median: 50.
  2. Class B median: 60.
  3. 60 > 50, so Class B has the higher median.

The median is the centre, and 60 is more than 50.

Class AClass B0102030405060708090100

Class A: Q1 40, Q3 70. Class B: Q1 50, Q3 70. Which has more spread? → Class A

  1. IQR of A = 70 − 40 = 30.
  2. IQR of B = 70 − 50 = 20.
  3. 30 > 20, so Class A is more spread out.

Spread is the IQR, the width of the box.

Class AClass B0102030405060708090100

Compare the two classes in a sentence. → B has the higher median (60 against 50), but A has the greater IQR (30 against 20).

  1. Centre: medians are 50 and 60.
  2. Spread: IQRs are 30 and 20.
  3. Class B has the higher median (60 against 50), but Class A has the greater IQR (30 against 20).

Name the centre, then the spread, with numbers.

Class AClass B0102030405060708090100

Shop X: median $400, IQR $100. Shop Y: median $450, IQR $250. Which sells more on a typical day, and which is steadier? → Y sells more on a typical day, but X is steadier.

  1. Medians: X $400, Y $450. Y is higher.
  2. IQRs: X $100, Y $250. X is smaller, so X is steadier.
  3. Shop Y sells more on a typical day, but Shop X is steadier.

Typical means the median. Steady means a small IQR.

Shop XShop Y0100200300400500600700800

Watch out

  • “B's box is bigger, so B scored more.” No: box size is spread. Look at the median line for the centre.
  • “A has the higher median, so every A student beat every B student.” No: the boxes can overlap.
  • “A's whisker is longer, so A is more spread in the middle.” No: the IQR is the middle half. Whiskers show the ends.
Start the lesson ▶