Data and random variables

Classify random variables as discrete or continuous, construct frequency and cumulative relative frequency tables, and use relative frequency as an estimate of probability.

Worked examples

Classifying a variable and constructing a frequency table

Straightforward

Problem

The scores for 15 students on a maths quiz (out of 5) are listed below.

3,  5,  4,  2,  3,  5,  4,  3,  5,  2,  4,  3,  5,  4,  33,\; 5,\; 4,\; 2,\; 3,\; 5,\; 4,\; 3,\; 5,\; 2,\; 4,\; 3,\; 5,\; 4,\; 3


(a) Is quiz score a discrete or continuous variable? Give a reason.
(b) Construct a frequency table showing the frequency and relative frequency of each score.

Reading the median and quartiles from a cumulative relative frequency table

Moderate

Problem

Twenty-five students recorded the number of hours they spent studying in a week. The results are in the frequency table below.

| Hours | Frequency |
|---|---|
| 0 | 2 |
| 1 | 5 |
| 2 | 8 |
| 3 | 6 |
| 4 | 4 |

(a) Complete the relative frequency and cumulative relative frequency columns.
(b) Estimate the median.
(c) Estimate the lower quartile Q1Q_1.

Using relative frequency as a probability estimate

Challenging

Problem

A fair six-sided die is rolled 90 times. The frequency of each face is shown in the table.

| Face | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Frequency | 17 | 14 | 16 | 13 | 15 | 15 |

(a) Find the relative frequency of rolling an even number.
(b) The theoretical probability of rolling an even number on a fair die is 12\dfrac{1}{2}. Compare this with the relative frequency from part (a) and explain any discrepancy.

Practise

Q1·Straightforward
Which of the following is a discrete random variable?
Q2·Straightforward
Which of the following is a continuous random variable?
Q3·Straightforward
The number of siblings reported by 10 students is listed below.

0,  2,  1,  2,  0,  3,  2,  1,  0,  10,\; 2,\; 1,\; 2,\; 0,\; 3,\; 2,\; 1,\; 0,\; 1


How many students reported having 2 siblings?
Q4·Straightforward
The number of siblings reported by 10 students is listed below.

0,  2,  1,  2,  0,  3,  2,  1,  0,  10,\; 2,\; 1,\; 2,\; 0,\; 3,\; 2,\; 1,\; 0,\; 1


Express the relative frequency of reporting 0 siblings as a fraction in simplest form.
/
Q5·Moderate
The number of books read last month by 25 students is summarised in the table below.

| Books | Frequency | Relative frequency | Cumulative relative frequency |
|---|---|---|---|
| 0 | 3 | 0.12 | 0.12 |
| 1 | 7 | 0.28 | 0.40 |
| 2 | 9 | 0.36 | 0.76 |
| 3 | 4 | 0.16 | 0.92 |
| 4 | 2 | 0.08 | 1.00 |

What is the cumulative relative frequency for 2 books or fewer?
Q6·Moderate
The number of books read last month by 25 students is summarised in the table below.

| Books | Frequency | Relative frequency | Cumulative relative frequency |
|---|---|---|---|
| 0 | 3 | 0.12 | 0.12 |
| 1 | 7 | 0.28 | 0.40 |
| 2 | 9 | 0.36 | 0.76 |
| 3 | 4 | 0.16 | 0.92 |
| 4 | 2 | 0.08 | 1.00 |

Using the cumulative relative frequency, estimate the median number of books read. The median is the first value at which the cumulative relative frequency reaches or exceeds 0.50.
Q7·Moderate
Twenty students sat a quiz scored out of 5. Their scores are summarised below.

| Score | Frequency | Relative frequency | Cumulative relative frequency |
|---|---|---|---|
| 1 | 2 | 0.10 | 0.10 |
| 2 | 4 | 0.20 | 0.30 |
| 3 | 8 | 0.40 | 0.70 |
| 4 | 5 | 0.25 | 0.95 |
| 5 | 1 | 0.05 | 1.00 |

Estimate the lower quartile Q1Q_1. The lower quartile is the first value at which the cumulative relative frequency reaches or exceeds 0.25.
Q8·Moderate
Twenty students sat a quiz scored out of 5. Their scores are summarised below.

| Score | Frequency | Relative frequency | Cumulative relative frequency |
|---|---|---|---|
| 1 | 2 | 0.10 | 0.10 |
| 2 | 4 | 0.20 | 0.30 |
| 3 | 8 | 0.40 | 0.70 |
| 4 | 5 | 0.25 | 0.95 |
| 5 | 1 | 0.05 | 1.00 |

Estimate the upper quartile Q3Q_3. The upper quartile is the first value at which the cumulative relative frequency reaches or exceeds 0.75.
Q9·Challenging
A four-sector spinner labelled 1, 2, 3 and 4 is spun 80 times. Sector 3 lands face up 16 times. Using relative frequency as an estimate of probability, find P(sector 3)P(\text{sector 3}) from this experiment. Give your answer as a fraction in simplest form.
/
Q10·Challenging
For a fair four-sector spinner, the theoretical probability of landing on any one sector is 14=0.25\dfrac{1}{4} = 0.25. In 80 spins, sector 3 appeared 16 times, giving a relative frequency of 15=0.20\dfrac{1}{5} = 0.20. Which statement best explains the discrepancy between these two values?
Q11·Challenging
A factory tests 150 light bulbs from a production run and finds 9 defective bulbs. Use relative frequency to estimate the probability that a randomly selected bulb from this production run is defective. Give your answer as a fraction in simplest form.
/
Q12·Challenging
A fair die is rolled in two experiments.

- Experiment A: 30 rolls, a 6 appears 3 times. Relative frequency =330=0.100= \dfrac{3}{30} = 0.100.
- Experiment B: 300 rolls, a 6 appears 42 times. Relative frequency =42300=0.140= \dfrac{42}{300} = 0.140.

The theoretical probability of rolling a 6 is 160.167\dfrac{1}{6} \approx 0.167. Which experiment gives a relative frequency closer to the theoretical probability?