Solving Bayesian Network Problems
Solving Bayesian Network Problems
The probability of D being true given A is true, P(D|A), is computed as 0.197. It is found by summing probabilities of all paths leading to D being true under given conditions for A and their respective junction probabilities: P(B|A)P(C|A)P(D|B,C) + P(B|A)P(¬C|A)P(D|B,¬C) + P(¬B|A)P(C|A)P(D|¬B,C) + P(¬B|A)P(¬C|A)P(D|¬B,¬C)
The mistake in the second Bayesian network is that it assumes Alarm1 and Alarm2 are independent if Burglary is unknown. However, because the alarm systems are designed to detect the same event, one alarm sounding should increase the likelihood that the other will also sound, making them dependent.
X and Z are independent if the influence passing through Y is made to have no net effect. Probabilities are assigned such that P(X)P(Z) equals P(X,Z), where P(Y), P(X|Y), P(Z|Y) are all set to 0.5, ensuring that the marginal effects of Y's variability on X and Z cancel each other out.
A and H are independent given evidence about C because all paths from A to H are blocked by C. With C known, any information passing between A and H through other paths is effectively cut off, ensuring independence.
D and E are not necessarily independent given evidence about A and B because the path D-C-E is unblocked, allowing influence to pass between D and E. Thus, knowing A and B does not block the explanatory path, hence they can influence each other.
Two variables in a Bayesian network are independent if observing one does not affect the probability of the others. For example, variables C (coughing) and F (having the flu) in the given network are not independent because P(F) differs from P(F|C). Specifically, P(F)=0.1 while P(F|C)~0.23, indicating dependence.
To generate the joint probability table, calculate the probabilities for each combination of F and C: (1) F=true, C=true: P(F)P(C|F) = 0.1 * 0.8 = 0.08. (2) F=true, C=false: P(F)P(¬C|F) = 0.1 * 0.2 = 0.02. (3) F=false, C=true: P(¬F)P(C|¬F) = 0.9 * 0.3 = 0.27. (4) F=false, C=false: P(¬F)P(¬C|¬F) = 0.9 * 0.7 = 0.63.
For the Bayesian network with Burglary and two alarms, you need to specify 5 probabilities: P(Burglary), P(Alarm1|Burglary), P(Alarm1|¬Burglary), P(Alarm2|Burglary), and P(Alarm2|¬Burglary). Meanwhile, specifying a joint probability table for the same distribution without structural dependencies would require 7 probabilities.
To calculate P(Alarm2 | Burglary, Alarm1), use the formula: P(Alarm2 | Burglary, Alarm1) = P(Alarm1, Alarm2, Burglary) / P(Burglary, Alarm1) = 0.016/0.072 ≈ 0.22. It's computed as: P(Alarm1, Alarm2, Burglary) = 0.1 * 0.2 * 0.8 = 0.016 and P(Burglary, Alarm1) = 0.016 + 0.056 = 0.072.



