Histograms and scatter diagrams
IGCSE Mathematics · Statistics
Histograms with unequal class widths
In a histogram the area of each bar represents the frequency, so the height is not the frequency:
$$\text{frequency density}=\frac{\text{frequency}}{\text{class width}},\qquad \text{frequency}=\text{frequency density}\times\text{class width}$$When all classes have the same width, height and frequency happen to be proportional and the distinction never shows up. Cambridge therefore sets questions with unequal widths precisely to test it.
The vertical axis of a histogram is labelled frequency density. A bar chart, by contrast, has gaps between the bars and a vertical axis of plain frequency.
Scatter diagrams
Describe correlation with two words: a direction and a strength — "strong positive", "weak negative", "no correlation".
- Positive: as one increases, so does the other;
- Negative: as one increases, the other decreases;
- Strong: points lie close to a straight line.
Line of best fit
Draw it so it follows the trend with roughly equal numbers of points either side; it does not have to pass through the origin, and it should pass through the point $(\bar{x},\bar{y})$ if that has been calculated.
Use it to estimate within the range of the data. Reading far outside that range is unreliable, because there is no evidence the pattern continues — a question asking "is this estimate reliable?" almost always wants that answer.
Correlation is not cause
Two quantities can correlate strongly because a third quantity drives both. Saying "$x$ causes $y$" from a scatter diagram alone is not supported.
Worked example: reading and completing a histogram
A histogram has three classes. The class $0\lt x\le 5$ has frequency $30$. The class $15\lt x\le 30$ has frequency density $2.4$. (a) Calculate the frequency density of the first class. (b) Calculate the frequency of the third class.
Solution
(a) The width of the first class is $5-0=5$:
$$\text{frequency density}=\frac{30}{5}=6$$(b) The width of the third class is $30-15=15$:
$$\text{frequency}=2.4\times 15=36$$What to notice. The third class has a frequency density of $2.4$ — lower than the first class ($6$) — but contains more data ($36$ compared with $30$), because it is three times as wide.
This is exactly what a histogram is designed to show, and also what a reader of bar heights will understand backwards. Anyone who looks at the picture and concludes "the first class has the most because its bar is tallest" has read it completely wrongly — a tall bar means the data is dense, not that there is a lot of data.
A way to remember: frequency density answers the question "how many values per unit of width", just as population density answers "how many people per km²". A small district can be more crowded and still have fewer people than a large province.
Worked example: correlation and the limits of the line of best fit
A scatter graph compares the number of hours of revision (from $0$ to $12$ hours) with the test marks of $20$ students; the points lie fairly close to an upward-sloping line. (a) Describe the correlation. (b) Use the line of best fit to estimate the mark of a student who revised for $7$ hours, and of a student who revised for $25$ hours; comment on the reliability of each estimate. (c) A student concludes "more hours of revision makes the marks higher". Comment.
Solution
(a) Strong positive correlation: more hours of revision tend to go with higher marks, and the points lie close to the straight line.
Two words, not one: "positive" gives the direction, "strong" gives how tightly the points cluster. Writing only "positive" loses half the marks.
(b) For $7$ hours: read straight from the line of best fit. The value $7$ lies within the range of the data ($0$ to $12$), so this estimate is reliable.
For $25$ hours: this value lies far outside the range of the data. No student in the sample revised for more than $12$ hours, so there is no evidence that the linear trend still holds there. In practice marks have a ceiling, so the extended line would give a mark that cannot be reached. This estimate is not reliable.
(c) The graph only shows that the two quantities move together, not which one causes the other.
There may be a third factor driving both — for example, a student who is highly motivated both revises for more hours and absorbs more in class. Then revision hours and marks rise together with motivation, with neither causing the other.
So that causal conclusion has no basis from this graph alone. To claim causation requires a different study design, not a scatter graph.