Skip to content
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

Make Counterfactual syntax closer to mathematical notation #112

Open
djinnome opened this issue Mar 4, 2022 · 0 comments
Open

Make Counterfactual syntax closer to mathematical notation #112

djinnome opened this issue Mar 4, 2022 · 0 comments

Comments

@djinnome
Copy link
Contributor

djinnome commented Mar 4, 2022

Currently,@ is used to represent an intervention in a counterfactual variable, such as:

Y @ X

Recommendation is to convert this to:

Y(x)

where lower case variables (by convention) represent intervention variables.

Also consider renaming InteventionVariable to Value or CounterfactualValue.

Also, to represent the value of a counterfactual variable, we currently use this notation:

+Y @ -X

Recommend this update:

Y(-x) == y

So now, probabilties can be a dictionary of counterfactual variables and values:

Prob = {Y @ x : -y, Z @ d : z, D : -d}
Prob[Y@x]

This could be represented as a constructor like this:

Pr[Y(x)== y, Z(d) == z, D == -d]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant