Comments (4)
Generally in that chain T should always be independent of Y given X if the relationships are non-deterministic. So, it is only a question whether the independence test is able to capture it. The issue with the signal to noise ratio is:
If it would be deterministic, e.g. in the obvious case of the identity X := T, then it's clear that T and Y are not independent given X = T. Adding noise will make it non deterministic and helps, but adding too small noise might not be enough for the independence test to capture it.
from dowhy.
Hi,
Thanks for raising this interesting issue. You are right, in theory, it should pass all LMC tests. It seems to find a violation for the Y
node and when I checked the underlying independence tests, it rejects the conditional independence between T
and Y
given X
. It seems that the statistical power of the independence tests is reaching its limit here, since the noise of Y
is relatively small compared to Z
and T
due to their coefficients. Here, Y
has 56 * T
, so the variance added by the noise on Y
is too small in comparison. If you increase the variance of the noise or decrease the coefficients, then it should correctly find that the LMCs hold. For instance, change it to:
y = 5*z + 7*x + np.array(sps.norm.rvs(10,20, size = n))
(variance from 10 to 20)
Alternatively, maybe other independence tests can capture (in)dependencies with (relative) small variance. Since you only have linear connections, maybe you can try partial correlations instead.
Let me know if this helps!
from dowhy.
Thank you very much for answer! Increasing noise for Y
really helped.
Am I correctly understand, that for chains like T->X->Y
I will not see conditional independence between T
and Y
given X
if the noise brought in Y
from T
do not have the same range as the independent noise in Y
?
I've tested a bit and only for a chain it successfully passes independent test, even with are lower Y
dispersion (10->1).
But not passing for my initial model even with are Y
dispersion (10->100).
from dowhy.
I've realized, that for the initial model T should not be independent of Y given X, as we are opening way through the Z by the collider in X, while controlling X.
from dowhy.
Related Issues (20)
- Python 3.12 support HOT 9
- Clarify the differences among refute methods HOT 11
- Feature relevance/Influence HOT 25
- Graphviz installation : --include-path not recognized anymore HOT 4
- Does this package support non-English languages? HOT 3
- Question about Dummy Outcome Refuter HOT 2
- Inconsistency in the placebo_treatment_refuter when using estimate_effect of IV HOT 1
- numpy.dual is dropped but it still occurs in dowhy HOT 2
- NetworkXError: graph should be directed acyclic HOT 4
- Refutation & Overlap Error ("data_subset_refuter", "add_unobserved_common_cause", assess_support_and_overlap_overrule) HOT 2
- No Backdoor Path Available
- Clarification on how to use gcm properly for confounders adjustment HOT 5
- Can you provide code demo for each function? HOT 2
- How is propensity score matching implemented? HOT 2
- Interpreting mean while using logistic regression to estimate causal effect. HOT 1
- model.estimate_effect and model.refute_astimate throws 'A column-vector y was passed ...' error
- RuntimeWarning: divide by zero encountered in divide when using evaluate_causal_model HOT 3
- Auto assign_causal_mechanisms is taking so much time in gcm HOT 10
- falsify_graph HOT 6
- Remove use of CausalModel from test files and notebooks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dowhy.