Lesson 7 of 8 · 14 min
Estimating probabilities from data
Use relative frequencies from experiments and two-way tables as point estimates of probabilities and conditional probabilities, and as evidence for or against independence.
What you will be able to do
- Calculate a relative frequency and use it as a point estimate of a probability.
- Estimate conditional probabilities from a two-way table of data.
- Compare conditional relative frequencies to judge whether two events might be independent.
What is the probability that a Year 11 student gets at least 8 hours' sleep on a school night? No list of equally likely outcomes can tell you. Instead you collect data and use the proportion of students who do as an estimate. Most probabilities in real life, from insurance to medicine, are estimated this way.
Definition
Relative frequency as an estimate
A relative frequency is a point estimate of the probability: a single best guess from the data. Another sample would give a slightly different estimate, and larger samples tend to give estimates closer to the true probability.
One computer simulation of 500 tosses of a fair coin (247 heads). Early on the relative frequency jumps around; with more tosses it settles close to the probability, 0.5.
A basketballer made 132 of their last 160 free throws. Estimate the probability that they make their next free throw.
Data from a two-way table give conditional relative frequencies too. A Brisbane school surveyed 400 Year 11 students about whether they use their phone in bed after 10 pm () and whether they usually get at least 8 hours' sleep on a school night ().
| Students | At least 8 hours () | Less than 8 hours () | Total |
|---|---|---|---|
| Phone in bed after 10 pm () | 66 | 154 | 220 |
| No phone in bed after 10 pm () | 99 | 81 | 180 |
| Total | 165 | 235 | 400 |
The estimate of for all students is . For students who use their phone in bed, restrict to the row:
Students who use their phone in bed were much less likely to get 8 hours' sleep than students in general.
Using the survey table, estimate the probability that a student who does not use their phone in bed after 10 pm gets at least 8 hours' sleep.
Key idea
Judging independence from data
If and were independent, then . So compare the conditional relative frequencies:
- Close together: independence is plausible.
- Clearly different: the events are probably not independent.
Sample estimates need not match exactly, so look for a clear difference, not just any difference, and be more cautious when the sample is small. Here the estimates 0.30 and 0.55 are far apart, so phone use in bed and getting enough sleep do not appear to be independent.
Worked example
Estimating conditional probabilities from rescue data
A Sunshine Coast surf lifesaving club recorded 500 rescues over one summer, noting whether the person rescued was an overseas visitor () and whether they had been swimming outside the flags ().
| Rescues | Outside the flags () | Between the flags () | Total |
|---|---|---|---|
| Overseas visitor () | 112 | 28 | 140 |
| Not an overseas visitor () | 198 | 162 | 360 |
| Total | 310 | 190 | 500 |
(a) Estimate the probability that a rescued swimmer was outside the flags.
(b) Estimate and .
(c) Comment on whether and appear to be independent for these rescues.
Step 1: Estimate the overall probability
Step 2: Estimate the conditional probabilities
and .
Each conditional estimate uses only its own row: the 140 overseas visitors, then the 360 others.
Step 3: Compare the estimates
If were independent of , both would be close to 0.62. Instead, 0.8 and 0.55 are very different.
Step 4: Conclude in context
and do not appear to be independent: rescued overseas visitors were much more likely than other rescued swimmers to have been outside the flags.
With 140 and 360 rescues in the two groups, a difference of 0.25 is far larger than random variation would explain.
Try it yourself first, then check the working one step at a time.
Answer
(a) 0.62 (b) and (c) The estimates are very different, so being an overseas visitor and swimming outside the flags do not appear to be independent among rescued swimmers.
Method
Relative frequency = count in the event ÷ count in the group.
For a conditional estimate, use only the row or column of the condition.
Compare with : close suggests independence, clearly different suggests not.
Watch out for
Dividing 112 by 500, which estimates , not .
Over-claiming: these are rescues only, so the data can't give the probability that an overseas visitor needs rescuing.
A survey of 300 students recorded whether each student is left-handed and whether they play a ball sport.
| Students | Plays a ball sport | Doesn't play | Total |
|---|---|---|---|
| Left-handed | 18 | 12 | 30 |
| Right-handed | 165 | 105 | 270 |
| Total | 183 | 117 | 300 |
Which conclusion is best supported by the data?
Common mistake
Two errors with data
"Not exactly equal" doesn't mean "not independent". Relative frequencies vary from sample to sample, so small differences are expected even for independent events.
Association isn't causation. The sleep data show that phone use and sleep are related, but they can't show that phones cause less sleep. Students with a lot of homework might do both.
Tip
With technology
For a large table, enter the counts in a spreadsheet and let a formula such as =B2/D2 calculate each conditional relative frequency. A simulation (random numbers on a calculator or spreadsheet) generates long runs of trials, like the coin tosses above, to see how relative frequencies settle.
Summary
Relative frequency = number of times the event occurs ÷ number of trials; it is a point estimate of the probability.
Larger samples usually give more reliable estimates.
Estimate from a table by restricting to the row or column.
If the conditional relative frequencies and are close, independence is plausible; if they are clearly different, the events are probably not independent.
Data can show that events are related, but not why.
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.