Search

Search papers and lessons

Causal Mechanism

Level 3 · 12 min read

A causal mechanism is the chain of intermediate steps that carries a cause to its effect, and it is what tells you why an effect happens rather than only that it does.

On this page

  • Colour = topic mix
  • Probability
  • Linear algebra
  • Methods
  • Classical models
  • Losses & regularization
  • Discrete math
  • Sign in to see your progress

TL;DR

A causal mechanism is the chain of intermediate steps that carries a cause to its effect. Saying "a leaflet raised turnout" describes an effect. Saying "the leaflet made voters think the race was close, and close races make people vote" names a mechanism. The second claim tells you what to measure, where the effect could break, and which other settings it should carry over to.

Mechanisms are not the same as statistical mediation. Mediation analysis estimates how much of an effect runs through a named middle variable. A mechanism is a claim about the process itself, and it needs more than a fitted model to support it.

Where you'll see it: in process tracing of a historical case, in field experiments that test why a message worked and not only whether it did, and in any argument that a policy will work somewhere new because the process behind it is the same.

Intuition

From "what" to "how"

A randomised trial can tell you that giving people a voter-information mailer changes how often they vote. That answers a question about the effect. It does not say why. Maybe the mailer told people where to vote. Maybe it made them feel the election mattered. Maybe it made them feel watched. Each explanation predicts a different result if you change the mailer, and each would fail in a different place.

A mechanism is the middle of the story: the steps between the mailer and the ballot. Writing them down is what turns a single number into something you can test, extend or argue about.

A picture of the chain

flowchart LR
  X[Cause: mailer arrives] --> M1[Middle step: voter believes race is close]
  M1 --> M2[Middle step: voter sees vote as worth the trip]
  M2 --> Y[Effect: votes cast]
  X -. direct route .-> Y

The solid arrows are the proposed mechanism. The dotted arrow is any route that skips the middle steps, such as the mailer simply reminding someone of the election date. Part of the work of a mechanism claim is to say which routes are supposed to be there and which are not.

Why the idea exists

Researchers want mechanisms for three reasons. First, a mechanism says where the effect can fail: if the middle step is missing in a new place, the effect should vanish there. Second, a mechanism says what to measure along the way, so a study can check the steps and not just the endpoints. Third, a mechanism is what lets a finding travel, because a process is more likely to be shared across settings than the exact size of one effect. Robert Merton's call for "middle-range theories", which sit between narrow facts and grand systems, helped make this idea a standard part of social science.

The math

Setting up the chain

Let XX be the treatment, MM the proposed middle variable (the mediator), and YY the outcome. Use the linear model

M=a0+aX+u,Y=c0+c′X+bM+e,M = a_0 + a X + u, \qquad Y = c_0 + c' X + b M + e,

where aa, bb, c′c' are coefficients, uu and ee are noise terms with mean zero, and a0a_0, c0c_0 are intercepts. The coefficient aa says how much the treatment moves the mediator. The coefficient bb says how much the mediator moves the outcome holding the treatment fixed. The coefficient c′c' is the direct effect: what the treatment does to YY that does not go through MM.

These are the building blocks of mediation analysis, which fits the model by linear regression and reads off the paths.

Total, direct and indirect effects

Substitute the first equation into the second. The total effect of XX on YY is

total=c′+ab,\text{total} = c' + a b,

and the indirect effect, the part that runs through MM, is the product aba b. The product abab is positive when the two steps push in the same direction (both positive or both negative) and negative when one step reverses the other's sign.

What the mechanism claim adds

The regression gives you aa, bb and c′c'. A mechanism claim makes three further assertions that the regression alone does not prove.

  1. Order. XX happens before MM, and MM happens before YY. Cross-sectional data cannot show this.
  2. No hidden common cause. No third factor drives both MM and YY. In counterfactual language, the mediator is as good as randomly assigned once the treatment is fixed. That is the sequential ignorability condition, and it is the same assumption that makes a confounder matter.
  3. Correct content. The variable MM really is the step the theory names, and not a proxy for something else.

If any of these fails, the indirect effect aba b may be real arithmetic and still not be the mechanism the author describes.

The same idea in counterfactual language

Write Yi(x,m)Y_i(x, m) for the outcome unit ii would show with treatment xx and mediator set to mm, and Mi(x)M_i(x) for the mediator value unit ii would have under treatment xx. The natural indirect effect is

E[Yi(1,Mi(1))−Yi(1,Mi(0))],\mathbb{E}\big[Y_i(1, M_i(1)) - Y_i(1, M_i(0))\big],

the change in the outcome when only the mediator's response to treatment is switched on. The natural direct effect holds the mediator at its untreated value and switches the treatment. These two effects sum to the total effect. The formula looks heavier than the linear case, but it says the same thing: the mechanism is the path the treatment takes through the mediator.

Worked examples

Example
A small hand-computable chain (illustrative numbers)

