Worked examples · Sheet 2
Weighted means and grouped data
Theory used:Arithmetic meanWeighted means and frequencies
Go to: Exercise 1Exercise 2
Exercise 1
Across twelve shifts, three shifts processed orders each, five processed each, and four processed each. Find the mean number of orders per shift.
The values , , and count orders per shift. The frequencies , , and count the shifts with each value. The frequencies sum to , so the table accounts for all twelve shifts.
To recover the total, multiply each order count by the number of times it occurs. The three shifts with orders contribute orders, the five shifts with contribute , and the four with contribute . There are therefore orders in total.
The denominator is because the mean is per shift. This is the weighted mean with absolute frequencies as weights. Giving the three distinct values equal weight would yield , ignoring that orders occur in five shifts and orders in four.
The mean number of orders per shift is . The mean distributes a total across shifts, so it need not be an integer or a count actually observed on any shift.
Exercise 2
A waiting-time table has three observations in , five in , and two in , in minutes. Estimate the mean using class midpoints and find an interval containing the actual mean.
The sample size is , the denominator of all three weighted means. The class midpoints are the averages of the endpoints of each interval, , , and minutes.
The midpoints replace the unknown values within each class, so is an estimate. It is the mean of the table obtained by placing every observation at its class midpoint.
For a lower bound, assign every observation its class’s left endpoint, which belongs to its interval. Every actual observation is at least its left endpoint, so the actual total is at least . The minimum mean compatible with the table is thus .
Each observation is strictly below its class’s right endpoint. The actual total is therefore less than and the mean is strictly below .
The estimated mean is and the actual mean belongs to minutes. The width of this interval, , is the weighted mean of the class widths , , and , using the frequencies as weights.