Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/compile-latex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
- 04-causal-inference/double-machine-learning/presentation/main
- 04-causal-inference/causal-discovery/presentation/main
- 04-causal-inference/interference-spillovers/presentation/main
- 04-causal-inference/transportability-external-validity/presentation/main
- 05-time-series/time-series-forecasting/presentation/main
- 06-advanced-topics/ai-agents/presentation/main
- 06-advanced-topics/computer-science/presentation/main
Expand Down
1 change: 1 addition & 0 deletions 04-causal-inference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Methods for estimating treatment effects and designing experiments.
- `double-machine-learning/`
- `causal-discovery/`
- `interference-spillovers/`
- `transportability-external-validity/`
- `ab-testing/`

## Structure
Expand Down
24 changes: 24 additions & 0 deletions 04-causal-inference/transportability-external-validity/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# transportability-external-validity

## Overview

This topic develops transportability and external validity in causal inference: when, why, and how an effect estimated in one population, site, time period, or experiment can inform decisions in another.

## Scope

- internal validity versus external validity;
- target populations and study populations;
- effect modification;
- covariate shift and support;
- reweighting and standardization;
- transport formula intuition;
- site heterogeneity;
- trial-to-target generalization;
- deployment shift;
- temporal drift;
- policy and implementation differences;
- sensitivity to unmeasured effect modifiers.

## Design principle

A causal effect is not automatically portable. Transport requires assumptions about which mechanisms are stable, which effect modifiers are measured, and whether the target population has support in the original study data.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
% Canonical presentation entry point.
% Keep deck-specific content in transportability_external_validity_beamer.tex.
\input{transportability_external_validity_beamer.tex}
Original file line number Diff line number Diff line change
@@ -0,0 +1,330 @@
\documentclass[aspectratio=169,11pt]{beamer}
\usepackage{../../../shared/theme/esmad_beamer_theme}
\usepackage{amsmath,amssymb}
\usepackage{booktabs}

\title[Transportability]{Transportability and External Validity}
\subtitle{Moving Causal Evidence Across Populations, Sites, and Time}
\date{\today}

\newcommand{\E}{\mathbb{E}}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}{Learning Goals}
\begin{itemize}
\item distinguish internal validity from external validity;
\item define study populations, target populations, and target estimands;
\item explain effect modification and why it drives transportability;
\item use standardization and weighting to generalize effects;
\item diagnose support failures and covariate shift;
\item reason about site heterogeneity, temporal drift, and deployment differences.
\end{itemize}
\end{frame}

\begin{frame}{Outline}
\tableofcontents
\end{frame}

\section{Internal and External Validity}

\begin{frame}{Internal Validity}
Internal validity asks whether the effect is identified in the study population.

A study can be internally valid when:
\begin{itemize}
\item treatment assignment is well understood;
\item confounding is controlled or randomized;
\item measurement is reliable;
\item interference is handled or absent.
\end{itemize}
\end{frame}

\begin{frame}{External Validity}
External validity asks whether the study effect informs another population, site, or time period.

\begin{alertblock}{Key point}
A precisely estimated internally valid effect can still be irrelevant for a new target population.
\end{alertblock}
\end{frame}

\section{Populations and Estimands}

\begin{frame}{Study and Target Populations}
Let \(S=1\) indicate membership in the study population and \(S=0\) the target population.

The study estimand might be
\[
\E[Y(1)-Y(0)\mid S=1].
\]

The target estimand is
\[
\E[Y(1)-Y(0)\mid S=0].
\]
\end{frame}

\begin{frame}{The Estimand Must Be Named}
Transportability depends on what we want to transport:
\begin{itemize}
\item ATE in a new population;
\item ATT for a new treated group;
\item policy value under a deployment rule;
\item site-specific effect;
\item effect at a future time.
\end{itemize}
\end{frame}

\section{Effect Modification}

\begin{frame}{Effect Modifiers}
A covariate \(X\) is an effect modifier if
\[
\E[Y(1)-Y(0)\mid X=x]
\]
varies with \(x\).

If the distribution of \(X\) differs between study and target populations, the average treatment effect may change.
\end{frame}

\begin{frame}{Transport Requires Measured Modifiers}
If all relevant effect modifiers are measured, we can attempt to adjust for population differences.

If important effect modifiers are unmeasured, transport rests on stronger, less testable assumptions.
\end{frame}

\section{Standardization and Weighting}

\begin{frame}{Standardization}
Estimate conditional effects in the study population:
\[
\tau(x)=\E[Y(1)-Y(0)\mid X=x,S=1].
\]

Average them over the target population:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: This average identifies the target ATE only if the conditional effect is invariant between study and target given X. State that cross-population assumption here; measuring modifiers alone does not establish it.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At 04-causal-inference/transportability-external-validity/presentation/transportability_external_validity_beamer.tex, line 108:

<comment>This average identifies the target ATE only if the conditional effect is invariant between study and target given `X`. State that cross-population assumption here; measuring modifiers alone does not establish it.</comment>

