AnyLearn
All lessons
Scienceintermediate

Epidemiological Study Designs: Cohort, Case-Control, and the Biases That Fool Them

How epidemiologists turn exposure and disease into a two-by-two table: cohort, case-control, cross-sectional, and ecological designs, risk and odds ratios computed from Snow's and Doll and Hill's data, and the selection, information, and immortal time biases that make observational studies mislead.

Updated · AI-authored, review-gated · how lessons are made

Progress1 / 10

From counting to comparing

Counting tells you how much disease there is. Finding out why means comparing occurrence between people who were exposed to something and people who were not. Almost every design reduces to filling in the same two-by-two table:

DiseaseNo disease
Exposedab
Unexposedcd

From it come the two workhorse measures of association:

RR=a/(a+b)c/(c+d),OR=a db c\text{RR} = \frac{a/(a+b)}{c/(c+d)}, \qquad \text{OR} = \frac{a\,d}{b\,c}

The risk ratio compares the probability of disease in the two groups; the odds ratio compares odds. Two neighbouring lessons cover the rest of the toolkit, so this one does not repeat them: bio-reading-medical-evidence handles absolute versus relative risk and number needed to treat, and the causal-inference path (ci-why-correlation-fails, ci-identification) handles confounding and adjustment formally. Here the focus is how the table gets filled, and the ways each filling method goes wrong.

Sign in free to save your progress and earn certificates.

Full lesson text

All 10 steps on one page, for reading, reference, and search.

Show

1. From counting to comparing

Counting tells you how much disease there is. Finding out why means comparing occurrence between people who were exposed to something and people who were not. Almost every design reduces to filling in the same two-by-two table:

DiseaseNo disease
Exposedab
Unexposedcd

From it come the two workhorse measures of association:

RR=a/(a+b)c/(c+d),OR=a db c\text{RR} = \frac{a/(a+b)}{c/(c+d)}, \qquad \text{OR} = \frac{a\,d}{b\,c}

The risk ratio compares the probability of disease in the two groups; the odds ratio compares odds. Two neighbouring lessons cover the rest of the toolkit, so this one does not repeat them: bio-reading-medical-evidence handles absolute versus relative risk and number needed to treat, and the causal-inference path (ci-why-correlation-fails, ci-identification) handles confounding and adjustment formally. Here the focus is how the table gets filled, and the ways each filling method goes wrong.

2. The cohort study: follow exposure forward

A cohort study classifies people by exposure first, then follows them and counts new cases. Because it measures incidence directly, it yields risks, rates, and risk ratios, and it establishes that exposure came before disease.

The British Doctors Study is the classic. Doll and colleagues' 50-year report (BMJ, 2004) followed 34,439 male British doctors whose smoking habits were recorded from 1951. Men born between 1900 and 1930 who kept smoking cigarettes died on average about 10 years younger than lifelong non-smokers, and stopping at age 30 avoided almost all of the excess risk.

Cohorts can also be found rather than built. In 1854, John Snow compared London households supplied by two water companies drawing from different stretches of the Thames, a natural experiment in which the "exposure" had been assigned by pipe routes laid years earlier, not by anything about the households.

  • Strengths: clear time order; many outcomes from one exposure; incidence measured directly.
  • Weaknesses: slow and expensive for rare or late-appearing outcomes; losses to follow-up can bias results if they relate to both exposure and outcome.

3. The case-control study: start from the outcome

A case-control study runs backwards. Recruit people who have the disease (cases) and a sample of people from the same source population who do not (controls), then compare their past exposures. For a rare disease or one with a long latency, this is enormously more efficient than waiting for cases to appear in a cohort.

Doll and Hill's 1950 preliminary report in the BMJ is the landmark. Among 649 men with lung carcinoma in London hospitals, 647 had smoked; among 649 male control patients with other diseases, matched on age, 622 had smoked.

The catch is that the investigator chooses how many cases and controls to recruit, so the proportion of the sample with disease is artificial and risks cannot be computed. What survives is the odds ratio: the odds of exposure among cases versus controls equals the odds of disease among exposed versus unexposed. Cornfield showed in 1951 that when the disease is rare, that odds ratio also approximates the risk ratio, which is what made case-control results interpretable as relative risk.

Gotcha: Controls must come from the population that produced the cases. Controls who are systematically more or less exposed than that population bias the odds ratio, and choosing them well is the hardest part of the design.

4. Computing both measures

The two historical tables, plus a check on when an odds ratio can stand in for a risk ratio.

def risk_ratio(a, n1, c, n0):
    # cohort: a events among n1 exposed, c events among n0 unexposed
    return (a / n1) / (c / n0)

def odds_ratio(a, b, c, d):
    # case-control: a,b = exposed/unexposed cases; c,d = exposed/unexposed controls
    return (a * d) / (b * c)

# Snow 1855, Table IX: cholera deaths per house, by water company
print(f"Snow, deaths per house ratio: {risk_ratio(1263, 40046, 98, 26107):.1f}")

