Analyzing the graphical model in the right hand side
of Fig. ,
the steps we have to go through become self-evident:
- generate a value of according to a binomial distribution,
then calculate ;
- generate a value of and of
according to Beta distributions;
- generate a value of and a value of
according to binomial distributions;
- sum up and
in order to get
.
Subsections