Cumulative frequency
The median of a list and of a frequency table, cumulative and relative cumulative frequency, and cumulative frequency histograms and polygons.
The mode tells you the most common value, but not where the middle of the data is. The median does, and a running total of the frequencies, the cumulative frequency, finds it without writing the whole list out. The same running total answers "at most" and "at least" probability questions in one step.
The median and range
For $n = 5$ the position is $3$: two scores below, two above. For $n = 6$ it is $3.5$, which means halfway between the 3rd and 4th scores. The range is the highest score minus the lowest, a simple measure of spread.
Find the median and range of (a) $22, 4, 15, 9, 11$ (b) $14, 3, 20, 8, 12, 5$.
Cumulative frequency
The cumulative frequency of a score $x$ is the number of scores less than or equal to $x$. Build it by adding the frequencies as you move right. It always finishes at $n$. Divide by $n$ for the cumulative relative frequency, which estimates $P(X \le x)$.
Forty students sat a quiz marked out of $10$.
| Score $x$ | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|
| Frequency $f$ | 1 | 2 | 4 | 6 | 10 | 12 | 5 |
| Cumulative frequency | 1 | 3 | 7 | 13 | 23 | 35 | 40 |
| Cumulative relative frequency | 0.025 | 0.075 | 0.175 | 0.325 | 0.575 | 0.875 | 1 |
For the quiz table, find (a) the median (b) an estimate of $P(X \ge 9)$.
Cumulative histograms and polygons
A cumulative frequency histogram is drawn like an ordinary one, with columns centred on each score, but the heights are the cumulative frequencies, so the columns never go down. The cumulative frequency polygon, or ogive, joins the top right corner of each column. It starts on the axis at the bottom left corner of the first column, and it does not come back down on the right.
To find the median on the graph, draw a horizontal line at the median position and see which column it meets.
Your turn
Twenty households were asked how many pets they have: $0$ pets, $3$ households; $1$ pet, $5$; $2$ pets, $2$; $3$ pets, $4$; $4$ pets, $6$. Find the median.
Show the working
Cumulative frequencies: $3, 8, 10, 14, 20$. With $n = 20$ we need the 10th and 11th scores. The 10th is $2$ (cumulative reaches $10$ at $2$ pets) and the 11th is $3$. Median $= \dfrac{2 + 3}{2} = 2.5$.
Find the median of $6, 2, 9, 4, 7$.
In order: $2, 4, 6, 7, 9$. The 3rd score is $6$.
Find the median of $12, 5, 8, 15, 3, 10$.
In order: $3, 5, 8, 10, 12, 15$. Average the 3rd and 4th: $\dfrac{8 + 10}{2} = 9$.
Find the range of $12, 5, 8, 15, 3, 10$.
$15 - 3 = 12$.
For $n = 31$ ordered scores, the median is the:
$\dfrac{31 + 1}{2} = 16$. There are $15$ scores either side of the 16th.
From the quiz table in this section, how many students scored $7$ or less?
That is the cumulative frequency of $7$: $1 + 2 + 4 + 6 = 13$.
From the quiz table, estimate $P(X \le 8)$.
Cumulative frequency of $8$ is $23$, so $\dfrac{23}{40} = 0.575$.
The segments of a cumulative frequency polygon join:
A cumulative frequency counts every score up to and including that value, so it is plotted at the right edge of each column.
From the quiz table, how many students scored more than $6$?
$7$ scored $6$ or less, so $40 - 7 = 33$ scored more.
Exam style: scores $10, 11, 12, 13, 14$ have frequencies $4, 7, 9, 6, 4$. Find the median.
$n = 30$, so we need the 15th and 16th scores. Cumulative frequencies: $4, 11, 20, 26, 30$. The cumulative frequency passes $11$ and reaches $20$ at the score $12$, so the 15th and 16th are both $12$. Median $12$.
Exam style: from the quiz table, estimate $P(5 \le X \le 8)$.
$P(5 \le X \le 8) = P(X \le 8) - P(X \le 4) = \dfrac{23}{40} - \dfrac{1}{40} = \dfrac{22}{40} = 0.55$.
Coaching Centre