ENES

Median and percentiles

The middle value of a list, and the values that mark off the slowest or biggest slice.

Nine bars sorted from smallest to largest, the middle one marked as the median, and a last one far taller than the rest labeled outlier

Line up a set of numbers from smallest to largest. The median is the one in the middle: half the values are below it and half above. It answers "what is typical?" better than the average when a few values are extreme. If nine people earn modest salaries and a tenth is a millionaire, the average salary jumps, but the median barely moves.

A percentile generalizes the same idea. The 90th percentile is the value that 90% of the data falls below. The median is simply the 50th percentile, often written p50. Pediatricians use percentiles on growth charts: a baby at the 75th percentile for height is taller than 75% of babies the same age.

In technology, percentiles are how teams talk about speed. Saying a website responds in 200 milliseconds on average hides the people who waited five seconds. So teams watch the p95 or p99: the response time that 95% or 99% of requests beat. If p99 is two seconds, one request in a hundred takes longer than that, and on a busy site that is a lot of annoyed people. Percentiles keep the unlucky tail visible.

Keep in mind

Go deeper

Related terms

More in Data