The operation of are reversal in a Bayesian network allows us to change the direction of an arc $X \rightarrow Y$ while preserving the joint probability distribution that the network represents (Shachter, 1986). Arc reversal may require introducing new arcs: all the parents of $X$ also become parents of $Y$, and all parents of $Y$ also become parents of $X$.
a. Assume that $X$ and $Y$ start with $m$ and $n$ parents, respectively, and that all variables have $k$ values. By calculating the change in size for the CPTs of $X$ and $Y$, show that the total number of parameters in the network cannot decrease during are reversal. (Hint: the parents of $X$ and $Y$ need not be disjoint.)
b. Under what circumstances can the total number remain constant?
c. Let the parents of $X$ be $\mathbf{U} \cup \mathbf{V}$ and the parents of $Y$ be $\mathbf{V} \cup \mathbf{W}$, where $\mathbf{U}$ and $\mathbf{W}$ are disjoint. The formulas for the new CPTs after arc reversal are as follows:
$$
\begin{aligned}
\mathbf{P}(Y \mid \mathbf{U}, \mathbf{V}, \mathbf{W}) & =\sum_x \mathbf{P}(Y \mid \mathbf{V}, \mathbf{W}, x) \mathbf{P}(x \mid \mathbf{U}, \mathbf{V}) \\
\mathbf{P}(X \mid \mathbf{U}, \mathbf{V}, \mathbf{W}, Y) & =\mathbf{P}(Y \mid X, \mathbf{V}, \mathbf{W}) \mathbf{P}(X \mid \mathbf{U}, \mathbf{V}) / \mathbf{P}(Y \mid \mathbf{U}, \mathbf{V}, \mathbf{W}) .
\end{aligned}
$$
Prove that the new network expresses the same joint distribution over all variables as the original network.