# Doll and Hill 1950, Table IV (men): smokers vs non-smokers
print(f"Doll and Hill, odds ratio: {odds_ratio(647, 2, 622, 27):.1f}")

# Rare vs common outcome: same true risk ratio of 2
for p0 in (0.01, 0.30):
    p1 = 2 * p0
    or_ = (p1 / (1 - p1)) / (p0 / (1 - p0))
    print(f"baseline risk {p0:.0%}: RR 2.00, OR {or_:.2f}")
Snow, deaths per house ratio: 8.4
Doll and Hill, odds ratio: 14.0
baseline risk 1%: RR 2.00, OR 2.02
baseline risk 30%: RR 2.00, OR 3.50

Snow's Table IX recorded 1,263 cholera deaths in 40,046 houses supplied by the Southwark and Vauxhall company against 98 in 26,107 Lambeth houses. Doll and Hill's odds ratio of 14 rests on only two non-smoking cases, so it is imprecise, which is why the later cohort mattered. The last lines show the trap: with a common outcome, an odds ratio of 3.5 corresponds to a risk ratio of only 2, and reporting it as "3.5 times the risk" overstates the effect.

5. Cross-sectional and ecological designs

Two cheaper designs answer narrower questions.

  • Cross-sectional. Measure exposure and disease in a population at one moment, as a health survey does. It estimates prevalence, so it mixes the causes of getting a disease with the causes of surviving with it, and it usually cannot say which came first. Long-lasting cases are overrepresented, because a snapshot catches them more often.
  • Ecological. The units are groups such as regions or countries, not people: average exposure against average disease rate. Data are cheap and often already published, which is exactly why ecological correlations circulate widely.

The danger in the second is the ecological fallacy: inferring individual-level relationships from group-level ones. Robinson's 1950 paper in the American Sociological Review is the standard warning. As Freedman's later review recounts, across the 48 US states in the 1930 census the correlation between percentage foreign-born and percentage literate was +0.53, yet at the individual level it was about -0.11. Immigrants tended to settle in states with high literacy, so the group pattern pointed the wrong way.

Key idea: A group-level association can be real and still say nothing, or the opposite, about individuals. Ecological data generate hypotheses; individual-level designs test them.

6. Choosing a design

DesignStarts fromMeasuresBest forMain weakness
Randomised trialExposure, assigned by chanceRisk, risk ratioTesting an interventionCost, ethics, narrow populations
CohortExposure, observedIncidence, risk and rate ratiosCommon outcomes, many outcomesSlow, losses to follow-up
Case-controlOutcomeOdds ratioRare diseases, long latencyControl selection, recall
Cross-sectionalA moment in timePrevalenceBurden and planningNo time order
EcologicalGroupsGroup-level correlationCheap hypothesis generationEcological fallacy

Randomisation sits at the top because assigning exposure by chance balances confounders, measured and unmeasured, on average; the causal-inference lesson Why Correlation Is Not Enough explains why, and bio-clinical-trial-pipeline covers how trials are staged. But many epidemiological exposures, such as smoking, pollution, or occupation, cannot ethically or practically be randomised, so observational designs carry most of the evidence about them. The next three steps cover what most often goes wrong in them.

7. Selection bias: who gets into the study

Selection bias arises when the way people enter or stay in a study is related to both exposure and outcome. Three recurring forms:

  • Healthy worker effect. People who are employed are, on average, healthier than the general population, which includes those too ill to work. An occupational cohort compared with national rates can show a standardised mortality ratio below 1 even for a harmful exposure. The fix is to compare workers with other workers.
  • Unrepresentative hospital controls. In a hospital-based case-control study, controls are patients admitted for other conditions. If the exposure also causes those conditions, controls are more exposed than the source population and the odds ratio is pulled towards 1. It is a relative of Berkson's bias, the distortion that appears whenever admission depends on both exposure and disease. Doll and Hill's hospital controls carried this risk, since smoking causes many of the conditions that put men in hospital.
  • Loss to follow-up. If exposed people who become ill are more likely to drop out of a cohort, or less likely, the remaining participants no longer represent the people who started.

Gotcha: Selection bias cannot be fixed by enrolling more people. A biased sampling process run at ten times the size gives the same wrong answer with a narrower confidence interval.

8. Information bias: measuring the wrong thing

Information bias comes from errors in measuring exposure or outcome. What matters most is whether the errors differ between the groups being compared.

Error typeExampleTypical effect
Non-differential misclassificationA dietary questionnaire is equally inaccurate for cases and controlsFor a two-level exposure, usually pulls the estimate towards no effect
Differential misclassificationExposure is recorded more completely for one groupCan bias in either direction
Recall biasParents of children with a birth defect search their memories of pregnancy harder than parents of healthy childrenExaggerates associations in case-control studies
Detection biasExposed people are examined more often, so their disease is found more oftenInflates apparent risk in the exposed

