Skip to content

Pearl burglary network (5 nodes)

The 5-node Pearl burglary network from data/alarm.json in the PyBayes test corpus, used as the smallest data point in the lazy-bayes evaluation.

Bayesian network (DAG)

flowchart TB
    BURGLARY["BURGLARY"]
    EARTHQUAKE["EARTHQUAKE"]
    ALARM["ALARM"]
    JOHN_CALLS["JOHN_CALLS"]
    MARY_CALLS["MARY_CALLS"]
    BURGLARY --> ALARM
    EARTHQUAKE --> ALARM
    ALARM --> JOHN_CALLS
    ALARM --> MARY_CALLS

Junction tree

Cliques labelled with their variable sets; edges labelled with the separator (the intersection of the two cliques' domains).

flowchart LR
    C0["C0<br/>ALARM, BURGLARY, EARTHQUAKE"]
    C1["C1<br/>ALARM, JOHN_CALLS"]
    C2["C2<br/>ALARM, MARY_CALLS"]
    C0 ---|"ALARM"| C1
    C0 ---|"ALARM"| C2