SECTION 1
Historical Context & Motivation
From the earliest days of clinical observation, physicians and scientists have struggled with a deceptively simple question: does the evidence we collect actually reflect reality, or are we being misled by the way we gathered it? The formal study of bias and confounding emerged as epidemiology matured into a quantitative discipline during the twentieth century. Landmark studies—some famous for their successes, others for their failures—revealed that systematic errors can masquerade as true associations, leading to flawed clinical guidelines, wasted resources, and patient harm. Understanding these threats to validity is therefore not merely an academic exercise; it is foundational to every aspect of evidence-based medicine and public health policy.
1747 • Lind's Scurvy Trial
1948 • Framingham Heart Study Begins
1951 • Doll & Hill — Smoking and Lung Cancer
1979 • Sackett's Catalogue of Biases
2000s • DAGs and Modern Causal Inference
This historical arc reveals a recurring theme: even well-intentioned studies can produce misleading conclusions when bias or confounding goes unrecognized. The central question this lesson addresses is: How do we identify, classify, and mitigate the systematic errors that threaten the internal validity of biomedical research?
SECTION 2
Core Principles & Definitions
Before dissecting individual bias types, it is essential to establish the conceptual landscape. In epidemiological research, the observed association between an exposure and an outcome can deviate from the true association for three fundamental reasons: chance (random error), bias (systematic error), and confounding (mixing of effects). While random error can be reduced by increasing sample size, bias and confounding require careful study design and analytical strategy. The following core principles provide a framework for understanding these threats.
Selection Bias
Recall Bias
Measurement Bias
Confounding
KEY TAKEAWAY
SECTION 3
Visual Explanation — Taxonomy of Threats to Validity
The diagram above provides a hierarchical view of the key threats we will explore throughout this lesson. Notice the fundamental distinction: bias is a property of the study design or data collection process, meaning it introduces systematic error that cannot be corrected simply by collecting more data. Confounding, on the other hand, reflects a real relationship among three or more variables in the population and can often be addressed analytically (through stratification, regression, or matching) if the confounder is measured. The three criteria for confounding—association with exposure, independent effect on outcome, and not being on the causal pathway—serve as a practical checklist when evaluating whether a variable should be treated as a confounder in analysis.
SECTION 4
Mathematical Framework — Quantifying Bias & Confounding
While bias and confounding are conceptual threats, they can be expressed quantitatively. The mathematical framework below formalizes how these distortions affect observed measures of association, particularly the odds ratio (OR) and relative risk (RR). By understanding these relationships, you can determine the direction and magnitude of distortion.
CRUDE VS. ADJUSTED MEASURE
Where ORcrude is the observed odds ratio and ORtrue is the unbiased odds ratio. If Bias > 0, the association is overestimated; if Bias < 0, it is underestimated.
NON-DIFFERENTIAL MISCLASSIFICATION EFFECT
For a dichotomous exposure with sensitivity Se and specificity Sp of the exposure classification tool. When misclassification is non-differential (same in cases and controls), the observed OR is biased toward the null (OR = 1). This simplified formula assumes equal misclassification probabilities in both exposure groups.
CONFOUNDING — PERCENTAGE CHANGE METHOD
A change of ≥ 10% between the crude and adjusted estimates is conventionally interpreted as evidence of meaningful confounding. ORadjusted is obtained after stratifying by or adjusting for the suspected confounder (e.g., via Mantel–Haenszel method or logistic regression).
MANTEL–HAENSZEL ADJUSTED ODDS RATIO
Computed across i strata of the confounder, where a, b, c, d are cells of the 2×2 table and T is the stratum total. This weighted average removes the effect of the confounding variable while preserving statistical efficiency.
Direction of Bias
SECTION 5
Detailed Classification of Biases & Confounding Scenarios
Having established the conceptual and mathematical framework, we can now examine each bias category in greater depth and connect them to the study designs in which they most commonly arise. The diagram below illustrates how each bias type maps onto the stages of a typical epidemiological study, from participant selection through data analysis.
| Bias / Threat | Study Designs Most Affected | Direction of Effect | Primary Prevention Strategy |
|---|---|---|---|
| Selection bias | Case-control, retrospective cohort | Either direction | Population-based sampling, clearly defined source population |
| Recall bias | Case-control (retrospective) | Usually away from null | Use objective records; prospective design |
| Non-differential measurement bias | All observational designs | Toward the null (for dichotomous exposure) | Validated instruments, calibration, blinding |
| Differential measurement bias | Unblinded trials, chart reviews | Either direction | Blinding, standardized assessment protocols |
| Confounding | All observational designs | Either direction | Randomization (design), stratification / regression (analysis) |
Summary of major biases and confounding: affected designs, direction of effect, and prevention
SECTION 6
Worked Example — Coffee, Smoking, and Pancreatic Cancer
Consider the following classic scenario: a case-control study examines whether coffee consumption is associated with pancreatic cancer. The investigators recruit 200 pancreatic cancer cases from a hospital and 200 controls from the same hospital (patients admitted for other non-cancer diagnoses). They find a crude odds ratio of 2.5, suggesting coffee drinkers have 2.5 times the odds of pancreatic cancer. However, smoking is far more prevalent among coffee drinkers, and smoking is an established risk factor for pancreatic cancer. We need to determine whether the coffee-cancer association is real or confounded by smoking.
Assessing Confounding by Smoking in a Coffee–Cancer Study
- 1
Step 1 — Identify the Crude Association
From the overall 2×2 table, we compute the crude odds ratio for the coffee–cancer relationship. Using the cell frequencies: a = 120 (cases exposed to coffee), b = 80 (cases not exposed), c = 80 (controls exposed), d = 120 (controls not exposed). ORcrude = (a × d) / (b × c) = (120 × 120) / (80 × 80) = 14,400 / 6,400 = 2.25.OR_crude = 2.25 - 2
Step 2 — Check Confounder Criteria for Smoking
We verify three conditions. (1) Is smoking associated with coffee drinking? Yes—70% of coffee drinkers smoke versus 30% of non-coffee drinkers. (2) Is smoking an independent risk factor for pancreatic cancer? Yes—well established in the literature. (3) Is smoking on the causal pathway between coffee and cancer? No—smoking does not mediate the biological effect of coffee. All three criteria are met, so smoking qualifies as a potential confounder. - 3
Step 3 — Stratify by Smoking Status
We create separate 2×2 tables for smokers and non-smokers. Among smokers: a₁ = 84, b₁ = 24, c₁ = 56, d₁ = 16. ORsmokers = (84 × 16) / (24 × 56) = 1,344 / 1,344 = 1.0. Among non-smokers: a₂ = 36, b₂ = 56, c₂ = 24, d₂ = 104. ORnon-smokers = (36 × 104) / (56 × 24) = 3,744 / 1,344 ≈ 2.79. Note: if we use a simpler illustrative example where both strata yield OR ≈ 1.0, the confounding is complete.Stratum-specific ORs differ from crude OR - 4
Step 4 — Compute the Mantel–Haenszel Adjusted OR
Using the MH formula: ORMH = Σ(aᵢdᵢ / Tᵢ) / Σ(bᵢcᵢ / Tᵢ). For smokers (T₁ = 180): (84 × 16) / 180 = 7.47. For non-smokers (T₂ = 220): (36 × 104) / 220 = 17.02. Numerator = 7.47 + 17.02 = 24.49. For smokers: (24 × 56) / 180 = 7.47. For non-smokers: (56 × 24) / 220 = 6.11. Denominator = 7.47 + 6.11 = 13.58. ORMH = 24.49 / 13.58 ≈ 1.80.OR_MH ≈ 1.80 - 5
Step 5 — Assess Degree of Confounding
Percent confounding = ((ORcrude − ORadjusted) / ORadjusted) × 100 = ((2.25 − 1.80) / 1.80) × 100 = 25%. Since this exceeds the conventional 10% threshold, we conclude that smoking meaningfully confounded the crude association between coffee and pancreatic cancer. The adjusted estimate of 1.80 is a more accurate reflection of the coffee–cancer relationship, though residual confounding by unmeasured variables may still exist.25% confounding — smoking is an important confounder
SECTION 7
Strengths & Limitations of Bias Control Methods
No single strategy eliminates all threats to validity. Each method of controlling bias and confounding has inherent strengths and limitations, and the optimal approach depends on the study design, available resources, and nature of the threat. The table below contrasts the primary methods used at both the design and analysis stages.
| Control Method | Strengths | Limitations |
|---|---|---|
| Randomization | Controls for both known and unknown confounders; gold standard for causal inference; eliminates selection bias in treatment allocation | Only applicable to experimental designs; may not achieve balance in small samples; ethical/feasibility constraints for many exposures |
| Restriction | Simple to implement; completely eliminates confounding by the restricted variable; cheap | Reduces sample size and generalizability; cannot control for multiple confounders simultaneously; residual confounding still possible |
| Matching | Efficient control of strong confounders; increases statistical efficiency in case-control studies; intuitive | Cannot study matched variable as risk factor; overmatching can introduce bias; computationally difficult with many variables |
| Stratification (MH) | Transparent and intuitive; allows assessment of effect modification; no modeling assumptions | Limited to few confounders (sparse data with many strata); cannot handle continuous confounders well |
| Multivariable Regression | Can adjust for many confounders simultaneously; handles continuous and categorical variables; widely available | Model misspecification risk; assumes correct functional form; cannot control for unmeasured confounders; "garbage in, garbage out" |
| Blinding | Prevents measurement/observer bias and differential recall; reduces Hawthorne effect | Not always feasible (surgical interventions, lifestyle exposures); unblinding can occur |
Comparison of strategies for controlling bias and confounding
KEY TAKEAWAY
SECTION 8
Connection to Advanced Causal Inference
The concepts of bias and confounding introduced in this lesson form the foundation for more advanced frameworks in causal inference. Modern epidemiology increasingly relies on directed acyclic graphs (DAGs) to formalize the relationships among variables, making it possible to identify confounders, mediators, and colliders with mathematical precision rather than intuition alone. Understanding these advanced tools begins with mastery of the fundamental concepts covered here.
| This Lesson (Foundational) | Advanced Extension |
|---|---|
| Confounder identified by three checklist criteria | DAG-based backdoor criterion identifies minimal sufficient adjustment sets algorithmically |
| Stratification by suspected confounders (Mantel–Haenszel) | Inverse probability weighting (IPW) and marginal structural models for time-varying confounding |
| Selection bias as a design flaw | Collider-stratification bias: conditioning on a common effect of exposure and outcome opens a non-causal path |
| Sensitivity analysis for unmeasured confounding (qualitative) | E-value and quantitative bias analysis formally bound the impact of unmeasured confounders |
| Effect modification detected via stratified analysis | Interaction on additive vs. multiplicative scales; sufficient-component cause models |
Foundational concepts and their advanced causal inference extensions
Important Distinction: Confounding vs. Effect Modification
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
This lesson examined the three major systematic threats to internal validity in epidemiological research. Selection bias arises when the study sample differs systematically from the target population due to how participants are recruited or retained—common subtypes include volunteer bias, loss-to-follow-up, Berkson's bias, and the healthy worker effect. Recall bias is a form of information bias in which disease status differentially affects participants' recollections of past exposures, typically inflating the observed association in case-control studies. Measurement bias encompasses systematic errors in the ascertainment of exposure, outcome, or covariates—when non-differential, it biases dichotomous exposure associations toward the null; when differential, it can distort in either direction.
Confounding occurs when a third variable is associated with both exposure and outcome and is not on the causal pathway, creating a spurious or masked association. Unlike bias, confounding can be addressed both at the design stage (randomization, restriction, matching) and at the analysis stage (stratification, Mantel–Haenszel adjustment, multivariable regression). The percent change method (≥ 10% threshold) provides a practical criterion for assessing whether confounding is meaningful. Mastery of these concepts is essential before advancing to directed acyclic graphs (DAGs), inverse probability weighting, and other modern causal inference tools that extend the foundational principles covered here.