Section 1.6 Adjusting Statistical Measures for Grouped Data
As you considered the measures of the center and spread before, each data point was considered individually. Often, data may however be grouped into categories. The number of data items in each category is called the "frequency" of that outcome and the collection of these frequencies for all outcomes is called a "frequency distribution".
Data Grouped into Single-valued Categories
Rather than considering to be the kth data value, take advantage of the grouping to perhaps save a bit on arithmetic. Indeed, letβs assume that data is grouped into m categories with corresponding frequencies Then, for example, when computing the mean rather than adding with itself times just compute for the first category and continuing through the remaining categories. This gives the following grouped data formula for the mean
and the following grouped data formula for the variance (along with one equivalent form)
Consider the following data set
{3, 1, 2, 2, 3, 1, 3, 4, 5, 5, 1, 4, 5, 1, 2, 4, 5, 3, 2, 5, 2, 1, 2, 2, 5}
Create a frequency distribution and determine the sample mean and variance.
Solution.
Collecting this data into a frequency distribution gives Table 1.6.2. Grouped Discrete Data
Therefore,
1 | 5 |
2 | 7 |
3 | 4 |
4 | 3 |
5 | 6 |
and
and so
Checkpoint 1.6.3. WeBWorK - Grouped Discrete Data.
The U.S. Bureau of the Census conducts nationwide surveys on characteristics of U.S. households. Following are data on the number of people per household for a sample of 50 households. Construct a grouped data table for these household sizes.
4 | 1 | 2 | 4 | 6 | 1 | 6 | 6 | 5 | 7 |
3 | 2 | 4 | 3 | 6 | 3 | 1 | 3 | 2 | 5 |
5 | 2 | 5 | 2 | 2 | 4 | 5 | 6 | 5 | 6 |
5 | 1 | 4 | 7 | 2 | 5 | 7 | 6 | 7 | 1 |
4 | 3 | 3 | 5 | 3 | 2 | 5 | 6 | 1 | 6 |
Household size | Frequency | Relative Frequency |
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
6 | ||
7 | ||
Total | 50 | 1 |
For measures on data grouped into intervals, it is somewhat difficult to do calculations when the data no longer exists as individual values since all you know is the frequencies of each interval. You can use "class marks"...the midpoints of each interval...as representers for all of the items that fell into that interval for computing means and variances.
Indeed, for means of grouped data presume that all of the data in a given interval lies at the midpoint of that interval and then use the frequency formula described above 1.4.9 but with these class marks as the x-values.
Consider data collected into disjoint intervals of the form
- ...
where is the frequency of data items in interval Generally, since the intervals are disjoint then letβs put them in order from low to high so that etc. Compute class marks and then use
For positional measures, you want to approach this in the same manner as with percentiles before. That is, my doing some sort of linear interpolation on the width of each interval.
So, for medians, consider the following approach: Consider data collected into disjoint intervals of the form
- ...
where is the frequency of data items in interval with corresponding cummulative frequency Again, order them from low to high so that etc.
Example 1.6.4. Computing Median for Interval Grouped Data.
[0,5) | 5 |
[5,10) | 7 |
[10,20) | 4 |
[20,23) | 3 |
[23,30) | 6 |