Quantiles are points in a distribution that relate to the rank order of values in that distribution.
For a sample, you can find any quantile by sorting the sample. The middle value of the sorted sample (middle quantile, 50th percentile) is known as the median. The limits are the minimum and maximum values. Any other locations between these points can be described in terms of centiles/percentiles.
Centiles/percentiles are descriptions of quantiles relative to 100; so the 75th centile (upper quartile) is 75% or three quarters of the way up an ascending list of sorted values of a sample. The 25th centile (lower quartile) is one quarter of the way up this rank order.
Percentile rank is the proportion of values in a distribution that a particular value is greater than or equal to. For example, if a pupil is taller than or as tall as 79% of his classmates then the percentile rank of his height is 79, i.e. he is in the 79th percentile of heights in his class.
Definition
![]()

- where p is a proportion, Q is the pth quantile (e.g. median is Q(0.5)), fix is the integer part of a real number, k is the order statistic, z is the fractional part of the order statistic (0 or 0.5), u is an observation from a sample after it has been ordered from smallest to largest value and n is the sample size.