Notes on Measures of Tendency and Dispersion from Grouped Data and Weighted Mean

3.3 Measures of Tendency and Dispersion from Grouped Data

When data is grouped into classes with known frequencies or presented as a histogram, we can estimate the mean (μ\mu) and standard deviation (σ\sigma).

Finding the Mean from Grouped Data

  1. Find the midpoint (x<em>ix<em>i) of each class:
    x</em>i=lower class limit + upper class limit2x</em>i = \frac{\text{lower class limit + upper class limit}}{2}

  2. Multiply each midpoint value (x<em>ix<em>i) by its corresponding frequency (f</em>if</em>i) and sum them up:
    <em>i=1Nx</em>if<em>i=x</em>1f<em>1+x</em>2f<em>2++x</em>NfN\sum<em>{i=1}^{N} x</em>i f<em>i = x</em>1 f<em>1 + x</em>2 f<em>2 + … + x</em>N f_N

  3. Find the sum of all the frequencies:
    <em>i=1Nf</em>i=f<em>1+f</em>2++fN\sum<em>{i=1}^{N} f</em>i = f<em>1 + f</em>2 + … + f_N

  4. Calculate the mean (μ\mu):
    μ=sum of the products of midpoints and corresponding frequenciessum of all frequencies=<em>i=1Nx</em>if<em>i</em>i=1Nfi\mu = \frac{\text{sum of the products of midpoints and corresponding frequencies}}{\text{sum of all frequencies}} = \frac{\sum<em>{i=1}^{N} x</em>i f<em>i}{\sum</em>{i=1}^{N} f_i}

    • Note: For a sample with nn data points where n < N, the sample mean xˉ\bar{x} is calculated using the same formula but with NN replaced by nn.

Standard Deviation for Grouped Data

The standard deviation is calculated similarly to section 3.2, but here, x<em>ix<em>i represents the class midpoint and f</em>if</em>i is the corresponding frequency.

  • Population Standard Deviation
    σ=<em>i=1N(x</em>iμ)2f<em>i</em>i=1Nf<em>i=(x</em>1μ)2f<em>1++(x</em>Nμ)2f<em>Nf</em>1++fN\sigma = \sqrt{\frac{\sum<em>{i=1}^{N}(x</em>i - \mu)^2 f<em>i}{\sum</em>{i=1}^{N} f<em>i}} = \sqrt{\frac{(x</em>1 - \mu)^2 f<em>1 + … + (x</em>N - \mu)^2 f<em>N}{f</em>1 + … + f_N}}

  • Sample Standard Deviation
    s=<em>i=1N(x</em>ixˉ)2f<em>i(</em>i=1Nf<em>i)1=(x</em>1xˉ)2f<em>1++(x</em>Nxˉ)2f<em>N(f</em>1++fN)1s= \sqrt{\frac{\sum<em>{i=1}^{N}(x</em>i - \bar{x})^2 f<em>i}{(\sum</em>{i=1}^{N} f<em>i) -1}} = \sqrt{\frac{(x</em>1 - \bar{x})^2 f<em>1 + … + (x</em>N - \bar{x})^2 f<em>N}{(f</em>1 + … + f_N) -1}}

Weighted Mean

The weighted mean (xwx_w) of a variable is calculated using:

x<em>w=w</em>1x<em>1+w</em>2x<em>2++w</em>Nx<em>Nw</em>1+w<em>2++w</em>Nx<em>w = \frac{w</em>1x<em>1 + w</em>2x<em>2 + … + w</em>Nx<em>N}{w</em>1 + w<em>2 + … + w</em>N}

Where x<em>ix<em>i is each data point and w</em>iw</em>i is its corresponding weight.

Example: GPA Calculation

Suppose a student earns an A in a 3-credit hour course, a B in a 4-credit hour course, and a D in a 5-credit hour course. Calculate the GPA.

  • A = 4 points
  • B = 3 points
  • C = 2 points
  • D = 1 point
  • F = 0 points

Practice Problems and Solutions

  1. Problem: Approximate the mean weekly grocery bill for the following data:

    Bill (in dollars)Frequency
    135-13910
    140-14413
    145-14916
    150-15418
    155-15911

    Solution: (The solution is multiple choice, the exact steps to solve were not provided.)

  2. Problem: Determine the mean temperature of a sample of 100 patients with the following temperature distribution:

    TemperaturesFrequency
    95.6-96.491
    96.5-97.393
    97.4-98.2919
    98.3-99.1928
    99.2-100.0935
    100.1-100.9912
    101.0-101.892

    Solution: (The solution is multiple choice, the exact steps to solve were not provided.)

  3. Problem: A student has test scores of 62, 83, and 91. The term project score is 88, and the homework score is 76. Each test is worth 20% of the final grade, the term project is 25%, and homework is 15%. What is the student's mean score in the class?

    Solution: The problem requires calculating a weighted mean.

  4. Problem: Jenny and Kevin make a trail mix with 3 pounds of dried fruit at $4.00 per pound, 2 pounds of nuts at $3.50 per pound, and 5 pounds of granola at $5.00 per pound. Determine the cost per pound of the mix.

    Solution: The problem requires calculating a weighted average.

  5. Problem: Approximate the sample standard deviation of monthly telephone bills:

    Bill (in $)Frequency
    50-522
    53-555
    56-5812
    59-6119
    62-647

    Solution: (The solution is multiple choice, the exact steps to solve were not provided.)

Homework: p. 152 # 3-7, 15, 16