frequency density = class width frequency
On this page
Before you start
This page is easier if you are comfortable with:
What this topic covers
On a histogram the area is the frequency, so the height is frequency density. A box plot uses the five-number summary and the quartiles and interquartile range; unusual values are flagged by the outliers rule. Cumulative methods are on cumulative frequency .
Each part of this topic has its own page with the formula, worked examples and a solver: Outliers (rule of thumb), Frequency density (histograms), Quartiles and interquartile range, Moving average , Pie chart angle , Cumulative frequency: median and quartiles, Five-number summary (box plot).
Closely related topics: Averages and spread, Cumulative frequency , Regression and correlation , Probability distributions .
What is it used for? Histograms show grouped data with area, and box plots summarise the quartiles and extremes. Both help you compare distributions quickly.
Reading frequencies from a histogram with unequal class widths. Comparing two data sets on box plots. Spotting outliers .
How to solve it
Frequency density = frequency ÷ class width. The area of each bar is then the frequency. For a box plot find the minimum, lower quartile, median, upper quartile and maximum. Quartile positions here are (n+1)/4, (n+1)/2 and 3(n+1)/4. Outliers lie beyond 1.5 × IQR outside the quartiles.
Worked examples
The examples marked with a button were worked out by the solver on this page. You can try each one yourself.
Example 1: histogram 0-10: 5, 10-30: 12, 30-40: 8 Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: histogram 0-10: 5, 10-30: 12, 30-40: 8
Histogram Answer checked
Answer
Heights (frequency density): 0.5 , 0.6 , 0.8 \text{Heights (frequency density): } 0.5,\ 0.6,\ 0.8 Heights (frequency density): 0.5 , 0.6 , 0.8 Histogram -5 0 5 10 15 20 25 30 35 40 45 0 0.2 0.4 0.6 0.8 Histogram value frequency density Graph with x from -6 to 46 and y from -0.12 to 0.92. Shows bars (3). Frequency density = frequency ÷ class width
In a histogram the AREA of a bar (not its height) shows the frequency.
F D = w f
Work out each class
class 0 − 10 10 − 30 30 − 40 w 10 20 10 f 5 12 8 F D 10 5 = 0.5 20 12 = 0.6 10 8 = 0.8
Check: the bar areas add up to the total frequency
∑ ( F D × w ) = 25 = 25 ✓
Example 2: histogram 0-5: 10, 5-10: 20 Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: histogram 0-5: 10, 5-10: 20
Histogram Answer checked
Answer
Heights (frequency density): 2 , 4 \text{Heights (frequency density): } 2,\ 4 Heights (frequency density): 2 , 4 Histogram 0 2 4 6 8 10 0 1 2 3 4 Histogram value frequency density Graph with x from -1.5 to 11.5 and y from -0.6 to 4.6. Shows bars (2). Frequency density = frequency ÷ class width
In a histogram the AREA of a bar (not its height) shows the frequency.
F D = w f
Work out each class
class 0 − 5 5 − 10 w 5 5 f 10 20 F D 5 10 = 2 5 20 = 4
Check: the bar areas add up to the total frequency
∑ ( F D × w ) = 30 = 30 ✓
Example 3: box plot of 3, 5, 8, 12, 15, 21 Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: box plot of 3, 5, 8, 12, 15, 21
Box plot Answer checked
Answer
min 3 , Q 1 = 4.5 , median 10 , Q 3 = 16.5 , max 21 \text{min } 3,\ Q_1 = 4.5,\ \text{median } 10,\ Q_3 = 16.5,\ \text{max } 21 min 3 , Q 1 = 4.5 , median 10 , Q 3 = 16.5 , max 21 I QR = 12
Box plot 2 4 6 8 10 12 14 16 18 20 22 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 Box plot value Graph with x from 0.3 to 23.7 and y from 0 to 2. Shows a box plot from 3 to 21 with median 10. Put the values in order
3 , 5 , 8 , 12 , 15 , 21
Five-number summary
Quartile positions are 4 n + 1 , 2 n + 1 , 4 3 ( n + 1 ) , going between two values when the position is not whole.
min = 3 , Q 1 = 4.5 , median = 10 , Q 3 = 16.5 , max = 21
Interquartile range
I QR = Q 3 − Q 1 = 16.5 − 4.5 = 12
Outlier fences (1.5 × IQR rule)
No values are outside the fences, so there are no outliers.
Q 1 − 1.5 I QR = − 13.5 , Q 3 + 1.5 I QR = 34.5
Check: about a quarter, a half and three quarters of the values are at or below Q1, median, Q3
proportions 0.167 , 0.5 , 0.833 ✓
Example 4: box plot of 2, 4, 4, 5, 6, 7, 8, 9, 30 Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: box plot of 2, 4, 4, 5, 6, 7, 8, 9, 30
Box plot Answer checked
Answer
min 2 , Q 1 = 4 , median 6 , Q 3 = 8.5 , max 30 \text{min } 2,\ Q_1 = 4,\ \text{median } 6,\ Q_3 = 8.5,\ \text{max } 30 min 2 , Q 1 = 4 , median 6 , Q 3 = 8.5 , max 30 I QR = 4.5
Box plot 0 5 10 15 20 25 30 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 Box plot value Graph with x from -2.2 to 34.2 and y from 0 to 2. Shows a box plot from 2 to 9 with median 6; outliers (1). Put the values in order
2 , 4 , 4 , 5 , 6 , 7 , 8 , 9 , 30
Five-number summary
Quartile positions are 4 n + 1 , 2 n + 1 , 4 3 ( n + 1 ) , going between two values when the position is not whole.
min = 2 , Q 1 = 4 , median = 6 , Q 3 = 8.5 , max = 30
Interquartile range
I QR = Q 3 − Q 1 = 8.5 − 4 = 4.5
Outlier fences (1.5 × IQR rule)
Values outside the fences are outliers: 30. The whiskers stop at the most extreme values inside the fences.
Q 1 − 1.5 I QR = − 2.75 , Q 3 + 1.5 I QR = 15.25
Check: about a quarter, a half and three quarters of the values are at or below Q1, median, Q3
proportions 0.333 , 0.556 , 0.778 ✓
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
Frequency density 12 in a class of width 20: 0.6
Frequency ÷ width.
Frequency from a bar density 0.5, width 10: 5
Density × width.
IQR Q1 = 5, Q3 = 15: 10
Q3 − Q1.
Outlier fence Q3 + 1.5 IQR = 30
Above this is unusual.
Word problems
On a histogram, frequency density = frequency ÷ class width and area = frequency. A box plot shows minimum, Q1, median, Q3 and maximum.
Density Class 10–30 has frequency 12.
Width 20 Density 12 ÷ 20 = 0.6 Check: 0.6 × 20 = 12 ✓ 0.6
Frequency A bar has density 0.5 and width 10.
Frequency 0.5 × 10 Check: ✓ 5
Box plot Higher Box plot of 3, 5, 8, 12, 15, 21: median.
Middle two 8 and 12 Average 10 Check: ✓ 10
Outlier Higher Data 2, 4, 4, 5, 6, 7, 8, 9, 30: Q3 = 8.5, Q1 = 4. Upper fence.
IQR 4.5 Fence 8.5 + 6.75 Check: 30 is above 15.25, so an outlier ✓ 15.25
Common mistakes
Plotting frequency as the height height = frequency ✗
height = frequency density ✓
Unequal widths.
Reading the area as the height height 0.6 means 0.6 people ✗
area gives people ✓
Multiply by width.
Median not at the centre of the box wrong ✗
any position ✓
The median can be off centre.
Whiskers always to the extremes to the max ✗
to the largest non-outlier ✓
Plot outliers separately.
Exam tips
Area = frequency.
Density = frequency ÷ width.
Box plot: five numbers.
IQR = Q3 − Q1.
Fences at 1.5 × IQR.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. Frequency density: frequency 18, width 6 Foundation 3
2. Frequency: density 2.5, width 4 Foundation 10
3. IQR: Q1 = 12, Q3 = 31 Foundation 19
4. Upper fence: Q3 = 20, IQR = 8 Higher 32
5. Median of 2, 4, 6, 8, 10 Higher 6
6. Range of 3, 9, 14, 22 Higher 19
Practice generator Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
Key terms
Histogram A chart where area shows frequency. Frequency density Frequency per unit width. Class width Size of a group. Box plot Chart of the five-number summary. Interquartile range Q3 − Q1. Outlier An extreme value.
Frequently asked questions
What is frequency density? Frequency divided by class width.
What does the area of a bar show? The frequency.
What does a box plot show? The minimum, Q1, median, Q3 and maximum.
Which page covers frequency density? frequency density.
Which page covers the five-number summary? five-number summary.
Which page covers outliers? outliers.