STATISTICAL WORKSHEETS

Checking two different lists with the same five-number summary

Two lists with different numbers of observations can return exactly the same minimum, first quartile, median, third quartile and maximum. This worksheet builds one such pair and shows what the summary leaves out.

A summary is a compression

A five-number summary reduces a whole list to five values: the smallest observation, the first quartile, the median, the third quartile and the largest observation. That is useful for a box plot or a quick look at spread, and it is lossy by design. Many different datasets map to the same five values, so the map cannot be reversed. This worksheet makes the point with two short lists. The first is 0, 1, 2, 3, 4 with five observations. The second is 0, 0, 1, 1, 2, 2, 3, 4, 4 with nine. The five number summary calculator returns 0, 1, 2, 3, 4 for both. A reader handed only that output cannot tell which list produced it, how many observations it contained, or how often any value repeated. The constructed pair shows one kind of ambiguity, and it does not claim that every summary loses the same amount of information.

How the first list produces its summary

The calculator sorts the values and applies a type 7 quartile rule, which interpolates linearly between order statistics. For the list 0, 1, 2, 3, 4 with n equal to 5, the first quartile sits at position 1 plus 0.25 times (n minus 1), which is position 2, so Q1 is the second value, 1. The median is the third value, 2. The third quartile sits at position 1 plus 0.75 times 4, which is position 4, so Q3 is 3. The minimum is 0 and the maximum is 4. Because the positions land exactly on observations in this case, no interpolation between neighbors is needed, and the summary reads 0, 1, 2, 3, 4. A list of five evenly spaced integers is the cleanest case for checking the method by hand.

How the nine-item list reaches the same values

The second list, 0, 0, 1, 1, 2, 2, 3, 4, 4, has n equal to 9. Under the same type 7 rule, Q1 sits at position 1 plus 0.25 times 8, which is position 3, and the third value in sorted order is 1. The median is position 5, which is 2. Q3 sits at position 1 plus 0.75 times 8, which is position 7, and the seventh value is 3. The minimum is 0 and the maximum is 4. So the output is again 0, 1, 2, 3, 4, even though the second list has four more observations and several repeated values. Repeated values at 0, 1, 2 and 4 have not moved any of the five landmark positions off a value that the first list also had. This is the entire trick behind the pair, and it is easy to reproduce with other numbers once you see the pattern.

What the summary hides

Comparing the two lists beyond the five landmarks shows how much is missing. The first list has a mean of 2, because 0 plus 1 plus 2 plus 3 plus 4 is 10 and 10 divided by 5 is 2. The second list adds to 17 over 9 observations, so its mean is about 1.89, and the average calculator confirms the count of 9. The standard deviation, the mode, the number of ties and the total all differ. A reader who needs frequencies for a histogram, a weighted average or a chi-square test cannot get them from the summary. A count of five and a count of nine justify very different levels of confidence in a statement about spread.

The role of the quartile convention

Quartiles do not have a single universal definition. Statistical software and textbooks use several rules that differ in how they interpolate or whether they include the median when splitting the list. Hyndman and Fan catalogued nine sample quantile definitions, and the type 7 rule is the default in R and in many spreadsheet functions. For the two lists in this worksheet, several rules would agree because the landmark positions fall on whole observations, but for other lists they can differ by a visible amount. Two summaries are comparable only when the sort order and quartile convention are the same. When you report a five-number summary to someone else, say which method produced it. A box plot drawn from one convention can look slightly different from a box plot of the same data drawn with another.

Building another pair on purpose

The construction generalizes. Start with any sorted list whose landmark positions are known, then add observations that repeat existing values without shifting those positions. Take the list 10, 20, 30, 40, 50 with summary 10, 20, 30, 40, 50. Expand it to 10, 10, 20, 20, 30, 30, 40, 50, 50, which has nine values. Under type 7, Q1 is at position 3, giving 20. The median is at position 5, giving 30. Q3 is at position 7, giving 40. The summary is unchanged, with counts of five and nine again. The numbers are illustrative and have no connection to any real dataset. The general lesson is that a summary based on order statistics at fixed fractional positions only reacts to the values at those positions, so duplicates placed elsewhere in the sorted order do not register at all.

