Mediation describes how or why X affects Y: X changes a mediator M, which in turn changes Y (X → M → Y). The indirect effect is the product of path a (X → M) and path b (M → Y), and it is usually tested with a bootstrap confidence interval.
Formula
c = c′ + ab