Bell Statistics

What is the average treatment effect?

The average treatment effect is the mean difference in outcomes if everyone in a population were treated versus if nobody were. It is what a randomised experiment estimates, and it can be an unhelpful summary when the effect varies across people.

Notation
ATE
Also called
ATE, average causal effect, population average effect
Allon Korem

Written by Allon Korem

Chief Executive Officer

Last updated

In plain English

The average treatment effect is the difference between two hypothetical worlds: everyone in the population treated, and nobody treated. Written in potential outcomes it is the mean of Y(1) minus Y(0) across all units. Neither world is observed, and the value is nonetheless estimable — because randomisation makes the treated group's average a valid estimate of the first and the control group's a valid estimate of the second.

This is what a properly run A/B test delivers, and it is worth appreciating how much randomisation is doing. Without it, the treated and untreated groups differ in ways you cannot measure, so their difference confounds the effect with those differences. With it, the two groups are alike in expectation, so a simple difference in means is an unbiased estimate of the ATE with no modelling required at all.

The word doing the work is average. If a change helps mobile users by 8% and hurts desktop users by 3%, the ATE might be 2% — a number that describes neither group and would be the wrong basis for a rollout decision that could be made per platform. Averaging is not a flaw; it answers exactly the question "what happens if we ship this to everyone". It becomes misleading only when treated as a description of a typical user, which it is not.

It is one of several estimands and the distinctions matter when compliance is imperfect. The ATT is the effect among those who actually received treatment, which differs from the ATE when who gets treated is not random. The LATE is the effect among those whose treatment status responds to the assignment. In a clean randomised experiment with full compliance all three coincide, which is why the distinction rarely surfaces in product work and becomes essential in observational settings.

Two practical cautions. The ATE is specific to the population tested — an effect estimated on existing users says little about prospective ones, and one estimated during a promotion says little about a quiet week. And the answer to whether the average conceals variation is a question about heterogeneous treatment effects, which is worth asking whenever a rollout could be targeted rather than universal.

The formula

The estimand, and the reason a difference in means estimates it when assignment is random.

The estimand
ATE = E[ Y(1) − Y(0) ]

Averaged over the whole population, including units that would never take up the treatment.

What randomisation buys
E[ Y | treated ] − E[ Y | control ] = ATE

Unbiased with no modelling, because assignment is independent of the potential outcomes.

Why observational comparisons fail
E[ Y | treated ] − E[ Y | untreated ] = ATE + selection bias

The extra term is the difference between who takes treatment and who does not — see selection bias.

The estimate's precision
SE ≈ √( s₁²/n₁ + s₂²/n₂ )

An ordinary two-sample standard error — see the two-sample t-test calculator.

Worked example

A subscription product tests a simplified onboarding flow across its whole user base. The overall result is reported, then broken down by whether the user arrived from paid or organic acquisition — a split decided in advance.

Overall ATE on 30-day activation
+1.8 percentage points
95% CI
+0.9 to +2.7 pp
Paid-acquisition users (62% of base)
+4.1 pp
Organic users (38% of base)
−2.0 pp
Weighted check
0.62 × 4.1 + 0.38 × (−2.0) = +1.8 pp
Interaction test
p = 0.003

A clear positive average concealing a substantial benefit for one group and a real harm to the other.

The ATE of +1.8 points is correct and is the right answer to "what happens if we ship this to everyone". It is the wrong answer to "should we ship this", because a decision that could be made per segment has better options available than the average implies. Paid-acquisition users, who arrive with less context, benefit substantially from a simpler flow; organic users, who arrive already informed, are slowed by it. Shipping to paid only would deliver 4.1 points on 62% of the base rather than 1.8 on all of it. Two cautions before acting on that. The split was decided in advance, which is what makes the interaction test at p = 0.003 meaningful rather than the product of searching many segmentations. And targeting by acquisition source means maintaining two flows, which has a real engineering cost that the statistics do not capture.

Common misconceptions

The average treatment effect tells you what a typical user experiences.
It is a population average, which can describe nobody. An effect of +2% averaged from +8% for one group and −3% for another is accurate and describes neither. It answers what happens if you treat everyone, which is a different question from what happens to a given user.
ATE, ATT and LATE are technical variants that mean the same thing in practice.
They coincide in a clean randomised experiment with full compliance, which is why product work rarely distinguishes them. They diverge as soon as who receives treatment is not fully determined by assignment — non-compliance, opt-in features, observational data — and there the difference is substantive rather than notational.
An ATE estimated in one experiment generalises to other contexts.
It is specific to the population, period and implementation tested. An effect measured on existing users says little about prospective ones; one measured during a promotional period says little about a quiet week. Generalisation is an assumption about similarity rather than a property the estimate carries with it.

Frequently asked questions

Is the ATE what my A/B test measures?
Yes, provided assignment was random and everyone assigned is included in the analysis. The simple difference in group means is an unbiased estimate of the ATE for the population you tested on, with no modelling required. Dropping users who did not engage, or restricting to those who used the feature, changes the estimand to something else and usually to something biased.
When does the ATE differ from the ATT?
Whenever who gets treated is not random. In an experiment with full compliance they are the same, because the treated group is a random sample of the population. In an observational study, or a feature people opt into, the treated group is self-selected and typically responds differently — so the effect among them can be much larger or smaller than the effect would be across everyone.
How do I know whether the average is hiding variation?
Test for it on segments nominated before the experiment, and report the interaction rather than the segment effects alone. Searching many segmentations afterwards will find apparent variation by chance, so pre-specification is what makes the finding credible. Where a rollout could plausibly be targeted rather than universal, that check is worth building into the analysis plan by default.

Related terms

  • Average treatment effect on the treated

    The effect on the people who actually got it — usually the honest question when uptake was voluntary.

  • Counterfactual

    The outcome you did not get to see — and every method in causal inference is a way of estimating it.

  • Heterogeneous treatment effects

    When the average hides a change that helps some and harms others — and why finding that honestly is hard.

  • Local average treatment effect

    The effect on the people your assignment actually moved — not the population, and not the adopters.

  • Intent-to-treat

    Analyse as randomised, not as treated — the discipline that keeps a comparison valid when uptake is imperfect.

Calculate it

  • Two-sample t-test

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

  • 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

Applying it to a live measurement problem is the part that goes wrong. If you are designing an experiment, reading a result you do not trust, or trying to work out what your marketing actually caused, that is the work we do.

References

  • 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: An Empiricist's Companion. Princeton University Press.