Source codeVideos

Command Palette

Search for a command to run...

Statistics

Mean for Grouped Data

Mean for Grouped Data

You already know how to calculate the mean for individual data, right? Just sum up all the values and divide by the number of data points.

xˉ=xin\bar{x} = \frac{\sum x_i}{n}

But what if the data is presented in groups or intervals, like in a frequency distribution table? For example, test scores grouped into 70-79, 80-89, 90-100.

When data is grouped, we don't know the exact value of each data point within that group. For instance, if there are 5 students in the 70-79 group, we don't know if their scores are exactly 70, 72, 75, or some other value within that range.

Using the Class Midpoint

Since we don't know the exact values, we use an assumption or approximation. We assume that all data points within a group are represented by the midpoint of that group (class interval).

The class midpoint (often symbolized as xix_i) is calculated as:

xi=Lower Class Limit+Upper Class Limit2x_i = \frac{\text{Lower Class Limit} + \text{Upper Class Limit}}{2}

Formula for Mean of Grouped Data

Once we have the midpoint for each class, we can calculate the mean of the grouped data using the formula:

xˉ=(fi×xi)fi\bar{x} = \frac{\sum (f_i \times x_i)}{\sum f_i}

Where:

  • xˉ\bar{x} = Mean of the grouped data
  • fif_i = Frequency of the ii -th class (how many data points are in that group)
  • xix_i = Midpoint of the ii -th class
  • (fi×xi)\sum (f_i \times x_i) = Sum of the products of the frequency and midpoint for each class
  • fi\sum f_i = Sum of all frequencies (equal to the total number of data points, nn)

Example: Average Shoe Size

Consider the grouped data for shoe sales at Store A:

Shoe Size (Class Interval)Frequency (fif_i)
37-392
40-4211
43-4516
46-481
Totaln=30n=30

Steps to calculate the Mean:

  1. Find the Midpoint (xix_i) for each class:

    • Class 37-39: x1=(37+39)/2=38x_1 = (37+39)/2 = 38
    • Class 40-42: x2=(40+42)/2=41x_2 = (40+42)/2 = 41
    • Class 43-45: x3=(43+45)/2=44x_3 = (43+45)/2 = 44
    • Class 46-48: x4=(46+48)/2=47x_4 = (46+48)/2 = 47
  2. Multiply Frequency by Midpoint (fi×xif_i \times x_i) for each class:

    • Class 37-39: 2×38=762 \times 38 = 76
    • Class 40-42: 11×41=45111 \times 41 = 451
    • Class 43-45: 16×44=70416 \times 44 = 704
    • Class 46-48: 1×47=471 \times 47 = 47
  3. Sum all the products ((fi×xi)\sum (f_i \times x_i)):

    (fi×xi)=76+451+704+47=1278\sum (f_i \times x_i) = 76 + 451 + 704 + 47 = 1278
  4. Sum all frequencies (fi\sum f_i):

    fi=2+11+16+1=30\sum f_i = 2 + 11 + 16 + 1 = 30
  5. Calculate the Mean (xˉ\bar{x}):

    xˉ=(fi×xi)fi=127830=42.6\bar{x} = \frac{\sum (f_i \times x_i)}{\sum f_i} = \frac{1278}{30} = 42.6

Therefore, the average shoe size sold at Store A is 42.6.

Remember, this result is an estimate of the mean because we use midpoints to represent the data within each group. However, this is the standard and most common way to calculate the mean for grouped data.