mastree

Comparing groups: 6 questions solved step by step

What this lesson covers

  • Comparing two groups means comparing their whole distributions, not one number from each.
  • Shift, overlap, spread and shape together decide how strong a comparison is.
Key idea

Comparing two groups, step by step

  1. Put each group's values in order.
  2. Find the median, quartiles and IQR of each.
  3. Describe the shift, the overlap and the spread.
  4. Then decide if one group tends to be bigger.
Your turn

Question 1 · Achieved

  • Minutes to get to school (10 students):
  • 12, 25, 8, 15, 30, 18, 10, 22, 14, 20
  • Find the median and the IQR.
Worked example

Q1: median and IQR

  • Sort before anything.
  • Quartiles: middle of halves.
  1. 8, 10, 12, 14, 15lower half, sorted
  2. 18, 20, 22, 25, 30upper half
  3. n = 10: median between 5th, 6th
  4. median = (15 + 18) ÷ 2 = 16.5
  5. Q1 = 12middle of lower half
  6. Q3 = 22middle of upper half
  7. IQR = 22 − 12 = 10 minutesQ3 − Q1
  8. median 16.5 min, IQR 10 min
Key idea

Try it: median and spread

Your turn

Question 2 · Achieved

  • Hours of part-time work (8 students):
  • 6, 15, 9, 12, 4, 10, 18, 8
  • Find the five-number summary and IQR.
Worked example

Q2: five-number summary

  • n = 8: medians of pairs.
  • A quartile can fall between.
  1. 4, 6, 8, 9, 10, 12, 15, 18sorted
  2. min = 4, max = 18
  3. median = (9 + 10) ÷ 2 = 9.5n = 8: 4th and 5th
  4. lower half: 4, 6, 8, 9
  5. Q1 = (6 + 8) ÷ 2 = 7
  6. upper half: 10, 12, 15, 18
  7. Q3 = (12 + 15) ÷ 2 = 13.5
  8. IQR = 13.5 − 7 = 6.5 hoursQ3 − Q1
  9. 4, 7, 9.5, 13.5, 18 (hours)
Your turn

Question 3 · Merit

  • Screen time on a school day (hours)
  • Year 9: 2, 3, 3, 4, 5, 6, 6, 9
  • Year 13: 3, 5, 6, 6, 7, 7, 8, 12
  • Medians, IQRs, then shift and spread.
Worked example

Q3: both groups

  • Lists already sorted.
  • Same steps for each group.
  1. Year 9: 2, 3, 3, 4, 5, 6, 6, 9
  2. median = (4 + 5) ÷ 2 = 4.5
  3. Q1 = 3, Q3 = 6(3 + 3) ÷ 2, (6 + 6) ÷ 2
  4. IQR = 6 − 3 = 3 hours
  5. Year 13: 3, 5, 6, 6, 7, 7, 8, 12
  6. median = (6 + 7) ÷ 2 = 6.5
  7. Q1 = 5.5, Q3 = 7.5(5 + 6) ÷ 2, (7 + 8) ÷ 2
  8. IQR = 7.5 − 5.5 = 2 hours
Worked example

Q3: shift and spread

  • Shift, then spread.
  • Too few to make a call.
  1. Year 9: median 4.5, IQR 3
  2. Year 13: median 6.5, IQR 2
  3. 6.5 − 4.5 = 2 hoursshift
  4. Year 13 sits about 2 h higher
  5. IQR 2 h < IQR 3 hspread
  6. Year 13 middle half less spread
  7. Year 13: typically 2 h a day more
  8. 8 per group: too few for a call
Your turn

Question 4 · Merit

  • Resting pulse, 30 Year 11s per group.
  • Breakfast: median 72, box 67 to 78
  • Skipped breakfast: median 75, box 70 to 81
  • Can you make a call?
Question 4 · Merit
Worked example

Q4: is there a call?

  • Each median vs other box.
  • Inside both: no call.
  1. Rule: median outside other box
  2. 72 vs no-breakfast box 70 to 81
  3. 72 is inside
  4. 75 vs breakfast box 67 to 78
  5. 75 is inside
  6. medians 3 bpm apart
  7. boxes overlap from 70 to 78
  8. No call can be made
Key idea

Try it: is there a call?

Your turn

Question 5 · Merit, in context

  • Sleep on a school night, 30 per group.
  • Phone in the bedroom at night, or not.
  • Make a call if you can, then write it.
Sleep (h)PhoneNo phone
Minimum55.5
Q16.57
Median78
Q37.58.5
Maximum9.510
Worked example

Q5: can we make a call?

  • Median outside the box?
  • Then state the overlap.
  1. Medians: phone 7 h, no phone 8 h
  2. Phone box: 6.5 h to 7.5 h
  3. 8 > 7.5: outside the phone box
  4. So I can make a call
  5. 8 − 7 = 1 hourdifference of medians
  6. Boxes overlap 7 h to 7.5 h
Worked example

