Bayesian Net Example
Bayesian Net Example
Bayesian Net Example
Prob(A=T) = 0.3
Prob(B=T) = 0.6
Prob(C=T|A=T) = 0.8
Prob(C=T|A=F) = 0.4
Prob(D=T|A=T,B=T) = 0.7
Prob(D=T|A=T,B=F) = 0.8
Prob(D=T|A=F,B=T) = 0.1
Prob(D=T|A=F,B=F) = 0.2
Prob(E=T|C=T) = 0.7
Prob(E=T|C=F) = 0.2
Prob(D=T)
P(D=T) =
https://cs.nyu.edu/faculty/davise/ai/bayesnet.html 1/4
3/18/2018 Bayesian Net Example
Prob(D=F,C=T)
P(D=F,C=T) =
P(D=F,C=T,A=T,B=T) + P(D=F,C=T,A=T,B=F) +
P(D=F,C=T,A=F,B=T) + P(D=F,C=T,A=F,B=F) =
Prob(A=T|C=T)
Prob(A=T|D=F)
https://cs.nyu.edu/faculty/davise/ai/bayesnet.html 2/4
3/18/2018 Bayesian Net Example
P(A=T|D=F) =
P(D=F|A=T) P(A=T)/P(D=F).
Prob(A=T,D=T|B=F).
P(A=T,D=T|B=F) =
P(D=T|A=T,B=F) P(A=T|B=F) =
(since A and B are independent)
So we have
Prob(C=T | A=F, E=T) =
Prob(E=T|C=T) * Prob(C=T|A=F) / (Prob(E=T|C=T) * Prob(C=T|A=F) + Prob(E=T|C=F)
* Prob(C=F|A=F)) =
https://cs.nyu.edu/faculty/davise/ai/bayesnet.html 3/4
3/18/2018 Bayesian Net Example
https://cs.nyu.edu/faculty/davise/ai/bayesnet.html 4/4