Mediation (statistics)

Welcome to the final episode of our Causal Inference course! Having mastered how to identify *if* a cause has an effect and *how much* of an effect it has, we now turn to the crucial questions of *how* and *why*. This episode introduces mediation analysis, a powerful statistical technique for understanding the mechanisms or pathways through which a cause produces its effect. We will explore how to decompose a total causal effect into its direct and indirect components, using concepts like Directed Acyclic Graphs that you've learned previously. By the end, you'll be able to look beyond the overall effect and uncover the intricate story of causality that unfolds between a treatment and an outcome, providing deeper insights for policy and decision-making.

Check your understanding

These are the same multiple-choice questions you will see in the Quiz section after you listen to the episode. Use them here to preview or review the answers.

What is the primary goal of mediation analysis in causal inference?

  1. To determine if a causal relationship exists.
  2. To understand the mechanism or pathway through which a treatment affects an outcome.
  3. To find a suitable instrumental variable for an analysis.
  4. To control for all confounding variables.
  5. To calculate the Average Treatment Effect (ATE) without decomposition.

In a causal model represented by the Directed Acyclic Graph X → M → Y, which variable is the mediator?

  1. X
  2. Y
  3. M
  4. An unobserved confounder of X and Y

Which of the following equations correctly describes the relationship between the Total Effect (TE), Direct Effect (DE), and Indirect Effect (IE) in a simple mediation model?

  1. TE = DE - IE
  2. TE = DE / IE
  3. IE = TE + DE
  4. TE = DE + IE

How does a mediator (M) differ from a confounder (C) in their relationship with a treatment (X) and an outcome (Y)?

  1. A mediator is on the causal pathway between X and Y, whereas a confounder is a common cause of both X and Y.
  2. A confounder is on the causal pathway between X and Y, whereas a mediator is a common cause of both X and Y.
  3. There is no fundamental difference; the terms are interchangeable.
  4. A mediator affects only the treatment (X), while a confounder affects only the outcome (Y).

Why is decomposing the Total Effect into Direct and Indirect Effects practically useful? (Select all that apply)

  1. It helps in refining and improving interventions by identifying key mechanisms.
  2. It turns a 'black box' relationship into a more understandable process.
  3. It proves that correlation equals causation.
  4. It allows researchers to ignore Simpson's Paradox.
  5. It helps advance scientific theory by testing hypotheses about causal pathways.

Suggested next

