Giter VIP home page Giter VIP logo

Comments (4)

bloebp avatar bloebp commented on July 3, 2024 1

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.

bloebp avatar bloebp commented on July 3, 2024

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.

sinya2 avatar sinya2 commented on July 3, 2024

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).
image

But not passing for my initial model even with are Y dispersion (10->100).

from dowhy.

sinya2 avatar sinya2 commented on July 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.