13B

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.

Example 1●

Find the median and range of (a) $22, 4, 15, 9, 11$ (b) $14, 3, 20, 8, 12, 5$.

(a) $4, 9, 11, 15, 22$: median $11$, range $22 - 4 = 18$
Sort first. Five scores, so the median is the 3rd.
(b) $3, 5, 8, 12, 14, 20$: median $\dfrac{8 + 12}{2} = 10$, range $20 - 3 = 17$
Six scores: the median is halfway between the 3rd and 4th.

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$45678910
Frequency $f$124610125
Cumulative frequency13713233540
Cumulative relative frequency0.0250.0750.1750.3250.5750.8751
Example 2●●

For the quiz table, find (a) the median (b) an estimate of $P(X \ge 9)$.

The median is the average of the 20th and 21st scores.
n = 40 is even, so we need the 20th and 21st scores.
The 20th and 21st scores are both $8$, so the median is $8$.
Cumulative frequency is 13 up to a score of 7, then 23 up to 8. So scores 14 to 23 in order are all 8.
(b) $P(X \ge 9) \approx \dfrac{40 - 23}{40} = \dfrac{17}{40} = 0.425$
At least 9 is everything except 8 or below. The table gives 23 scores of 8 or below.

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

Flashcards
Median position
$\dfrac{n + 1}{2}$. For even $n$, average the two middle scores.
Cumulative frequency of x
The number of scores $\le x$.
Ogive
Cumulative frequency polygon: joins the top right corners of the columns.
Practice
  1. Find the median of $6, 2, 9, 4, 7$.

  2. Find the median of $12, 5, 8, 15, 3, 10$.

  3. Find the range of $12, 5, 8, 15, 3, 10$.

  4. For $n = 31$ ordered scores, the median is the:

  5. From the quiz table in this section, how many students scored $7$ or less?

  6. From the quiz table, estimate $P(X \le 8)$.

  7. The segments of a cumulative frequency polygon join:

  8. From the quiz table, how many students scored more than $6$?

  9. Exam style: scores $10, 11, 12, 13, 14$ have frequencies $4, 7, 9, 6, 4$. Find the median.

  10. Exam style: from the quiz table, estimate $P(5 \le X \le 8)$.

Formula sheet