Related episodes that are a natural follow-on.

  • Causal inference

    Welcome to the first episode of our Causal Inference course! This introductory session lays the groundwork for understanding not just *what* is happening in your data, but *why*. We'll explore the crucial distinction between prediction, the focus of … Welcome to the first episode of our Causal Inference course! This introductory session lays the groundwork for understanding not just *what* is happening in your data, but *why*. We'll explore the crucial distinction between prediction, the focus of traditional machine learning, and causal reasoning, which seeks to understand the effects of actions and interventions. You'll be introduced to a powerful conceptual framework, the 'Ladder of Causation,' to help structure your thinking about causal questions. We'll also discuss the 'Fundamental Problem of Causal Inference,' a core challenge that motivates the entire field. This episode will equip you with the foundational mindset needed to tackle the more advanced methods we'll cover later, moving you from simply observing patterns to asking 'what if?'.

  • Health informatics

    Welcome to the ninth episode of Introduction to Health Sciences. In a world overflowing with data, how do we harness it to improve health? This episode introduces Health Informatics, the critical field that bridges healthcare, technology, and informa… Welcome to the ninth episode of Introduction to Health Sciences. In a world overflowing with data, how do we harness it to improve health? This episode introduces Health Informatics, the critical field that bridges healthcare, technology, and information science. We will explore how raw data is transformed into actionable knowledge to support patient care, public health initiatives, and biomedical research. You will learn about core applications like Electronic Health Records (EHRs) and telehealth, and understand the profound impact of informatics on improving patient safety and empowering individuals. This episode will equip you with a foundational understanding of how managing health information is essential for the future of healthcare delivery and discovery.

  • Data science

    Welcome to the first episode of our Data Science course! In this introduction, we'll explore the fundamental question: What is Data Science? We'll journey into the modern world of big data and discover why this field has become so crucial. You'll lea… Welcome to the first episode of our Data Science course! In this introduction, we'll explore the fundamental question: What is Data Science? We'll journey into the modern world of big data and discover why this field has become so crucial. You'll learn about the core components that make up data science—statistics, computer science, and domain expertise—and understand how they blend together. We'll also outline the typical lifecycle of a data science project, from asking the right questions to delivering impactful results. This episode provides the foundational knowledge you need before we dive into specific techniques like data analysis, visualization, and machine learning in future sessions. Get ready to understand the 'what' and 'why' behind this transformative discipline.

  • Information system

    Welcome to the first episode of our Information Systems course! This introduction lays the groundwork for everything to come. We will define what an Information System (IS) is and distinguish it from the more familiar term, Information Technology (IT… Welcome to the first episode of our Information Systems course! This introduction lays the groundwork for everything to come. We will define what an Information System (IS) is and distinguish it from the more familiar term, Information Technology (IT). You'll learn about the five fundamental components that make up any IS: hardware, software, data, people, and processes. We'll explore why organizations invest heavily in these systems, examining their role in improving efficiency, supporting decision-making, and gaining a competitive edge. This foundational knowledge is essential for understanding the more specialized topics we'll cover in future episodes.

Often studied before

Episodes that tend to come earlier on similar paths.

  • Regression discontinuity design

    Welcome to Episode 10 of our Causal Inference course! This episode introduces Regression Discontinuity Design (RDD), a powerful quasi-experimental method. You will learn how RDD leverages sharp cutoffs in assignment rules—like a minimum test score fo… Welcome to Episode 10 of our Causal Inference course! This episode introduces Regression Discontinuity Design (RDD), a powerful quasi-experimental method. You will learn how RDD leverages sharp cutoffs in assignment rules—like a minimum test score for a scholarship—to create a natural experiment. We'll explore the core intuition behind RDD, distinguishing it from other observational methods by showing how it mimics a randomized controlled trial for subjects right around the threshold. By the end, you will understand the key assumptions that make RDD a credible tool for estimating causal effects, its main variations (Sharp vs. Fuzzy), and its real-world applications in policy, economics, and healthcare.

  • Difference in differences

    Welcome to the eighth episode of our Causal Inference course! This time, we explore Difference in Differences (DiD), a popular and intuitive quasi-experimental method. DiD is a powerful tool for estimating the causal effects of interventions using ob… Welcome to the eighth episode of our Causal Inference course! This time, we explore Difference in Differences (DiD), a popular and intuitive quasi-experimental method. DiD is a powerful tool for estimating the causal effects of interventions using observational data when a randomized controlled trial isn't possible. We'll break down the logic of how it compares changes over time between a treatment and a control group to isolate the treatment's impact. You will learn about its core mechanism, its single most important assumption—the parallel trends assumption—and understand its strengths and limitations. This episode will equip you to recognize situations where DiD can provide credible causal estimates from real-world data.

  • Correlation does not imply causation

    Welcome to the third episode of our Causal Inference course! Building on our understanding of causality, this episode tackles one of the most fundamental principles in statistics and science: 'Correlation does not imply causation.' We will explore wh… Welcome to the third episode of our Causal Inference course! Building on our understanding of causality, this episode tackles one of the most fundamental principles in statistics and science: 'Correlation does not imply causation.' We will explore what correlation is and, more importantly, why the simple fact that two trends move together doesn't prove that one causes the other. Using relatable examples, from ice cream sales and shark attacks to firefighters and fire damage, we will uncover the common logical traps people fall into. This crucial lesson will highlight the dangers of jumping to conclusions and set the stage for the more advanced methods we'll use later in the course to uncover true causal relationships.

  • Directed acyclic graph

    Welcome to Episode 11 of the Causal Inference course. In this episode, we introduce Directed Acyclic Graphs (DAGs), a powerful visual framework for mapping out our causal assumptions. You will learn what DAGs are, what their components signify, and h… Welcome to Episode 11 of the Causal Inference course. In this episode, we introduce Directed Acyclic Graphs (DAGs), a powerful visual framework for mapping out our causal assumptions. You will learn what DAGs are, what their components signify, and how they provide a formal language for reasoning about complex causal systems. We will explore how DAGs make abstract concepts like confounding concrete by identifying 'backdoor paths' and how they warn us against common pitfalls like selection bias through structures known as 'colliders'. This episode will equip you with the foundational knowledge to translate your understanding of a problem into a formal causal model, guiding your choice of statistical methods and variables for analysis.

  • Simpson's paradox

    Welcome to Episode 14 of our Causal Inference course! In this session, we unravel the mysteries of Simpson's Paradox, a statistical phenomenon where a trend that appears in different groups of data disappears or even reverses when these groups are co… Welcome to Episode 14 of our Causal Inference course! In this session, we unravel the mysteries of Simpson's Paradox, a statistical phenomenon where a trend that appears in different groups of data disappears or even reverses when these groups are combined. We will explore classic examples to understand how this counterintuitive situation arises and connect it directly to the crucial concept of confounding, which we've discussed previously. You will learn that resolving the paradox isn't a simple statistical choice but requires deep causal reasoning. By the end of this episode, you'll be able to identify potential instances of Simpson's Paradox and understand why asking 'why' is essential before drawing conclusions from data.