- The paper proposes a framework using hierarchical causal models to identify causal effects in nested data, overcoming limitations of aggregated methods.
- It introduces a stepwise approach that collapses, augments, and marginalizes graphs to enable standard do-calculus for causal inference.
- The study demonstrates practical estimation techniques, including hierarchical Bayesian models, with applications like the eight schools reanalysis.
This paper introduces Hierarchical Causal Models (HCMs) as an extension of structural causal models (SCMs) and causal graphical models (CGMs) designed for analyzing hierarchical data, where subunits are nested within units (e.g., students in schools, cells in patients). The primary contribution is a framework for identifying and estimating causal effects in such settings, particularly when unobserved unit-level confounders are present. The authors demonstrate that leveraging subunit-level data can enable causal identification in scenarios where it would be impossible with only aggregated unit-level data.
Key Concepts and Definitions:
- Hierarchical Data: Data collected from subunits (e.g., individual students j in school i) nested within units (e.g., school i). Variables can be unit-level (Xi​) or subunit-level (Aij​,Yij​).
- Hierarchical Structural Causal Models (HSCMs): These extend SCMs by incorporating plates for subunits.
Subunit-level variables (Yij​) are generated by a deterministic mechanism fy that takes as input its endogenous parents (both unit-level Xi​ and subunit-level Aij​), unit-level exogenous noise γiy​ (shared by all subunits in unit i0), and subunit-level exogenous noise i1 (specific to subunit i2 in unit i3).
i4
Unit-level variables (i5) can depend on other unit-level variables (i6) and an entire set of subunit-level variables and their noise within that unit (i7). The mechanism i8 must be invariant to the order of these subunit-level inputs.
i9
- Hierarchical Causal Graphical Models (HCGMs): Derived from HSCMs by integrating out the exogenous noise variables, resulting in stochastic mechanisms.
For subunit variables, this introduces i0 variables, which are unit-level distributions. For example, i1 represents the conditional distribution i2 specific to unit i3. This i4 is itself drawn from a distribution i5 that depends on unit-level parents.
i6
i7
Interventions on subunit variables (e.g., i8) can be conceptualized as hard interventions on their corresponding i9 variables (e.g., Xi​0).
Identification Strategy:
The paper proposes a multi-step graphical procedure to determine if a causal effect is identifiable from an HCGM, assuming infinite data from both units and subunits. The core idea is to transform the HCGM into an equivalent "flat" (non-hierarchical) CGM to which standard do-calculus can be applied.
- Collapse: The HCGM is "collapsed" into a flat CGM by treating the unit-level Xi​1 variables (e.g., Xi​2) as endogenous observed variables (assuming infinite subunit data Xi​3). Subunit-level endogenous variables are removed. The mechanisms for unit-level variables that depend on subunit-level variables must converge to depend on the Xi​4 distributions of those subunit variables. For example, Xi​5 must converge to Xi​6.
- Algorithm: \Cref{alg:collapse} in the paper details this graphical transformation.
- Assumption: Mechanism convergence (\Cref{asm:inf-subunit}) is key for this step.
- Augment: The collapsed model can be augmented by adding new unit-level endogenous variables that are deterministic functions of existing Xi​7 variables. For instance, a variable Xi​8 representing the marginal distribution of Xi​9 within unit Aij​,Yij​0 can be added, where Aij​,Yij​1.
- Algorithm: \Cref{alg:augment} details adding such variables.
- Marginalize: Some variables (typically parents of an augmented variable that have only the augmented variable as a child) can be marginalized out of the augmented collapsed model. This can help satisfy positivity assumptions for do-calculus or simplify the graph.
- Algorithm: \Cref{alg:marginalize} details this removal.
- Apply Do-Calculus: Standard do-calculus is applied to the final (collapsed, augmented, and/or marginalized) flat CGM to derive an identification formula.
- Assumptions: Subunit-level positivity (\Cref{assume:subunit_positive}) ensures Aij​,Yij​2 variables are well-defined. Unit-level positivity (\Cref{assume:unit_positive}, \Cref{asm:positivity_general}) is needed for do-calculus.
Estimation:
Once an estimand is identified, the paper outlines how to estimate it from finite data Aij​,Yij​3.
- Estimate Per-Unit Aij​,Yij​4 Variables: For each unit Aij​,Yij​5, estimate the relevant Aij​,Yij​6 distributions from its subunit data. For example, Aij​,Yij​7 can be estimated by fitting a regression model (e.g., linear regression, logistic regression, or a neural network) to predict Aij​,Yij​8 from Aij​,Yij​9 using data Yij​0 from unit Yij​1.
- Estimate Population Distributions: Use the estimated per-unit Yij​2 variables Yij​3 from all Yij​4 units to estimate population-level distributions, such as Yij​5 or Yij​6. This often involves fitting models where the parameters of the Yij​7 distributions are themselves outcomes or predictors (e.g., using logistic regression to predict Yij​8 from parameters of Yij​9).
- Plug into Identification Formula: Substitute these estimated components into the identification formula derived via do-calculus. This often involves averaging or integrating over the empirical distribution of estimated fy0 variables or samples from their estimated population distribution.
- Hierarchical Bayesian Models: The estimation process naturally lends itself to hierarchical Bayesian modeling. For example, fy1 can be parameterized (e.g., by coefficients of a linear model fy2), and these parameters can be assumed to be drawn from a population distribution fy3. This approach was used in the "Eight Schools" example.
Illustrative Examples from the Paper:
The paper uses three running examples to illustrate the concepts:
- Confounder (Fig. 1b, \Cref{fig:hcm_confounder}): fy4, fy5, fy6. The effect fy7 is identified by averaging per-school predictions: fy8. This is essentially stratifying by school, where each school has a fixed fy9.
- Implementation: For each school Xi​0, fit a model Xi​1 using student data Xi​2. The estimate is Xi​3.
- Confounder with Interference (Fig. 2e, \Cref{fig:hcm_interfere}): Xi​4, Xi​5, Xi​6, Xi​7. Here, subunit treatments Xi​8 influence a unit-level variable Xi​9 (e.g., school-wide discussion), which in turn affects all subunit outcomes Aij​0. Identification involves a front-door adjustment via Aij​1 in the collapsed model.
- Implementation: Requires estimating Aij​2 and Aij​3 from data, then applying the front-door formula.
- Instrument (Fig. 2i, \Cref{fig:hcm_instrument}): Aij​4, Aij​5, Aij​6, Aij​7. Here, Aij​8 is a subunit-level instrument, and Aij​9 is a unit-level outcome. Identification uses a backdoor adjustment in the collapsed/augmented/marginalized model.
- Implementation: Estimate per-unit γiy​0 and γiy​1. Estimate γiy​2. Then apply the backdoor formula by averaging over the empirical distribution of γiy​3.
Application: Eight Schools Reanalysis (\Cref{sec:eight_schools})
The authors reanalyze the classic "eight schools" dataset, where students (subunits) in schools (units) were randomized to a test preparation program (γiy​4), and their SAT scores (γiy​5) were measured, controlling for pre-treatment scores (γiy​6).
- Standard Analysis as HCM: The standard hierarchical Bayesian analysis is shown to be equivalent to estimation under an HCM assuming γiy​7 is randomized within schools, possibly with unobserved school-level confounders γiy​8 affecting γiy​9 (\Cref{fig:school_confound_hcm}). The estimand i00 is identified.
- Adding Interference: They extend the model to include potential interference: the number of students enrolled (i01) might affect class size (i02), which then affects scores (i03) (\Cref{fig:school_interfere_hcm_0}).
- The identification formula becomes more complex (\Cref{eqn:schools_interfere_id}), involving terms like i04 (student interest i05) and i06.
- Implementation: A hierarchical Bayesian model was built to estimate these components.
- Result: While the posterior mean ATE was similar, accounting for interference significantly increased the uncertainty (wider posterior variance) about the program's effectiveness.
Theoretical Insights:
- When Hierarchy Helps: Hierarchy (subunit-level data) primarily aids identification when the treatment variable is at the subunit level. It allows for conditioning on (or marginalizing over) the unit, effectively controlling for unit-level unobserved confounders i07.
- Theorem 3 (\Cref{thm:sufficient_ID}) provides sufficient conditions: if i08 is subunit-level, its effect is identifiable if there's no bi-directed path from i09 to its direct unit descendants in the collapsed model, OR if i10 has a subunit-level instrument.
- When Hierarchy Doesn't Help (Much): If the treatment variable i11 is at the unit level, disaggregating other variables into subunits generally does not help with identification if it was not identifiable in the "erased inner plate" model (Theorem 4, \Cref{thm:unit-level-noID}).
- Marginalization Rules (\Cref{appx:marginalization}): Unlike flat SCMs where any variable with one child can be marginalized out, in HSCMs, a unit-level variable with a subunit parent and a subunit child (an "interferer" like i12 in \Cref{fig:hcm_interfere}) cannot be marginalized out.
Practical Implications and Limitations:
- Leveraging Modern Data: HCMs provide a formal framework for causal inference with increasingly available granular data (e.g., individual user data from apps, single-cell data in biology).
- Nonparametric Nature: The identification results are largely nonparametric regarding the functional forms of causal mechanisms, making them applicable to complex, high-dimensional data.
- Computational Cost: Estimation, especially using hierarchical Bayesian models with MCMC, can be computationally intensive, particularly with many units or complex per-unit models.
- Assumptions:
- Known Causal Graph: The method assumes the causal graph structure is known.
- Mechanism Convergence: Unit-level mechanisms depending on subunit variables must converge as i13. This holds for mechanisms depending on averages of subunit features but might not for sums if not normalized (\Cref{sec:exp-family-mechanisms}).
- Large N, M: Theoretical guarantees (like convergence to collapsed model, learnability of i14) rely on large numbers of units (i15) and subunits (i16). Practical estimation with finite data involves standard statistical approximation errors.
- Positivity: Standard positivity assumptions for do-calculus apply to the transformed flat model.
- Completeness: The proposed identification procedure (collapsing, augmenting, marginalizing, then do-calculus) is not proven to be complete for HCMs. There might be identifiable effects that this procedure fails to identify because the collapsed model has inherent structural constraints not present in general flat CGMs.
In summary, this paper offers a significant step towards principled causal inference from hierarchical data. It provides both a theoretical foundation for identification and practical guidance for estimation, bridging ideas from causal graphical models and hierarchical Bayesian statistics. The framework is particularly relevant given the rise of fine-grained, nested datasets across various scientific and engineering domains.