Medical AtlasPROJECT IMG
✎ Sketch Notes🏛️ 3D LibraryMy Desk

Propensity scores and Mendelian randomization (causal inference from observational data)

Propensity scores (the probability of receiving a treatment given measured covariates) let observational studies balance treated and untreated groups through matching, weighting or stratification, but cannot fix unmeasured confounding. Mendelian randomization uses genetic variants randomly allocated at conception as instrumental variables, which protects against confounding and reverse causation if the variant is strongly linked to the exposure, shares no confounders with the outcome and affects the outcome only through the exposure.

Overview

Randomized trials are the best way to show causation because randomization balances both measured and unmeasured confounders. When trials are impossible, unethical or too slow, observational data are analyzed with methods that try to mimic randomization.

  • Confounding: a third variable associated with the exposure and independently with the outcome, not on the causal pathway (e.g., healthier people are more likely to take a statin and to survive: "healthy-user" bias).
  • Confounding by indication: sicker patients receive a treatment more often, making the treatment look harmful.
  • Reverse causation: the outcome (or its early stage) causes the exposure (e.g., weight loss from undiagnosed cancer makes low BMI look harmful).
  • Two widely used tools: propensity score methods (handle measured confounding) and instrumental-variable methods such as Mendelian randomization (can handle unmeasured confounding if assumptions hold).

Propensity scores: what they are

  • Propensity score (PS) = the probability that a patient receives the treatment, given observed baseline covariates; usually estimated with logistic regression (Rosenbaum and Rubin, 1983).
  • Patients with the same PS have, on average, the same distribution of measured covariates whether or not they were treated: the PS compresses many confounders into a single number.
  • Only pre-treatment covariates belong in the model (not variables affected by the treatment, i.e., mediators).
MethodHow it worksNote
MatchingPair each treated patient with an untreated patient of similar PS (nearest neighbor within a caliper)Unmatched patients are discarded; estimates the effect in the treated (ATT)
Inverse probability of treatment weighting (IPTW)Weight each patient by 1/PS (treated) or 1/(1−PS) (untreated) to create a pseudo-populationKeeps all patients; estimates average treatment effect (ATE); extreme weights are unstable
StratificationCompare outcomes within PS quintilesSimple; residual confounding within strata
Covariate adjustmentInclude PS in an outcome regressionDepends on correct model form
Overlap weightingEmphasizes patients with PS near 0.5 (clinical equipoise)Good balance, stable weights

Using and judging a propensity analysis

Assumptions

  • No unmeasured confounding (conditional exchangeability): cannot be tested from the data.
  • Positivity/overlap: every type of patient had some chance of receiving either treatment; check overlapping PS distributions.
  • Correct PS model; no interference between patients.

Judging balance

  • Compare covariates after matching/weighting using the standardized mean difference (SMD): SMD <0.1 is conventionally considered good balance (not p-values, which depend on sample size).
  • A "Table 1" that looks balanced after PS matching shows balance only for measured variables.

Sensitivity analysis

  • E-value: how strong an unmeasured confounder would need to be (in its associations with both treatment and outcome) to explain away the observed effect.
  • Negative-control outcomes and active-comparator, new-user designs reduce bias (e.g., compare a new drug vs another active drug rather than vs nonusers).

Key exam point: PS methods are not superior to multivariable regression at removing confounding; they are a different way to adjust for the same measured variables. They do not make an observational study equivalent to an RCT.

Mendelian randomization: the core idea

  • Mendelian randomization (MR) uses genetic variants associated with a modifiable exposure (e.g., LDL cholesterol, alcohol intake, BMI) as instrumental variables to test whether the exposure causes an outcome.
  • Alleles are allocated randomly at conception (Mendel's laws of segregation and independent assortment), so they are generally independent of lifestyle and social confounders: a "natural randomized trial."
  • Genotype is fixed before disease, so MR is protected from reverse causation.
  • Example: carriers of the ALDH2 variant (common in East Asian populations) cannot metabolize acetaldehyde well, drink less alcohol, and have lower blood pressure, supporting a causal effect of alcohol on blood pressure.
  • Example: lifelong lower LDL from PCSK9 variants is linked to fewer coronary events, consistent with LDL being causal (and supporting PCSK9 inhibitors).
  • Example: MR suggested CRP is not a causal target for coronary disease, and genetically raised HDL did not lower risk, matching failed HDL-raising drug trials.

MR assumptions, methods & limitations

Three core instrumental-variable assumptions

AssumptionMeaningThreat
1. RelevanceVariant is robustly associated with the exposureWeak instruments (F statistic <10) → bias and low power
2. IndependenceVariant shares no confounder with the outcomePopulation stratification (ancestry differences) → adjust for genetic principal components
3. Exclusion restrictionVariant affects outcome only through the exposureHorizontal pleiotropy (variant acts through another pathway)

Methods

  • Wald ratio: (variant–outcome association) ÷ (variant–exposure association).
  • Two-sample MR: exposure and outcome associations from different large GWAS; increases power.
  • Multiple variants: inverse-variance weighted estimate; sensitivity analyses robust to pleiotropy: MR-Egger (intercept tests directional pleiotropy), weighted median (valid if ≥50% of variants are valid).

Limitations

  • Estimates reflect lifelong small differences, not the effect of changing the exposure at a given age, so effect sizes do not translate directly into drug effects.
  • Collider bias if analyses condition on the exposure or on survival; canalization (developmental compensation).
  • MR evidence should be triangulated with trials; guidelines are not changed on MR alone.

Comparing causal-inference tools

DesignControls measured confoundingControls unmeasured confoundingMain weakness
RCTYesYesCost, generalizability, ethics
Multivariable regressionYesNoResidual confounding
Propensity score methodsYesNoUnmeasured confounding; positivity
Instrumental variable / MRYesYes, if assumptions holdPleiotropy, weak instruments, stratification
Restriction / matching on variablesYes (for those variables)NoReduced generalizability

Other confounding controls: design stage (randomization, restriction, matching) vs analysis stage (stratification, multivariable adjustment, PS, IV).

🩺 Next best step: classic exam scenarios

  • A cohort study finds statin users have lower dementia risk after propensity-score matching on 40 measured variables; the reviewer asks what bias remains → unmeasured confounding (healthy-user bias).
  • After PS matching, how should balance be assessed? → standardized mean differences <0.1, not p-values.
  • A study uses a variant near a gene that raises lifelong urate levels and finds no association with coronary disease → Mendelian randomization; suggests urate is not causal.
  • A genetic variant used as an instrument for BMI also independently affects blood pressure through another pathway → violates the exclusion restriction (horizontal pleiotropy).
  • Which design best protects against reverse causation in an observational setting? → Mendelian randomization.
  • Best way to eliminate both known and unknown confounders → randomization.

🔥 Exam pearls

  • PS = P(treatment | measured covariates), from logistic regression.
  • PS methods balance measured confounders only; they never fix unmeasured confounding.
  • Balance → SMD <0.1; IPTW keeps everyone, matching discards unmatched.
  • MR = natural RCT: alleles randomized at conception; protects against confounding and reverse causation.
  • Three IV assumptions: relevance, independence, exclusion restriction.
  • Pleiotropy is the major threat to MR; MR-Egger and weighted median test it.
  • Only randomization reliably controls unknown confounders.

Sources: BMJ (Davies et al. 2018): Reading Mendelian randomisation studies · CASRAI: Propensity score matching explained

© 2026 Project IMG · Content from Project IMG labs and atlases · For education only, not medical advice.