node, ( ), , .
I think that there is a theoretical framework for Bayesian networks with continuous values, but they are mathematically more complex than discrete ones (perhaps only suitable for candidates of science)
Also, I can't solve your problem from head to toe, but maybe try this in R:
library(dplyr) # loads mutate(), %>% (pipe operator)
Model <- c("Coin a", "Coin b", "Coin c")
Prior <- c(0.2, 0.6, 0.8)
Likelihood <- c(1/3, 1/3, 1/3)
bayes_df <- data.frame(Model=Model, Prior=Prior, Likelihood=Likelihood)
bayes_df %>%
mutate(Product = Likelihood * Prior, Posterior = Product/sum(Product))
Result
Model Prior Likelihood Product Posterior
1 Coin a 0.2 0.3333 0.06667 0.125
2 Coin b 0.6 0.3333 0.20000 0.375
3 Coin c 0.8 0.3333 0.26667 0.500
I think that the “network” is just 2 bubbles connected to the arrow → pick, and CPT are the numbers above, but I'm not sure.
source
share