Quartiles and percentiles

Analytika TeamLast reviewed 5 min read

Percentiles describe position: where a value sits relative to the rest of the data. They’re robust to outliers and easy to explain, which is why they’re used for growth charts, test scores and income distributions.

Percentiles

The 90th percentile is the value that 90% of observations fall below. For fuel economy in R’s mtcars data:

PercentileMPG
10th14.34
25th (Q1)15.43
50th (median)19.20
75th (Q3)22.80
90th30.09

The gap between the 75th and 90th percentiles (7.3 mpg) is much bigger than between the 25th and 50th (3.8 mpg), a sign of a long upper tail: a few very economical cars.

Quartiles

The three quartiles split the data into four equal parts. The distance from Q1 to Q3 is the interquartile range, and with the minimum and maximum they form the “five-number summary” drawn in a box plot.

How percentiles are calculated

A simple approach: sort the data and find position p/100 × (n + 1). If it falls between two values, interpolate. Different textbooks and packages use slightly different position formulas:

  • R’s quantile() offers nine types, with type 7 as the default. Excel’s PERCENTILE.INC uses the same method.
  • SPSS uses a different default.
  • With large samples the methods converge. With small samples they can differ noticeably.

Analytika uses type 7, so its percentiles match R and Excel defaults. If your numbers differ slightly from SPSS, the method is almost certainly why.

Percentile ranks

A percentile rank turns the question around: what percentage of values fall below this one? A child at the 75th percentile for height is taller than 75% of children of the same age. For roughly normal data, you can get it from a z-score. Otherwise, count directly.

Deciles and other cut points

Deciles split data into tenths and quintiles into fifths. They’re common in economics, such as “the top income decile”. Avoid splitting a continuous variable into groups this way just to run a group comparison, because it throws away information. Analyse the original values instead.

More in Descriptive statistics

Try it with the free tools

Run this on your own data

Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.

Try it free