Interactive statistics

56 free interactive lessons: from mean and median to A/B tests and Bayes. Drag the charts and build intuition. No sign-up.

Module 1: Descriptive statistics

Percentiles, quartiles and ranks

The mean and the median describe the center of the data. But often it is not the center that matters, it is the edges: how long the pizza takes if you're unlucky? How long do the slowest 5% of orders wait? What do the top 10% earn? These questions are answered by percentiles β€” one of an analyst's most practical tools. A percentile tells you what share of the data lies below a given value.

p90 = 40 mindelivery time, min
p25 = 16 minp50 = 22 minp90 = 40 minp99 = 76 min

p90 = 40 min: 90% of the data lies below this value (shaded). On skewed data the tail percentiles (p90, p99) matter more than the mean β€” they say "how bad it gets for the unluckiest". That is how SLAs are set: "95% of requests faster than X".

Before you is the delivery time across all the chain's orders. A percentile is the value below which a given share of the data lies. Move the p slider: the shaded part of the histogram is the p% of values to the left, and the yellow line is the percentile value itself. p50 is the median: half the orders are faster. p90 is the threshold below which 90% of deliveries sit β€” above it, the slowest 10%.

Why an analyst needs this

Percentiles are the language of monitoring and SLAs. The requirement "95% of requests faster than 200 ms" is about p95, not the mean. Reliability teams watch the tail percentiles (p95, p99) precisely because the mean response time is deceptive β€” a few very slow requests inflate it, while many equally slow ones hide behind an acceptable average. A percentile shows what a specific share of users actually experiences.

In product analytics percentiles describe the user distribution: the median receipt, the top 10% by revenue (where the profit usually sits), the bottom 25% by activity (churn candidates).

Where it shows up

Children's growth charts are percentile curves: a child at the 3rd percentile is small, at the 97th β€” large. The doctor reads the percentile, not the absolute number.

Salary surveys publish market p25/p50/p75: you see the range instead of a deceptive "industry average" inflated by the top earners.

Definitions
Percentile
The value below which a given share of the data lies: below p90 sit 90% of the values.
In plain words: p90 means you beat 90% of the data.
Quartiles Q1/Q2/Q3
The 25/50/75 percentiles: they cut the ordered row into four equal parts. Q2 is the median.
In plain words: the row cut into four equal parts.
IQRIQR = Q3 - Q1
The interquartile range β€” the width of the central half of the data (from Q1 to Q3). A robust measure of spread.
In plain words: the distance from Q1 to Q3 β€” home of the central half.
Rank
A value's position in the ordered row; a percentile is a rank expressed as a percentage of the number of observations.
In plain words: your value's number in the sorted list.
Next β†’
Enjoying the materials?

This site is built by the DataSlice Telegram channel: data analytics in plain words β€” real cases, metrics, careers. The channel is in Russian.

Open the Telegram channel