Course 1.2Lesson 1 of 3
A frequency table lists each value and its frequency, the number of times it appears. Counting with tally marks makes this easy. The relative frequency is the frequency divided by the total, and as a percentage it lets us compare surveys of different sizes. The frequencies must add up to the number of cases and the percentages to 100. For numerical data with many different values, we group the values into class intervals.
This lesson is free to read. Enroll free to keep your place and take the tests.
Try the code and the simulations beside the lesson.
You asked 40 students: "What is your favourite sport?" You now have 40 answers in a long list. The first step is to count how many times each answer appears.
A frequency table lists each value and its frequency: how many times it appeared.
On paper, we count with tally marks. For each answer we make a stroke, and every fifth stroke crosses the four before it. A group of five is quick to read, and it stops us losing count.
The program counts the 40 answers and prints the frequency table, with the share of each sport.
If they do not add up, you have lost or doubled an answer. This check catches mistakes.
The relative frequency is the frequency divided by the total: . As a percentage it is . It lets you compare two surveys of different sizes.
In class A, 18 of 40 students chose cricket. In class B, 21 of 60 chose cricket. Class B has more cricket fans, but a smaller share: against . So cricket is more popular in class A.
You should find that the taller bar is not always the class with more fans. Make class B larger with the same number of fans, and its bar shrinks.
If the data is numerical and has many different values, a row for each value makes the table too long. We put the values in groups, called class intervals. The marks out of 30 of 20 students could look like this:
| Marks | Frequency |
|---|---|
| 0 to 9 | 2 |
| 10 to 19 | 6 |
| 20 to 30 | 12 |
| Total | 20 |
The groups must not overlap, and every value must go in exactly one group. The graph of such a table is a histogram, in the last lesson of this course.
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Every lesson is open to read. Enrolling also lets you:
Log in to join the discussion.
Loading…