D-separation (Directed-Separation)

If we have 3 nodes A, B and C. Given the following structures we can derive independence assumptions

  • Common Parrent. Here ABC if we observer B then AC|B. If B contains all the information that determines the outcomes of A and C, than once we observe it there is nothing that affects these variable’s outcomes.

  • Cascade. Here if we observe B, than AC|B. ABC The inituition is that if B holds all the information that determines C, thus it does not matter what value A takes.

  • V-Structure ACA. Here knowing C couples A and B, thus A\cancelB|C.

Probability view

We can look at these in terms of probabilities to make more sense:

  1. XYZ

    Can be encoded as p(x,y,z)=p(x)p(y|x)p(z|y) when we condition on y are x and z independent?

    p(x,z|y)=p(x)p(y|x)p(z|y)p(y)=p(x,y)p(z|y)p(y)=p(x|y)p(z|y)xz|y
  2. XYZ

    p(x,y,z)=p(y)p(x|y)p(z|y) if we condition on y are x and z indepedent?

    p(x,z|y)=p(x,y,z)p(y)=p(y)p(x|y)p(z|y)p(y)=p(x|y)p(z|y)xz|y
  3. XYZ

    p(x,y,z)=p(x)p(z)p(y|x,z) if we condition on y are x and z indepenedent?

    p(x,z|y)=p(x)p(z)p(y|x,z)p(y)x\cancelz|y

    However p(x,z)=p(x)p(z), x and z are marginally independent. The condition on a common child at the bottom of a v-structure makes its parents become dependent. This effect is called explaining away, inter-causal reasoning, Berkson’s paradox.

    An example would be 2 coins flips, they are iid, but if we would condition on their sum sudenly it provides us information about those flips.

Bayes Ball algorithm

We can visualize d-separation between X,Y,Z, by conditioning on Y by shading it gray. If we bounce a ball from X or Z, where Y bounce it away, we look if it can reach any other node. A ball however can travel in an opposite direction.

  1. XYZ

The ball bounces back.

  1. XYZ

The ball bounces back.

  1. XYZ

Here a ball bounces from X trough Y to Z. And vice versa. This makes intuitively sense, since X and Z are independent of each other. But if we know Y, that means that we can tell something about Z.