Drawing the assumptions you cannot test

Today we are going to look at a simple picture called a causal diagram, and learn the rule it gives you for deciding which variables belong in a regression.

Priya runs a software company. She wants to know whether a first-week onboarding call raises how much a customer spends a year later. She has the data to run a regression and get a number. But whether that number is the honest answer depends on something the regression by itself cannot tell her: what else is going on between the call and the spend.

Below is a causal diagram with three variables, X, Y and Z. Switch between its three buttons, confounder, collider and mediator, and watch how differently Z sits between X and Y each time.

Z plays a completely different part in each of those three pictures. Which part it plays is written right there in the diagram, in which arrows point where.

What a causal diagram actually claims

A causal diagram is a simple picture with two parts. A node is a variable. An arrow from one node to another says that the first one causes the second.

That is the whole vocabulary. A diagram with three nodes and two arrows is making exactly two factual claims, nothing more and nothing less. Draw an arrow where there is really no cause, or leave one out where there is one, and the diagram tells you the wrong thing to do with your data.

So drawing it correctly is a decision you make before you look at the data. The data cannot hand it to you.

Here are Priya's two fixed nodes. The onboarding call is X. The year-two spend is Y.

A third variable, Z, is going to sit in Priya's data in three different ways. Each time, Z will be measured, real, and sitting right there as a column Priya could add to her regression. What changes is where the arrows point, and that alone decides whether adding it helps her or hurts her.