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".

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.

0–5 5–15 15–30 fd 6 fd 3,6 fd 2,4 frequency density The LOWEST bar contains the MOST data 6 × 5 = 30 3,6 × 10 = 36 2,4 × 15 = 36 Frequency = AREA of the bar, not the height.
These three bars are the whole reason histograms exist: the lowest bar contains more data than the tallest bar, because it is three times as wide. Reading the height is reading it wrongly.

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.

Common mistake

Reading the height of a histogram bar as if it were the frequency. This trap survives because throughout earlier years, every bar chart the student met had frequency on the vertical axis and all classes of equal width — so "a taller bar means more" has become a reflex. In exactly one moment in the whole syllabus that reflex is wrong, and Cambridge sets the paper at exactly that moment: unequal class widths. The result is a working that concludes "the class $0$–$5$ is the largest" when the class $15$–$30$ is the largest, and every calculation after that goes wrong too. How to block it: look at the label on the vertical axis before looking at the bars. If it says "frequency density" then frequency is the area, and you must multiply the height by the width before comparing anything.

Key takeaway

In a histogram, frequency is the area of the bar, not the height — a rule that only shows itself when the classes have different widths, and that is exactly when the paper asks. Correlation is described with two words, direction and strength. An estimate is only reliable within the range of the data. And correlation, however strong, can never prove causation.

← Grouped data, cumulative frequency and box plots · All IGCSE Mathematics lessons · Practice IGCSE Mathematics questions (free, instant scoring)