Math for Causal Inference
All simulators

Build a Causal DAG

Click to add arrows to a returns-to-schooling graph; see parents, ancestors, cycles, topological orders and path counts.

Day 46: Graph Basics & Directed Acyclic Graphs
FamilyAbilitySchoolingOccupationWageRegion
Acyclic. Topological order: Family → Region → Ability → Schooling → Occupation → Wage
parents of Schooling
Family, Ability
children of Schooling
Occupation, Wage
ancestors
Family, Ability
descendants
Occupation, Wage
ADJACENCY MATRIX (row → column)
FASOWR
F011000
A001010
S000110
O000010
W000000
R000000
Directed paths Schooling → Wage: 2 (Schooling → Occupation → Wage; Schooling → Wage)

Click one node, then another, to add or remove the arrow between them (click the same node twice to cancel). The panel reports parents, children, ancestors and descendants of the last node clicked, checks acyclicity and counts the causal paths from schooling to wages.