Learnr

Learn Causal Inference

Move from what correlates to what actually causes what, with honest methods.

Free to start. No credit card. Or browse all courses.

What's inside your Causal Inference course

A sample path Learnr builds for Causal Inference. Your real course adapts to your goal and level.

  1. Correlation, causation and counterfactuals
  2. Randomized experiments as the benchmark
  3. Causal graphs, confounding and colliders
  4. Adjustment: regression, matching and propensity scores
  5. Quasi-experiments: difference in differences, IV and regression discontinuity
  6. Sensitivity analysis and communicating causal claims

Causal inference asks what would happen if you changed something: a price, a drug, a policy, a feature. Correlation cannot answer that on its own, because confounders like income or age can drive both the treatment and the outcome. The field gives you two complementary languages, potential outcomes (comparing each unit with its unobserved counterfactual) and causal graphs, or DAGs, that make assumptions explicit. On top of those sit designs such as randomized experiments, matching, difference in differences, instrumental variables and regression discontinuity. Learnr teaches causal inference in short lessons built around concrete examples, so each method comes with the assumption it relies on.

How to learn Causal Inference, step by step

  1. Learn to think in counterfactuals. For each question, name the unit, the treatment and the outcome, then ask what the outcome would have been without treatment. The fundamental problem is that you never see both for the same unit, which is why design matters.
  2. Understand why randomization works. Random assignment makes treated and control groups comparable on everything, measured or not. Study a simple A/B test analysis first, because every observational method is an attempt to mimic that balance.
  3. Draw DAGs for every problem. Sketch arrows for what causes what before touching data. Learn the three building blocks, chains, forks and colliders, and the backdoor criterion. You will see why controlling for a collider, like hospital admission, can create bias.
  4. Practice adjustment methods on real data. Estimate one effect with regression adjustment, matching and inverse propensity weighting, then compare. Check covariate balance after matching, and notice that none of these fix confounders you did not measure.
  5. Learn the quasi-experimental designs. Replicate classic studies: difference in differences with a parallel trends check, an instrumental variable such as distance to a college, and a regression discontinuity at a test score cutoff. Each comes with its own assumption to defend.
  6. Write up assumptions and sensitivity. End every analysis by listing what must be true for the estimate to be causal and running a sensitivity check. Review each design with quick Learnr lessons so the assumptions stay sharp in memory.

What you'll learn

  • Explain counterfactuals and the average treatment effect in plain terms
  • Draw a DAG and identify confounders, mediators and colliders
  • Decide which variables to adjust for using the backdoor criterion
  • Apply difference in differences, instrumental variables and regression discontinuity
  • State and stress test the assumptions behind each causal estimate

How long does it take to learn Causal Inference?

With a statistics background, the core ideas and main designs take about 2 to 4 months of steady study at a few hours a week. Applying them well to messy real problems, and spotting flawed designs in published work, develops over a year or more of practice.

What you need before you start

Solid introductory statistics, including regression and hypothesis testing, plus probability basics. Working knowledge of R or Python lets you replicate examples, which is where the methods really sink in.

Common mistakes to avoid

  • Adding every available variable as a control. Adjusting for mediators or colliders can bias the estimate, so choose controls from a causal graph.
  • Treating a significant regression coefficient as a causal effect without any design or assumption that rules out confounding.
  • Running difference in differences without checking whether treated and control groups were trending similarly before the change.

How Learnr builds your course

Type your topic

Tell Learnr you want to learn Causal Inference, or get as specific as you like.

Get a personalized course

Learnr instantly builds a full Causal Inference course tailored to your goal and skill level.

Learn and level up

Move through bite-sized lessons and interactive practice, earning XP and keeping your streak.

Causal Inference questions, answered

What are good free resources for causal inference?

Several respected textbooks are free online, including Causal Inference: The Mixtape by Scott Cunningham, The Effect by Nick Huntington-Klein, and Causal Inference: What If by Miguel Hernan and James Robins.

Is causal inference part of machine learning?

They are distinct but growing closer. Machine learning predicts well from patterns, while causal inference estimates what happens under intervention. Methods like double machine learning and causal forests combine the two.

Can you find causation without an experiment?

Sometimes, using natural experiments and quasi-experimental designs, but only under assumptions that cannot be fully tested. That is why careful causal work always states its assumptions and probes how sensitive results are.

Explore more courses

More data and ai courses

See all data and ai courses

Ready to learn Causal Inference?

Start your free, personalized Causal Inference course in seconds. It will be typed in and ready when you get there.

Start learning Causal Inference

Free to start. No credit card.