| Type | Meaning | Example |
|---|---|---|
| Qualitative (categorical) | Non-numerical descriptions. | Eye colour, type of car |
| Quantitative, discrete | Numerical, can only take particular values. | Number of siblings, shoe size |
| Quantitative, continuous | Numerical, can take any value in a range. | Time, mass, height |
| Diagram | Best for | Shows well |
|---|---|---|
| Histogram | Grouped continuous data, especially with unequal classes | Shape of the distribution |
| Cumulative frequency graph | Grouped continuous data | Median, quartiles, percentiles |
| Box plot | Summarising a single variable; comparing two or more data sets | Median, spread, skew, outliers |
| Scatter diagram | Two quantitative variables measured on the same items | Correlation and relationships |
The commuting times of $80$ workers are shown. Calculate the frequency densities and draw a histogram.
| Time $t$ (min) | Frequency | Class width | Frequency density |
|---|---|---|---|
| $0 \leqslant t < 10$ | $8$ | $10$ | $0.8$ |
| $10 \leqslant t < 20$ | $22$ | $10$ | $2.2$ |
| $20 \leqslant t < 30$ | $26$ | $10$ | $2.6$ |
| $30 \leqslant t < 50$ | $18$ | $20$ | $0.9$ |
| $50 \leqslant t < 80$ | $6$ | $30$ | $0.2$ |
Using the histogram above, estimate how many workers took between $25$ and $40$ minutes.
On a histogram, a bar $1.5$ cm wide and $8$ cm tall represents a frequency of $36$. Another bar is $3$ cm wide and $2$ cm tall. What frequency does it represent?
Cumulative frequency is a running total. Plot each cumulative frequency at the upper class boundary, then join the points with a smooth curve or with straight lines.
Use the commuting data to estimate the median, the interquartile range and the $90$th percentile.
| Time less than | $10$ | $20$ | $30$ | $50$ | $80$ |
|---|---|---|---|---|---|
| Cumulative frequency | $8$ | $30$ | $56$ | $74$ | $80$ |
(the question will always tell you which rule to use โ see Correlation and Outliers)
Test marks for two groups are summarised below. In group B the highest mark, $95$, is followed by $64$. Identify any outliers, draw box plots and compare the groups.
| Lowest | $Q_1$ | Median | $Q_3$ | Highest | |
|---|---|---|---|---|---|
| Group A | $12$ | $31$ | $42$ | $50$ | $71$ |
| Group B | $20$ | $38$ | $47$ | $54$ | $95$ |
When two variables are measured on each item (bivariate data), plot one against the other. The explanatory (independent) variable goes on the horizontal axis and the response (dependent) variable on the vertical axis.
Suggest a suitable diagram for each: (a) the ages of $200$ people at a concert, grouped into unequal classes; (b) the reaction times of two groups, to compare them; (c) the arm span and height of $30$ students.
Interpreting scatter diagrams, correlation and regression lines is covered in Correlation and Outliers.
Frequency density
Frequency $\div$ class width.
Histogram
Area $\propto$ frequency; no gaps between bars.
Unknown scale
Find frequency per unit area from a known bar.
Cumulative frequency
Plot at upper class boundaries.
Grouped median
Read at $\tfrac{n}{2}$; quartiles at $\tfrac{n}{4}$, $\tfrac{3n}{4}$.
Box plot
Min, $Q_1$, median, $Q_3$, max; outliers as crosses.
Skew
Longer upper part $\Rightarrow$ positive skew.
Comparing
One location + one spread, with numbers, in context.
Scatter
Explanatory on $x$-axis, response on $y$-axis.
Calculate the frequency densities for this table of leaf lengths $l$ cm: $0 \leqslant l < 5$: $10$; $5 \leqslant l < 10$: $18$; $10 \leqslant l < 20$: $24$; $20 \leqslant l < 40$: $16$.
โถ Show solution
$10 \div 5 = 2$, $18 \div 5 = 3.6$, $24 \div 10 = 2.4$, $16 \div 20 = 0.8$.
On a histogram, the bar for $15 \leqslant x < 25$ has frequency density $3.4$. How many values lie in this class?
โถ Show solution
Frequency $= 3.4 \times 10 = 34$.
The heights $h$ cm of $50$ seedlings are: $0 \leqslant h < 4$: $7$; $4 \leqslant h < 8$: $13$; $8 \leqslant h < 12$: $18$; $12 \leqslant h < 20$: $12$. Use interpolation to estimate the median and interquartile range.
โถ Show solution
Cumulative frequencies: $7, 20, 38, 50$.
Median ($25$th): $8 + \dfrac{25 - 20}{18} \times 4 = 9.11$ cm.
$Q_1$ ($12.5$th): $4 + \dfrac{12.5 - 7}{13} \times 4 = 5.69$ cm.
$Q_3$ ($37.5$th): $8 + \dfrac{37.5 - 20}{18} \times 4 = 11.89$ cm.
IQR $\approx 11.89 - 5.69 = 6.20$ cm.
A data set has $Q_1 = 22$, median $27$ and $Q_3 = 31$. Its two smallest values are $8$ and $12$, and its two largest are $40$ and $52$. Using the $1.5 \times \text{IQR}$ rule, identify any outliers and state where the whiskers of the box plot should end.
โถ Show solution
IQR $= 9$, so $1.5 \times 9 = 13.5$.
Lower fence $22 - 13.5 = 8.5$; upper fence $31 + 13.5 = 44.5$.
$8 < 8.5$ and $52 > 44.5$, so both $8$ and $52$ are outliers.
The whiskers end at $12$ and $40$, with $8$ and $52$ marked as crosses.
Box plots of the times (in seconds) taken to complete a puzzle show: Class X median $58$, IQR $20$; Class Y median $64$, IQR $12$. Compare the two classes.
โถ Show solution
Class X has the lower median ($58 < 64$), so on average Class X completed the puzzle more quickly.
Class Y has the smaller IQR ($12 < 20$), so Class Y's times were more consistent.
On a histogram, the class $20 \leqslant x < 30$ has frequency $15$ and is drawn with height $3$ cm. The class $30 \leqslant x < 50$ is drawn with height $1.2$ cm, on the same horizontal scale. Find its frequency.
โถ Show solution
Heights are proportional to frequency density. First class: density $15 \div 10 = 1.5$ is drawn as $3$ cm, so $1$ cm represents a density of $0.5$.
Second class: density $1.2 \times 0.5 = 0.6$, so frequency $= 0.6 \times 20 = 12$.
Explain why a histogram with unequal class widths should use frequency density rather than frequency on the vertical axis.
โถ Show solution
Wider classes naturally contain more values. Using frequency would make wide classes look more important than they are. With frequency density, the area of each bar is proportional to its frequency, so the diagram gives a true picture of how the data are distributed.
A student draws a pie chart to show the heights of $40$ trees, using classes $0$โ$5$ m, $5$โ$10$ m, $10$โ$20$ m and $20$โ$40$ m. Give a criticism and suggest a better diagram.
โถ Show solution
Height is continuous numerical data with unequal classes; a pie chart hides the order of the classes and their different widths, so the shape of the distribution cannot be seen.
A histogram using frequency density (or a cumulative frequency graph) would be better.
On a histogram, a bar $2$ cm wide and $6$ cm tall represents $24$ people. How many people are represented by a bar $4$ cm wide and $1.5$ cm tall?
โถ Show solution
$12$ cm$^2$ represents $24$, so $1$ cm$^2$ represents $2$ people.
Second bar: $4 \times 1.5 = 6$ cm$^2$, so $12$ people.
The weekly time $h$ hours spent on homework by $60$ students is shown.
| $h$ | $0 \leqslant h < 2$ | $2 \leqslant h < 4$ | $4 \leqslant h < 6$ | $6 \leqslant h < 10$ | $10 \leqslant h < 15$ |
|---|---|---|---|---|---|
| Frequency | $6$ | $15$ | $20$ | $14$ | $5$ |
(a) Find the frequency density for each class. (b) Estimate the number of students who spent more than $8$ hours. (c) Estimate the median and interquartile range. (d) A second group of students has median $6.2$ hours and IQR $2.5$ hours. Compare the two groups. (e) Describe the skew of the first group, giving a reason.
โถ Show solution
(a) $6 \div 2 = 3$, $15 \div 2 = 7.5$, $20 \div 2 = 10$, $14 \div 4 = 3.5$, $5 \div 5 = 1$.
(b) From $8$ to $10$: $2 \times 3.5 = 7$; plus all $5$ in the last class. Estimate $12$ students.
(c) Cumulative frequencies: $6, 21, 41, 55, 60$.
Median ($30$th): $4 + \dfrac{30 - 21}{20} \times 2 = 4.9$ hours.
$Q_1$ ($15$th): $2 + \dfrac{15 - 6}{15} \times 2 = 3.2$ hours. $Q_3$ ($45$th): $6 + \dfrac{45 - 41}{14} \times 4 = 7.14$ hours.
IQR $\approx 7.14 - 3.2 = 3.94$ hours.
(d) The second group has a higher median ($6.2 > 4.9$), so on average they spent longer on homework. They also have a smaller IQR ($2.5 < 3.94$), so their times were more consistent.
(e) $Q_2 - Q_1 = 1.7$ and $Q_3 - Q_2 = 2.24$, so the upper half is more spread out: positive skew, consistent with the long tail of the histogram to the right.