Method guide

Two decisions shape every summary of a dataset: where the quartile cuts fall, and why the spread is measured in squares rather than distances. Both are worked through here, in the order the questions usually come up.

Median & quartiles

Which quartile method should you use?

Quartiles have at least nine published definitions, and textbooks, calculators and software each pick their own, so the same data can produce two different quartile values. The usual practice is simple: follow the rule of whoever will read your answer, and say which rule you used.

The usual practice

  • 1

    Start from the course, not from the formula

    If your textbook or exam board defines quartiles, use that definition down to the odd-count detail. Marks follow the specification, not the software.

  • 2

    Match the tool that will check your answer

    Excel and Google Sheets default to the linear rule (QUARTILE.INC); Excel's QUARTILE.EXC is the position rule; R's quantile() and Python's numpy default to the linear rule as well. A TI-84 instead averages the two values either side of the cut, so calculator answers can differ.

  • 3

    Say which rule produced the number

    The differences are small but not harmless: a bonus cut-off, a pass mark or an outlier fence can land on the other side. One short note such as "quartiles: median dropped" removes the doubt.

  • 4

    Keep one rule across a comparison

    IQRs, fences and box plots built on different rules are not comparable group to group. If a report repeats every month, fix the rule once.

  • 5

    Interpolate for measurements, keep real values when the answer has to exist

    The position and linear rules invent a value between two observations, which suits continuous measurements. The nearest-value rule keeps every quartile equal to an observation, which is what you want for "the top quarter of applicants".

  • 6

    Sample size decides how much any of this matters

    With a few hundred values the five rules land within a rounding step. With a dozen values, and especially an odd count, they differ visibly, which is why both examples use 12 and 13 values.