Mental model

Single World Intervention Graphs

A graph that shows counterfactual variables for a single intervention choice, making “what if” reasoning precise.

Discover

A patient takes a new drug and recovers. To determine if the drug *caused* the recovery, what is the crucial comparison we need to make?

Select the most informative comparison:

Let's explore the tool that helps us make this comparison.

Understand

Understand

To know if a drug worked, you need to know what would have happened without it. A Single World Intervention Graph (SWIG) is a diagram that maps out a single one of these "what if" scenarios. For example, it can draw the world where a patient did take the drug, labeling the outcome as 'Health(with drug)'. To find the drug's effect, you would conceptually compare this to a separate SWIG for the world where they didn't take it.

Try this: Think about which parts of a situation would stay the same if you changed just one decision.

Full explanation

Full explanation

A Single World Intervention Graph (SWIG) is a graphical tool used to represent a single counterfactual scenario. It starts with a standard causal diagram (like a DAG) and modifies it to show what would happen under a specific, hypothetical intervention.

To create a SWIG, you first choose the variable to intervene on, for example, setting Treatment = 'yes'. The key step is to 'split' this intervention node. This split visually separates the background factors that might influence the choice of treatment from the new, externally set value of the treatment, making the counterfactual logic clear.

After the split, all variables that are downstream consequences (descendants) of the intervention are relabeled to show they are now potential outcomes. For example, an Outcome node becomes Outcome(Treatment = 'yes').

The resulting graph represents a single, fixed world. To find a causal effect, you must conceptually compare the outcomes from two different SWIGs. For instance, to see if a new training program worked, you'd compare the potential outcome Performance(trained) from one SWIG to Performance(not_trained) from another.

Research

Research

Single World Intervention Graphs (SWIGs) were developed to graphically represent counterfactual quantities within the formal framework of Structural Causal Models (SCMs). While standard causal graphs (DAGs) encode structural assumptions about the world, SWIGs make the counterfactual dependencies for a specific intervention visually explicit.

  • Pearl (2009) laid the groundwork with Structural Causal Models, where counterfactuals are defined as outcomes in a modified version of the model representing the hypothetical world. [1]
  • Richardson & Robins (2013) formally introduced SWIGs as a graphical tool to unify Pearl's framework with the potential outcomes framework common in statistics. They demonstrated how SWIGs make it possible to read counterfactual dependencies directly from a single-intervention graph. [2]
  • Hernán & Robins (2020) use SWIGs extensively in their textbook Causal Inference: What If to teach complex concepts like mediation, time-varying confounding, and selection bias, showing their utility as a powerful pedagogical and analytical tool in epidemiology and other fields. [3]

Limitations

Limitations

The primary limitation of SWIGs is that they require a correctly specified causal model (a DAG) as their starting point. If the underlying causal assumptions are wrong, the SWIG will also be wrong. Furthermore, for complex scenarios with many variables, interventions, or time points, SWIGs can become visually cluttered and difficult to interpret. They are a tool for formalizing questions and identifying what needs to be measured (identification), not a method for statistical estimation itself.

Try it

Synthesize

Choose a pattern from the guide, then pick an action to try with it.

Which pattern stands out?

What will you try?

Choose a pattern above to select an action.

Sources

Sources

Try it

Check your understanding

A city council wants to know if their new bike lane program *caused* a reduction in traffic congestion. What question does a SWIG help them formally ask?

Show the guide's explanation

Answer: What would congestion be like if we hadn't built the lanes?

This is the core counterfactual question. A SWIG helps map out the variables needed to compare the observed world (with lanes) to the hypothetical world (without lanes).

What is the primary advantage of a Single World Intervention Graph (SWIG) over a standard causal diagram (DAG)?

Show the guide's explanation

Answer: It makes counterfactual variables explicit for a fixed intervention, so you can read dependencies from the graph.

A SWIG transforms a DAG to make counterfactual variables (like Outcome(treatment)) and their dependencies visible for a single, specific 'what if' scenario.

To assess a drug's causal effect on a patient, which two potential outcomes do we conceptually compare?

Show the guide's explanation

Answer: The patient's outcome with the drug and their hypothetical outcome without the drug.

This is the essence of counterfactual causal inference. To find the effect, we compare the outcome in the world where the drug was taken with the outcome in the hypothetical world where it was not. Each of these worlds can be represented by a separate SWIG.

Keep exploring

Find another idea for the decision in front of you.

The complete Reframo library is free to read. Explore another guide whenever you are ready.