3.9 Quantiles
In general, we can view quantiles as positional measures that divide the observations on a variable X into a number of equal portions (given that the data values are in an increasing sequence). We have already encountered the median of a data set; it is a positional value that splits the data into two equal parts. Others are:
There are three computed quartiles that will divide the observations on a variable X into four equal parts: Q1, Q2, and Q3. In this regard, 25% of all observations on X lie below Q1; 50% of all observations on X lie below Q2 ( = median); and 75% of all observations on X lie below Q3. Remember that quartiles are “positional values.” Hence the following:
(3.12b) ![]()
(3.12c) ![]()
(provided, of course, that our data have been arranged in an increasing sequence). Given Equation (3.12), we can easily calculate the interquartile range (IQR) as IQR = Q3 − Q1—it is the range between the first and third quartiles and serves to locate the middle 50% of the observations on a variable X. Then the quartile deviation ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access