Displaying 1 result from an estimated 1 matches for "cnnodemarginalprob".
2011 Sep 28
1
how to solve a simple discrete Bayesian Belief Network?
...ot;, "2"),
c("1", "2"), c("1", "2")), parents = list(NULL, c(1), c(1,
2)), probs = list(c(0.2, 0.8), list(c(0.6, 0.4), c(0.4, 0.6)),
list(list(c(0.3, 0.7), c(0.7, 0.3)), list(c(0.9, 0.1), c(0.1,
0.9)))))
#what is the probability of a="1"?
cnNodeMarginalProb(cnet,node=1)[1]
#0.2
#what is the probability of b="2"?
cnNodeMarginalProb(cnet,node=2)[2]
#0.56
#what is the probability of c="1"?
cnNodeMarginalProb(cnet,node=3)[1]
#0.428
#but how can I answer questions like:
#what is the probability of a="1" given that c="...