When the summary is enough and when it is not

None of this makes the five-number summary a poor tool. For comparing the spread of several large groups side by side, a row of five numbers per group is compact and readable, and a box plot built from them shows skew and outliers at a glance. The risk appears when the summary replaces the data in a context that needs more. A quality report that publishes only a five-number summary cannot be rechecked for the number of failed units. A survey table that omits the sample size invites readers to treat a nine-person result like a nine-hundred-person one. If the summary is the only thing you are handed, treat statements about shape with care, and treat any inference about frequencies or totals as unsupported until the count and the rows are available.

Practical steps for reporting

Report the count next to the five values, for example n equals 9. State the quartile method, since it costs one short phrase. Keep the original rows in a file that can be shared on request, and note any rounding applied before the summary was computed. If the data contain missing entries, say how many were excluded and why. When two groups are compared, give both counts, because a gap between medians means different things for 5 observations and for 5,000. These habits cost little and prevent the ambiguity this worksheet demonstrates. They also make later replication simple, since someone with the rows and the method can regenerate the summary exactly and check it against the published numbers.

Reading the summary in a box plot

A box plot is a picture of the five numbers. The box spans Q1 to Q3, a line inside it marks the median, and whiskers extend toward the minimum and maximum, sometimes shortened by an outlier rule. Because the two lists in this worksheet share their five values, they produce the same box with the same whiskers. A reader looking at the figure cannot see that one list is nearly twice as long as the other. Some plotting tools add a note of n beside the box or scale its width by sample size, which restores part of the missing information. If you build a box plot for a report, adding the count in the axis label or caption is a small step that prevents readers from assuming more data than exist behind the picture.

Which edits move the summary

Because the summary reads only the values at the landmark positions in sorted order, most edits to a list leave it untouched. In the nine item list 0, 0, 1, 1, 2, 2, 3, 4, 4, the landmarks are the first, third, fifth, seventh and ninth sorted values. Changing the second value from 0 to 0.5 leaves all five of those positions alone, so the summary stays at 0, 1, 2, 3, 4. Changing both of the 2 values to 2.5 moves the median to 2.5. Changing the third value from 1 to 0.5 moves Q1 to 0.5. The pattern explains why two quite different lists can match, and it also shows that the summary is sensitive to the values it reads. A single change at a landmark position shifts that landmark by the full amount of the edit.

Interpolation when positions fall between values

In the two worksheet lists the quartile positions land on whole observations, which hides how the type 7 rule behaves in general. With six values, say 0, 1, 2, 3, 4, 5, Q1 sits at position 1 plus 0.25 times 5, or 2.25. That is a quarter of the way from the second value, 1, to the third, 2, so Q1 is 1.25. The median is halfway between 2 and 3, which is 2.5. Q3 sits at position 4.75, three quarters of the way from 3 to 4, giving 3.75. The summary is 0, 1.25, 2.5, 3.75, 5, and none of the quartiles is an observed value. Other conventions give different quartiles for the same six values, which is another reason to name the method when sharing results.

Questions to ask of a published summary

When a table or chart gives only five numbers, a few quick questions improve how you read it. How many observations stand behind it? Which quartile rule produced the middle values? Were any observations removed as outliers before the summary was computed, and by what rule? Were values rounded first? Do the whiskers show the true minimum and maximum, or a trimmed range? A summary that answers none of these is still informative about rough location and spread, but it supports weaker conclusions than the same five numbers with a count and a method. The constructed pair on this page is the reminder: with five numbers alone, a list of five and a list of nine are indistinguishable.

Reproduce the checks

Five-item summary

Open the Five Number Summary Calculator and enter:

Numbers
0,1,2,3,4

Expected output:

Summary

0, 1, 2, 3, 4

The list contains five observations.

Nine-item summary

Open the Five Number Summary Calculator and enter:

Numbers
0,0,1,1,2,2,3,4,4

Expected output:

Summary

0, 1, 2, 3, 4

The same summary describes another observation list.

Check the second count

Open the Average calculator and enter:

Values
0,0,1,1,2,2,3,4,4

Expected output:

Number of values

9

The summary alone did not expose this count.

References and implementation scope

The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.

Sources

Related tasks