Suppose the coefficients are a=0.5a = 0.5, b=0.4b = 0.4 and c′=0.2c' = 0.2. These numbers are chosen for arithmetic, not drawn from a real study.

  1. Indirect effect: ab=0.5×0.4=0.2a b = 0.5 \times 0.4 = 0.2.
  2. Total effect: c′+ab=0.2+0.2=0.4c' + ab = 0.2 + 0.2 = 0.4.
  3. Share through the mechanism: abc′+ab=0.20.4=0.5\frac{ab}{c' + ab} = \frac{0.2}{0.4} = 0.5.
  4. Interpretation: half the treatment's effect runs through the proposed middle step. If the middle step were blocked, only the direct route, worth 0.2, would remain. So the data support a mechanism that carries half the effect, not a story in which the middle step explains all of it.
Example
A field-study design that tests the middle step

A team sends a leaflet to half of a random sample of voters. Their theory says the leaflet works by making voters think the race is close. They measure belief in closeness after the leaflet, in the treated and control groups.

  1. Step one, the treatment must move the mediator. Say the treated group rates closeness at 6.2 on a 0-to-10 scale and the control group at 5.0. The gap is 1.2, so a≈1.2a \approx 1.2.
  2. Step two, the mediator must move turnout, holding treatment fixed. Among people with the same treatment status, each extra point of closeness belief goes with about 2 percentage points more turnout. So b≈0.02b \approx 0.02 in probability per point.
  3. The implied indirect effect is ab=1.2×0.02=0.024ab = 1.2 \times 0.02 = 0.024, or about 2.4 percentage points.
  4. Check the total. If the measured total effect on turnout is 3.0 points, the mediated share is 2.4/3.0=0.82.4 / 3.0 = 0.8. That is a strong claim, and it depends on the no-hidden-cause assumption in step two. If the people who read the leaflet were already more engaged, the 2-point slope is inflated, and the share is too.

Interpretation: the design tests the first link directly, and the second only under an assumption. A stronger test would vary the middle step on its own, for instance by giving a different group a message that raises closeness belief without any call to vote.

Tradeoffs and failure modes

SituationProblemBetter choice
Only one outcome was measuredThe middle steps are invisibleMeasure the proposed mediator in the same study
The mediator was measured after the outcomeOrder is reversed, so the chain cannot be causalMeasure the mediator between treatment and outcome
A confounder drives both the mediator and the outcomeThe indirect effect is biased, even with clean randomisation of the treatmentRandomise or instrument the mediator, or adjust for the confounder with care
A single historical caseThe steps may be real but the case cannot show the counterfactualProcess tracing: look for clues that the steps happened in order
The mechanism is vagueMany rival mechanisms fit the same effectState the steps so that each has its own observable prediction

A common failure is to report a mediation table, see a large indirect effect, and call the mechanism established. A mediation result is evidence for a chain. It is not a test of whether the chain is the true one, and rival chains with the same arithmetic can exist.

History

The idea of mechanism is older than the statistics. Robert K. Merton argued in the late 1940s for theories of the middle range that explain how a social process works without claiming to explain everything. In social psychology, Reuben Baron and David Kenny's 1986 paper set out a widely used procedure for testing whether a variable mediates a relation between two others. Judea Pearl and others later gave the counterfactual definitions above in the early 2000s, which made clear what the older procedures had been assuming. In political science, the phrase "causal mechanism" spread through debates about methods, where scholars argued that case studies and experiments should both be judged by how well they identify the steps between cause and effect. It caught on because the question "why" had no clean answer in the regression tables of the time.

Check yourself

QuestionWhat is the difference between an effect and a causal mechanism?Show answer

An effect is the difference a treatment makes to an outcome. A mechanism is the chain of intermediate steps that carries the treatment to the outcome. The effect says that something happens; the mechanism says how, and it predicts where the effect would fail.

QuestionIn the model above, a=0.8a = 0.8, b=0.25b = 0.25 and c′=0.1c' = 0.1. What are the indirect effect, the total effect and the share through the mediator?Show answer

Indirect: ab=0.8×0.25=0.2ab = 0.8 \times 0.25 = 0.2. Total: c′+ab=0.1+0.2=0.3c' + ab = 0.1 + 0.2 = 0.3. Share: 0.2/0.3≈0.670.2 / 0.3 \approx 0.67, so about two-thirds of the effect runs through the mediator.

QuestionWhy is order of measurement important for a mechanism claim?Show answer

A mechanism says the cause comes first, then the middle step, then the outcome. If the mediator is measured after the outcome, or both are measured at the same moment, the data cannot show the proposed order, and the reversed story fits the same numbers just as well.

QuestionA study finds a large indirect effect through a mediator, but the mediator and outcome share an unmeasured common cause such as prior interest. What goes wrong?Show answer

The estimated bb picks up the effect of that common cause as well as the mediator's real effect. The indirect effect abab is then inflated or otherwise biased, and the mechanism is overstated. Randomising or instrumenting the mediator, or adjusting for the common cause, is needed before trusting the chain.

QuestionYou want to test whether a message works by making people feel the race is close. Design one check that does not rely on the mediation regression.Show answer

Build a second arm that raises closeness belief directly, for example by reporting a poll showing a tight race, without any call to vote. If turnout rises in that arm by about as much as the mediation model predicts, the middle step is supported by an intervention on the step itself rather than by a statistical decomposition.

Sources