To find the weighted mean of grouped data, you essentially need to calculate a weighted average where the weights are typically frequencies associated with each group or class. Here's a step-by-step guide:
Steps to Calculate Weighted Mean of Grouped Data:
-
Determine the Midpoint of Each Class (xi): For each class interval, calculate the midpoint. This is done by averaging the upper and lower limits of the class.
- Midpoint (xi) = (Lower Limit + Upper Limit) / 2
-
Identify the Frequency of Each Class (fi): Note the frequency (fi), which represents the number of observations within each class interval.
-
*Multiply the Midpoint by the Frequency for Each Class (xi fi):** For each class, multiply the midpoint (xi) by its corresponding frequency (fi). This gives you a weighted value for each class.
-
*Sum the Weighted Values (∑(xi fi)):** Add up all the values calculated in the previous step. This is the sum of the weighted values.
-
Sum the Frequencies (∑fi): Add up all the frequencies. This gives you the total number of observations in the dataset.
-
Divide the Sum of Weighted Values by the Sum of Frequencies: Divide the result from Step 4 by the result from Step 5. This gives you the weighted mean.
- Weighted Mean = ∑(xi * fi) / ∑fi
Formula:
The weighted mean (x̄w) is calculated using the following formula:
x̄w = ∑(xi * fi) / ∑fi
Where:
- x̄w = Weighted mean
- xi = Midpoint of the i-th class
- fi = Frequency of the i-th class
- ∑ = Summation
Example:
Let's say we have the following grouped data:
Class Interval | Frequency (fi) |
---|---|
10-20 | 5 |
20-30 | 8 |
30-40 | 12 |
40-50 | 5 |
-
Midpoints (xi):
- (10+20)/2 = 15
- (20+30)/2 = 25
- (30+40)/2 = 35
- (40+50)/2 = 45
-
*Multiply Midpoint by Frequency (xi fi):**
- 15 * 5 = 75
- 25 * 8 = 200
- 35 * 12 = 420
- 45 * 5 = 225
-
*Sum of Weighted Values (∑(xi fi)):**
- 75 + 200 + 420 + 225 = 920
-
Sum of Frequencies (∑fi):
- 5 + 8 + 12 + 5 = 30
-
Weighted Mean:
- 920 / 30 = 30.67
Therefore, the weighted mean for this grouped data is 30.67.
Conclusion:
Calculating the weighted mean of grouped data involves finding the midpoint of each class, weighting it by its frequency, summing these weighted values, and then dividing by the total frequency. This provides a more accurate representation of the average when dealing with grouped data compared to a simple average.