Java Coding Problem
Java Coding Problem
Slides Set 2:
Rina Dechter
Reading:
Darwiche chapter 4
Pearl (probabilistic): chapter 3
Winter 2024 3
The Burglary Example
Earthquake Burglary
Alarm
Radio
Call
Winter 2024 4
Winter 2024 5
Winter 2024 6
Winter 2024 7
Winter 2024 8
Winter 2024 9
Winter 2024 10
Winter 2024 11
Alpha and beta are events
Winter 2024 12
Winter 2024 13
Burglary is independent of Earthquake
Winter 2024 14
Earthquake is independent of burglary
Winter 2024 15
Winter 2024 16
Winter 2024 17
Winter 2024 18
Winter 2024 19
Winter 2024 20
Winter 2024 21
Outline
◼ Basic of Probability Theory
◼ Bayesian Networks, DAGS, Markov(G)
◼ From a distribution to a BN
◼ From BN to distributions, DAGs, Markov(G)
◼ Parameterization
◼ Graphoids axioms for Conditional
Independence
◼ D-separation: Inferring CIs in graphs
slides2 Winter 2024
Outline
◼ Bayesian Networks, DAGS, Markov(G)
◼ From a distribution to a BN
◼ From BN to distributions, DAGs, Markov(G)
◼ Parameterization
◼ Graphoids axioms for Conditional
Independence
◼ D-separation: Inferring CIs in graphs
From a BN to a distribution:
• Generate a DAG with its Markov assumptions.
• Parameterize the DAG yielding a Bayesian network which corresponds to a
single probability distribution obtained by product.
• The BN distribution obeys additional independence assumption read from the DAG
and can be proved using the Graphoid axioms.
Alarm
John Marry
P(B)P(E|B)P(A|B,E)P(J|B,E,A)P(M|B,E,A,J) =
P(B)P(E|B)P(A|B,E)P(J|A)P(M|A) =
P(B)P(E|B)P(A|B,E)P(J|B,E,A)P(M|B,E,A,J) =
P(B)P(E|B)P(A|B,E)P(J|A)P(M|A) =
◼ Symmetry:
◼ I(X,Z,Y) → I(Y,Z,X)
◼ Decomposition:
◼ I(X,Z,YW)→ I(X,Z,Y) and I(X,Z,W)
◼ Weak union:
◼ I(X,Z,YW)→I(X,ZW,Y)
◼ Contraction:
◼ I(X,Z,Y) and I(X,ZY,W)→I(X,Z,YW)
◼ Intersection:
◼ I(X,ZY,W) and I(X,ZW,Y) → I(X,Z,YW)
slides2 Winter 2024
slides2 Winter 2024
Pearl’s language:
If two pieces of information are irrelevant to X then each one is irrelevant to X
◼ Symmetry:
◼ I(X,Z,Y) → I(Y,Z,X)
Graphoid axioms:
◼ Decomposition: Symmetry, decomposition
◼ I(X,Z,YW)→ I(X,Z,Y) and I(X,Z,W) Weak union and contraction
Positive graphoid:
◼ Weak union: +intersection
◼ I(X,Z,YW)→I(X,ZW,Y)
◼ Symmetry:
◼ I(X,Z,Y) → I(Y,Z,X)
Graphoid axioms:
◼ Decomposition: Symmetry, decomposition
◼ I(X,Z,YW)→ I(X,Z,Y) and I(X,Z,W) Weak union and contraction
Positive graphoid:
◼ Weak union: +intersection
◼ I(X,Z,YW)→I(X,ZW,Y)
◼ Symmetry:
◼ I(X,Z,Y) → I(Y,Z,X)
Graphoid axioms:
◼ Decomposition: Symmetry, decomposition
◼ I(X,Z,YW)→ I(X,Z,Y) and I(X,Z,W) Weak union and contraction
Positive graphoid:
◼ Weak union: +intersection
◼ I(X,Z,YW)→I(X,ZW,Y)