Bell Statistics

What is causal inference?

Causal inference is the set of methods for estimating what an action actually caused, rather than what merely moved alongside it. It works by reconstructing the counterfactual — what would have happened without the action — from data, under assumptions that must be stated.

Also called
causal analysis, counterfactual inference, effect estimation
Allon Korem

Written by Allon Korem

Chief Executive Officer

Last updated

In plain English

Every causal question is a question about something that did not happen. Did the campaign drive those sales — that is, would the sales have occurred anyway? Did the feature retain those users, or were they the kind who stay? The quantity you want is the difference between what happened and what would have happened otherwise, and the second half is never observed. Causal inference is the collection of strategies for constructing a credible stand-in for it.

The gold standard constructs it by force. In an A/B test, randomization creates a group that is identical to the treated group in expectation, so the control's outcome is a direct estimate of the counterfactual — and crucially it balances the variables nobody measured as well as the ones they did. When you can randomise, do; the assumptions are minimal and the argument is short.

When you cannot, the counterfactual has to be modelled, and each method is a different bet about what makes a valid substitute. Difference-in-differences uses an untreated group's change over the same period, betting that both would have moved in parallel. Synthetic control builds a weighted blend of untreated units that tracked the treated one before the intervention. Propensity score matching pairs treated units with observationally similar untreated ones, betting that similarity on measured variables implies similarity on everything relevant. Instrumental variables exploit something that shifts treatment without touching the outcome directly.

What they share is that the bet is an assumption rather than a fact, and it cannot be verified from the data that rely on it. Parallel trends before the intervention is evidence for parallel trends after it, not proof. Balance on observed covariates says nothing about unobserved ones. This is the honest difference between an experiment and an observational estimate: one buys its causal claim with design, the other with an argument. A good causal analysis therefore states its assumption prominently and tests how much the conclusion would change if it were wrong.

In marketing this is not an academic distinction, because most of the important questions cannot be randomised at the user level. Brand advertising reaches households, not cookies. Pricing changes are visible. A TV flight cannot be hidden from half the country. The practical toolkit is therefore geo experiments, which recover randomisation at the regional level, and marketing mix modelling, which models the counterfactual across all channels at once. Which to reach for is the subject of popular tools for accurate campaign impact analysis.

The formula

The potential outcomes notation makes the problem exact: two outcomes are defined for every unit and only one is ever observed.

Potential outcomes
Yᵢ(1), Yᵢ(0); observed Yᵢ = Dᵢ·Yᵢ(1) + (1 − Dᵢ)·Yᵢ(0)

The fundamental problem of causal inference: for each unit exactly one of the two is observable, so the individual effect is never measurable.

Average treatment effect
ATE = E[ Y(1) − Y(0) ]

Estimable even though no individual effect is, because averages need only one observation per unit and a valid comparison group.

What randomisation buys
( Y(1), Y(0) ) ⫫ D ⟹ ATE = E[Y | D=1] − E[Y | D=0]

Independence between assignment and potential outcomes is what turns a difference in group means into a causal effect. Observational methods assume a conditional version of this.

Conditional ignorability
( Y(1), Y(0) ) ⫫ D | X

The assumption behind matching and regression adjustment: within levels of the measured X, treatment is as good as random. Unverifiable, and false whenever an unmeasured confounder exists.

Worked example

A retailer runs a four-week regional radio campaign in six markets. Sales in those markets rose 8.2% year on year. The CMO wants to know how much of that the radio caused, and three analyses are available.

Naive: treated markets, year on year
+8.2%
Untreated markets over the same period
+5.1%
Difference-in-differences estimate
+3.1%
Synthetic control estimate
+2.4% (95% CI 0.9% to 3.9%)
Pre-period fit of the synthetic control
RMSE 0.7% over 18 months

The naive figure overstates the effect by roughly three and a half times. The two counterfactual methods agree on something between 2% and 3%.

