10A

Cumulative frequency and probability

Cumulative frequency and cumulative relative frequency, the cumulative distribution function of a discrete random variable, grouped continuous data, median and quartiles from a cumulative graph, and probability as area under a histogram.

"What fraction of students scored 70 or less?" "Below what time did half the runners finish?" Questions like these are about running totals, not single values. Running totals are also how we will handle continuous variables, where single values have no probability at all.

Cumulative frequency

The cumulative frequency of a value is the number of results less than or equal to it. Dividing by the total gives the cumulative relative frequency, which climbs from near $0$ up to exactly $1$.

Example 1●

A survey of $50$ households recorded how many cars each owns. Complete the cumulative columns.

CarsFrequencyCumulative frequencyCumulative relative frequency
0440.08
118220.44
220420.84
38501
The last cumulative frequency must equal the total, $50$. That is a built-in check.
Each cumulative frequency is the one above it plus the next frequency: 4, then 4 + 18, then 22 + 20, then 42 + 8.
For example, $0.84$ of households own at most $2$ cars.
Divide each cumulative frequency by 50.

The cumulative distribution function

Do the same with probabilities instead of frequencies, and you get the cumulative distribution function.

Cumulative distribution function (CDF)
$$F(x) = P(X \le x)$$

For a discrete variable, $F(x)$ adds the probabilities of all values up to and including $x$. Its graph is a staircase: flat between values, with a jump at each value equal to that value's probability. It never goes down, and it rises from $0$ to $1$.

Example 2: four coins●●

Four fair coins are tossed and $X$ is the number of heads. The probabilities of $0, 1, 2, 3, 4$ heads are $\tfrac{1}{16}, \tfrac{4}{16}, \tfrac{6}{16}, \tfrac{4}{16}, \tfrac{1}{16}$. Find $F(2)$ and $P(X \ge 3)$.

$F(2) = \tfrac{1 + 4 + 6}{16} = \tfrac{11}{16}$
Add the probabilities for 0, 1 and 2 heads.
$P(X \ge 3) = 1 - F(2) = \tfrac{5}{16}$
'At least 3' is everything except 'at most 2', so use the complement.

Grouped data and the ogive

Continuous data such as times or masses is grouped into classes. Plot the cumulative relative frequency at the upper boundary of each class and join the points with straight lines. This graph is called an ogive. To estimate a median or quartile, read across from $0.5$, $0.25$ or $0.75$ to the ogive and down to the $x$-axis. The straight lines mean you are assuming values are spread evenly through each class.

Example 3●●

The times, in seconds, of $50$ runners are grouped below. Estimate the quartiles and median, and state the modal class.

Time (s)10–1212–1414–1616–18
Frequency5152010
Cumulative relative frequency at the upper boundary0.10.40.81
Median $\approx 14 + \tfrac{0.1}{0.4} \times 2 = 14.5$ s
0.5 is between 0.4 (at 14 s) and 0.8 (at 16 s). It is a quarter of the way up that segment, so a quarter of the way across.
$Q_1 \approx 12 + \tfrac{0.15}{0.3} \times 2 = 13$ s
0.25 is between 0.1 (at 12) and 0.4 (at 14): halfway.
$Q_3 \approx 14 + \tfrac{0.35}{0.4} \times 2 = 15.75$ s
0.75 is between 0.4 and 0.8, 0.35 of the 0.4 rise.
Modal class: $14$–$16$ s
The class with the highest frequency.

Probability as area

Draw a histogram where each column's area is its relative frequency. (When the classes are $1$ unit wide, the height and area are the same number.) Then the total area of all the columns is $1$, and the proportion of results in any range is the area over that range.

In Example 3, the proportion of runners between $12$ and $16$ seconds is $0.3 + 0.4 = 0.7$: the area of two columns. Now imagine thousands of runners and very narrow classes. The tops of the columns blur into a smooth curve, and probability becomes the area under a curve. That curve is a probability density function, which is where 10B starts.

Your turn

For the runners in Example 3, estimate the proportion who ran faster than $13$ seconds.

Show the working

$13$ is halfway through the $12$–$14$ class, so the ogive there is halfway from $0.1$ to $0.4$: $0.25$. So about $0.25$ of runners (a quarter) took less than $13$ s. This matches $Q_1 = 13$.

Flashcards
Cumulative distribution function
$F(x) = P(X \le x)$
$P(X gt a)$ from the CDF
$1 - F(a)$
Median from an ogive
Read across from cumulative relative frequency $0.5$.
Practice
  1. In Example 1, how many households own at most $2$ cars?

  2. In Example 1, find the cumulative relative frequency at $1$ car.

  3. Four fair coins are tossed. Find $F(1) = P(X \le 1)$, where $X$ is the number of heads.

  4. For the same $X$, find $P(X \gt 1)$.

  5. Which is true of every cumulative distribution function $F$?

  6. $X$ is the score on a fair die. $F(4) =$

  7. Masses (kg) of $40$ people are grouped as $40$–$50$, $50$–$60$, $60$–$70$, $70$–$80$ with frequencies $8, 12, 14, 6$. Using an ogive, estimate the median mass.

  8. For the same masses, enter the lower boundary of the modal class.

  9. Exam style: for the same masses, estimate the interquartile range, correct to one decimal place.

  10. Exam style: for the same masses, estimate the percentage of people with mass under $65$ kg.

Formula sheet