Measuring how common a disease is
Every measure of disease frequency needs three things: the number of cases, the size of the population they came from, and the time it was followed. Change each one and watch what happens.
A. Make the counts comparable
Region B has fewer new cases of type 1 diabetes in children than Region A. Does it have less disease? Region A counted cases for one year; Region B counted for three years in a much smaller population. Convert both regions to the same population size and time period.
B. Count person-time, not people
Five people in a small town are observed from 2015 to 2025. People move in, move away, are born, die or get sick. Each person adds time to the denominator only while they are being followed and still free of the disease.
C. The sink: incidence, duration and prevalence
Prevalence is the water in the sink. New cases (incidence) flow in from the tap; cure and death drain it away. The longer people live with the disease, the slower the drain. In a steady state, P ÷ (1 − P) = IR × D, and when P is under about 10%, P ≈ IR × D.
Presets use rounded, illustrative values for teaching.
D. How sure are we? A 95% confidence interval for prevalence
A school survey of 1,000 adolescents finds 30 with a food allergy that needs an epinephrine autoinjector. The interval shows the range of true prevalence values compatible with the sample. Change the sample size and see how the interval shrinks or grows.
Formula: A/N ± 1.96 × √[(A/N)(1 − A/N) ÷ N]. Works best when N is large and the outcome is not rare.
E. Describing differences across racialized groups
A synthetic school screening program measured blood pressure in adolescents aged 12 to 17. Prevalence of elevated blood pressure is described by racialized group, each with a 95% confidence interval and a comparison with a reference group you choose.
Race is a social category. Gaps between racialized groups in health outcomes are best explained by structural racism, which shapes income, housing, neighbourhoods, chronic stress and access to care. When you describe a gap, name the likely structural causes and avoid explanations based on genes or individual behaviour. The reference group is also a choice: try changing it and notice how the story changes.
Grey numbers under each estimate are 95% confidence intervals.
Check your understanding
Comparing an exposed and an unexposed group
Put the data in a two-by-two table, then compare the groups two ways: subtract (absolute measures, the public health impact) and divide (relative measures, the strength of the association). The 95% confidence intervals and P value tell you how much random error surrounds each estimate.
Formulas used
Check your understanding
Making a fair comparison when age structures differ
Lakeshore's crude death rate is far higher than Northfield's. Is Lakeshore less healthy, or just older? Direct standardization applies each region's age-specific rates to one shared "standard" population, so age no longer drives the difference.
Age-standardized rate = Σ (proportion of the standard population in age group i × age-specific rate in group i). The crude rate uses each population's own age structure as the weights. The reference standard is synthetic, shaped like a typical national population.
Check your understanding
Run your own study, then run it 100 times
Your study
See and copy the synthetic dataset
100 studies of the same truth
Check your understanding
Time to event: maternal gestational diabetes and hypertension in offspring
A synthetic birth cohort follows children from birth to age 18. Some were exposed to gestational diabetes (GDM) in pregnancy. Each child is followed until hypertension is diagnosed, they leave the study (censored), or they turn 18. The hazard is the incidence rate from module 1, measured over very short intervals, and Kaplan-Meier curves keep the time contributed by children who leave early.
Survival methods go beyond modules 1 to 4. They assume censoring is unrelated to the risk of the outcome, and the hazard ratio assumes the ratio of hazards stays constant with age.