Causal mediation analysis is a formal method for decomposing a total causal effect into its direct effect (the treatment's impact on the outcome not through the mediator) and its indirect effect (the portion transmitted through the mediator). This requires specifying a causal model, often a Structural Causal Model (SCM) or causal graph, that defines the relationships between treatment, mediator, outcome, and potential confounders. The analysis moves beyond correlation to answer how a cause produces its effect.
