Synthetic demonstration · three-factor interaction

The effect lives in one corner of the data.

An outcome can look flat across every single factor you test, and still collapse hard where three conditions happen to coincide. One-factor and two-factor views walk right past it. Stack the factors below and watch it appear.

All numbers on this page are synthetic, generated in your browser from a known model to illustrate a statistical pattern. They describe no real study, population, or exposure.

Conditions

Each switch narrows the data to one level of a factor. Add them one at a time.

Outcome by subgroup

Selectedn = 0
Everyone elsen = 0
0 point gap between the selected subgroup and the rest

The full picture

Every combination of the three factors, with its mean outcome. The controls above just walk you toward one of these cells.

Why a one-factor look misses it

The trap is averaging. When you test a single factor, you average over everything else, and a sharp effect in one small subgroup gets diluted into a shrug.

01

Test exposure alone

The exposed group holds three-quarters unaffected cells and one-quarter suppressed. The average dips a little. Easy to call it noise and move on.

02

Add the group

Restrict to group A and exposed, and half of what remains is suppressed. The gap roughly doubles. A signal, but a muddy one.

03

Add the state

Add the third condition and the subgroup is entirely the suppressed cell. The effect is now unmistakable, and it was there the whole time.

The transferable lesson

An interaction is not the sum of its parts. If an effect only exists where several conditions meet, then marginal tests, one factor at a time, are built to hide it, and so is any model that assumes factors act independently. When a subgroup matters, test the subgroup: interactions, stratified estimates, or a model with the product terms in it. The effect that hid from three separate tests can be obvious the moment you look at the corner where it lives.