A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Directed Acyclic Graphs for Causal Modeling

Research Depth 227 in the knowledge graph ☐ I know this ☆ Set as goal
47topics build on this
1,313prerequisites beneath it
See this on the map →
Foundations of EpidemiologyConfounding: Definition, Identification, and Causal Criteria→→Counterfactual Framework and Potential OutcomesG-Estimation and Structural Nested Models+2 more
causal-inference dag graphical-models confounder-selection

Core Idea

A directed acyclic graph (DAG) is a visual representation of causal assumptions about the relationships among variables. DAGs help identify minimal sufficient sets of confounders to adjust for to block backdoor paths (non-causal paths from exposure to outcome). DAGs clarify whether a variable is a confounder, mediator, or collider, preventing unnecessary or harmful adjustment.

Explainer

You already understand confounding intuitively: a third variable that is associated with both the exposure and the outcome can make a non-causal association look causal (or vice versa). The trouble is that deciding what to adjust for in a study — which variables to include in a regression, which to stratify on — has historically been treated as an art guided by subject-matter intuition. Directed acyclic graphs (DAGs) make the causal assumptions explicit and then let formal rules determine the correct adjustment strategy.

A DAG is a graph where nodes represent variables and directed arrows (edges) represent direct causal effects. The "acyclic" constraint means no variable can be its own ancestor — there are no feedback loops, which forces you to think of the causal structure as unfolding over time. When you draw a DAG, you are not describing statistical associations; you are committing to a causal story about the world. The power is that given that story, an algorithm can tell you exactly which variables to condition on to estimate a causal effect without bias.

The three key variable types in a DAG define the logic. A confounder creates a non-causal path between exposure and outcome — it is a common cause of both. You need to block this path, usually by conditioning on the confounder. A mediator lies on the causal path from exposure to outcome (exposure → mediator → outcome). Adjusting for a mediator blocks the very effect you are trying to estimate — so you should *not* adjust for it when you want the total effect. A collider is a variable caused by two other variables (exposure → collider ← outcome). Colliders are the most counterintuitive: you should never condition on a collider, because doing so opens a spurious association between its causes, introducing bias where there was none. This is the "collider bias" or "selection bias" problem that has generated considerable rethinking of observational study design.

