liveBook · Manning

Structural equation

As explained in Causal Inference for Data Science

A structural equation specifies a variable as a function of its direct causes and unknown factors in a causal system.

A structural equation represents a causal relationship as a function: it defines a variable from its direct causes and unknown factors. For example, Recovery := f(Treatment, U), where U captures patient-specific influences such as age. Unlike an ordinary equality, := assigns an outcome in a particular causal direction; changing Treatment changes Recovery without reversing the relationship. section 2.4

From treatment to recovery

A treatment may influence a patient’s chance of recovery, but patients receiving the same treatment need not respond identically. The unknown-factor term U preserves this individual variation instead of incorrectly making Recovery depend only on Treatment. section 2.4

Use structural equations to reason about interventions:

  • Set T = 1 in the equations and calculate the expected outcome E[O | do(T = 1)]. section 2.5
  • Set T = 0 and calculate E[O | do(T = 0)], then subtract the two expectations to obtain the true ATE. section 2.5
  • Compare that result with differences in observed means and with the adjustment formula to assess whether an estimator is unbiased. section 2.5
Figure 2.8 Graph modeling how Treatment affects patient’s Recovery. Here, we assume that no other factors are relevant to the analysis, similar to the conditions in an RCT.
figure

Use the causal graph to connect the Treatment-to-Recovery relationship with its structural-function representation. section 2.4

Table 2.6 Exercise results
True ATE
 
E[ O| T = 1] – E[ O| T = 0]
 
adjustment(1) – adjustment(0)
 
Estimation of ATE
 

Use the exercise table to organize true ATE calculations, adjustment results, and estimator comparisons. section 2.5

How Causal Inference for Data Science covers it

How deep it goes
Explains unknown factors, causal assignment notation, and intervention substitution, while deferring formal treatment and function approximation.
Examples
Uses patient Treatment and Recovery, unknown patient factors, artificial datasets, and stepwise ATE exercises.
What it assumes
Assumes treatment, outcome, causal graphs, expected values, and interventions, while introducing structural equations informally.
What you can do after
Apply it by substituting treatment values into structural equations and comparing the resulting ATE with data-based estimators.
How it connects
Connects causal graphs, interventions, treatment effects, adjustment formulas, confounding, and machine learning.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal Inference for Data Science. The section links point to the parts of the book it draws on.