The 8.2% is not wrong as a description; it is wrong as an answer, because it silently assumes the counterfactual was zero growth — and the untreated markets show that assumption was off by five points. Difference-in-differences fixes that by borrowing the untreated trend, at the cost of assuming the six treated markets would have moved in parallel. Synthetic control is more defensible here because the six markets were chosen for radio availability rather than at random, so they are probably not an average sample: it builds a weighted blend of untreated markets that tracked them closely for eighteen months, and the 0.7% pre-period fit is the evidence for that. The two methods agreeing is worth more than either alone, and the honest headline is 2-3% with the assumption named.

Common misconceptions

With enough data, correlation becomes causation.
More data narrows the confidence interval around the association and does nothing to the bias. A confounding variable driving both spend and sales produces the same correlation at any sample size, estimated ever more precisely. Only a design or an assumption bridges the gap, never volume.
We controlled for the obvious variables, so the estimate is causal.
Controlling handles the confounders you measured. The ones you did not measure — or did not think of — are untouched, and in marketing the biggest is usually demand itself, which drives both spend and sales. This is why an observational estimate should always be accompanied by a statement of what would have to be true for it to hold.
Machine learning models find causal relationships if they predict well.
Prediction and causation are different objectives. A model can predict sales beautifully using a variable it would be pointless to intervene on — umbrella sales predict rain — because prediction rewards any stable association. Causal estimation requires assumptions about the data-generating process that no accuracy metric can supply.

Frequently asked questions

Which causal inference method should I use?
Randomise if you possibly can, at whatever unit is feasible — user, cluster or region — because that buys the causal claim with design rather than argument. If you cannot, choose by what makes a credible counterfactual: difference-in-differences when you have a comparable untreated group and a stable pre-period, synthetic control when the treated units were not chosen at random, and matching when treatment depends mostly on characteristics you can observe.
Why is causal inference so central to marketing measurement?
Because platform-reported numbers are mostly associations dressed as effects. A channel that reports conversions is reporting people who saw an ad and converted, many of whom would have converted anyway, and every platform counts those same people. The gap between reported conversions and incremental ones is precisely what causal methods measure, and it is routinely large enough to reverse a budget decision.
How do I know whether a causal assumption holds?
Strictly, you cannot — that is what makes it an assumption. What you can do is test its observable implications, such as checking parallel trends over a long pre-period, and then run a sensitivity analysis asking how strong an unmeasured confounder would have to be to overturn the conclusion. An estimate that survives a plausible amount of hidden bias is worth far more than one quoted with a tight interval and no such check.

Related terms

  • Confounding variable

    A common cause of both variables — the reason a strong, stable correlation can mean nothing.

  • Correlation

    How tightly two variables move together — bounded, unitless, and silent about cause.

  • Difference-in-differences

    Subtract the untreated group's change from the treated group's — and everything rests on parallel trends.

  • Incrementality

    The conversions that would not have happened anyway — and the gap between that and what platforms report.

  • Propensity score matching

    Pair like with like on the probability of being treated — and hope nothing important went unmeasured.

  • Selection bias

    When who ends up in the data is not who you meant to study — and more data makes it worse.

  • Synthetic control

    Build the comparison group instead of finding one — the method for when you have one treated unit.

Calculate it

  • Two-sample t-test

    Compare the average of two independent groups — plan the sample size, then test the result.

  • Correlation test

    Pearson r or Spearman rho, with the Fisher-z interval that says how little a small sample knows.

  • A/B test sample size

    Size a two-proportion experiment before you launch, then read the lift and its interval once it lands.

Knowing the term is the easy part

When randomisation is off the table, the method and its assumptions are the whole argument. Choosing them, and stress-testing them, is what we do in Causal Inference Analysis

References

  • Pearl, J., & Mackenzie, D. (2018). The Book of Why: The New Science of Cause and Effect. Basic Books.
  • Imbens, G. W., & Rubin, D. B. (2015). Causal Inference for Statistics, Social, and Biomedical Sciences. Cambridge University Press.
  • Angrist, J. D., & Pischke, J.-S. (2009). Mostly Harmless Econometrics. Princeton University Press.