Q5: write the comparison

  • Claim, population, evidence.
  • Say "tend to".
  1. I think Year 11s at this school
  2. with no phone in the bedroom
  3. tend to sleep longer on a school
  4. night than those with one.
  5. Medians 8 h vs 7 h: 1 h more
  6. Boxes overlap: so "tend to"
  7. Observed only: not proof of cause
Key idea

Try it: summarise, call, write

Your turn

Question 6 · Excellence

  • Kahikatea seedlings, 10 in each group.
  • Compare the two groups fully.
  • Make a call if you can.
GroupHeight after 6 weeks (cm)
Sun22, 15, 19, 26, 17, 21, 14, 24, 18, 22
Shade16, 11, 23, 13, 18, 10, 14, 19, 12, 15
Worked example

Q6: sun and shade

  • Sort, then split in halves.
  • Quartile: middle of a half.
  1. Sun: 14, 15, 17, 18, 19,
  2. 21, 22, 22, 24, 26
  3. median = (19 + 21) ÷ 2 = 20
  4. Q1 17, Q3 22, IQR 22 − 17 = 5
  5. Shade: 10, 11, 12, 13, 14,
  6. 15, 16, 18, 19, 23
  7. median = (14 + 15) ÷ 2 = 14.5
  8. Q1 12, Q3 18, IQR 18 − 12 = 6
Worked example

Q6: compare and call

  • Shift, overlap, spread.
  • Call, but say how sure.
  1. Sun: median 20, IQR 5
  2. Shade: median 14.5, IQR 6
  3. 20 − 14.5 = 5.5 cmshift
  4. boxes overlap 17 to 18 cmoverlap
  5. IQR 5 and 6: similarspread
  6. 20 > 18: outside shade boxso make a call
  7. I think kahikatea grown in sun
  8. tend to be taller than in shade
  9. Only 10 each: a tentative call

Common mistakes

  • 12, 25, 8, 15, 30, 18, 10, 22, 14, 20: median = (30 + 18) ÷ 2 = 24
    Sort first: 8, 10, 12, 14, 15, 18, 20, 22, 25, 30, so the median is (15 + 18) ÷ 2 = 16.5 minutes.
  • Sun seedlings: IQR = 26 − 14 = 12 cm
    26 − 14 is the range; the IQR is Q3 − Q1 = 22 − 17 = 5 cm, the spread of the middle half.
  • Median 72 is less than 75, so students who eat breakfast have lower pulse rates.
    Each median lies inside the other group's box, so no call can be made from these samples.
  • Students with no phone in the bedroom sleep 1 hour longer.
    Say Year 11s at this school with no phone "tend to" sleep longer, medians 8 h vs 7 h, since the boxes overlap and it is not proof of cause.
Summary

The method that solved all six

  • Sort, summarise, describe, then call.
StepHow
Sortsmallest to largest first
Medianmiddle, or mean of the two
Quartilesmedians of the two halves
IQRQ3 minus Q1
Describeshift, overlap, spread
Callmedian outside other box
Writetend to, units, population

Challenge

1

Eight Year 11s at a Hamilton school timed their walk to school, in minutes. One value was smudged, so the list reads: 14, 9, 22, 11, 17, 25, 13 and one unknown time. The teacher remembers that the median was 15.5 minutes and the IQR was 9 minutes. Find the missing time, and show that it is the only value that works.

Hint

Sort the seven known values: 9, 11, 13, 14, 17, 22, 25. With 8 values the median is the mean of the 4th and 5th. Try the missing value below 14, between 14 and 17, and above 17, and see which can give 15.5. Then use the IQR.

Answer

20 minutes

Step by step
  1. With 8 values, the median is the mean of the 4th and 5th values.
  2. If the missing time were less than 17, the 4th and 5th values would average less than 15.5, so it must be at least 17; then the median is (14 + 17) ÷ 2 = 15.5.
  3. The lower half is then 9, 11, 13, 14, so Q1 = 12 and Q3 must be 12 + 9 = 21.
  4. If the missing time is between 17 and 22, the upper half is 17, x, 22, 25 and Q3 = (x + 22) ÷ 2 = 21, so x = 20, which fits.
  5. If it were between 22 and 25 the same rule gives 20, which is not in that range; if it were 25 or more, Q3 would be 23.5 and the IQR 11.5. So 20 is the only answer.
Full working
  1. 9, 11, 13, 14, 17, 22, 25 plus x8 values: median = mean of 4th and 5th
  2. x < 17 gives a median below 15.5e.g. x = 15 gives (14 + 15) ÷ 2 = 14.5
  3. x ≥ 17: median = (14 + 17) ÷ 2 = 15.5matches
  4. Q1 = (11 + 13) ÷ 2 = 12, so Q3 = 12 + 9 = 21IQR = Q3 − Q1
  5. upper half 17, x, 22, 25: (x + 22) ÷ 2 = 216th and 7th values
  6. x = 42 − 22 = 20check: 17 ≤ 20 ≤ 22
  7. the missing time is 20 minutes
2

