Definition · Descriptive measures
Median and empirical quantiles
Definition from the chapter Measures of location and dispersion of Statistics and probability, with the exercises in which it is used.
Median and empirical quantiles
Seven students take , , , , , , and minutes to get to the university. In increasing order the times are . The time in the middle of the list, , has three times before it and three after it, and is the median of the seven times.
In symbols, arrange the observations from smallest to largest and denote by the value in position of the ordered list. The position is called the rank of the observation. Repeated values occupy separate positions; in the list , for example, the value has ranks and . The median is the middle observation when is odd and the mean of the two middle observations when is even. Writing in the first case and in the second,
For the seven times and . In both cases at least half the observations are less than or equal to the median, and at least half are greater than or equal to it.
In the same way, one can look for a value that has a quarter of the observations at or below it. A quarter of the seven times corresponds to observations. Up to rank there is only one observation, fewer than ; up to rank there are two, which is at least . The required value is therefore the observation of rank , namely .
The empirical quantile of order , with , is the observation in the first rank at which the proportion of observations up to that position reaches at least . The condition is equivalent to , so the required rank is the smallest integer greater than or equal to , denoted by ; for example and . In a formula,
This rule is called the upper-rank rule, or rounding the rank up, and it is the rule used throughout this course; for the median defined above is used instead. The orders and give the first and third quartiles, denoted by and , which together with the median divide the ordered list into four parts of about observations each. The quantile is also called the percentile of order .
The quartiles are used to measure the spread of the middle half of the data and to draw the box plot, later in this chapter. Quantiles of a random variable return in Chapter 6 and in the confidence intervals of Chapter 10.
Read it in the chapter Measures of location and dispersion →
Exercises where this definition is used
Worked examples
- 3Medians of ordered and grouped data
- 6Affine transformations of descriptive measures
- 9Box plot fences and whiskers
- 10Quartiles and resistant measures
Practice exercises
- 3Median of eight observations
- 10Third quartile using the nearest-rank method
- 13Median from a frequency table
All the definitions and theorems of Statistics and probability → · All the theorems on the site →