Collecting and displaying data
Categorical and numerical data, census and sample, bias in sampling, and choosing displays such as column graphs, dot plots, stem-and-leaf plots and histograms.
Before you can calculate anything, you need to know what kind of data you have and where it came from. A survey that asks the wrong people, or a graph that suits the wrong kind of data, can make any statistic misleading.
Types of data
| Type | What it is | Examples |
|---|---|---|
| Categorical (nominal) | Labels or groups with no order | eye colour, favourite sport |
| Categorical (ordinal) | Groups with a natural order | shirt size S, M, L; survey ratings |
| Numerical discrete | Counted, so only certain values | number of pets, goals scored |
| Numerical continuous | Measured, so any value in a range | height, time, temperature |
Census or sample?
A census collects data from every member of the population. A sample collects data from part of it. Samples are cheaper and faster, and sometimes they are the only option: you can't crash-test every car a factory makes.
A good sample is random and large enough to represent the whole population. A sample is biased if some groups are more likely to be chosen than others.
Frequency tables
A frequency table counts how often each value appears. A tally column helps while counting. Adding the frequencies gives the total number of data values.
For continuous data or widely spread data, group the values into class intervals such as $10$–$\lt 20$ (from $10$ up to, but not including, $20$).
Choosing a display
- Column graph or dot plot: categorical data or small sets of discrete data.
- Stem-and-leaf plot: small sets of numerical data. It keeps every value and shows the shape.
- Histogram: grouped numerical data. The columns touch, because the intervals run on from each other. A frequency polygon joins the midpoints of the tops of the columns.
This stem-and-leaf plot shows the ages of $9$ people at a meeting. The stem is the tens digit, the leaf is the units digit.
| Stem | Leaf |
|---|---|
| $3$ | $2 \ 5 \ 8$ |
| $4$ | $0 \ 1 \ 1 \ 6$ |
| $5$ | $3 \ 7$ |
Key: $3 \mid 2$ means $32$. The youngest person is $32$ and the oldest is $57$. Most people are in their forties.
A distribution is symmetric if it looks roughly the same on both sides of the centre. It is skewed if the data bunches up at one end and trails off at the other.
Using the stem-and-leaf plot above, what percentage of the people are under $40$?
Your turn
A class records the number of goals each student scored in a netball season. Is this data categorical, discrete or continuous? Which display would suit it?
Show the working
Goals are counted, so it is numerical discrete data. A dot plot or column graph would suit a single class. A stem-and-leaf plot would also work if the numbers are spread out.
Eye colour is:
Eye colours are labels, not numbers, so the data is categorical.
The number of siblings each student has is:
Siblings are counted, so only whole-number values are possible: discrete.
The heights of students are:
Height is measured and can take any value in a range: continuous.
A factory wants to know how long its light bulbs last before they burn out. It should use:
Testing a bulb destroys it. Testing every bulb would leave none to sell, so a sample is needed.
Which survey is most likely to be biased?
People at a football match are much more likely to love football than the general public.
Use the stem-and-leaf plot of ages ($3 \mid 2 \ 5 \ 8$; $4 \mid 0 \ 1 \ 1 \ 6$; $5 \mid 3 \ 7$). How many people are older than $40$?
Ages over $40$: $41$, $41$, $46$, $53$, $57$. That's $5$ people ($40$ itself is not older than $40$).
A stem-and-leaf plot of ages reads $3 \mid 2 \ 5 \ 8$; $4 \mid 0 \ 1 \ 1 \ 6$; $5 \mid 3 \ 7$. What is the oldest age?
The last leaf on the highest stem: $5 \mid 7$ means $57$.
A frequency table shows quiz scores: score $1$ has frequency $3$, score $2$ has $5$, score $3$ has $8$ and score $4$ has $4$. How many students took the quiz?
Add the frequencies: $3 + 5 + 8 + 4 = 20$.
Challenge: quiz scores are $1$ (frequency $3$), $2$ (frequency $5$), $3$ (frequency $8$) and $4$ (frequency $4$). What percentage of students scored $3$ or more?
$8 + 4 = 12$ students out of $20$. $\dfrac{12}{20} \times 100\% = 60\%$.
Challenge: a histogram has classes $0$–$\lt 10$ (frequency $4$), $10$–$\lt 20$ ($7$), $20$–$\lt 30$ ($9$) and $30$–$\lt 40$ ($5$). How many values are at least $20$?
The classes $20$–$\lt 30$ and $30$–$\lt 40$ hold every value of $20$ or more: $9 + 5 = 14$.
Coaching Centre