Module 3b - Random Sampling and Sampling Error
Module 3b - Random Sampling and Sampling Error
Katrina Blazek
PHCM9794: Foundations of Epidemiology
Learning outcomes
• State and distinguish between the main sources of bias in
epidemiological studies and distinguish between random and
systematic error
• Understand how to interpret statistical significance and confidence
intervals
Overview
Random sampling
Random sampling error
Confidence intervals and P values
Precision
Type I and Type II errors
A population of people
Let’s select 20 people randomly
Let’s select 20 people randomly
This is our sample
We can describe the sample
Mean SBP
= 126 mmHg
Random selection
Selection of participants for a study on the basis of chance
• Each participant in source population has same chance
(probability) of being included
• E.g. using a random number generator
NOT: 95% probability that the true mean lies in this interval
Objective: To evaluate longer term symptoms and health outcomes
associated with post-covid-19 condition within a cohort of individuals
with a SARS-CoV-2 infection.
We are 95% confident that in the population the true proportion of those who
don’t recover from SARS-CoV-2 within 6 months is between 20.4% and 25.6%
The
interval
is wider
Mean SBP Mean SBP Mean SBP
= 126 mmHg = 121 mmHg = 115 mmHg
(95% CI 117 to 135 (95% CI 112 to 130 (95% CI 98 to 132
mmHg) mmHg) mmHg)
Precision
The larger the sample, the more precise the estimate
• Increasing sample size decreases confidence interval width
• Decreasing sample size increases confidence interval width
Hypothesis testing
Confidence interval gives a likely range within which we are
reasonably confident that the true value lies
Little or no evidence
0.10
Weak evidence
0.05 0.05
Evidence
0.01
Significant Strong evidence
0.001
0 Very strong evidence 0
Probability of obtaining a RR
of 1.011 (or larger), just by
chance, given these data
Objective: To assess whether an easy-to-use multifaceted
intervention for children presenting to primary care with respiratory Not the probability that
tract infections would reduce antibiotic dispensing, without there is no difference
increasing hospital admissions for respiratory tract infection.
between groups
Result: No evidence was found that antibiotic dispensing differed
between intervention practices … and control practices … (rate ratio
1.011, 95% confidence interval 0.992 to 1.029; P=0.25).
There’s no effect
(Null hypothesis is TRUE)
There is an effect
(Null hypothesis is FALSE)
Probability = 𝜶
There’s no effect Type I error TRUE negative
(Null hypothesis is TRUE)
✓
There is an effect TRUE positive Type II error
(Null hypothesis is FALSE)
✓
Power (𝟏 − 𝜷) Probability = 𝜷
https://www.microsoft.com/en-au/p/the-boy-who-cried-
wolf/8d6kgwzxmmst?activetab=pivot%3aoverviewtab
https://www.ncbi.nlm.nih.gov/books/NBK557530/
Clinical vs statistical significance
https://onlinelibrary.wiley.com/doi/epdf/10.5694/j.1326-5377.1992.tb137178.x
“While pet owners and non-pet owners had similar levels of systolic blood
pressure, those with pets had significantly higher diastolic blood pressure. “
https://onlinelibrary.wiley.com/doi/epdf/10.5694/j.1326-5377.2003.tb05649.x