While correlation and regression primarily focus on determining the strength and direction of a relationship between two variables, mediation analysis goes further by introducing a third variable, the mediator, to explore how it can explain the relationship between the other two variables.