A PE teacher timed 100 m sprints, in seconds, for 10 Year 11s who train with an athletics club and 10 who do not. Club: 12.8, 13.1, 13.4, 13.5, 13.9, 14.0, 14.2, 14.6, 15.0, 15.3. No club: 13.2, 13.7, 13.9, 14.4, 14.6, 15.2, 15.4, 15.9, 16.8, 1.63. A student drew box plots straight from these numbers and said no call can be made. (a) Show that, with the data exactly as typed, no call can be made. (b) Find the error, fix it, and decide again. Write the comparison.

Hint

Find Q1, the median and Q3 for each group as typed, and check each median against the other group's box. Then look hard at the no-club data: is every value possible for a 100 m sprint?

Answer

(a) Each median lies inside the other box, so no call. (b) 1.63 s is impossible and should be 16.3 s; then the no-club median, 14.9 s, is above the club box, so a call can be made: club members tend to run faster (medians 13.95 s vs 14.9 s), a tentative call with only 10 each.

Step by step
  1. Club, already sorted: Q1 = 13.4, median = (13.9 + 14.0) ÷ 2 = 13.95, Q3 = 14.6.
  2. No club as typed, sorted: 1.63, 13.2, 13.7, 13.9, 14.4, 14.6, 15.2, 15.4, 15.9, 16.8, so Q1 = 13.7, median 14.5, Q3 = 15.4.
  3. 13.95 is inside 13.7 to 15.4 and 14.5 is inside 13.4 to 14.6, so as typed no call can be made.
  4. Nobody runs 100 m in 1.63 s; it is a typing slip for 16.3 s (check the original sheet, then fix it).
  5. Corrected no club: Q1 = 13.9, median = (14.6 + 15.2) ÷ 2 = 14.9, Q3 = 15.9. The no-club median 14.9 is above the club Q3 of 14.6, so a call can be made.
  6. I think Year 11s at this school who train with a club tend to run 100 m faster than those who do not; medians 13.95 s vs 14.9 s, the boxes overlap from 13.9 to 14.6 s, and with 10 per group the call is tentative.
Full working
  1. club: Q1 13.4, median 13.95, Q3 14.6middles of halves
  2. no club as typed: Q1 13.7, median 14.5, Q3 15.41.63 sorts to the bottom
  3. 13.4 ≤ 14.5 ≤ 14.6 and 13.7 ≤ 13.95 ≤ 15.4both inside: no call
  4. 1.63 s is impossible, fix to 16.3 styping slip
  5. no club fixed: 13.2, 13.7, 13.9, 14.4, 14.6, 15.2, 15.4, 15.9, 16.3, 16.8sorted
  6. Q1 13.9, median (14.6 + 15.2) ÷ 2 = 14.9, Q3 15.9new box
  7. 14.9 > 14.6no-club median is outside the club box
  8. Call: club members tend to be faster, 13.95 s vs 14.9 s (tentative)
3

Minutes spent on homework on one school night at a kura. Year 11 (10 students): 20, 25, 30, 30, 35, 40, 45, 50, 55, 60. Year 13 (10 students): 25, 30, 35, 44, 46, 60, 65, 70, 80 and Rangi, whose time k minutes was not recorded. Use the rule "make a call if either group's median lies outside the other group's box", where a median exactly on the end of a box counts as inside. For which whole numbers of minutes k can a call be made?

Hint

Year 11's box does not change. Work out where Year 11's median sits against Year 13's box for any k, then write Year 13's median for k small, k in the middle and k large.

Answer

k ≥ 55 minutes

Step by step
  1. Year 11: Q1 = 30, median = (35 + 40) ÷ 2 = 37.5, Q3 = 50.
  2. Year 13's Q1 is the 3rd value, at most 35, and its Q3 is the 8th value, at least 65, so Year 11's median of 37.5 is always inside Year 13's box.
  3. So a call needs Year 13's median to be above 50. Its median is the mean of the 5th and 6th values.
  4. If k is 46 or less, the median is at most (46 + 46) ÷ 2 = 46: no call. If k is 60 or more, the median is (46 + 60) ÷ 2 = 53: call.
  5. If k is between 46 and 60, the median is (46 + k) ÷ 2, which is above 50 when k is above 54. At k = 54 the median is exactly 50, on the end of the box, so no call.
  6. So a call can be made exactly when k is 55 minutes or more.
Full working
  1. Year 11: Q1 30, median 37.5, Q3 50fixed
  2. Year 13: Q1 ≤ 35, Q3 ≥ 65 for every k37.5 always inside
  3. need Year 13 median > 50the only way to make a call
  4. k ≤ 46: median ≤ 46no call
  5. 46 ≤ k ≤ 60: median = (46 + k) ÷ 2 > 50so k > 54
  6. k ≥ 60: median = (46 + 60) ÷ 2 = 53 > 50call
  7. k = 54 gives median 50, on the box endno call
  8. a call can be made when k ≥ 55 minutes

More challenge problems

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
Report a mistake

More in AS 91944