Causal inference · Module 2: Thinking in causal maps

Confounders and the back door

What is the back-door criterion?

2.3 · 4 min 9 s · published

Judea Pearl’s rule for estimating an effect from data you didn’t control. List every route between treatment and outcome that starts with an arrow into the treatment: the back doors. Close each one by holding fixed a variable on it. Don’t hold fixed anything the treatment causes, and don’t open a shut door by holding fixed a collider.

Key points

  • In Italy, matching organic olive farms with similar conventional ones closed the farm-size back door: technical efficiency about 10 per cent higher.
  • The variables you hold fixed are the adjustment set; sometimes none works.
  • “Covariate” is a label, not a role: a confounder goes in, a mediator and a collider stay out.
  • In the Greek cotton study, a causal map came first, then matching and weighting: 12 to 17 per cent more yield.

Chapters

  1. 0:00 Recap: forks and the middle
  2. 0:19 The front door and the back door
  3. 1:19 The back-door rule
  4. 2:11 “Covariate” is a label, not a role
  5. 2:59 Map first, then compare

Key terms

Back-door path
Any route between a treatment and an outcome that starts with an arrow pointing into the treatment, such as organic certification, back to farm size, and on to efficiency. Back doors let through association that isn’t the treatment’s effect, so each must be closed by holding fixed a variable that sits on it.
Adjustment set
The variables you hold fixed to close every back-door path between a treatment and its outcome, without holding fixed anything the treatment causes or any collider. Often more than one set works, and you choose the one you can measure best. Sometimes none works, because a back door runs through something nobody measured.
Covariate
A label for any column in a data set that isn’t the treatment or the outcome. It is not a role: a covariate might be a confounder to adjust for, a mediator to leave out, or a collider never to adjust for. Only a causal map tells you which, and adding the wrong one can create bias.
Matching
Building a fair comparison without randomising, by pairing each treated unit with an untreated one that looks the same on everything measured, such as size, soil, rainfall and enterprise. A balance check then confirms the groups line up. Matching balances what you measured, never what you didn’t.

Transcript

Last time's quick check: in a fork, holding the middle fixed removes the link between the two outer boxes, if the fork is the whole story. Today we use that to deal with confounders. In Italy, researchers asked whether organic certification makes olive farms more efficient. But farm size gets in the way: it affects which farms go organic, and how efficiently a farm can run.

So there are two routes between organic and efficiency. The front door is the arrow we care about, from organic to efficiency. The back door starts with an arrow pointing into the treatment: organic, back to farm size, then on to efficiency. It's a fork, and association flows through it. Compare organic and conventional farms naively and you mix the two routes together.

The researchers closed the back door by matching: comparing organic farms with similar conventional farms. That's holding the middle of the fork fixed. They estimated technical efficiency about 10 per cent higher on organic farms. Careful, though: that's efficiency, not 10 per cent more olives.

The computer scientist Judea Pearl turned this into a rule in the 1990s. To estimate an effect from data you didn't control: One: list every route between the treatment and the outcome that starts with an arrow into the treatment. Those are the back doors. Two: close each one, by holding fixed a variable that sits on it. Three: don't hold fixed anything the treatment causes, and don't open a shut door by holding fixed a collider.

The variables you hold fixed are called the adjustment set. Often more than one set works, and you choose the one you can measure best. Sometimes none works, because a back door runs through something nobody measured. Then no amount of modelling will rescue the comparison.

Now a trap that catches experienced analysts. Open a farm data set, and every column that isn't the treatment or the outcome gets called a covariate. The habit is to put them all in the model, to be safe. But "covariate" is a label, not a role. Soil pH might be a confounder: put it in. Yield, measured after the nitrogen went on, is something the treatment changed: leave it out. Whether a sample was sent to the lab is a collider: never adjust for it. Same spreadsheet, three different instructions, and only the map tells you which is which.

Adding the wrong column doesn't just waste effort. It can create bias that wasn't there. This is how the Greek cotton study from the prologue worked. The researchers drew a causal map of the sowing decision first, used it to decide which differences between fields to balance, and only then compared fields, with matching and with weighting.

Across 171 fields, the estimates ranged from 12 to 17 per cent more yield when sowing followed the advice. Different methods, similar answers: that's reassuring. But every one of them could only close the back doors the researchers could see and measure. Next: a variable that can look like a confounder but sits somewhere very different on the map, between the treatment and the outcome.

Questions

Should I adjust for every variable in my data set?

No. “Covariate” is a label, not a role. Soil pH might be a confounder, so put it in. Yield measured after the nitrogen went on was changed by the treatment, so leave it out. Whether a sample was sent to the lab is a collider, so never adjust for it. Adding the wrong column can create bias that wasn’t there.

What if a back door runs through something nobody measured?

Then no adjustment set can close it, and no amount of modelling will rescue the comparison. The series sets out the alternatives: randomise, find a design that sidesteps the hidden cause, such as an instrument, or work out how strong it would need to be to change the conclusion.

Sources

  1. Raimondo, M., Caracciolo, F., Nazzaro, C. et al. (2021). Organic farming increases the technical efficiency of olive farms in Italy. Agriculture, 11(3), 209. doi:10.3390/agriculture11030209
  2. Pearl, J. (1995). Causal diagrams for empirical research. Biometrika, 82(4), 669–688. doi:10.1093/biomet/82.4.669
  3. Tsoumas, I., Giannarakis, G., Sitokonstantinou, V. et al. (2022). Evaluating digital tools for sustainable agriculture using causal inference. arXiv:2211.03195. doi:10.48550/arXiv.2211.03195

All 30 films · Glossary · The Vitagri Academy

Follow the change in farming

Causal evidence is changing how farming is measured and rewarded. Leave your email and we will tell you when new films, courses and findings are published.

Prefer to read online? Vitagri also writes on Substack. See our privacy policy for how we use your email.