The backdoor criterion formalizes when adjustment is sufficient. A set of variables S satisfies the backdoor criterion if (1) no variable in S is a descendant of the exposure and (2) S blocks every "backdoor path" — every non-causal path from exposure to outcome that starts with an arrow pointing *into* the exposure (indicating a common cause). If you can find such a set S, adjusting for S gives you the causal effect. The practical implication is that you can often find *multiple* sufficient adjustment sets, and the DAG helps you choose the smallest or most easily measured one. DAGs do not tell you whether your causal assumptions are correct — that requires domain knowledge and study design — but they make those assumptions transparent and testable in principle, which is a major advance over the implicit and inconsistent practice of "just control for everything."

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → One-to-One Correspondence → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Making 10 as an Addition Strategy → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Iterated Integrals and Fubini's Theorem → Double Integrals in Cartesian Coordinates → Double Integrals in Polar Coordinates → Double Integrals in Polar Coordinates → Double Integrals: Definition and Setup → Iterated Integrals and Fubini's Theorem → Double Integrals over Rectangular Regions → Double Integrals over General Regions → Applications of Double Integrals: Area, Mass, and Moments → Triple Integrals in Cartesian Coordinates → Triple Integrals in Cylindrical and Spherical Coordinates → Change of Variables and the Jacobian Determinant → Applications of Triple Integrals: Volume and Mass → Vector Fields and Their Representations → Line Integrals of Vector Fields → Work and Circulation → Line Integrals of Scalar and Vector Functions → Fundamental Theorem for Line Integrals → Conservative Vector Fields → Conservative Vector Fields and Potential Functions → Curl and Divergence of Vector Fields → Curl and Divergence → Divergence Theorem → Electric Flux and Divergence Theorem → Gauss's Law: Integral Form and Meaning → Solving Problems with Gauss's Law → Conductors in Electrostatic Equilibrium → Capacitance and Capacitors → Dielectrics → Dielectric Constant and Relative Permittivity → Electric Field Inside Dielectric Materials → Dielectric Materials and Polarization → Dielectric Susceptibility and Permittivity → Energy Density in Electric Fields → Electric Current and Current Density → Electrical Resistance and Resistivity → Ohm's Law and Circuit Elements → Electromotive Force (EMF) and Batteries → Kirchhoff's Circuit Laws: Voltage and Current → DC Circuit Network Analysis Methods → Transient Response in RC Circuits → RC Circuits → LC and RLC Circuits → AC Circuits: Fundamentals → Impedance and Reactance → AC Power and Resonance → Electromagnetic Waves → Postulates of Special Relativity → Time Dilation → Length Contraction → Lorentz Transformation → Relativistic Velocity Addition → Relativistic Momentum and Energy → Mass-Energy Equivalence and E=mc² → Photons as Particles with Energy and Momentum → Planck-Einstein Relation: Energy and Frequency → Photoelectric Effect → The Photon: Light as Quanta → Compton Scattering → Wave-Particle Duality → de Broglie Wavelength → The Schrödinger Equation → State Vectors and Wavefunctions → Quantum Superposition → The Measurement Problem → Interpretations of Quantum Mechanics → Postulates of Quantum Mechanics → Observables and Quantum Operators → Commutators and Commutation Relations → Quantum Angular Momentum → Quantum Mechanical Treatment of Hydrogen → Solving the Schrödinger Equation for Hydrogen Atom → Quantum Numbers → Electron Configuration → Periodic Trends → Covalent Bonding → Electronegativity and Bond Polarity → Ionic Bonding → Lewis Structures → VSEPR Theory and Molecular Geometry → Molecular Geometry and Electron Pair Geometry → Molecular Polarity and Dipole Moments → Intermolecular Forces → States of Matter and Phase Changes: Melting, Boiling, and Sublimation → Gas Laws and the Ideal Gas Equation → Gas Stoichiometry and Volume-Volume Calculations → Thermochemistry and Enthalpy → Heat Capacity and Calorimetry → Entropy and Molecular Disorder → Spontaneity and ΔG → Entropy and Gibbs Free Energy → Chemical Equilibrium → Acid-Base Chemistry → Weak Acid Ionization → Weak Base Ionization → Acid and Base Strength: Ka, Kb, and Ionization → Leaving Groups and Nucleofugality → SN2 Substitution Reactions → SN1 Substitution Reactions → E1 Elimination Reactions → Alcohols and Ethers: Structure, Properties, and Nomenclature → Reactions of Alcohols → Aldehydes and Ketones: Structure and Reactivity → Oxidation Reactions in Organic Chemistry → Oxidation of Alcohols to Aldehydes and Ketones → Aldehyde and Ketone Structure and Nomenclature → Nucleophilic Addition to Aldehydes and Ketones → Carboxylic Acids and Their Derivatives → IUPAC Nomenclature of Carbonyls and Carboxylic Acids → IUPAC Nomenclature of Alkenes → Electrophilic Addition to Alkenes → Aromaticity and Benzene → Electrophilic Aromatic Substitution (EAS) → Nucleophilic Aromatic Substitution (SNAr) → Nucleophilic Acyl Substitution → Amines: Structure, Basicity, and Reactions → Amine Reactivity: Nucleophilicity and Basicity → Amino Acid Structure and Properties → Peptide Bonds and Polypeptide Formation → Protein Primary Structure → Protein Secondary Structure → Protein Tertiary Structure → Enzyme Structure and Function → Transcription: DNA to RNA → RNA Types and Structure → RNA Structure and Intramolecular Base Pairing → RNA Processing and Splicing → Translation: RNA to Protein → Ribosomes: Protein Synthesis Machines → Translation: Initiation and Elongation → Post-Translational Modifications → Proteasomal Degradation and Ubiquitin-Mediated Marking → Cell Cycle Regulation and Checkpoints → Cell Cycle Checkpoints: Ensuring Genome Integrity → Cell Cycle Checkpoints and Cancer Prevention → Mitotic Spindle Checkpoint and Chromosome Segregation → Kinetochore Structure and Function → Mitochondria: Structure and Function → Cellular Respiration Overview → Bacterial Metabolism Overview → Antibiotic Resistance Mechanisms → Infectious Disease Epidemiology → Foundations of Epidemiology → Measuring Disease Frequency: Incidence and Prevalence → Epidemiologic Study Designs → Confounding: Definition, Identification, and Causal Criteria → Directed Acyclic Graphs for Causal Modeling

Longest path: 228 steps · 1313 total prerequisite topics

Prerequisites (2)

Leads To (4)