Skip to content

Commit 9fa499b

Browse files
committed
Update cross-references to new interventional_what_if_do_operator label
Anticipates PR #850 renaming counterfactuals_do_operator to interventional_what_if_do_operator. Both PRs should merge together. Made-with: Cursor
1 parent d32ce85 commit 9fa499b

8 files changed

+8
-8
lines changed

examples/causal_inference/difference_in_differences.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"\n",
8383
"This differs from Pearl's **Level 3** (unit-level) counterfactuals {cite:p}`pearl2009causality`, which require *abduction* — inferring unit-specific exogenous variables from observed data and then reasoning about what would have happened to *that particular unit* under a different action. The difference-in-differences approach operates at Level 2 (interventional) in Pearl's causal hierarchy, making \"counterfactual\" in the Rubin sense the appropriate term.\n",
8484
"\n",
85-
"For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`counterfactuals_do_operator` notebook.\n",
85+
"For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`interventional_what_if_do_operator` notebook.\n",
8686
":::"
8787
],
8888
"id": "9b827bb1-ce58-436c-b4d0-e4931c4f1829"

examples/causal_inference/difference_in_differences.myst.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This notebook uses "counterfactual" in the **potential outcomes** (Rubin) sense
5656

5757
This differs from Pearl's **Level 3** (unit-level) counterfactuals {cite:p}`pearl2009causality`, which require *abduction* — inferring unit-specific exogenous variables from observed data and then reasoning about what would have happened to *that particular unit* under a different action. The difference-in-differences approach operates at Level 2 (interventional) in Pearl's causal hierarchy, making "counterfactual" in the Rubin sense the appropriate term.
5858

59-
For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`counterfactuals_do_operator` notebook.
59+
For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`interventional_what_if_do_operator` notebook.
6060
:::
6161

6262
+++

examples/causal_inference/excess_deaths.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"\n",
3333
"This differs from Pearl's **Level 3** (unit-level) counterfactuals {cite:p}`pearl2009causality`, which require *abduction* — inferring unit-specific exogenous variables from observed data and then reasoning about what would have happened to *that particular unit* under a different action. The forecasting approach used here operates at Level 2 (interventional) in Pearl's causal hierarchy, making \"counterfactual\" in the Rubin sense the appropriate term.\n",
3434
"\n",
35-
"For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`counterfactuals_do_operator` notebook.\n",
35+
"For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`interventional_what_if_do_operator` notebook.\n",
3636
":::"
3737
],
3838
"id": "a15cd228-d1cd-4d52-bc62-92aa975f798c"

examples/causal_inference/excess_deaths.myst.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This notebook uses "counterfactual" in the **potential outcomes** (Rubin) sense
3838

3939
This differs from Pearl's **Level 3** (unit-level) counterfactuals {cite:p}`pearl2009causality`, which require *abduction* — inferring unit-specific exogenous variables from observed data and then reasoning about what would have happened to *that particular unit* under a different action. The forecasting approach used here operates at Level 2 (interventional) in Pearl's causal hierarchy, making "counterfactual" in the Rubin sense the appropriate term.
4040

41-
For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`counterfactuals_do_operator` notebook.
41+
For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`interventional_what_if_do_operator` notebook.
4242
:::
4343

4444
+++

examples/causal_inference/interrupted_time_series.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"\n",
3333
"This differs from Pearl's **Level 3** (unit-level) counterfactuals {cite:p}`pearl2009causality`, which require *abduction* — inferring unit-specific exogenous variables from observed data and then reasoning about what would have happened to *that particular unit* under a different action. The forecasting approach used here operates at Level 2 (interventional) in Pearl's causal hierarchy, making \"counterfactual\" in the Rubin sense the appropriate term.\n",
3434
"\n",
35-
"For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`counterfactuals_do_operator` notebook.\n",
35+
"For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`interventional_what_if_do_operator` notebook.\n",
3636
":::\n",
3737
"\n",
3838
"Interested readers are directed to the excellent textbook [The Effect](https://theeffectbook.net/) {cite:p}`huntington2021effect`. Chapter 17 covers 'event studies' which the author prefers to the interrupted time series terminology."

examples/causal_inference/interrupted_time_series.myst.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This notebook uses "counterfactual" in the **potential outcomes** (Rubin) sense
3434

3535
This differs from Pearl's **Level 3** (unit-level) counterfactuals {cite:p}`pearl2009causality`, which require *abduction* — inferring unit-specific exogenous variables from observed data and then reasoning about what would have happened to *that particular unit* under a different action. The forecasting approach used here operates at Level 2 (interventional) in Pearl's causal hierarchy, making "counterfactual" in the Rubin sense the appropriate term.
3636

37-
For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`counterfactuals_do_operator` notebook.
37+
For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`interventional_what_if_do_operator` notebook.
3838
:::
3939

4040
Interested readers are directed to the excellent textbook [The Effect](https://theeffectbook.net/) {cite:p}`huntington2021effect`. Chapter 17 covers 'event studies' which the author prefers to the interrupted time series terminology.

examples/causal_inference/regression_discontinuity.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@
615615
"\n",
616616
"This differs from Pearl's **Level 3** (unit-level) counterfactuals {cite:p}`pearl2009causality`, which require *abduction* — inferring unit-specific exogenous variables from observed data and then reasoning about what would have happened to *that particular unit* under a different action. The regression discontinuity approach operates at Level 2 (interventional) in Pearl's causal hierarchy, making \"counterfactual\" in the Rubin sense the appropriate term.\n",
617617
"\n",
618-
"For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`counterfactuals_do_operator` notebook.\n",
618+
"For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`interventional_what_if_do_operator` notebook.\n",
619619
":::\n",
620620
"\n",
621621
"_Technical note:_ Formally we are doing posterior prediction of `y`. Running `pm.sample_posterior_predictive` multiple times with different random seeds will result in new and different samples of `y` each time. However, this is not the case (we are not formally doing posterior prediction) for `mu`. This is because `mu` is a deterministic function (`mu = x + delta*treated`), so for our already obtained posterior samples of `delta`, the values of `mu` will be entirely determined by the values of `x` and `treated` data)."

examples/causal_inference/regression_discontinuity.myst.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ This notebook uses "counterfactual" in the **potential outcomes** (Rubin) sense
171171

172172
This differs from Pearl's **Level 3** (unit-level) counterfactuals {cite:p}`pearl2009causality`, which require *abduction* — inferring unit-specific exogenous variables from observed data and then reasoning about what would have happened to *that particular unit* under a different action. The regression discontinuity approach operates at Level 2 (interventional) in Pearl's causal hierarchy, making "counterfactual" in the Rubin sense the appropriate term.
173173

174-
For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`counterfactuals_do_operator` notebook.
174+
For a detailed discussion of the distinction between interventional (L2) and counterfactual (L3) reasoning, see the {ref}`interventional_what_if_do_operator` notebook.
175175
:::
176176

177177
_Technical note:_ Formally we are doing posterior prediction of `y`. Running `pm.sample_posterior_predictive` multiple times with different random seeds will result in new and different samples of `y` each time. However, this is not the case (we are not formally doing posterior prediction) for `mu`. This is because `mu` is a deterministic function (`mu = x + delta*treated`), so for our already obtained posterior samples of `delta`, the values of `mu` will be entirely determined by the values of `x` and `treated` data).

0 commit comments

Comments
 (0)