Skip to main content

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 xk 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 x1,x2,...,xm with corresponding frequencies f1,f2,...,fm. Then, for example, when computing the mean rather than adding x1 with itself f1 times just compute x1Γ—f1 for the first category and continuing through the remaining categories. This gives the following grouped data formula for the mean
ΞΌ=x1f1+...+xmfmf1+...+fm=βˆ‘k=1mxkfkβˆ‘k=1mfk.
and the following grouped data formula for the variance (along with one equivalent form)
Οƒ2=βˆ‘k=1m(xkβˆ’ΞΌ)2fkβˆ‘k=1mfk=βˆ‘k=1mxk2fkβˆ‘k=1mfkβˆ’ΞΌ2
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
xk fk
1 5
2 7
3 4
4 3
5 6
Therefore,
x―=1Γ—5+2Γ—7+3Γ—4+4Γ—3+5Γ—65+7+4+3+6=5+14+12+12+3025=4325
and
v=12Γ—5+22Γ—7+32Γ—4+42Γ—3+52Γ—65+7+4+3+6βˆ’(4325)2=5+28+36+48+15025βˆ’(4325)2=4826625β‰ˆ7.7216
and so s2=25244826625β‰ˆ8.043.
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 fk is the frequency of data items in interval [ak,bk). Generally, since the intervals are disjoint then let’s put them in order from low to high so that b1≀a2,b2≀a3, etc. Compute class marks midk=ak+bk2 and then use
ΞΌ=mid1f1+...+midmfmf1+...+fm=βˆ‘k=1mmidkfkβˆ‘k=1mfk.
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 fk is the frequency of data items in interval [ak,bk) with corresponding cummulative frequency Fk. Again, order them from low to high so that b1≀a2,b2≀a3, etc.
  1. Set m = total cummulative frequency/2 = Flast/2
  2. Determine the interval k where m∈[Fkβˆ’1,Fk]
  3. Set median = (bkβˆ’ak)mβˆ’Fkβˆ’1fk+ak
Table 1.6.5. Interval Frequency Distribution
[ak,bk] fk
[0,5) 5
[5,10) 7
[10,20) 4
[20,23) 3
[23,30) 6
The total cummulative frequency is 25 and so m=252=12.5 which lies in the k = 3 interval [10,20) and F2=12. Therefore
median=(20βˆ’10)12.5βˆ’124+10=11.25