Single-variable data: diagrams and histograms
Studying this course? Keep your progress in one place.
Key facts
- In a histogram the area of each bar is the frequency; frequency density .
- A frequency polygon joins points plotted at the class midpoints.
- Cumulative frequency is plotted at the upper class boundary; read the median at and the quartiles at and .
- Outliers lie below or above .
- On a probability histogram the area of a bar is the relative frequency.
Histograms and frequency density
The area of each bar is the frequency, so the vertical axis is frequency density.
A histogram is for continuous grouped data, where class width can vary. There are no gaps between bars.
Rearranging, frequency frequency density class width. If one bar’s height and frequency are known, the scale for all other bars follows from the ratio of areas. To estimate the frequency in part of a class, assume the data are spread evenly.
- Frequency density
- Frequencydensity width
Worked example
A class has frequency 24. Find its frequency density, then the frequency of a class of width 5 and frequency density 3.
- 1
Class width .
- 2
Frequency density .
- 3
For the second class, frequency .
A bar has width 4 and height 2.5 on a frequency density axis. What is its frequency?
Frequency polygons
Plot the frequency at the midpoint of each class and join the points with straight lines.
A frequency polygon shows the shape of the distribution and is useful for comparing two data sets on the same axes. The midpoint of the class is .
- 1
Find midpoints
Add the class boundaries and halve.
- 2
Plot
Frequency against midpoint.
- 3
Join
Join the points with straight lines.
At which -value is the point for the class plotted on a frequency polygon?
Cumulative frequency diagrams
Plot running totals at the upper class boundaries, then read values at , and .
Cumulative frequency is the running total, plotted at the upper class boundary. The median is at , at and at . The interquartile range is .
Within a class use linear interpolation: , with the lower boundary, the class frequency and its width.
- Estimate
Worked example
For plants, 8 are under 10 cm and 30 are under 20 cm. Estimate .
- 1
Position of .
- 2
The 25th value lies in , with frequency .
- 3
.
For , at which cumulative frequency do you read off the upper quartile?
Box and whisker plots and outliers
A box plot shows the minimum, quartiles, median and maximum, with outliers plotted separately.
A box and whisker plot has a box covering the interquartile range. Values beyond the fences are outliers: below or above . Whiskers stop at the most extreme values that are not outliers.
To compare two box plots, compare a measure of average (median) and a measure of spread (IQR or range), in context.
Worked example
Marks have and . Is a mark of 45 an outlier?
- 1
.
- 2
.
- 3
Upper fence .
- 4
.
Which pair of measures should you use to compare two box plots?
Connection to probability
On a relative frequency histogram the total area is 1 and each bar’s area is a probability estimate.
Dividing each frequency by the total gives relative frequency. Dividing by class width as well gives a histogram with total area 1, where the area of a bar estimates the probability of that class.
As classes get narrower and the data set larger, the outline approaches a smooth probability density function. Probability is then the area under the curve.
- Area of a barrelative frequency
- Total area
Worked example
A class contains 60 of 200 eggs. What is the area of its bar on a probability histogram?
- 1
Relative frequency .
- 2
.
What is the total area of a relative frequency density histogram?
Try an exam question
The quartiles of a data set are and . Use the rule to decide whether a value of 55 is an outlier.
[3 marks]
- [1].
- [1]Upper limit .
- [1], so 55 is an outlier.
That's the notes covered.
Carry on to the next subtopic.
Try a question
How many calls lasted between 2 and 6 minutes?
1 mark, marked against the mark scheme
How many calls lasted between 2 and 6 minutes?
1 mark, marked against the mark scheme