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$.
A survey of $50$ households recorded how many cars each owns. Complete the cumulative columns.
| Cars | Frequency | Cumulative frequency | Cumulative relative frequency |
|---|---|---|---|
| 0 | 4 | 4 | 0.08 |
| 1 | 18 | 22 | 0.44 |
| 2 | 20 | 42 | 0.84 |
| 3 | 8 | 50 | 1 |
The cumulative distribution function
Do the same with probabilities instead of frequencies, and you get the cumulative distribution function.
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$.
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)$.
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.
The times, in seconds, of $50$ runners are grouped below. Estimate the quartiles and median, and state the modal class.
| Time (s) | 10–12 | 12–14 | 14–16 | 16–18 |
|---|---|---|---|---|
| Frequency | 5 | 15 | 20 | 10 |
| Cumulative relative frequency at the upper boundary | 0.1 | 0.4 | 0.8 | 1 |
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$.
In Example 1, how many households own at most $2$ cars?
Cumulative frequency at $2$: $4 + 18 + 20 = 42$.
In Example 1, find the cumulative relative frequency at $1$ car.
$\dfrac{4 + 18}{50} = \dfrac{22}{50} = 0.44$.
Four fair coins are tossed. Find $F(1) = P(X \le 1)$, where $X$ is the number of heads.
$\tfrac{1}{16} + \tfrac{4}{16} = \tfrac{5}{16} = 0.3125$.
For the same $X$, find $P(X \gt 1)$.
$1 - F(1) = 1 - \tfrac{5}{16} = \tfrac{11}{16} = 0.6875$.
Which is true of every cumulative distribution function $F$?
$F(x)$ is a running total of probabilities, so it can only go up or stay level, and it ends at the total probability, $1$.
$X$ is the score on a fair die. $F(4) =$
$P(X \le 4) = P(1) + P(2) + P(3) + P(4) = \tfrac46 = \tfrac23$.
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.
Cumulative relative frequencies at the upper boundaries are $0.2, 0.5, 0.85, 1$. The ogive reaches $0.5$ exactly at $60$ kg, so the median is about $60$ kg.
For the same masses, enter the lower boundary of the modal class.
The highest frequency, $14$, is in the $60$–$70$ class.
Exam style: for the same masses, estimate the interquartile range, correct to one decimal place.
$Q_1$: $0.25$ is between $0.2$ (at $50$) and $0.5$ (at $60$), so $Q_1 \approx 50 + \tfrac{0.05}{0.3} \times 10 \approx 51.67$. $Q_3$: $0.75$ is between $0.5$ (at $60$) and $0.85$ (at $70$), so $Q_3 \approx 60 + \tfrac{0.25}{0.35} \times 10 \approx 67.14$. IQR $\approx 67.14 - 51.67 \approx 15.5$ kg.
Exam style: for the same masses, estimate the percentage of people with mass under $65$ kg.
$65$ is halfway through the $60$–$70$ class, where the ogive rises from $0.5$ to $0.85$. Halfway up is $0.5 + 0.175 = 0.675$, so about $67.5\%$.
Coaching Centre