Learn how to calculate grouped mean, sample variance, sample standard deviation, coefficient of variation, quartiles, median and mode when data are given in class intervals.
In Type III data, the observations are given in class intervals. For mean and standard deviation, use the midpoint of each class interval.
For median, quartiles and mode, first prepare cumulative frequency and identify the required class.
To compare consistency, use coefficient of variation. The smaller CV shows the more consistent data set.
\[ \bar{x}=\frac{\sum fm}{\sum f} \]
\[ s=\sqrt{\frac{\sum fm^2-\frac{(\sum fm)^2}{n}}{n-1}} \]
\[ P_a=L+\left(\frac{i-c.f.}{f}\right)h \]
\[ \text{Mode}=L+\left(\frac{f_1-f_0}{2f_1-f_0-f_2}\right)h \]
The heights of female and male students are given below. Calculate mean height, sample standard deviation, sample variance and decide which data set is more consistent.
| Height | Male | Female |
|---|---|---|
| 145 - 150 | 0 | 3 |
| 150 - 155 | 2 | 8 |
| 155 - 160 | 6 | 15 |
| 160 - 165 | 17 | 12 |
| 165 - 170 | 21 | 4 |
| 170 - 175 | 10 | 0 |
| 175 - 180 | 2 | 0 |
| 180 - 185 | 2 | 0 |
Use midpoints, prepare \(fm\) and \(fm^2\), then try mean, SD and CV.
Use the midpoints of the classes:
\(147.5,\;152.5,\;157.5,\;162.5,\;167.5,\;172.5,\;177.5,\;182.5\)
For male students:
\[ n=\sum f=60 \]
\[ \sum fm=9975 \]
\[ \sum fm^2=1660625 \]
\[ \bar{x}=\frac{\sum fm}{n} \]
\[ \bar{x}=\frac{9975}{60} \]
\[ \bar{x}=166.25 \]
\[ s^2=\frac{\sum fm^2-\frac{(\sum fm)^2}{n}}{n-1} \]
\[ s^2=\frac{1660625-\frac{9975^2}{60}}{59} \]
\[ s^2=38.67 \]
\[ s=\sqrt{38.67}=6.22 \]
\[ CV=\frac{6.22}{166.25}\times100=3.74\% \]
For female students:
\[ n=\sum f=42 \]
\[ \sum fm=6645 \]
\[ \sum fm^2=1052512.5 \]
\[ \bar{x}=\frac{6645}{42} \]
\[ \bar{x}=158.21 \]
\[ s^2=\frac{1052512.5-\frac{6645^2}{42}}{41} \]
\[ s^2=28.75 \]
\[ s=\sqrt{28.75}=5.36 \]
\[ CV=\frac{5.36}{158.21}\times100=3.39\% \]
Consistency:
The data set with smaller CV is more consistent.
\[ CV_{\text{male}}=3.74\%,\qquad CV_{\text{female}}=3.39\% \]
Since female CV is smaller, female height data are more consistent.
Calculate quartiles, median and mode from the following grouped rainfall data.
| Rainfall in mm | 20 - 30 | 30 - 40 | 40 - 50 | 50 - 60 | 60 - 70 |
|---|---|---|---|---|---|
| No. of days | 15 | 16 | 20 | 24 | 15 |
Prepare cumulative frequency and identify the quartile, median and modal classes first.
Prepare cumulative frequency:
| Rainfall | Frequency \(f\) | Cumulative Frequency |
|---|---|---|
| 20 - 30 | 15 | 15 |
| 30 - 40 | 16 | 31 |
| 40 - 50 | 20 | 51 |
| 50 - 60 | 24 | 75 |
| 60 - 70 | 15 | 90 |
\[ N=90,\qquad h=10 \]
First quartile \(Q_1\):
\[ i=\frac{25}{100}\times 90=22.5 \]
The cumulative frequency first reaches \(22.5\) in the class \(30-40\). So, \(L=30,\; c.f.=15,\; f=16,\; h=10\).
\[ Q_1=L+\left(\frac{i-c.f.}{f}\right)h \]
\[ Q_1=30+\left(\frac{22.5-15}{16}\right)10 \]
\[ Q_1=34.69 \]
Median \(Q_2\):
\[ i=\frac{50}{100}\times 90=45 \]
The cumulative frequency first reaches \(45\) in the class \(40-50\). So, \(L=40,\; c.f.=31,\; f=20,\; h=10\).
\[ \text{Median}=40+\left(\frac{45-31}{20}\right)10 \]
\[ \text{Median}=47.00 \]
Third quartile \(Q_3\):
\[ i=\frac{75}{100}\times 90=67.5 \]
The cumulative frequency first reaches \(67.5\) in the class \(50-60\). So, \(L=50,\; c.f.=51,\; f=24,\; h=10\).
\[ Q_3=50+\left(\frac{67.5-51}{24}\right)10 \]
\[ Q_3=56.88 \]
Mode:
The highest frequency is \(24\), so the modal class is \(50-60\).
\[ L=50,\qquad f_1=24,\qquad f_0=20,\qquad f_2=15,\qquad h=10 \]
\[ \text{Mode}=L+\left(\frac{f_1-f_0}{2f_1-f_0-f_2}\right)h \]
\[ \text{Mode}=50+\left(\frac{24-20}{2(24)-20-15}\right)10 \]
\[ \text{Mode}=53.08 \]