Rothman's Modern Epidemiology stresses the first row's caveat: "towards the null" holds on average for a binary exposure measured with independent errors, not in every study and not for exposures with three or more levels.

In practice: Blinding interviewers to case status, using records written before the outcome occurred, and validating a questionnaire against a better measurement in a subsample are the standard defences.

9. Time-related bias: immortal time

Predict first

In an observational study, heart transplant recipients survive much longer, measured from the date they joined the waiting list, than candidates who never received a heart. Does that show transplantation extends life?

Suissa (American Journal of Epidemiology, 2008) defines immortal time as a span of cohort follow-up during which, because of the exposure definition, the outcome could not occur. It was first identified in the 1970s in exactly these transplant studies, and resurfaced in drug studies built on prescription databases, where "users" are people who filled a prescription after some delay. Suissa showed the bias grows with the length of the immortal period.

The fix is to count each person's time as unexposed until the moment exposure actually starts. More generally, Hernán and Robins (American Journal of Epidemiology, 2016) propose designing each observational analysis to emulate a target trial: align eligibility, assignment, and the start of follow-up at a single time zero, as a randomised trial would.

10. From association to causation: Hill's viewpoints

When randomisation is impossible, epidemiologists still have to decide whether an association is causal. Austin Bradford Hill's 1965 address to the Royal Society of Medicine, "The Environment and Disease: Association or Causation?", offered nine viewpoints:

  1. Strength of the association.
  2. Consistency across studies, places, and methods.
  3. Specificity of the exposure to the outcome.
  4. Temporality: the exposure precedes the disease.
  5. Biological gradient: more exposure, more disease.
  6. Plausibility given current knowledge.
  7. Coherence with what is known of the disease's natural history.
  8. Experiment: removing the exposure reduces the disease.
  9. Analogy with similar established causes.

Hill wrote that none of them can bring indisputable evidence for or against causation, and none is a necessary condition. Rothman notes that only temporality is strictly required. The smoking evidence met most of them: a strong association, replicated in case-control and cohort designs, with a dose-response gradient, and a falling risk after quitting in the British Doctors Study.

Key idea: Hill's list is a structured way to weigh evidence, not a checklist that proves causation. The formal alternative, stating causal assumptions as a graph and checking what they identify, is the subject of the causal-inference path.

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. Why can a case-control study not directly estimate the risk of disease in the exposed group?
    • Because exposure is measured after the disease
    • Because controls are always healthier than the population
    • Because it requires a randomised design
    • Because the investigator fixes the ratio of cases to controls, so the share with disease is artificial
  2. A cohort study finds a true risk ratio of 2 for an outcome with a 30% baseline risk. What is the odds ratio?
    • About 3.5
    • About 2.0
    • About 1.4
    • About 0.6
  3. Across US states in 1930, percentage foreign-born correlated positively with percentage literate, while at the individual level the correlation was negative. What is this an example of?
    • Recall bias
    • Immortal time bias
    • The ecological fallacy
    • The healthy worker effect
  4. An occupational cohort exposed to a solvent has lower all-cause mortality than the general population. What is the most likely explanation to rule out first?
    • Non-differential misclassification towards the null
    • The healthy worker effect
    • Berkson's bias
    • Lead-time bias
  5. A database study labels people as statin users if they filled a prescription within a year of a diagnosis, counting their follow-up from the diagnosis. What bias does this create?
    • Recall bias
    • Ecological fallacy
    • Detection bias
    • Immortal time bias in favour of users

Related lessons

Science
intermediate

How Epidemic Numbers Get Misread: Fatality Ratios, Testing, Delays, and Excess Deaths

Why a fatality ratio depends on who gets tested, why it creeps upward mid-epidemic, how test accuracy and reporting delays distort counts, how excess mortality bypasses diagnosis, and why five-year survival can rise with no one living longer. Ends with a nine-question checklist for any health statistic.

11 steps·~17 min
Science
intermediate

Modelling Spread: SIR, SEIR, R0, Rt, and the Herd Immunity Threshold

Derive the basic reproduction number from the SIR equations, see why the herd immunity threshold is 1 - 1/R0 and why epidemics overshoot it, simulate one in Python, and learn how Rt is estimated in real time and what heterogeneity does to the averages.

10 steps·~15 min
Science
intermediate

Counting Disease: Incidence, Prevalence, and Standardised Rates

Every epidemic figure is a ratio with a numerator, a denominator, and a time window. Learn how surveillance builds the numerator, how incidence, person-time rates, and prevalence differ, and how age standardisation stops an older population from looking sicker than it is.

10 steps·~15 min
AI
advanced

Running the Audit and Acting on What It Finds

An audit is only useful if it produces a decision. This lesson covers the audit sequence end to end, the three families of mitigation and what each costs, why some findings cannot be fixed at the model layer, documenting a trade-off you can defend, and monitoring for the drift that reopens a closed finding.

8 steps·~12 min