Skip to content

ID returns incorrect estimand for napkin example #372

@djinnome

Description

@djinnome

In the README.md,

from y0.dsl import P, X, Y
from y0.examples import napkin
from y0.algorithm.identify import identify_outcomes

estimand = identify_outcomes(napkin, treatments=X, outcomes=Y)
assert estimand == P(Y | X)

However, the correct estimand for the napkin problem should be:

$$\frac{\sum_{Z_2} P(X, Y\mid Z_1, Z_2)P(Z_2)}{\sum_{Z_2} P(X\mid Z_1, Z_2)P(Z_2)}$$

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions