Skip to Main Content
Bayesian Networks
book

Bayesian Networks

by Marco Scutari, Jean-Baptiste Denis
June 2014
Intermediate to advanced content levelIntermediate to advanced
241 pages
6h 20m
English
CRC Press
Content preview from Bayesian Networks
210 Bayesian Networks: With Examples in R
> nrow(directed.arcs(dag100))
[1] 0
> nrow(undirected.arcs(dag100))
[1] 2
While both DAGs are very different from that in Figure 1.1, dag100
has only a single arc; not enough information is present in the first
100 observations to learn the correct structure. In both cases all arcs
are undirected. After assigning directions with cextend, we can see
that dag100 has a much lower score than dag, which confirms that
dag100 is not as good a fit for the data as dag.
> score(cextend(dag), survey, type = "bic")
[1] -1999.259
> score(cextend(dag100), survey, type = "bic")
[1] -2008.116
3. The BIC score computed from the first 100 observations does not
increase when using Monte Carlo tests, and the DAGs we learn
still have just
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Applications of Bayesian Reliability

Practical Applications of Bayesian Reliability

Yan Liu, Athula I. Abeyratne
Benefits of Bayesian Network Models

Benefits of Bayesian Network Models

Philippe Weber, Christophe Simon
Learning Bayesian Models with R

Learning Bayesian Models with R

Hari Manassery Koduvely

Publisher Resources

ISBN: 9781482225587