Bell Statistics

What is an interaction effect?

An interaction effect occurs when the impact of one change depends on the presence of another, so their combined result is not the sum of their separate results. Two improvements that each work alone can cancel, or amplify, when shipped together.

Also called
interaction, effect modification, moderation, non-additive effect
Allon Korem

Written by Allon Korem

Chief Executive Officer

Last updated

In plain English

Most experimentation programmes assume effects add up. Team A lifts conversion by 2%, team B lifts it by 3%, and the roadmap quietly promises 5%. An interaction is what happens when that arithmetic fails — when the effect of one change is different depending on whether the other is present. The combined result might be 5%, or 1%, or −2%, and nothing in either team's individual readout distinguishes those cases.

The mechanism is usually mundane rather than exotic. Two changes competing for the same screen space, so each dilutes the other's prominence. Two prompts targeting the same moment in the funnel, where the second is redundant once the first has done its work. A discount banner and a free-shipping banner that between them make the site look like a clearance sale. In each case both changes are genuinely good in isolation and the pair is worse than either — a pattern common enough that "we shipped both wins and the metric did not move" is a familiar experience in mature programmes.

Detecting an interaction requires a design that lets both changes vary. A 2 × 2 factorial runs four arms — neither change, A only, B only, both — and the interaction term measures how far the both-arm outcome departs from what the two individual effects predict. This is what a multivariate test is really doing, and its reputation for needing enormous traffic is deserved: detecting an interaction reliably takes roughly four times the sample needed to detect a main effect of the same size, because the estimate is a difference of differences and the noise compounds at each step.

That cost is why most organisations run concurrent tests instead and simply accept the risk. Two experiments overlap on the same users, each randomised independently, and the assumption is that interactions are rare enough to ignore. Usually they are — an interaction needs the two changes to touch the same surface or the same decision, and most pairs of experiments do not. The assumption becomes dangerous exactly when it is most likely to be wrong: two teams working on the same funnel step at the same time is precisely the situation where an interaction is plausible and concurrent testing is blind to it.

Two practical habits are worth more here than any test. Keep a register of what is running where, so overlaps on the same surface are visible and can be deliberately sequenced rather than accidentally combined. And when a shipped combination underperforms its predicted sum, treat that as the finding it is rather than as noise — it is the clearest evidence an interaction exists, and it usually arrives after the fact. We work through the wider question in parallel testing in A/B testing.

The formula

The interaction is the term that has to be added once you stop assuming the two effects are independent. It is estimated as a difference of differences.

The additive model
Y = β₀ + β₁A + β₂B

What a programme running concurrent tests implicitly assumes. Effects sum; the combination is predictable from the parts.

With the interaction term
Y = β₀ + β₁A + β₂B + β₃(A × B)

β₃ is the interaction. Zero means the effects add; negative means they get in each other's way.

What β₃ estimates
β₃ = ( Y_both − Y_A ) − ( Y_B − Y_neither )

The effect of B when A is present, minus the effect of B when it is not. A difference of differences.

Sample size cost
n_interaction ≈ 4 × n_main effect

Four estimates each carrying noise, combined. This is why factorial designs are rarer than their usefulness suggests — see the ANOVA calculator.

Worked example

Two teams test simultaneously on the product page. One adds a trust-badge row; the other adds an urgency banner. Both are run as independent A/B tests on overlapping traffic, and both report wins. A 2 × 2 factorial is run afterwards on 60,000 users per cell to check the combination before shipping both.

Neither change
4.10% conversion
Trust badges only
4.35% (+0.25 pp)
Urgency banner only
4.38% (+0.28 pp)
Predicted for both, if additive
4.63% (+0.53 pp)
Observed with both
4.28% (+0.18 pp)
Interaction term (β₃)
−0.35 pp, 95% CI −0.52 to −0.18

Both changes work alone. Together they deliver less than either does on its own, and about a third of what the roadmap predicted.

This is the failure mode the additive assumption hides. Two honest wins, two correctly analysed experiments, and shipping both costs 0.35 percentage points against what was forecast — on a page where that is real money. The mechanism is not mysterious once seen: both changes compete for attention in the same region above the fold, and a page carrying trust badges and an urgency banner reads as harder-selling than either alone. Note the sample size it took to establish this. Each main effect was detectable at around 15,000 users per arm; the interaction needed 60,000 per cell, four times as much, which is exactly the multiplier the formula predicts and the reason this check is usually skipped. The cheaper habit is not to run the factorial every time but to notice which experiments touch the same surface and sequence those deliberately.

Common misconceptions

Two experiments on the same users will contaminate each other's results.
Independently randomised concurrent tests do not bias each other's main effects — the second test's variants are spread evenly across the first test's arms, so it becomes noise rather than confounding. The real risk is different: each test measures its effect averaged over the other's conditions, so neither readout tells you what happens when both ship together.
If both tests are significant wins, shipping both gives you the sum.
Only if the effects are additive, which is an assumption rather than a finding. When two changes touch the same surface or the same decision point, the combined effect can be smaller than either alone. Nothing in the two individual readouts would reveal that, because neither test ever observed the combination.
A significant interaction means the individual results were wrong.
Both main effects can be entirely correct and the interaction real. They are answers to different questions: how does A perform averaged over B's conditions, versus how does A's effect change depending on B. A significant interaction does mean the main effects should be reported carefully, because an average effect is less meaningful when the underlying effect varies by context.

Frequently asked questions

Is it safe to run two experiments on the same users at once?
Usually yes, provided each is randomised independently, because the second test's variants then spread evenly across the first test's arms and add noise rather than bias. The exception that matters is when both changes touch the same surface or the same funnel step, which is exactly when an interaction is plausible. Keep a register of what is running where, and sequence overlapping tests rather than combining them by accident.
Why do factorial designs need so much more traffic?
Because an interaction is estimated as a difference of differences, so four separate estimates each contribute their noise to the answer. In round terms it takes about four times the sample needed to detect a main effect of the same magnitude. That multiplier is why most teams accept the additive assumption instead — which is defensible for unrelated changes and risky for two experiments on the same page.
Is an interaction the same as an effect that varies by segment?
It is the same statistical structure with a different second variable. An interaction between two experiments asks whether one treatment's effect depends on another treatment; an effect that varies by segment asks whether it depends on a user characteristic such as device or tenure. Both are the same difference-of-differences estimate, and both carry the same sample-size penalty and the same risk of being found by searching many possible splits after the fact.

Related terms

  • ANOVA

    One test for three or more variants — and the reason it deliberately refuses to say which one won.

  • McNemar's test

    The paired test for yes-or-no outcomes — and it throws away every subject who did not change their mind.

  • Multiple comparisons

    Test enough things and something will look significant — the arithmetic, and the four fixes.

  • T-test

    The workhorse for comparing two averages — and the four assumptions that decide whether its answer means anything.

  • Concurrent testing

    Overlapping tests are safe for each result and blind to the combination — which is where the surprise lands.

  • Multivariate test

    Every combination, so interactions are visible — at roughly four times the traffic per effect you want to see.

Calculate it

  • One-way ANOVA

    Three or more independent groups on one continuous outcome — size it, then run the F test.

  • Two-sample t-test

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

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