document.write( "Question 1163566: Consider the following Bayesian graph:
\n" ); document.write( "B←A→C
\n" ); document.write( "The probabilities and conditional probabilities are given below:
\n" ); document.write( "A P(A) ¦ A B P(B︳A) ¦ A B P(C︳A)
\n" ); document.write( "f 0.2 ¦ f f 0.8 ¦ f f 0.3
\n" ); document.write( "t 0.8 ¦ f t 0.2 ¦ f t 0.7
\n" ); document.write( " ¦ t f 0.1 ¦ t f 0.2
\n" ); document.write( " ¦ t t 0.9 ¦ t t 0.8
\n" ); document.write( "a) Prove that B and C are conditionally independent given A
\n" ); document.write( "b) Prove that B and C are not unconditionally dependent. \r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #854373 by CPhill(2264)\"\" \"About 
You can put this solution on YOUR website!
To address these proofs, we first note that the graph $B \leftarrow A \rightarrow C$ is a **diverging connection**. In Bayesian networks, the joint probability distribution for this graph is factorized as:
\n" ); document.write( "$$P(A, B, C) = P(A)P(B|A)P(C|A)$$\r
\n" ); document.write( "\n" ); document.write( "### a) Prove that $B$ and $C$ are conditionally independent given $A$\r
\n" ); document.write( "\n" ); document.write( "By definition, $B$ and $C$ are conditionally independent given $A$ if:
\n" ); document.write( "$$P(B, C | A) = P(B|A)P(C|A)$$\r
\n" ); document.write( "\n" ); document.write( "**Proof:**
\n" ); document.write( "Using the definition of conditional probability:
\n" ); document.write( "$$P(B, C | A) = \frac{P(A, B, C)}{P(A)}$$\r
\n" ); document.write( "\n" ); document.write( "Substitute the factorization of the joint distribution from the graph structure:
\n" ); document.write( "$$P(B, C | A) = \frac{P(A)P(B|A)P(C|A)}{P(A)}$$\r
\n" ); document.write( "\n" ); document.write( "The $P(A)$ terms cancel out, leaving:
\n" ); document.write( "$$P(B, C | A) = P(B|A)P(C|A)$$
\n" ); document.write( "This equality holds for all values of $A, B,$ and $C$. Thus, **$B$ and $C$ are conditionally independent given $A$**.\r
\n" ); document.write( "\n" ); document.write( "---\r
\n" ); document.write( "\n" ); document.write( "### b) Prove that $B$ and $C$ are not unconditionally independent\r
\n" ); document.write( "\n" ); document.write( "*Note: The prompt asks to prove they are \"not unconditionally dependent,\" but the standard property of a diverging graph is that they are **not unconditionally independent** (meaning they are dependent). I will prove they are dependent by showing $P(B, C) \neq P(B)P(C)$.*\r
\n" ); document.write( "\n" ); document.write( "**1. Calculate $P(B=t)$:**
\n" ); document.write( "Using the law of total probability:
\n" ); document.write( "$$P(B=t) = P(B=t|A=t)P(A=t) + P(B=t|A=f)P(A=f)$$
\n" ); document.write( "$$P(B=t) = (0.9)(0.8) + (0.2)(0.2) = 0.72 + 0.04 = \mathbf{0.76}$$\r
\n" ); document.write( "\n" ); document.write( "**2. Calculate $P(C=t)$:**
\n" ); document.write( "$$P(C=t) = P(C=t|A=t)P(A=t) + P(C=t|A=f)P(A=f)$$
\n" ); document.write( "$$P(C=t) = (0.8)(0.8) + (0.7)(0.2) = 0.64 + 0.14 = \mathbf{0.78}$$\r
\n" ); document.write( "\n" ); document.write( "**3. Calculate $P(B=t, C=t)$:**
\n" ); document.write( "$$P(B=t, C=t) = \sum_{a \in \{t,f\}} P(B=t|A=a)P(C=t|A=a)P(A=a)$$
\n" ); document.write( "$$P(B=t, C=t) = (0.9 \times 0.8 \times 0.8) + (0.2 \times 0.7 \times 0.2)$$
\n" ); document.write( "$$P(B=t, C=t) = 0.576 + 0.028 = \mathbf{0.604}$$\r
\n" ); document.write( "\n" ); document.write( "**4. Compare $P(B, C)$ to $P(B)P(C)$:**
\n" ); document.write( "$$P(B=t)P(C=t) = 0.76 \times 0.78 = \mathbf{0.5928}$$\r
\n" ); document.write( "\n" ); document.write( "Since $0.604 \neq 0.5928$, the joint probability is not equal to the product of the marginal probabilities. Therefore, **$B$ and $C$ are unconditionally dependent**. Knowing the state of $B$ provides information about the likely state of $A$, which in turn provides information about the likely state of $C$.\r
\n" ); document.write( "\n" ); document.write( "How would the relationship between B and C change if the arrow between A and B was reversed?
\n" ); document.write( "
\n" );