Skip to content

[WIP] Blogpost for do and observe functionality #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
0a0e13c
Early first draft
drbenvincent Jun 6, 2023
ebf2bd8
fix the broken simulated data part with pm.sample
drbenvincent Jun 6, 2023
da99062
updates to libraries with/without graph representations
drbenvincent Jun 6, 2023
441a3dc
committing progress so far
drbenvincent Jun 8, 2023
2ed0106
add suggested text by Thomas at start of causal inference section
drbenvincent Jun 8, 2023
48774fe
update blog post structure
drbenvincent Jun 12, 2023
4cb3ae7
use random seed, fix example 2
drbenvincent Jun 14, 2023
9e78580
graphviz fixed with latest versions of pymc, pytensory, pymc_experime…
drbenvincent Jun 19, 2023
af622fd
get Example 2 working with do, using the workflow we wanted
drbenvincent Jun 20, 2023
60cfa3e
add more background on computation graphs
drbenvincent Jun 20, 2023
b95d923
improve section where we have to inject C into the model in Example 2
drbenvincent Jun 20, 2023
238ed29
finish the end of the post
drbenvincent Jun 20, 2023
77406e0
fix maths typo
drbenvincent Jun 20, 2023
cc202ca
fix more instances of the same typo
drbenvincent Jun 20, 2023
c5a5e67
remove callout box
drbenvincent Jun 20, 2023
e1f4d42
add call to action: causalpy
drbenvincent Jun 20, 2023
71be7fe
add Pyro and NumPyro to list of packages which build a graph
drbenvincent Jun 21, 2023
1a450c4
Add links to Ricardo's videos
drbenvincent Jun 21, 2023
e558425
simulate data for Example 1 using pymc rather than numpy
drbenvincent Jun 21, 2023
c2a2c9a
black format notebook
drbenvincent Jun 21, 2023
0137c0f
explain ATE
drbenvincent Jun 21, 2023
529c717
typos etc
drbenvincent Jun 21, 2023
049a7ec
Add brief explanation of the do-operator
drbenvincent Jun 21, 2023
e6879d9
more references
drbenvincent Jun 21, 2023
6da0756
brief explanation of why we use pm.sample_prior_predictive not pm.sample
drbenvincent Jun 21, 2023
d6869cc
add link to Ricardo's blogpost on out of model predictions
drbenvincent Jun 21, 2023
0f0c159
minor tweaks
drbenvincent Jun 21, 2023
efb455e
update title
drbenvincent Jun 22, 2023
a7b35ac
re-write introduction
drbenvincent Jun 22, 2023
be29a64
minor edits + typo + new intro to do operator
drbenvincent Jun 22, 2023
c5efe94
minor edits + reference to The Book of Why
drbenvincent Jun 22, 2023
22a8933
REORDER EXAMPLE 1 AND 2
drbenvincent Jun 23, 2023
4946967
wording change
drbenvincent Jun 23, 2023
7f1183d
introduce hair loss treatment as a concrete example of the confounder
drbenvincent Jun 23, 2023
27cf8b4
Add stuff about parameter recovery and not normally knowing the true …
drbenvincent Jun 23, 2023
f0a86e4
tweaks + add schematic plot
drbenvincent Jun 23, 2023
c3798d0
don't be lazy, explain what's happening
drbenvincent Jun 23, 2023
7565a43
fix typo
drbenvincent Jun 23, 2023
1a6137d
misc text fixes and improvements
drbenvincent Jun 23, 2023
5bfd551
remove Example 2
drbenvincent Jun 23, 2023
f69a082
expand figure legend for final schematic figure
drbenvincent Jun 23, 2023
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,502 changes: 1,502 additions & 0 deletions blog-posts/do_operator/do_operator_blogpost.ipynb

Large diffs are not rendered by default.

Binary file added blog-posts/do_operator/graphviz_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog-posts/do_operator/schematic.key
Binary file not shown.
Binary file added blog-posts/do_operator/schematic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog-posts/do_operator/sprinkler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.