Interpret Result of chi_square #1520
-
pgmpy.estimators.CITests.chi_square(X, Y, Z, data, boolean=True, significance_level = 0.05) Suppose the return value of this function is True. Does this mean that X and Y are conditionally independent given Zs? I am confused about the return value of this function. |
Beta Was this translation helpful? Give feedback.
Answered by
ankurankan
May 1, 2022
Replies: 1 comment 1 reply
-
@Srj Yes, if the returned value is True, it means that X is conditionally independent of Y given Zs. Essentially, the null hypothesis of the test is that X is independent of Y given Zs, so if we get a p-value > 0.05, it returns independence (i.e. True) else rejects the null implying dependence. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Srj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Srj Yes, if the returned value is True, it means that X is conditionally independent of Y given Zs. Essentially, the null hypothesis of the test is that X is independent of Y given Zs, so if we get a p-value > 0.05, it returns independence (i.e. True) else rejects the null implying dependence.