Collecting and sorting data
A list of 20 answers like “bus, walk, bus, car” says little until someone sorts it. Data are the answers people give. Sort them by kind, then count them.
1Three kinds of data
Class 10B, 20 students, each answered three questions. This page and the rest of the unit use their answers.
Each answer is a different kind of data.
2Tally, then count
10B's answers to “How many pets do you have?”
1 0 2 1 3 1 0 1 2 4 1 0 3 2 1 0 1 3 2 0
| Pets | Tally | Frequency |
|---|---|---|
| 0 | |||| | 5 |
| 1 | |||||| | 7 |
| 2 | |||| | 4 |
| 3 | ||| | 3 |
| 4 | | | 1 |
| Total | 20 |
Make one mark for each answer. Every fifth mark crosses the four before it.
The frequency is how many: count the marks.
3Group times into classes
A class such as 10 < t ≤ 20 holds every time over 10, up to and including 20.
| Time, t (minutes) | Frequency |
|---|---|
| 0 < t ≤ 10 | 4 |
| 10 < t ≤ 20 | 7 |
| 20 < t ≤ 30 | 6 |
| 30 < t ≤ 40 | 2 |
| 40 < t ≤ 60 | 1 |
| Total | 20 |
4Two-way tables
A two-way table sorts by two things at once: here, class and travel.
| walk | bus | car | cycle | Total | |
|---|---|---|---|---|---|
| 10A | 5 | 9 | 4 | 2 | 20 |
| 10B | 8 | 6 | 4 | 2 | 20 |
| Total | 13 | 15 | 8 | 4 | 40 |
1 How many students in 10A go by bus or car?
2 How many of the 15 bus users are in 10B?
- 1.
- 2: read the 10B row, bus column.
Cover 10A, bus. Its row adds to 20, so it is . Check down the column: .
Shoe size is counted in steps, so it is discrete. Height and mass are measured, so they are continuous, even when rounded.
Pictograms and bar charts
The tallest bar or the longest row of symbols shows the most popular answer at a glance. A chart turns a frequency table into a picture. Read the key or the scale first.
1Pictograms: use the key
Key: one symbol stands for 4 students.
2Bar charts: read the height
Each bar's height is a frequency. Read it across from the top of the bar to the scale.
Bars the same width, with gaps. The scale goes up in equal steps from 0.
3Two classes, one chart
4Check the scale
Both charts show 5 and 8 walkers. The right one starts at 4, so 10B's bar looks four times as tall. Read the numbers, not the size of the bars.
Use the bar chart of pets.
1 How many students have 2 or more pets?
2 How many more students have 0 pets than 3 pets?
- 1.
- 2.
Travel types are words, so any order works. Pets are numbers: keep 0, 1, 2, 3, 4 in order.
These charts describe 10A and 10B. They do not tell you about every school, or why one class walks more.
Pie charts
Slices of a cake show at a glance who got the biggest share. A pie chart shares a circle between the groups. The whole circle, degrees, is everyone.
1Degrees for one student
Each of the 20 students gets an equal slice of .
2Every angle: frequency × 18°
| Travel | Students | Angle |
|---|---|---|
| walk | 8 | 8 × 18 = 144° |
| bus | 6 | 6 × 18 = 108° |
| car | 4 | 4 × 18 = 72° |
| cycle | 2 | 2 × 18 = 36° |
| Total | 20 | 360° |
Check: the angles add up to 360°.
The same angle as a fraction of the class:
3Draw it
4From an angle back to a count
The car sector is °. Each student is °.
10A also has 20 students.
1 5 of them walk. What angle is the walk sector?
2 10A's bus sector is 162°. How many go by bus?
- 1°.
- 2.
Two pies the same size can show different totals. Compare angles only when the totals are the same; otherwise compare the numbers.
For 40 students each one gets °. For 30, °.
Stem-and-leaf diagrams
A tally of journey times loses each student’s exact minutes. A stem-and-leaf diagram keeps every value and puts them in order.
1Split each number
The stem is the tens. The leaf is the units.
A key says what one entry means: 2 | 4 means 24 minutes.
210B's times in order
10B's journey times in minutes, in the order they were collected:
18 26 5 12 30 22 9 45 15 12 24 6 32 20 10 26 16 35 12 25
| 0 | 5 6 9 |
| 1 | 0 2 2 2 5 6 8 |
| 2 | 0 2 4 5 6 6 |
| 3 | 0 2 5 |
| 4 | 5 |
Key: 2 | 4 means 24 minutes
3Back to back: two classes
| 10A | 10B | |
|---|---|---|
| 9 6 | 0 | 5 6 9 |
| 9 7 6 4 3 1 | 1 | 0 2 2 2 5 6 8 |
| 7 4 1 0 | 2 | 0 2 4 5 6 6 |
| 8 6 3 0 | 3 | 0 2 5 |
| 5 0 | 4 | 5 |
| 1 0 | 5 |
Key: 6 | 1 | 3 means 16 minutes (10A) and 13 minutes (10B)
10A's leaves go to the left and read outwards from the stem: smallest nearest.
10B's leaves crowd into the 10s and 20s. 10A has more in the 30s, 40s and 50s: their journeys tend to be longer.
Use 10B's diagram. 1 How many took more than 25 minutes? 2 What is the longest time?
- 126, 26, 30, 32, 35, 45: .
- 2minutes.
Keep every stem between the smallest and largest value, even an empty one. Its gap is part of the picture.
Without one, 1 | 2 could mean 12, 1.2 or 120.
Mean, median, mode and range
Nobody remembers 20 journey times, but two numbers can describe them all. An average says what is typical. The range says how spread out the values are.
1Mode, median and range: put the values in order
10B's 20 journey times in order, from the stem-and-leaf diagram:
Mode
the value that comes most often
minutes
Median
the middle value in order
Range
largest − smallest
2Mean: share the total out
If every student's journey took the same time, it would take 20 minutes.
3A missing value: total = mean × number
A new student joins 10B. The mean of the 21 times is now 21 minutes. How long is the new journey?
4Try it
Five friends' journey times, in minutes: 8, 15, 12, 20, 15. Find the mode, median, range and mean.
Order: 8, 12, 15, 15, 20. Mode . Median , the 3rd value. Range . Mean .
With 21 values the median is the th in order.
The mode works for words too: walking is 10B's most common way to travel. The median is not pulled by one very long journey. The mean uses every value.
If no value repeats, there is no mode. If two values tie, give both.
Averages from a frequency table
A frequency table is a short way to write a long list. Each row says how many students gave each value.
1Read a row
| Pets, | Students, |
|---|---|
| 0 | 5 |
| 1 | 7 |
| 2 | 4 |
| 3 | 3 |
| 4 | 1 |
The row | means 7 students each have 1 pet.
The table is the list 0, 0, 0, 0, 0, 1, 1, … written short.
2Mean: multiply each row, add, divide
| Pets, | Students, | |
|---|---|---|
| 0 | 5 | 5 × 0 = 0 |
| 1 | 7 | 7 × 1 = 7 |
| 2 | 4 | 4 × 2 = 8 |
| 3 | 3 | 3 × 3 = 9 |
| 4 | 1 | 1 × 4 = 4 |
| Total | 20 | 28 |
28 pets shared between 20 students is 1.4 each.
3Median, mode and range
| Pets, | Students, | Running total |
|---|---|---|
| 0 | 5 | 5 |
| 1 | 7 | 12 |
| 2 | 4 | 16 |
| 3 | 3 | 19 |
| 4 | 1 | 20 |
4Try it
A team's goals in 10 matches. Find the mean, the median and the mode.
| Goals, | Matches, |
|---|---|
| 0 | 2 |
| 1 | 4 |
| 2 | 3 |
| 3 | 1 |
Mean . Median: the 5th and 6th matches are both in the row for 1, so . Mode .
No one has 1.4 pets. It is an average: the total shared out equally.
The 5 students with no pets add 0 to the total, but they are still 5 of the 20 on the bottom.
Grouped data: the estimated mean
Extended Grouped data hide each value. Use the midpoint of each class to estimate the mean.
1The modal class
| Time, t (minutes) | Frequency |
|---|---|
| 0 < t ≤ 10 | 6 |
| 10 < t ≤ 20 | 14 |
| 20 < t ≤ 30 | 10 |
| 30 < t ≤ 40 | 6 |
| 40 < t ≤ 60 | 4 |
| Total | 40 |
All of Year 10: 10A and 10B together, 40 students.
The modal class has the highest frequency: .
2One midpoint stands for the class
Count every time in a class as its midpoint: halfway between the two ends.
3Estimate the mean
| Time (min) | Midpoint, | ||
|---|---|---|---|
| 0 < t ≤ 10 | 6 | 5 | 6 × 5 = 30 |
| 10 < t ≤ 20 | 14 | 15 | 14 × 15 = 210 |
| 20 < t ≤ 30 | 10 | 25 | 10 × 25 = 250 |
| 30 < t ≤ 40 | 6 | 35 | 6 × 35 = 210 |
| 40 < t ≤ 60 | 4 | 50 | 4 × 50 = 200 |
| Total | 40 | 900 |
4Try it
Estimate the mean time.
| Time (min) | Frequency |
|---|---|
| 0 < t ≤ 10 | 3 |
| 10 < t ≤ 20 | 5 |
| 20 < t ≤ 40 | 2 |
Midpoints 5, 15, 30. minutes.
Group 10B's pets as 0–1 (12 students) and 2–4 (8 students). Midpoints and : , near the exact .
The 14 times in 10 < t ≤ 20 are somewhere from 10 to 20. Using 15 for all of them can be a little high or low.
Comparing two sets of data
One number cannot say whether 10A or 10B gets to school faster. To compare two groups, give an average and a spread, and say what each one means.
1See both classes on one scale
| Journey time (min) | Mean | Median | Range |
|---|---|---|---|
| 10A | 26 | 22.5 | 45 |
| 10B | 20 | 19 | 40 |
2Two sentences: average, then spread
One sentence compares an average. One compares a spread. Each says what it means for the students.
Shop P: mean wait 6 minutes, range 4 minutes. Shop Q: mean wait 9 minutes, range 15 minutes. Write two comparisons.
Shop P's waits are shorter on average: its mean, 6, is lower. Shop P's waits are more consistent: its range, 4, is smaller.
3What the data cannot say
These are 20 students in each class. 10B are quicker on average, but not every one: 10B's slowest takes 45 minutes, longer than most of 10A. The data do not say why, or anything about other schools.
4Quartiles and the interquartile rangeExtended
Quartiles cut the ordered values into four equal parts. The middle half lies between Q₁ and Q₃.
10B's middle half is far less spread out.
Without 10B's 45-minute journey the range drops from 40 to . The IQR leaves out the ends, so one unusual value hardly moves it.
Leave out the median, then find the middle of each half.
Scatter diagrams and correlation
Do students who live further away take longer to get to school? A scatter diagram plots two values for each person as one point. The pattern shows whether the two go together.
1Plot each pair: across, then up
10B also gave their distance from school. Each student is one pair: distance and time.
| Student | Distance (km) | Time (min) |
|---|---|---|
| 8 | 3 | 15 |
| 9 | 2.5 | 16 |
| 10 | 3.5 | 18 |
| 11 | 4.5 | 20 |
2Correlation: the pattern
3Line of best fit
4Estimate from the line
A new student lives away. Go up to the line, then across.
km → about minutes
Backwards: 30 minutes, across to the line, then down: about km.
Use the line of best fit. 1 Estimate the time for 5 km. 2 Estimate the distance for a 20-minute journey.
- 1About minutes.
- 2About km.
Strong: the points lie close to a line. Weak: a wide cloud with only a slight trend.
Ice-cream sales and sunburn both rise in summer. They correlate, but one does not cause the other.
Three or four points are not enough to show a pattern.
Cumulative frequency
Extended A school might want to know how many of Year 10 get there in 30 minutes or less. Cumulative frequency is a running total. Its curve gives the median and quartiles.
1Running totals
| Time, t (minutes) | Frequency | Cumulative frequency |
|---|---|---|
| 0 < t ≤ 10 | 6 | 6 |
| 10 < t ≤ 20 | 14 | 6 + 14 = 20 |
| 20 < t ≤ 30 | 10 | 20 + 10 = 30 |
| 30 < t ≤ 40 | 6 | 30 + 6 = 36 |
| 40 < t ≤ 60 | 4 | 36 + 4 = 40 |
Year 10's 40 times. Each running total counts every student up to the end of that class.
The last running total is everyone: 40.
2Plot the curve
3Median and quartiles
| Across from | Read down | |
|---|---|---|
| Q₁ | 40 ÷ 4 = 10 | 13 min |
| median | 40 ÷ 2 = 20 | 20 min |
| Q₃ | 3 × 40 ÷ 4 = 30 | 30 min |
4Read a count
How many took more than ? Go up from 25 to the curve, then across: about took 25 minutes or less.
Use the curve. 1 How many took 10 minutes or less? 2 Estimate how many took between 10 and 30 minutes.
- 1.
- 2.
The 90th percentile is 90% of the way up: . Across from 36: about minutes.
The curve guesses how the times spread out inside each class, so every reading is an estimate.
Histograms
Extended A wide class catches more students just because it is wide. In a histogram the area of each bar is its frequency, so bars can have different widths.
1Why height is not enough
The class 40 to 60 is twice as wide. With frequency as height, its 4 students look like more than the 6 next to them. With density as height, the areas are fair.
2Frequency density
| Time (min) | Frequency | Width | Density |
|---|---|---|---|
| 0 < t ≤ 10 | 6 | 10 | 0.6 |
| 10 < t ≤ 20 | 14 | 10 | 1.4 |
| 20 < t ≤ 30 | 10 | 10 | 1 |
| 30 < t ≤ 40 | 6 | 10 | 0.6 |
| 40 < t ≤ 60 | 4 | 20 | 0.2 |
3Area back to frequency
The last bar is 20 wide and 0.2 high. Its area is the frequency.
4Part of a bar
Estimate how many took 15 to 25 minutes. Take the part of each bar inside it.
- 1.
- 2.
If every class is the same width, the bars compare like a bar chart. The axis is still frequency density.
Work out each density, choose a scale that reaches the largest, and draw touching bars from class end to class end.