Structural causal models: one equation per mechanism
结构因果模型
Write a causal model as one assignment per variable, compute an intervention by replacing an equation, solve the changed model for one unit to get a counterfactual, and see two models that agree on all observational and experimental numbers yet disagree on the counterfactual.
structural-causal-modelsOne equation per cause, three kinds of question
A structural causal model (SCM) is a short list of equations, one per variable, that says how each variable is produced from its direct causes. Replacing one equation simulates an action, such as giving a treatment to everyone. Solving the equations again for one particular case answers “what would have happened here if things had been different?” Structural equations
Here is a small example. A hidden factor raises both and , and also raises directly. The model has three lines: is random noise, , and . The sign means “is set to”, like assignment in a program. It runs one way: feeds into , not the reverse. Assignment reading
The same three lines answer three different questions. If you only watch the data, rises by about 2.09 for each extra unit of , because pushes both up. If you set yourself, rises by exactly 1.5, because your choice no longer depends on . And for one case seen with and , the model says would have been 1.50 if had been 0. All three numbers come from the synthetic program in the implementation section.
Two terms come up often. Endogenous variables are the ones the model explains, here and . Exogenous or background variables are causes the model leaves unexplained, here and the noise terms. A background variable is not a regression residual. A regression residual is uncorrelated with the predictors by construction. A background factor is part of reality and may be correlated with other variables. Background factors
The three questions match the three rungs of what Pearl calls the ladder of causation. Rung one is association: what tends to go together. Rung two is intervention: what happens if we act. Rung three is the counterfactual: what would have happened in this specific case. In Pearl’s account, a question on one rung needs information from that rung or a higher one. Three-layer hierarchy
This article treats the model itself. The overall framework is in causal inference, and the diagram rules (d-separation, faithfulness) are in causal graphs. It helps to know conditional probability and linear regression. A Bayesian network uses the same kind of factorization without the causal reading. The Judea Pearl article gives a historical two-model example; the one here goes one rung further.
Definition, interventions, counterfactuals and the ladder
This section defines an SCM, shows how an intervention changes it, shows how a counterfactual is computed for one unit, and explains why the three rungs need different information.
From path diagrams to assignments
Pearl traces the first mathematical attempt to write causal relations to Sewall Wright’s path analysis of 1921. Wright combined linear equations such as with a diagram of arrows from causes to effects. Section 3.1, p. 103
An ordinary equation is symmetric. The line can be rewritten as , which looks just as true. Algebra alone therefore cannot say which way influence runs. Pearl’s structural reading is a process: Nature looks at and and then assigns a value to . Eqs. (1)–(2), pp. 103–104 That is why this article writes instead of .
The definition
Schölkopf and co-authors define an SCM over variables arranged on a directed acyclic graph (a diagram of arrows with no loops). Eq. (3), p. 5
In words: each variable is produced by its own mechanism from its direct causes (its parents) and its own unexplained factor . In their definition the noise terms are jointly independent. They note what dependent noise terms would mean: some further common cause would explain the dependence. The model would then not be causally sufficient, that is, it would be missing a shared cause. Joint independence, p. 5
The functions need not be linear. Pearl’s nonparametric version writes, for a chain, , and . Leaving a variable out of a function’s argument list is a claim: Nature ignores that variable when setting this one. Eq. (5), p. 107 In a diagram, a missing arrow claims zero direct influence, and a missing dashed double arrow claims that two background factors are uncorrelated. Missing links, p. 105
Pearl calls such a set of functions structural when each one is autonomous. Autonomous means it stays the same if the form of the other functions changes. He credits this idea to Simon (1953) and Koopmans (1953). Autonomy, p. 107 The arrows of the model’s diagram point from the arguments of each to . What those diagrams imply about independence is the subject of causal graphs.
Markovian models and the factorization
Pearl calls a model Markovian if its diagram has no cycles and all its background terms are jointly independent. Section 3.2.3, p. 110
In words: for a Markovian model, the joint probability of all variables is a product of one factor per variable. Each factor is the probability of given the values of its parents, and it stands for one mechanism. Pearl states this as Theorem 1, the causal Markov condition. Theorem 1, eq. (15) He adds that in a Markovian model every causal effect is identifiable, meaning computable from the observed distribution. This presupposes that every variable in the model is observed. Pearl contrasts it with non-Markovian models, whose background terms are correlated through unmeasured confounders and which allow identification only under certain conditions. Section 3.2.3, p. 110 In the example above, is hidden, so the claim does not apply to the observed pair .
Interventions: replace one equation
Pearl’s do-operator writes an intervention as . It deletes the equation for , puts the constant in its place, and keeps every other equation unchanged. The result is a modified model . The post-intervention distribution is then defined as : the distribution of in the modified model. Eqs. (6)–(7), pp. 107–108 A causal effect is a contrast between two such quantities, for example . Eqs. (8)–(9), p. 108
For a Markovian model this has a simple probability form, which Pearl gives as Corollary 1. Eq. (17), p. 111
In words: to intervene, drop the factors of the variables you set, plug the set value into all remaining factors, and leave those mechanisms unchanged. The formula applies to value combinations that agree with ; the others get probability zero. This is the truncated factorization. Pearl notes that Spirtes and co-authors (1993) called it the “Manipulation Theorem” and that it is implicit in Robins’ (1987) G-computation formula. Footnote 8 The same rule handles several variables set at once. Eqs. (21)–(22), p. 112 In diagram terms, setting removes the arrows into . Schölkopf and co-authors describe it as disconnecting the variable from its parents. Section III-D, p. 6
Not every intervention fixes a constant. Schölkopf and co-authors separate three kinds. A hard (perfect) intervention sets a variable to a constant. A soft (imperfect) intervention changes its function or noise, so the variable still responds to its parents in a new way. An uncertain intervention is one where the learner does not know which mechanism changed. Interventions, pp. 5–6
Why a structural coefficient is an effect
Take the linear structural equation . Pearl derives what happens under . Eq. (14), p. 110
In words: once is set to from outside, equals plus a background term. The setting does not change that term’s mean, so the coefficient is the effect of on . Pearl stresses that this holds however was chosen and even when and are correlated. Such correlation only makes harder to estimate from passive data. The structural equation by itself says nothing about the ordinary regression quantity . Section 3.2.2, p. 110 The example in this article makes that gap visible: , while the regression slope is about 2.09.
Counterfactuals for one unit
Pearl identifies a unit, such as one person, with its vector of background values. The functions are the same for every unit; only differs. p. 120 A counterfactual is then defined by solving a modified model for that unit. Definition 4, eq. (27)
In words: to find the value would have taken for unit had been , run the modified model with that unit’s background values . “Had been ” is read as the smallest change that does the job: replace ‘s equation by the constant .
Usually we do not know directly; we only see some evidence about the unit. Pearl’s linear example shows how to proceed. The model is and . A unit is observed with and . The second equation then fixes . Setting and solving gives , with probability one. p. 121 The recipe has three plain steps. First, use the evidence to work out what can be known about the unit’s background values. Second, replace the equation of the variable you change. Third, solve the modified model with those background values.
In nonlinear models the evidence usually narrows down only partly. The answer then depends on the distribution of the background variables as well. For that reason Pearl says attribution questions (did cause this outcome for this unit?) are generally not identifiable in nonparametric models. p. 121 They cannot be settled by experiments either, because no individual can be observed both with and without treatment. Footnote 11, p. 119 Joint statements such as ” and ” still get a well-defined probability in an SCM. Each part is evaluated in its own modified model with the same . p. 121
The potential-outcome notation used in causal inference writes the same quantity as . In Pearl’s account, its basic rules follow from the structural definition. One is consistency: if actually happened, then . Eqs. (36)–(38), pp. 127–128 Missing arrows become exclusion restrictions, and missing dashed arcs become independence restrictions on potential outcomes. Eqs. (41)–(42), pp. 131–132 Hernán and Robins also tie causal diagrams to a structural model, a nonparametric structural equation model (NPSEM). They flag a difference in assumptions, though. Pearl usually assumes mutually independent errors (a model they call NPSEM-IE), which makes many more independence assumptions than Robins’ FFRCISTG model. Technical Points 6.2–6.3, pp. 77–78
The ladder of causation
Pearl’s 2018 report lays the three kinds of question out as a hierarchy. pp. 1–2, Fig. 1 The example questions in the last column are ours, phrased for the article’s model.
| Rung | Pearl’s name | Typical expression | Example question (ours) |
|---|---|---|---|
| 1 | Association | Among cases with , what is on average? | |
| 2 | Intervention | If we set for everyone, what is on average? | |
| 3 | Counterfactual | This case had and . What would have been with ? |
Pearl writes that questions on rung can be answered only with information from rung or higher, and that counterfactuals need functional models, meaning structural equations or their properties. pp. 1–2 The report states this informally; we did not read a formal proof.
Schölkopf and co-authors make the same point by comparing model types. A causal graphical model, meaning a graph plus the conditional distributions of each variable given its parents, predicts the effect of interventions. Only an SCM also gives counterfactuals, because a counterfactual needs fixed values of the noise. Many different SCMs, with different functions and noise, produce the same conditional distributions. Section III-D, p. 6 Table I, p. 3 They also note that the two kinds of query form a continuum. A query is a plain intervention when is empty and a full counterfactual when pins down all the noise terms. Footnote 2, p. 3 Part B of the example below builds two such SCMs.
Independent mechanisms
Autonomy has a probabilistic cousin. Schölkopf and co-authors state the independent causal mechanisms (ICM) principle: the process that generates the data is made of autonomous modules that do not inform or influence each other. In probability terms, the conditional distribution of each variable given its causes tells you nothing about the other mechanisms. Their example is altitude and temperature. The mechanism may be nearly the same in different countries, while the distribution of altitudes differs. Section IV, pp. 6–7 They present it as a principle, a working assumption, not a theorem.
Seeing, doing and imagining in a synthetic model
This section runs two original synthetic examples and reads every printed number. The program uses numpy and the standard library, with a fixed seed. It uses no real data.
Part A is the linear model from the opening. All noises are standard normal.
In words: a hidden factor raises by 0.8 per unit. gets 1.5 per unit of plus 1.2 per unit of . Each of , and also has its own independent noise .
Part B is a constructed pair of binary models. and are independent coin flips that are 1 with probability 0.5. Model M1 sets and , where is exclusive or (1 when exactly one input is 1). Model M2 sets and . The program enumerates the four equally likely background combinations exactly.
# Original synthetic SCMs: seeing, doing and imagining (no real data).
import itertools
import numpy as np
rng = np.random.default_rng(16)
N = 500_000
BETA, GAMMA, ALPHA = 1.5, 1.2, 0.8
print("Part A. Linear SCM with a hidden common cause U")
print(" U := N_U, X := 0.8 U + N_X, Y := 1.5 X + 1.2 U + N_Y (all noises N(0,1))")
u, nx, ny = rng.standard_normal((3, N))
x = ALPHA * u + nx
y = BETA * x + GAMMA * u + ny
slope = np.cov(x, y)[0, 1] / np.var(x, ddof=1)
exact_slope = BETA + GAMMA * ALPHA / (ALPHA ** 2 + 1)
print(f" rung 1, regression slope of Y on X: {slope:.4f} (exact {exact_slope:.4f})")
def y_under_do(x_value):
# mutilated model: X's equation replaced by the constant x_value, same noises
return BETA * x_value + GAMMA * u + ny
eff = y_under_do(1.0).mean() - y_under_do(0.0).mean()
print(f" rung 2, E[Y|do(X=1)] - E[Y|do(X=0)]: {eff:.4f} (exact {BETA:.4f})")
near1 = np.abs(x - 1.0) < 0.05
print(f" seeing X near 1: E[Y | X~1] = {y[near1].mean():.4f} (exact {exact_slope:.4f});"
f" doing X = 1: E[Y|do(X=1)] = {y_under_do(1.0).mean():.4f} (exact 1.5000)")
x_obs, y_obs = 1.0, 3.0
w = y_obs - BETA * x_obs # step 1: infer this unit's background term 1.2 U + N_Y
y_cf = BETA * 0.0 + w # steps 2-3: set X to 0, keep the background term, solve for Y
print(f" rung 3, unit with X=1, Y=3: background term 1.2U+N_Y = {w:.2f}; Y had X been 0 = {y_cf:.2f}")
print("\nPart B. Two binary SCMs that agree on rungs 1 and 2 but not on rung 3")
print(" M1: X := U_X, Y := X xor U_Y M2: X := U_X, Y := U_Y (U_X, U_Y ~ Bernoulli(0.5))")
def model(name, ux, uy, do_x=None):
xv = ux if do_x is None else do_x
yv = (xv ^ uy) if name == "M1" else uy
return xv, yv
for name in ("M1", "M2"):
obs = {}
for ux, uy in itertools.product((0, 1), repeat=2):
key = model(name, ux, uy)
obs[key] = obs.get(key, 0) + 0.25
p_y_x1 = obs.get((1, 1), 0) / (obs.get((1, 0), 0) + obs.get((1, 1), 0))
p_do = [sum(0.25 * model(name, ux, uy, do_x=v)[1]
for ux, uy in itertools.product((0, 1), repeat=2)) for v in (0, 1)]
# counterfactual: among units with X=1, Y=1, would Y have been 1 had X been 0?
num = den = 0.0
for ux, uy in itertools.product((0, 1), repeat=2):
if model(name, ux, uy) == (1, 1):
den += 0.25
num += 0.25 * model(name, ux, uy, do_x=0)[1]
print(f" {name}: P(X,Y) cells = {[obs.get(k, 0) for k in [(0,0),(0,1),(1,0),(1,1)]]}, "
f"P(Y=1|X=1) = {p_y_x1:.2f}, P(Y=1|do(X=0)) = {p_do[0]:.2f}, "
f"P(Y=1|do(X=1)) = {p_do[1]:.2f}, P(Y_(X=0)=1 | X=1,Y=1) = {num / den:.2f}")
The program prints:
Part A. Linear SCM with a hidden common cause U
U := N_U, X := 0.8 U + N_X, Y := 1.5 X + 1.2 U + N_Y (all noises N(0,1))
rung 1, regression slope of Y on X: 2.0867 (exact 2.0854)
rung 2, E[Y|do(X=1)] - E[Y|do(X=0)]: 1.5000 (exact 1.5000)
seeing X near 1: E[Y | X~1] = 2.0911 (exact 2.0854); doing X = 1: E[Y|do(X=1)] = 1.5018 (exact 1.5000)
rung 3, unit with X=1, Y=3: background term 1.2U+N_Y = 1.50; Y had X been 0 = 1.50
Part B. Two binary SCMs that agree on rungs 1 and 2 but not on rung 3
M1: X := U_X, Y := X xor U_Y M2: X := U_X, Y := U_Y (U_X, U_Y ~ Bernoulli(0.5))
M1: P(X,Y) cells = [0.25, 0.25, 0.25, 0.25], P(Y=1|X=1) = 0.50, P(Y=1|do(X=0)) = 0.50, P(Y=1|do(X=1)) = 0.50, P(Y_(X=0)=1 | X=1,Y=1) = 0.00
M2: P(X,Y) cells = [0.25, 0.25, 0.25, 0.25], P(Y=1|X=1) = 0.50, P(Y=1|do(X=0)) = 0.50, P(Y=1|do(X=1)) = 0.50, P(Y_(X=0)=1 | X=1,Y=1) = 1.00
Rung 1, seeing. The regression slope of on is 2.0867 in 500,000 samples. The exact value follows by hand. . . The slope is . Averaging over samples with within 0.05 of 1 gives 2.0911, close to the same 2.0854. The extra is not an effect of . It is there because a high hints at a high , and also raises .
Rung 2, doing. The function y_under_do builds the modified model: ‘s equation is replaced by a constant, and the rest is kept. The difference between setting and is printed as 1.5000. This is exact, not a lucky estimate. Both settings reuse the same noise draws for and , so each simulated unit’s difference is exactly 1.5. The level is 1.5018. It differs from the exact 1.5 only through the sample mean of . So seeing predicts , while doing gives .
Rung 3, imagining. One unit is seen with and . Step one: its background term is . Step two: replace ‘s equation by . Step three: solve, keeping that background term: . The population answer to “set ” is . This unit’s counterfactual is 1.50, because its background happened to be high. We cannot recover and separately from , but the answer needs only their sum, as in Pearl’s linear example.
Part B, why rung 3 needs more. The two binary models print identical observational numbers: all four cells are 0.25, and . They also print identical interventional numbers: . No passive data and no randomized experiment on and can tell them apart. Yet they disagree on the counterfactual.
| Quantity | M1: | M2: |
|---|---|---|
| cells | 0.25 each | 0.25 each |
| 0.50 | 0.50 | |
| , | 0.50, 0.50 | 0.50, 0.50 |
| 0.00 | 1.00 |
The hand reasoning is short. In M1, seeing and means ; setting then gives . In M2, seeing means , and ignores , so it stays 1. In words, M1 says flips for every single unit, yet the average effect is zero because the flips go both ways equally often. M2 says does nothing to anyone. This is the concrete meaning of “rung three needs more than rung two”. The Judea Pearl article has models that already differ at rung two; here even rung two is identical.
What the equations cannot do for you
This section lists what an SCM assumes, what it cannot check, and where this article’s example stops.
The equations are assumptions. Each missing argument or missing arrow is a claim. Pearl notes that each one alone cannot be tested, although together they can have testable consequences. In the chain the model encodes seven such assumptions and implies that and are independent given . p. 106 Checking such implications is covered in causal graphs.
Counterfactual answers rest on the function form. Part B shows that observational and experimental data can leave a counterfactual completely open. The answer then comes from the chosen functions, not from data. In nonlinear models even a known observed distribution does not pin down attribution. p. 121
Hidden variables break easy identification. “Every causal effect is identifiable in a Markovian model” assumes that all model variables are observed. Part A has a hidden , and that is exactly why the regression slope is wrong there. When effects can still be computed from data with hidden variables is the subject of confounding, back-door adjustment and front-door adjustment.
Independence of the noise is a modelling choice. Pearl usually assumes mutually independent errors. Hernán and Robins point out that this adds independence assumptions beyond those of Robins’ FFRCISTG model. Technical Point 6.3, p. 78 Whether those extra assumptions are reasonable depends on the application.
SCMs are a simplification. Schölkopf and co-authors call physical models written as differential equations the gold standard of modelling. They place causal models between such physical models and purely statistical ones: causal models abstract away from physical detail but can still answer some interventional and counterfactual questions. Section II and Table I, pp. 2–3 So a model without time or feedback may miss how a system actually evolves.
The ICM principle is a postulate. It suggests which parts of a model should transfer across settings. It is not a guarantee that they will.
The example is a toy. Both parts are constructed models chosen to make one point each. They say nothing about any real system.
Exercises
These exercises cover the meaning of , two hand calculations, a counterexample, the truncated factorization and a transfer question.
-
Why does Pearl insist on reading a structural equation as an assignment rather than an ordinary equality?
Answer: An equality is symmetric. The line is equivalent to , which would wrongly suggest that drives . The structural reading says Nature assigns from and . So setting changes , while setting (replacing its own equation) leaves unchanged. pp. 103–104
-
In Part A, derive the regression slope of on and the effect of setting . Where does the difference come from?
Answer: and , so the slope is (simulated 2.0867). Under , , and no longer depends on . So , an effect of 1.5 per unit. The gap of 0.5854 comes from , which raises both and .
-
Same model. A unit is seen with and . What would have been had been 1?
Answer: Its background term is . With : .
-
Claim: “If I know for every , I can answer any question about the effect of on .” Give a counterexample.
Answer: Part B. M1 and M2 share every observational and interventional number, all 0.25 cells and 0.50 probabilities. They still give 0.00 and 1.00 for . Questions about individual units and attribution need the structural functions. p. 121 Section III-D, p. 6
-
A Markovian model has arrows , and , with all three variables observed. Its mechanisms are , and . Write using the truncated factorization.
Answer: Drop the factor for : . Summing over gives . That this matches an adjustment formula is studied in back-door adjustment. Here it follows directly because the model is Markovian and fully observed.
-
A team trains a classifier at hospital A and deploys it at hospital B, where the mix of underlying conditions differs. Under the ICM principle, which part of a causal factorization is more likely to carry over?
Answer: The mechanism , like in Schölkopf and co-authors’ example. The distribution of the cause, and a conditional that runs from effect to cause, are less likely to carry over. Section IV, pp. 6–7 This is a principle that guides a hypothesis, not a guarantee; check it on data from the new site. Related practice is in domain adaptation.
History and further reading
This section places SCMs in their history, as reported by the sources we read, and suggests what to read next.
Pearl presents the structural causal model as a merger of three lines of work: structural equation models from economics and the social sciences, the Neyman–Rubin potential-outcome framework, and graphical models. Section 3, p. 102 In the 2018 report he lists its parts as graphical models, structural equations, and counterfactual and interventional logic. p. 3 The report also states that every structural model determines the truth value of every counterfactual sentence. Tool 3, p. 4 Wright’s 1921 path analysis, Simon’s and Koopmans’ autonomy, and Robins’ G-computation enter this account through Pearl’s citations; we did not read those original works.
Hernán and Robins define their causal diagrams through nonparametric structural equation models (NPSEM), which go back to Robins’ 1986 work as they report it. Technical Point 6.2, p. 77 Reading their Technical Points 6.2–6.3 next to Pearl’s Section 4 shows where the two traditions agree and where their assumptions differ.
In machine learning, Schölkopf and co-authors start from the argument that generalizing well beyond the training conditions needs an underlying causal model, not only statistical associations. Section I, p. 1 They name the discovery of high-level causal variables from low-level observations causal representation learning. Abstract It connects to representation learning and disentanglement.
Suggested reading order: Pearl’s 2009 overview, Sections 3.1–3.4, for the definitions used here. Then the six-page 2018 report for the ladder. Then Schölkopf and co-authors, Sections II–IV, for the machine-learning view. Rules for turning do-expressions into ordinary probabilities are the subject of do-calculus. Deeper counterfactual reasoning is in counterfactuals, and learning the graph from data is in causal-discovery.
Make a prediction, then check
Model M1: Y := X xor U_Y; model M2: Y := U_Y (X and U_Y independent Bernoulli(0.5)). They share all observational and interventional distributions. For 'given X=1 and Y=1, would Y have been 1 had X been 0?', which is correct?
Learning objectives
- Write a structural causal model (one structural assignment per variable plus independent background variables), compute a do-intervention by replacing an equation, and explain why with a hidden common cause the structural coefficient 1.5 differs from the regression slope 2.085.
- Compute a unit-level counterfactual by inferring the unit's background term, setting X and solving, and use two models that agree on association and intervention but not on counterfactuals to explain why the third rung needs the functional form.
Prerequisites & connections
Explore related knowledge →References
- Causal inference in statistics: An overview
Judea Pearl · 2009 - The Seven Tools of Causal Inference with Reflections on Machine Learning (author's version, R-481) — scoped
Judea Pearl · 2018 - Towards Causal Representation Learning (arXiv v1) — scoped
Bernhard Schölkopf; Francesco Locatello; Stefan Bauer; Nan Rosemary Ke; Nal Kalchbrenner; Anirudh Goyal; Yoshua Bengio · 2021 - Causal Inference: What If (online version of 19 August 2026) — scoped
Miguel A. Hernán; James M. Robins · 2026
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Claude · 2026-12-03 · Independent AI check (Claude subagent, not the author; not a human or expert review). Gemini-app style edits logged in gemini-edits-016a.json (three en and four zh edits to the opening section) were applied before this check; research was done by a separate research subagent (facts.md) and the prose by a writer subagent. I ran example.py with the pinned interpreter (numpy 1.26.4) and diffed the output against example.stdout.txt (identical); the python block and the printed output in en.mdx and zh.mdx are byte-identical to example.py and example.stdout.txt, and every quoted number matches (slope 2.0867 vs exact 2.0854, E[Y|X~1] 2.0911, do-effect 1.5000, E[Y|do(X=1)] 1.5018, background term and counterfactual 1.50, Part B cells 0.25, probabilities 0.50, counterfactuals 0.00 and 1.00). I re-derived Var(X)=1.64, Cov(X,Y)=3.42, slope 3.42/1.64=2.0854, the 0.5854 gap, the do-effect, both counterfactuals of Part B by enumeration and the exercise answers (0.5 and the truncated-factorization sum). I re-downloaded and read Pearl 2009 (R-350) pp. 102-112, 119-122, 127-128 and 131-132; Pearl R-481 in full; Schölkopf et al. arXiv:2102.11107v1 pp. 1-7 (abstract, §I, §II with Table I and footnotes 1-2, §III-B to §III-D, §IV opening with the altitude example on p. 6 and the ICM principle box on p. 7); and Hernán and Robins, What If (19 Aug 2026 PDF), Technical Points 6.2-6.3 pp. 77-78. I confirmed Pearl's p. 121 typo (u_X for u_Y) and the eq. (10) typo are not reproduced, that the ladder table is cited to R-481 Fig. 1 with the example-question column labelled ours, that 'rung i needs rung i or higher' is called informal, that the do-effect is explained as exact because both arms reuse the same noise draws, and that the pearl.mdx two-model example (which already differs at the interventional level) is linked rather than repeated. I compared zh and en section by section (same claims, hedges, numbers, equations, tables, exercises and answers), checked that every link targets a published article and that unpublished topics stay as inline code, compiled both files with scripts/check-draft-mdx.mjs and ran scripts/check-draft-prose.mjs (passed), and checked aliases case-insensitively against src/data/aliases.json and the other batch-016 folders. I did not read Pearl's Causality, the formal causal hierarchy theorem, Wright 1921, Simon/Koopmans, Spirtes et al., Robins 1986/1987, or any part of the sources beyond the pages listed.
- Ran example.py with the pinned interpreter (numpy 1.26.4); output identical to example.stdout.txt; code and output blocks byte-identical in both languages; every quoted number matches.
- Re-derived the slope 2.0854, the 0.5854 gap, the do-effect 1.5 (exactly 1.5000 because both arms reuse the noise draws), the unit counterfactual 1.50, the Part B values 0.00 vs 1.00, all exercise answers and the quiz answer.
- Re-read Pearl 2009 pp. 102–112, 119–122, 127–128, 131–132: the p. 121 u_X typo and the eq. (10) typo are not reproduced; the Markovian identifiability claim matches p. 110, now with Pearl's contrast to non-Markovian models.
- Re-read R-481 in full: the ladder table cites Fig. 1 with the example-question column labelled ours; 'rung i needs rung i or higher' is labelled informal.
- Re-read Schölkopf et al. pp. 1–7: the ICM principle box is printed on p. 7 and the locator was corrected; the 'simpler description' claim now follows Table I; the causal-representation-learning definition is now cited to the abstract.
- Re-read What If Technical Points 6.2–6.3: NPSEM-IE makes many more independence assumptions than FFRCISTG; removed the unsupported 'not a consensus' sentence.
- Section-by-section zh/en comparison: claims, hedges, equations, tables, exercises and answers match; links point only to published articles and unpublished topics stay inline code; MDX compile and prose scan pass; aliases are case-insensitively unique.
Source locations checked:
- Causal inference in statistics: An overview · R-350 pdftotext, journal pages. Read: §2.4 p. 101 (footnote 4); §3 pp. 102–103; §3.1 pp. 103–106 (Wright 1921, eqs. 1–4, exogenous/endogenous, background factors vs regression residuals, missing links, Fig. 2, seven assumptions, d-separation definition); §3.2 p. 107 (eq. 5, autonomy, Simon 1953 / Koopmans 1953); §3.2.1 pp. 107–108 (eqs. 6–9); Definition 2 p. 109; §3.2.2 pp. 109–110 (eqs. 11–14, beta proven to be an effect coefficient); §3.2.3 pp. 110–112 (Markovian; Theorem 1 eq. 15; eq. 16; Corollary 1 eq. 17; footnote 8; eqs. 18–22); §3.4 pp. 119–122 (Definition 4 eq. 27, eq. 28, linear counterfactual example — printed 'y = beta x + u_X' should read u_Y; footnotes 11–14); §4.1 pp. 127–128 (eqs. 36–38); §4.3 pp. 131–132 (eqs. 41–45). NOT read for this topic: §3.3 beyond its first page, §3.5, §5, §6.
- The Seven Tools of Causal Inference with Reflections on Machine Learning (author's version, R-481) — scoped · pdftotext, all 6 pages read. Used: pp. 1–2 hierarchy (association P(y|x), intervention P(y|do(x),z), counterfactual P(y_x|x',y'); level i needs level ≥ i; counterfactuals need functional/structural models), Fig. 1; p. 3 SCM parts; p. 4 Tool 3 (every structural model determines the truth value of every counterfactual sentence). Published CACM version not read; the formal causal hierarchy theorem was not read.
- Towards Causal Representation Learning (arXiv v1) — scoped · pdftotext of arXiv v1. Used: abstract p. 1 (definition of causal representation learning); §I pp. 1–2 (Issue 1 argument that out-of-i.i.d. generalization needs an underlying causal model; 'A causality perspective' p. 2); §II pp. 2–3 (differential equations, footnote 1; Table I; §II-C and footnote 2 on the intervention–counterfactual continuum); §III-C pp. 5–6 (SCM eq. 3, jointly independent noises, causal sufficiency, causal factorization eq. 4, latent confounders, hard/soft/uncertain interventions); §III-D p. 6 (only SCMs give counterfactuals; many SCMs per conditional); §IV opening and altitude–temperature example p. 6; the ICM principle box itself is printed on p. 7 (checker's correction of the page). NOT read: rest of §IV, §§V–VIII.
- Causal Inference: What If (online version of 19 August 2026) — scoped · pdftotext, printed pages. Read for this topic only Technical Points 6.2–6.3 pp. 77–78 (NPSEM / FCISTG of Robins 1986; NPSEM-IE vs FFRCISTG; causal Markov assumption follows from Robins' independence assumption). NOT read: everything else for this topic.
Related topics