# what is the equivalence class of a given polytree representing a directed graphical model?

Let $T$ be a binary tree, where the internal nodes are $Y_1,...,Y_n$ and the leafs are $X_1,...,X_m$. (The $Y$s and the $X$s will eventuall represent a random variable in a Bayesian network.)

We can turn this binary tree into a polytree by directing all the edges downward toward the leafs from the root. What we get is a graphical model or a Bayesian network.

My main question - what other polytrees over the $Y$s and the $X$s can we have such that the marginal distribution $p(X_1,...,X_m)$ is the same like the marginal distribution in the original polytree I just described?

I am guessing we may be able to redirect some edges such that they point to a different node, and still get the same independence assumptions (and hence the same marginal distribution), but I am not sure what would be the permitted inversions.

Thanks!