mej7.comHow AI Works

Causal mediation

Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.

The statistical idea behind patching: an internal variable mediates between input and output if replacing it changes the outcome in the predicted way.

In one paragraph. The statistical idea behind patching: an internal variable mediates between input and output if replacing it changes the outcome in the predicted way.

Used in

Related terms

Full glossary