Problem Solving & Data Analysis · Hard · 1–2 min

Possible median from grouped frequencies

Question OWNER-20261125-GROUPED-MEDIAN-01

A botanist recorded the height, to the nearest centimeter, of each of the 45 seedlings in a greenhouse. The frequency table summarizes this data set.

Seedling height (centimeters)Frequency
12 to 172
18 to 234
24 to 295
30 to 359
36 to 4114
42 to 478
48 to 533

Based on the frequency table, which of the following could be the median of the recorded seedling heights, in centimeters?

  1. 26
  2. 33
  3. 38
  4. 44
Solve in the interactive workspace →

Step-by-step explanation

Number the rows of the table and let Desmos find which row the middle seedling is in

Step 1: Start with the first row of the table

A=repeat([1],[2])

Number the rows of the table from 1 to 7, top to bottom. Row 1 is “12 to 17” and it has 2 seedlings. We are going to make a list with one entry for every seedling, where the entry is the row that seedling is in. Start with row 1. Type A = repeat([1], [2]).

The row numbers 1 to 7 are our own labels. They are not in the question. We use them because the table only tells us which row each seedling is in, not its exact height.

To get repeat, just type the word repeat in Desmos.

Why not type 1, 1 by hand? You could here. But a later row has 14 seedlings, and repeat saves typing the same number 14 times.

Why this helps: repeat is a Desmos tool that writes a number over and over. It needs two square brackets. The first bracket holds the number to write. The second bracket says how many times to write it. So repeat([1], [2]) means “write 1 two times.” Desmos shows 1, 1. Those are the 2 seedlings in row 1.

Step 2: Add the second row

A=repeat([1,2],[2,4])

Row 2 is “18 to 23” and it has 4 seedlings. Add 2 at the end of the first bracket and 4 at the end of the second bracket.

Think of the first bracket as “which row” and the second bracket as “how many seedlings,” which is the Frequency column of the table.

The list comes out in order from smallest to largest, because the table goes from the shortest seedlings to the tallest.

Why this helps: The line is now repeat([1, 2], [2, 4]). The two brackets match up by position: the first number in the first bracket goes with the first number in the second bracket, and the second with the second. So 1 is written 2 times and 2 is written 4 times. Desmos shows 1, 1, 2, 2, 2, 2. That is 6 seedlings so far.

Step 3: Add the other five rows

A=repeat([1,2,3,4,5,6,7],[2,4,5,9,14,8,3])

Do the same for the rest of the table. In the first bracket, carry on with the row numbers: 3, 4, 5, 6, 7. In the second bracket, carry on down the Frequency column: 5, 9, 14, 8, 3.

Both brackets must have the same number of entries, 7 and 7, because each row number needs its own count.

Click “45 element list” under the line to see the whole list: two 1s, four 2s, five 3s, nine 4s, fourteen 5s, eight 6s and three 7s.

If your list does not have 45 elements, check the second bracket against the Frequency column.

Why this helps: The line is now repeat([1,2,3,4,5,6,7], [2,4,5,9,14,8,3]). The second bracket is just the Frequency column read from top to bottom. Desmos says the list has 45 elements. That matches the 45 seedlings in the question, so nothing is missing.

Step 4: Ask for the median of the list

median(A)

The median is the middle value when everything is lined up in order. On a new line type median(A).

Why does this work? With 45 seedlings in order, the middle one is number 23. Count down the table: rows 1 to 4 hold 2 + 4 + 5 + 9 = 20 seedlings, and row 5 holds the next 14, which are numbers 21 to 34. Number 23 is in row 5.

The question says “could be” because the table hides the exact heights. We can only say which group the median is in.

Choice B, 33, is in row 4, and choice D, 44, is in row 6. They are the rows on either side of the right one.

Why this helps: Desmos shows 5. That does not mean the median height is 5 cm. It means the middle seedling is in row 5 of the table. Row 5 is 36 to 41. So the median height is somewhere from 36 to 41. Look at the choices: 26, 33, 38, 44. Only 38 is in that range. The answer is C.

Hand explanation

Step 1: Find which seedling is the middle one

There are 45 seedlings. Line the heights up from shortest to tallest and the median is the one in the middle. With 45 values that is the 23rd one, because 22 are below it and 22 are above it. The median is not the middle row of the table.

(45 + 1) ÷ 2 = 23

Step 2: Count up the table until you reach 23

Add the frequencies from the top. The first four groups hold 2, 4, 5 and 9 seedlings. That is only 20 seedlings, so the 23rd one is not in those groups yet.

2 + 4 + 5 + 9 = 20

Step 3: See which group holds the 23rd seedling

The next group, 36 to 41 centimeters, holds 14 seedlings. They are the 21st through the 34th. The 23rd seedling is one of them, so the median is somewhere from 36 to 41. The table does not say exactly where.

20 + 14 = 34
36 ≤ median ≤ 41

Step 4: Pick the choice in that range

Only 38 is from 36 to 41. It really could happen: if every seedling in that group were 38 centimeters, the 23rd height would be 38. The choice 33 is the trap. It sits in the middle row of the table, but the middle row is not where the middle seedling is.

Answer: C, 38 centimeters

Step 5: Your answer

Go back to the question and choose the value that sits in the group holding the 23rd height.

Check your answer

38 centimeters. The 23rd height is in the 36-to-41 group, which holds positions 21 through 34.

Show answer

38

Related practice