pgmpy / pgmpy

Python Library for learning (Structure and Parameter), inference (Probabilistic and Causal), and simulations in Bayesian Networks.

Home Page:https://pgmpy.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: estimate_ate() will return nan if backdoor is null.

Anditty opened this issue · comments

For example, there is a dag looks like: [('T','B'),('B','Y'),('Z','Y'),('Z','T')]
Then if we want to use estimate_ate() to get the ate from T to Y. Then estimate_ate() will return nan since there is no backdoor from T to B.

Yes, currently, only adjustment through backdoor is supported.

I don't think it should return nan when backdoor is null.
If there is no backdoor, then we don't need to control anything. That is to say we can just calculate ATE by frontdoor.