Statistics How To

Grouped Data: Definition, Examples

Descriptive Statistics > Grouped Data

Contents:

  1. What is Grouped Data?
  2. Ungrouped data
  3. Mean of Grouped Data

What is Grouped Data?

Grouped data is data that has been bundled together in categories. Histograms and frequency tables can be used to show this type of data:

grouped data

Relative frequency histogram showing book sales for a certain day, sorted by price.




A frequency table showing grouped data by height. Image: SHU.edu

A frequency table showing grouped data by height. Image: SHU.edu



The data is grouped together by classes or bins.

Grouped Data vs. Ungrouped Data

Ungrouped data is the data you first gather from an experiment or study. The data is raw — that is, it’s not sorted into categories, classified, or otherwise grouped. An ungrouped set of data is basically a list of numbers.

Calculating the Sample Mean for Grouped Data

When you have a frequency table or other group of data, the original set of data is lost — replaced with statistics for the group. You can’t find the exact sample mean (as you don’t have the original data) but you can find an estimate. The formula for estimating the sample mean for grouped data is:
mean for grouped data

  • x̄ is the sample mean,
  • x is the class (or category) midpoint,
  • f is the class frequency.
  • Example question: Find the sample mean for the following frequency table.

    Score Frequency ( f )
    Between 5 and 10 1
    10 ≤ t < 15 4
    15 ≤ t < 20 6
    20 ≤ t < 25 4
    25 ≤ t < 30 2
    30 ≤ t < 35 3
    TOTALS 20

    Step 1: Find the midpoint for each class interval. the midpoint is just the middle of each interval. For example, the middle of 10 and 15 is 12.5:

    Score Frequency ( f ) Midpoint ( x )
    Between 5 and 10 1 7.5
    10 ≤ t < 15 4 12.5
    15 ≤ t < 20 6 17.5
    20 ≤ t < 25 4 22.5
    25 ≤ t < 30 2 27.5
    30 ≤ t < 35 3 32.5
    TOTALS 20

    Step 2: Multiply the midpoint (x) by the frequency (f):

    Frequency ( f ) Midpoint ( x ) Midpoint x * frequency f
    Between 5 and 10 1 7.5 7.5
    10 ≤ t < 15 4 12.5 50
    15 ≤ t < 20 6 17.5 105
    20 ≤ t < 25 4 22.5 90
    25 ≤ t < 30 2 27.5 55
    30 ≤ t < 35 3 32.5 97.5
    TOTALS 20 405

    Add up all of the totals for this step. In other words, add up all the values in the last column (you should get 405).

    Step 3: Divide the last column (f*x) by the second column (f):
    The mean of grouped data (x̄) = 405 / 20 = 20.25.

    ------------------------------------------------------------------------------

    If you prefer an online interactive environment to learn R and statistics, this free R Tutorial by Datacamp is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try this Statistics with R track.

    Comments are now closed for this post. Need help or want to post a correction? Please post a comment on our Facebook page and I'll do my best to help!
    Grouped Data: Definition, Examples was last modified: October 15th, 2017 by Stephanie Glen

    5 thoughts on “Grouped Data: Definition, Examples

    1. Andale Post author

      Glad it helped! What kinds of examples are you looking for? For example, a specific topic or for a specific class?