Grouped data and class marks
Before computing any statistics, we must understand the language of frequency tables. A frequency table lists the classes (intervals of values) and the frequencies (number of observations in each class).
For example:
| Marks | |||||
|---|---|---|---|---|---|
| Number of students | 4 | 6 | 10 | 5 | 3 |
This says: students scored between and , scored between and , etc. The total number of students is .
Class marks
When computing the mean of grouped data, every observation in a class is represented by the midpoint of that class, called the class mark:
For the table above, the class marks are .
The use of class marks is a simplification: we assume the observations in each class are evenly spread and use the midpoint as a representative value. This is the source of a tiny error in the computed mean, but for board-exam purposes it is the standard assumption.
Continuous and discontinuous classes
The classes in the example are continuous: the upper limit of one class equals the lower limit of the next. The boundary value (say ) is conventionally assigned to the next class (i.e., , not ).
Sometimes classes are written discontinuously, with gaps: . To make computations consistent, you must first make the classes continuous by adjusting the boundaries. Subtract from each lower limit and add to each upper limit:
(In general, the adjustment is half the difference between the upper limit of one class and the lower limit of the next.)
This adjustment does not change the class marks (still ), but it does affect the class size (which becomes in both cases, but the boundaries are different).
Class size
The class size (or class width) is the difference between the upper limit and the lower limit of one class. It is denoted and is typically the same across all classes in a table.
For : . For : . For : .
Cumulative frequency
The cumulative frequency of a class is the total of the frequencies of that class and all preceding classes. It is denoted .
For the table above:
| Class | ||
|---|---|---|
Cumulative frequency is essential for computing the median and for drawing ogives.
The cumulative frequency of the last class equals the total frequency .
More-than and less-than tables
Sometimes data is given as less than cumulative frequencies. For instance, "less than : students; less than : students; ..." From a less than table you can reconstruct the original frequencies by subtracting consecutive cumulative values.
A more than table reverses this: "more than : students; more than : students; ...". The cumulative frequency in this case counts from the top down.
Worked examples
Example 1. Find the class marks for the classes .
Class marks: . Class size .
Example 2. A frequency table has classes with frequencies . Find the cumulative frequencies.
: . Total: .
Example 3. Convert the discontinuous classes to continuous form.
Subtract from each lower limit and add to each upper limit: . Class size .
Example 4. Given a less than table: . Find the class frequencies.
Classes have frequencies .
Example 5. Construct a frequency table for the marks using class size , starting at .
Classes . Frequencies .
Try it yourself
- Find the class mark of the class .
- Convert to continuous classes.
- A frequency table has classes with frequencies . Find the cumulative frequencies.
- The total frequency is and the cf of the third class is . Find the frequency of the third class given the cf of the second is .
- Find the class size for .
- A less-than table reads . Find class frequencies.
- Construct a frequency table for with class size starting at .
- Find the class marks for classes of size starting at :
- A more-than table reads . Find the class frequencies for .
- If the class marks are , what are the classes (assuming class size )?
- A class has lower limit and upper limit . Find the class mark and class size.
- Total frequency . The cf of the class is . The cf of the class is . Find the frequency of the class .
Pitfalls / Insight
(1) Discontinuous classes must be made continuous before applying mean/median/mode formulas with class size.
(2) The class mark, not the upper or lower limit, is what represents observations in calculations.
(3) Cumulative frequency is cumulative from the top, not the bottom , i.e., add as you go down the table.
(4) The total frequency is the cf of the last class. Always verify this with the column sum.