<file context>
@@ -0,0 +1,330 @@
+\tau(x)=\E[Y(1)-Y(0)\mid X=x,S=1].
+\]
+
+Average them over the target population:
+\[
+\E_{X\mid S=0}[\tau(X)].
</file context>
Suggested change
Average them over the target population:
Assuming \(\E[Y(1)-Y(0)\mid X=x,S=1]=\E[Y(1)-Y(0)\mid X=x,S=0]\), average them over the target population:

\[
\E_{X\mid S=0}[\tau(X)].
\]
\end{frame}

\begin{frame}{Transport Weights}
A weighting approach reweights study units to resemble the target population:
\[
w(X)=\frac{P(S=0\mid X)}{P(S=1\mid X)}.
\]

Then study effects are averaged with target-like covariate weights.
\end{frame}

\begin{frame}{Support Condition}
Transport requires that target covariate profiles have support in the study population.

If
\[
P(S=1\mid X=x)=0
\]
for some target-relevant \(x\), the study contains no empirical basis for that subgroup.
\end{frame}

\section{Covariate Shift and Site Heterogeneity}

\begin{frame}{Covariate Shift}
Covariate shift means
\[
P(X\mid S=1) \neq P(X\mid S=0).
\]

This matters for transport when treatment effects vary with \(X\).
\end{frame}

\begin{frame}{Site Heterogeneity}
Effects may differ across sites because of:
\begin{itemize}
\item population composition;
\item treatment implementation;
\item baseline risk;
\item institutions;
\item measurement systems;
\item competing interventions.
\end{itemize}
\end{frame}

\begin{frame}{Composition vs Mechanism}
A study and target may differ because:
\begin{itemize}
\item the mix of units differs;
\item the causal mechanism itself differs.
\end{itemize}

Standardization handles composition differences better than mechanism changes.
\end{frame}

\section{Trial-to-Target Generalization}

\begin{frame}{Trial Evidence for a Target Population}
Randomized trials can identify effects internally, but trial participants may differ from the deployment population.

Common differences:
\begin{itemize}
\item eligibility criteria;
\item adherence;
\item baseline risk;
\item access to care;
\item time period.
\end{itemize}
\end{frame}

\begin{frame}{Generalizability vs Transportability}
Generalizability often means the target population contains the study population.

Transportability often means evidence must be moved to a related but distinct population.

The mathematical issues are similar: measured effect modifiers and support dominate.
\end{frame}

\section{Temporal Transport}

\begin{frame}{Effects Can Drift Over Time}
A causal effect estimated in 2024 may not equal the effect in 2027.

Reasons include:
\begin{itemize}
\item technology changes;
\item competitor response;
\item policy adaptation;
\item population learning;
\item saturation effects.
\end{itemize}
\end{frame}

\begin{frame}{Stable Mechanisms}
Temporal transport is more plausible when the mechanism linking treatment to outcome remains stable.

It is less plausible when context changes the treatment itself or the response to it.
\end{frame}

\section{Implementation and Versions of Treatment}

\begin{frame}{Different Versions of Treatment}
The same treatment label may hide different implementations.

Examples:
\begin{itemize}
\item different marketing copy;
\item different clinicians;
\item different software interfaces;
\item different compliance regimes;
\item different pricing rules.
\end{itemize}
\end{frame}

\begin{frame}{Implementation Is Part of the Estimand}
If the treatment version changes, the transported effect may refer to a different intervention.

\begin{alertblock}{Practical warning}
Do not transport an effect across settings where the treatment label stayed fixed but the treatment mechanism changed.
\end{alertblock}
\end{frame}

\section{Sensitivity and Diagnostics}

\begin{frame}{Transport Diagnostics}
Useful checks include:
\begin{itemize}
\item compare study and target covariate distributions;
\item inspect overlap and transport weights;
\item identify target subgroups poorly represented in the study;
\item estimate site-specific effects when possible;
\item compare implementation conditions.
\end{itemize}
\end{frame}

\begin{frame}{Weight Instability}
Large transport weights indicate that a small number of study units represent large parts of the target population.

Consequences:
\begin{itemize}
\item high variance;
\item fragile conclusions;
\item extrapolation risk;
\item sensitivity to model specification.
\end{itemize}
\end{frame}

\begin{frame}{Unmeasured Effect Modifiers}
Sensitivity analysis can ask how strongly an unmeasured modifier would need to differ between study and target populations to change the transported conclusion.
\end{frame}

\section{Applied Reasoning}

\begin{frame}{Example: Regional Pricing Experiment}
Suppose a pricing experiment was run in urban regions.

Can we transport it to rural regions?

Ask:
\begin{itemize}
\item Are baseline demand and income different?
\item Are competitors different?
\item Is customer substitution different?
\item Is the price implementation identical?
\item Are rural profiles represented in the urban experiment?
\end{itemize}
\end{frame}

\begin{frame}{A Credible Transport Workflow}
\begin{enumerate}
\item Define the source population and target population.
\item Define the target estimand.
\item List plausible effect modifiers.
\item Compare modifier distributions.
\item Check support and transport weights.
\item Standardize or weight the study effect to the target.
\item Assess implementation differences.
\item Run sensitivity analysis for unmeasured modifiers.
\item Report where the evidence does not transport.
\end{enumerate}
\end{frame}

\begin{frame}{Common Failure Modes}
\begin{itemize}
\item assuming internal validity implies external validity;
\item transporting an ATE without specifying the target population;
\item ignoring effect modifiers;
\item extrapolating into unsupported target regions;
\item ignoring treatment-version differences;
\item treating old estimates as stable despite temporal drift;
\item hiding unstable transport weights.
\end{itemize}
\end{frame}

\begin{frame}{Synthesis: Effects Travel by Assumption}
\begin{itemize}
\item Internal validity and external validity are different problems.
\item Transport requires a named target estimand.
\item Effect modification is the central reason average effects differ across settings.
\item Standardization and weighting adjust for measured modifier distributions.
\item Support failures create extrapolation, not evidence.
\item Treatment implementation and time can change the causal mechanism.
\item External validity should be argued, diagnosed, and bounded, not assumed.
\end{itemize}
\end{frame}

\begin{frame}{Selected References}
\small
\begin{itemize}
\item Pearl, J., and Bareinboim, E. (2011). Transportability of Causal and Statistical Relations. \textit{AAAI}.
\item Bareinboim, E., and Pearl, J. (2016). Causal Inference and the Data-Fusion Problem. \textit{PNAS}, 113(27), 7345--7352.
\item Stuart, E. A. et al. (2011). Use of Propensity Scores to Assess the Generalizability of Results from Randomized Trials. \textit{JRSS A}, 174(2), 369--386.
\item Dahabreh, I. J. et al. (2020). Generalizing Causal Inferences from Individuals in Randomized Trials to All Trial-Eligible Individuals. \textit{Biometrics}, 76(2), 685--694.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The Dahabreh et al. reference gives the wrong year and volume: the article appeared in Biometrics 75(2), June 2019, pages 685–694 (doi:10.1111/biom.13009), not 2020, 76(2). Update year and volume/issue so readers can locate the correct source.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At 04-causal-inference/transportability-external-validity/presentation/transportability_external_validity_beamer.tex, line 323:

<comment>The Dahabreh et al. reference gives the wrong year and volume: the article appeared in Biometrics 75(2), June 2019, pages 685–694 (doi:10.1111/biom.13009), not 2020, 76(2). Update year and volume/issue so readers can locate the correct source.</comment>

<file context>
@@ -0,0 +1,330 @@
+\item Pearl, J., and Bareinboim, E. (2011). Transportability of Causal and Statistical Relations. \textit{AAAI}.
+\item Bareinboim, E., and Pearl, J. (2016). Causal Inference and the Data-Fusion Problem. \textit{PNAS}, 113(27), 7345--7352.
+\item Stuart, E. A. et al. (2011). Use of Propensity Scores to Assess the Generalizability of Results from Randomized Trials. \textit{JRSS A}, 174(2), 369--386.
+\item Dahabreh, I. J. et al. (2020). Generalizing Causal Inferences from Individuals in Randomized Trials to All Trial-Eligible Individuals. \textit{Biometrics}, 76(2), 685--694.
+\item Tipton, E. (2013). Improving Generalizations from Experiments Using Propensity Score Subclassification. \textit{JRSS A}, 176(2), 495--519.
+\end{itemize}
</file context>
Suggested change
\item Dahabreh, I. J. et al. (2020). Generalizing Causal Inferences from Individuals in Randomized Trials to All Trial-Eligible Individuals. \textit{Biometrics}, 76(2), 685--694.
\item Dahabreh, I. J. et al. (2019). Generalizing Causal Inferences from Individuals in Randomized Trials to All Trial-Eligible Individuals. \textit{Biometrics}, 75(2), 685--694.

\item Tipton, E. (2013). Improving Generalizations from Experiments Using Propensity Score Subclassification. \textit{JRSS A}, 176(2), 495--519.
\end{itemize}
\end{frame}

\contactslide

\end{document}
1 change: 1 addition & 0 deletions compile_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ presentations=(
"04-causal-inference/double-machine-learning/presentation/main"
"04-causal-inference/causal-discovery/presentation/main"
"04-causal-inference/interference-spillovers/presentation/main"
"04-causal-inference/transportability-external-validity/presentation/main"
"05-time-series/time-series-forecasting/presentation/main"
"06-advanced-topics/ai-agents/presentation/main"
"06-advanced-topics/computer-science/presentation/main"
Expand Down
1 change: 1 addition & 0 deletions scripts/validate_presentation_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
Path("04-causal-inference/double-machine-learning/presentation/main.tex"),
Path("04-causal-inference/causal-discovery/presentation/main.tex"),
Path("04-causal-inference/interference-spillovers/presentation/main.tex"),
Path("04-causal-inference/transportability-external-validity/presentation/main.tex"),
Path("05-time-series/time-series-forecasting/presentation/main.tex"),
Path("06-advanced-topics/ai-agents/presentation/main.tex"),
Path("06-advanced-topics/computer-science/presentation/main.tex"),
Expand Down
Loading