Estimating Quartile Positions within Class Intervals
For ungrouped data, we can sort every observation and identify its position directly. A grouped frequency table provides only the intervals, such as and , and the number of observations in each interval. It does not contain the individual values.
As with the median for grouped data, we therefore estimate , , and by interpolation. The calculation places each quartile within the class interval that contains its target position.
We determine the position of the quartile using this formula:
- The position of is the -th data point
- The position of is the -th data point (or -th)
- The position of is the -th data point
Where is the total number of data points.
Steps to Find the Value of Quartiles for Grouped Data
Consider the grouped shoe-sales data from Store A. The frequency table below gives each class interval and how many pairs fall in it, and the quartiles are estimated by interpolating inside the class that contains the position you want. Work through the steps with the table open, because every value you substitute comes from it.
Create a Cumulative Frequency Table
First, we need a frequency table with a cumulative frequency column (). Cumulative frequency is the sum of frequencies from the first class up to that class. This is important to know which class the quartile falls into.
For example, here is the shoe sales table:
| Shoe Size | Frequency () | Cumulative Frequency () | Lower Boundary () | Upper Boundary () | Class Width () |
|---|---|---|---|---|---|
| Total |
The lower boundary is the lower class limit minus .
The upper boundary is the upper class limit plus .
The class width is the upper boundary minus the lower boundary.
Determine the Quartile Class Position
First, locate each quartile position.
Total data () is .
-
Position of : the -th data point.
In the column, the first class ends at position and the second ends at position . Positions through belong to the second class, so position lies in .
-
Position of (Median): the -th data point.
Look at . The th data point is in the class (because the previous was , and this class's is ).
-
Position of : the -th data point.
Look at . The th data point is also in the class (because the previous was , and this class's is ).
Estimate the Quartile Value by Interpolation
Once the quartile class is known, estimate the value within that interval with:
The quantities in this formula are:
- = Value of the i-th Quartile (what we're looking for)
- = Lower boundary of the i-th quartile class
- = Total frequency
- = cumulative frequency before the -th quartile class
- = Frequency of the i-th quartile class
- = Class width
This interpolation assumes that observations are distributed uniformly within the selected class. It is a model-based estimate and cannot recover the original values that were omitted when the data were grouped.
Finding the Shoe Sales Quartile
Calculate from the table above.
-
Position of : th data point.
-
Class of : .
-
Record the formula values:
- Lower boundary of class () is
- Total data () is
- Cumulative frequency before class () is (see for class )
- Frequency of class () is
- Class width () is
-
Plug into the formula:
So, the value of is . This means about of the shoes sold are size or smaller.
Exercise
Calculate from the shoe sales data in the table above.
Then compare grouped-data interpolation with the calculation of quartiles from ungrouped data. Why does the grouped table provide only an estimate?
Answer Key
-
Position of : th data point.
-
Class of : .
-
Gather the ingredients:
- (lower boundary of class)
- (total data)
- (see for class )
- (frequency of class)
- (class width)
-
Plug into the formula:
The estimated value of is . In this grouped model, about of the shoes sold have size or below. The remaining have a shoe size above .
Comparison with Single Data:
Finding quartiles for grouped data uses interpolation because the table provides intervals and frequencies without the individual observations. The result is an estimated quartile value.
For ungrouped data, the ordered observations are known, so the declared quartile convention can select one value or interpolate directly between two known values. Grouped interpolation is less precise because the observations inside each class are no longer available.