A median is a 'half-way' point in our data. We can use quartiles and percentiles to find any fraction (or percentage) of the way into our data.
Quartiles divide a data set into four equal parts. The three quartiles are:
To find the quartiles for a small discrete data set, use these formulas for the positions of the quartiles:
Where
To find the quartiles for a large grouped data set, use these formulas for the positions of the quartiles:
We use the exact values in our further calculations.
Percentiles divide a data set into 100 equal parts. The k-th percentile is the value below which
To find a percentile for a large grouped data set, use these formulas for the position of the k-th percentile:
Where:
When the data is grouped and we have the position of the quartile or percentile, we use linear interpolation to estimate the exact value. This method assumes the data is evenly distributed within the class interval.
For interpolation, the formula is:
Where:
Suppose you want to calculate the 30th percentile, and the 30th percentile falls within a class interval with:
The estimated value would be:
Ultimate members get access to four additional questions with full video explanations.