Frequency tables for marks
A frequency table takes a long list of values, such as the marks of a class, and shows how often each value occurs. It needs four columns to be useful: the value, how many times it appears (the absolute frequency), what share of the total that is (the relative frequency), and a running total (the cumulative frequency).
For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.
Book your first session| Mark | Frequency | Cumulative frequency | Relative frequency | Cumulative relative frequency |
|---|---|---|---|---|
| 3 | 1 | 1 | 0.033 | 0.033 |
| 4 | 2 | 3 | 0.067 | 0.100 |
| 5 | 3 | 6 | 0.100 | 0.200 |
| 6 | 6 | 12 | 0.200 | 0.400 |
| 7 | 8 | 20 | 0.267 | 0.667 |
| 8 | 6 | 26 | 0.200 | 0.867 |
| 9 | 3 | 29 | 0.100 | 0.967 |
| 10 | 1 | 30 | 0.033 | 1.000 |
Relative frequencies are rounded to three places, so the column can differ from 1 by a rounding digit. The cumulative columns are computed from the exact fractions.
Our own example data of 30 marks, tallied and totaled in code
The last row of each running total must land on the size of the data set, or on 1, and that is your built-in check.
What do the four columns mean?
The absolute frequency is a plain count. Eight students scored a 7, so the frequency of the mark 7 is 8. The counts together must add to n, the number of values, and here they add to 30.
The relative frequency is the count divided by n. Eight out of 30 is 0.267, or about 26.7 percent. Relative frequencies add to 1, because the pieces make up the whole.
The cumulative frequency is the count of values at or below a given value. Add each row's frequency to the total above it: 1, then 1 + 2 = 3, then 3 + 3 = 6, and so on. The cumulative relative frequency does the same with shares, and it answers questions such as "what share of the class scored a 6 or lower?" The table says 0.400, or 40 percent.
How do you build the table?
- List every value that occurs, from smallest to largest.
- Tally each value in the data as you go, one stroke per value.
- Write the tally count as the frequency, and check that the frequencies add to n.
- Build the cumulative column by adding down.
- Divide each frequency and each cumulative frequency by n for the two relative columns.
Reading the table back tells you things the raw list hides. The most common mark, the mode, is 7. The middle of 30 marks lies between the 15th and 16th in order, and the cumulative column shows both are 7, so the median is 7. The mean is 203 / 30, or about 6.77.
When should you group the data into classes?
Group when there are too many different values to list, or when the variable is continuous, such as a percentage score. Pick classes of equal width. The open textbook cited above says many histograms use five to 15 bars or classes. A class includes its lower limit and leaves out its upper limit, so a mark of exactly 70 belongs to the 70-80 class, not to 60-70. Each class gets a class mark, its middle value, which stands in for every value inside it.
Forty test percentages sorted from lowest to highest: 23, 38, 41, 45, 49, 52, 54, 56, 57, 59, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 82, 83, 84, 86, 87, 88, 90, 91, 93, 95.
| Class | Class mark | Frequency | Cumulative frequency | Relative frequency | Cumulative relative frequency |
|---|---|---|---|---|---|
| 20 to under 30 | 25 | 1 | 1 | 0.025 | 0.025 |
| 30 to under 40 | 35 | 1 | 2 | 0.025 | 0.050 |
| 40 to under 50 | 45 | 3 | 5 | 0.075 | 0.125 |
| 50 to under 60 | 55 | 5 | 10 | 0.125 | 0.250 |
| 60 to under 70 | 65 | 9 | 19 | 0.225 | 0.475 |
| 70 to under 80 | 75 | 10 | 29 | 0.250 | 0.725 |
| 80 to under 90 | 85 | 7 | 36 | 0.175 | 0.900 |
| 90 to under 100 | 95 | 4 | 40 | 0.100 | 1.000 |
Source: Counted for this page from the 40 values above; the range is 95 - 23 = 72, and eight classes of width 10 cover it.
What do you lose by grouping?
Grouping hides where inside a class the values fall. If you estimate the mean by multiplying each class mark by its frequency, you get 2,780 / 40 = 69.5. The true mean from the 40 original values is 2,764 / 40 = 69.1. The estimate is close but not exact, and that gap is the price of grouping.
Worked example: Reading a cumulative table to answer a question
Using the grouped table, what share of the students scored below 70, and how many scored 80 or higher?
- Scoring below 70 means the classes up to and including 60 to under 70. The cumulative frequency at the end of that class is 19.
- Divide by the total: 19 / 40 = 0.475, which is 47.5 percent.
- Scoring 80 or higher means the last two classes: 7 + 4 = 11 students.
- Check with the cumulative column: 40 - 29 = 11, which agrees.
Answer: 47.5 percent scored below 70, and 11 students scored 80 or higher.
Source: Original example by George Li Tutoring, using the grouped table above; every count was verified in code.
If frequency tables, histograms and the mean and median come up in a statistics unit, a tutor can work from your own class data. See high school course tutoring, the study planner, or book a first session.
Common questions
What is a frequency table?
A table that lists each value or class of a data set with how many times it occurs, often with relative and cumulative columns.
What is the difference between absolute and relative frequency?
Absolute frequency is a count. Relative frequency is that count divided by the total number of values, so it is a share between 0 and 1.
What is cumulative frequency?
A running sum of the counts up to and including a given value or class. The last cumulative frequency equals the number of values in the data.
How many classes should a grouped table have?
Many histograms use five to 15 classes of equal width. Too few hide the shape of the data, and too many look like the raw list.