Collecting and classifying data. Representing data in tables and charts
🖨 Print a self-study sheet Why print?
Every day you meet numbers: test marks, temperatures, electricity bills, poll results. To use them for a decision, we must collect them properly, organise them neatly and draw them so that patterns become visible. These are the three jobs of statistics, and this lesson covers all three.
Suppose the school wants to buy equipment for a sports club and asks students in class 8A: "Which sport do you like best?". A pile of answer slips tells us nothing yet. How can we find out which sport to buy equipment for first?
Let's explore
The first twelve slips read: Football, Badminton, Football, Basketball, Football, Swimming, Badminton, Football, Shuttlecock kicking, Badminton, Football, Basketball. Count how many times each sport appears.
Making a tally mark for each answer, we get: Football times, Badminton times, Basketball times, Swimming time, Shuttlecock kicking time. The total is , exactly the number of slips. A long list has become a short table, and we see at once that football is chosen most often. The next sections name and organise each of these steps.
Collecting data
Data are pieces of information (numbers, names, ...) that we record to study a question. There are two main ways to collect them.
- Directly: observing, measuring, interviewing or handing out a questionnaire yourself, for example measuring the heights of the students in your class.
- Indirectly: taking data that already exist in books, newspapers or the website of a statistics office.
Data are useful only if they are reasonable: from the right group of people, in the right units and within a range that is possible. A test mark out of cannot be .
Classifying data
Going deeper. A number is not always quantitative data. A telephone number or a footballer's shirt number is only a label; adding them or finding their mean has no meaning. Quantitative data must be numbers for which calculations make sense.
Representing data in tables
To see the data quickly, we build a frequency table. The frequency of a value is the number of times it occurs. The relative frequency is the frequency divided by the total number of data values, usually written as a percentage: \text{relative frequency}=\frac{\text{frequency}}{\text{total number of data values}}. The frequencies add up to the total number of data values, and the relative frequencies add up to 100\%.
Representing data in charts
A chart lets us compare at a glance. Each kind of chart has its own strength:
| Chart | Use it to |
|---|---|
| Bar chart | compare quantities between groups |
| Double bar chart | compare two data sets on the same groups (for example boys and girls in each class) |
| Pictogram | compare quantities with symbols; easy to read for small numbers |
| Pie chart | show the proportion of each part of a whole |
| Line graph | follow a change over time |
We draw a bar chart for the table in the example above: each bar stands for one way to school, and its height equals the frequency.
A pie chart divides a circle into sectors; the angle of the sector for a group equals its relative frequency times 360^\circ.
Now we look at data that change over time, where a line graph is the right tool.
Connections. This lesson is the starting point of the whole chapter: you reuse percentages from earlier years to find relative frequencies. The next lesson, analysing statistical data from charts, teaches you to read charts, draw conclusions and spot misleading charts.
Key terms
Summary
- Data are collected directly (observing, questionnaires) or indirectly (books, newspapers, official sources), and must be reasonable.
- Qualitative data are not numbers; quantitative data are numbers for which calculations make sense.
- Relative frequency is frequency divided by the total; the relative frequencies add up to 100\%.
- A bar chart compares groups, a pie chart shows proportions, a line graph shows a trend over time.
- The angle of a pie chart sector is the relative frequency times 360^\circ.
Practice
Each exercise comes with what you need and how to start. Try it yourself first, then open the solution.
State whether each kind of data is qualitative or quantitative:
a) Eye colour of the students in a class.
b) Height (cm) of the students.
c) Number of students in each class of a school.
d) Names of favourite songs.
What you need: quantitative data are measured or counted numbers.
Steps:
- Ask: are these numbers for which calculations make sense?
- Classify each kind of data.
Show solution
Qualitative data are not numbers (names, colours, qualities); quantitative data are numerical values (measurements or counts) that can be compared and calculated with.
a) Eye colour is a name, not a number. It is qualitative data.
b) Height (cm) is a measurement. It is quantitative data.
c) The number of students in each class is a count. It is quantitative data.
d) Song names are names, not numbers. They are qualitative data.
So a) and d) are qualitative; b) and c) are quantitative.
Answer. a) qualitative; b) quantitative; c) quantitative; d) qualitative.
Suggest a suitable way to collect data (directly or indirectly) for each question:
a) The time each student in your class takes to travel from home to school.
b) The average yearly rainfall of a city over the last 10 years.
What you need: collect directly when you can measure or ask yourself; indirectly when another organisation has already recorded the data.
Steps:
- Ask: can we collect these data ourselves?
- If not, where could they come from?
Show solution
a) We ask each student or hand out a questionnaire: direct collection.
b) We cannot go back in time to measure, so we look up the weather service's records: indirect collection.
So a) direct; b) indirect.
Answer. a) direct; b) indirect.
The numbers of boys in five classes in grade 8 are recorded as 18; 20; 2.5; 19; 22. Which value is not reasonable? Why?
What you need: a number of people must be a whole number.
Steps:
- Ask: can there be half a student?
- Point out the unsuitable value.
Show solution
The number of boys is a count, so it must be a whole number. We see that 2.5 is not a whole number, so it is not reasonable; it may be a recording error (perhaps 25).
So the value 2.5 is not reasonable.
Answer. 2.5.
The numbers of brothers and sisters of 20 students are recorded as 1, 2, 0, 1, 1, 3, 2, 1, 0, 2, 1, 1, 2, 0, 1, 2, 1, 0, 1, 2. Build a table of frequencies and relative frequencies.
What you need: frequency is the number of occurrences; relative frequency is the frequency divided by 20.
Steps:
- Count how many times 0, 1, 2, 3 occur.
- Divide by 20 and write as a percentage.
Show solution
The frequency of a value is the number of times it occurs; the relative frequency is the frequency divided by the total number of students, written as a percentage. The total is 20 students.
Counting in the data, we get: the value 0 occurs 4 times, the value 1 occurs 9 times, the value 2 occurs 6 times, the value 3 occurs 1 time.
The relative frequencies are \frac{4}{20}=20\%,\qquad\frac{9}{20}=45\%,\qquad\frac{6}{20}=30\%,\qquad\frac{1}{20}=5\%.
We get the table:
| Number of siblings | 0 | 1 | 2 | 3 | Total |
|---|---|---|---|---|---|
| Frequency | 4 | 9 | 6 | 1 | 20 |
| Relative frequency | 20\% | 45\% | 30\% | 5\% | 100\% |
Check: 4+9+6+1=20 and 20\%+45\%+30\%+5\%=100\%.
So the table of frequencies and relative frequencies is the one above.
Answer. Frequencies 4; 9; 6; 1, relative frequencies 20\%; 45\%; 30\%; 5\%.
From the frequency table in the previous exercise, describe the bar chart for the number of siblings (the heights of the bars and which bar is tallest).
What you need: the height of a bar equals the frequency.
Steps:
- Each value 0, 1, 2, 3 has its own bar.
- Compare the frequencies.
Show solution
The bars for 0, 1, 2, 3 siblings have heights 4; 9; 6; 1. The bar for 1 sibling is the tallest (9) and the bar for 3 siblings is the shortest (1).
So most students have 1 brother or sister.
Answer. Bar heights: 4; 9; 6; 1.
A survey of 40 students about their favourite type of book gives: Stories 16, Science 12, Poetry 4, Other 8. Find the relative frequencies and the matching sector angles of a pie chart.
What you need: the sector angle is the relative frequency times 360^\circ.
Steps:
- Divide each frequency by 40.
- Multiply by 360^\circ.
Show solution
The relative frequency of each type is the number of students who chose it divided by the total number surveyed (40 students). A full circle is 360^\circ, so the sector angle of each type equals its relative frequency times 360^\circ.
- Stories: \dfrac{16}{40}=40\%; angle 40\%\cdot360^\circ=144^\circ.
- Science: \dfrac{12}{40}=30\%; angle 30\%\cdot360^\circ=108^\circ.
- Poetry: \dfrac{4}{40}=10\%; angle 10\%\cdot360^\circ=36^\circ.
- Other: \dfrac{8}{40}=20\%; angle 20\%\cdot360^\circ=72^\circ.
Check: 144+108+36+72=360 and 40\%+30\%+10\%+20\%=100\%.
So the relative frequencies of the four types are 40\%, 30\%, 10\%, 20\%, and the matching angles are 144^\circ, 108^\circ, 36^\circ, 72^\circ.
Answer. 40\%, 30\%, 10\%, 20\%; angles 144^\circ, 108^\circ, 36^\circ, 72^\circ.
Choose the most suitable chart (bar chart, double bar chart, pie chart, line graph) for each purpose:
a) Compare the number of students in four classes of grade 8.
b) Follow the outdoor temperature every hour during a day.
c) Show the percentage of each item in a family's budget.
d) Compare the number of boys and girls in each of four classes.
What you need: see the table of charts above.
Steps:
- Decide the purpose: comparison, proportion or trend?
- Choose the matching chart.
Show solution
Each type of chart suits a particular purpose: a bar chart compares groups; a double bar chart compares two data sets on the same groups; a pie chart shows the proportions of a whole; a line graph shows change over time.
a) Comparing the number of students in four classes means comparing groups, so we use a bar chart.
b) The temperature changes hour by hour, that is, over time, so we use a line graph.
c) The percentages of the items are proportions of the whole budget, so we use a pie chart.
d) We compare two data sets (boys and girls) on the same four classes, so we use a double bar chart.
So a) bar chart; b) line graph; c) pie chart; d) double bar chart.
Answer. a) bar chart; b) line graph; c) pie chart; d) double bar chart.
Suppose a family spends 15 million dong a month: food 40\%, housing 25\%, education 15\%, other 20\%. Find the amount for each item and the angle of the "housing" sector in a pie chart.
What you need: amount equals percentage times total; angle equals percentage times 360^\circ.
Steps:
- Work out 15\cdot\dfrac{p}{100} for each item.
- Work out 25\%\cdot360^\circ.
Show solution
We have: food 15\cdot0.4=6 (million dong); housing 15\cdot0.25=3.75 (million dong); education 15\cdot0.15=2.25 (million dong); other 15\cdot0.2=3 (million dong). The housing angle is 25\%\cdot360^\circ=90^\circ.
Check: 6+3.75+2.25+3=15.
So the items are 6; 3.75; 2.25; 3 million dong and the housing sector is 90^\circ.
Answer. 6; 3.75; 2.25; 3 million dong; 90^\circ.
Suppose a student records the number of glasses of water drunk each day for five days: 6; 8; 5; 8; 7. Build a frequency table of the values and say which value occurs most often.
What you need: frequency is the number of times a value occurs.
Steps:
- List the different values.
- Count how many times each occurs.
Show solution
The different values are 5, 6, 7, 8 with frequencies 1, 1, 1, 2; the total is 5.
So the value 8 occurs most often (2 times).
Answer. Frequencies 1; 1; 1; 2; the value 8.
A survey of 50 students about their favourite subject is shown in a pie chart. The sector for Maths has angle 108^\circ; English takes 24\%; Science has 10 students; the rest chose other subjects.
a) How many students chose Maths?
b) How many students chose other subjects, and what percentage is that?
What you need: the number of students is \dfrac{\text{angle}}{360^\circ}\cdot50 or percentage times 50.
Steps:
- a) Find the relative frequency of Maths from the angle 108^\circ.
- b) Find the number for English, then subtract the known groups from 50.
Show solution
a) The relative frequency of Maths is \dfrac{108}{360}=30\%, so 50\cdot0.3=15 students chose Maths.
b) English has 50\cdot0.24=12 students. The number choosing other subjects is 50-15-12-10=13, which is \dfrac{13}{50}=26\%.
So 15 students chose Maths and 13 students (26\%) chose other subjects.
Answer. a) 15 students. b) 13 students, 26\%.
Mini test
Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.
Part I. Multiple choice
The number of siblings is a count. A and C are names, and D is a number used only as a label, so it is qualitative data.
A line graph shows a trend over time. A pie chart shows only the proportions of a whole.
The highest mark is 10, so 11 is not reasonable; the other values lie between 0 and 10.
25\%\cdot360^\circ=90^\circ. A confuses percentages with degrees, D multiplies by 10.
Part II. True or false
| a) Favourite sport is quantitative data. | ||
| b) The relative frequency of Football is 35\%. | ||
| c) The sector for Badminton in a pie chart is 90^\circ. | ||
| d) The relative frequencies add up to 100\%. |
a) False: the names of sports are qualitative data. b) True: \dfrac{14}{40}=35\%. c) True: \dfrac{10}{40}\cdot360^\circ=90^\circ. d) True: the groups cover everything without overlap.
Part III. Short answer
\dfrac{14}{40}\cdot360^\circ=126^\circ.
15\cdot0.15=2.25 (million dong).
Show answers and explanations
- Part I, question 1: B. The number of siblings is a count. A and C are names, and D is a number used only as a label, so it is qualitative data.
- Part I, question 2: C. A line graph shows a trend over time. A pie chart shows only the proportions of a whole.
- Part I, question 3: D. The highest mark is 10, so 11 is not reasonable; the other values lie between 0 and 10.
- Part I, question 4: A. 25\%\cdot360^\circ=90^\circ. A confuses percentages with degrees, D multiplies by 10.
- Part II, question 1: a) False; b) True; c) True; d) True. a) False: the names of sports are qualitative data. b) True: \dfrac{14}{40}=35\%. c) True: \dfrac{10}{40}\cdot360^\circ=90^\circ. d) True: the groups cover everything without overlap.
- Part III, question 1: 126. \dfrac{14}{40}\cdot360^\circ=126^\circ.
- Part III, question 2: 2.25. 15\cdot0.15=2.25 (million dong).