class3: probabilistic networks · 2018. 4. 19. · class3: probabilistic networks rina dechter...

104
Algorithms for Reasoning with graphical models Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3

Upload: others

Post on 28-Sep-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Algorithms for Reasoning with graphical models

Class3: Probabilistic NetworksRina Dechter

dechter, class3 276-18

Darwiche chapter 3,4, Pearl: chapters 3

Page 2: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Outline

Basics of probability theory

DAGS, Markov(G), Bayesian networks

Graphoids: axioms of for inferring conditional independence (CI)

D-separation: Inferring CIs in graphs

dechter, class3 276-18

Page 3: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Outline

Basics of probability theory

DAGS, Markov(G), Bayesian networks

Graphoids: axioms of for inferring conditional independence (CI)

Capturing CIs by graphs

D-separation: Inferring CIs in graphs

dechter, class3 276-18

Page 4: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Example of Common Sense Reasoning

Zebra on Pajama: (7:30 pm): I told Susannah: you have a nice

pajama, but it was just a dress. Why jump to that conclusion?: 1. because time is night time. 2. certain designs look like pajama.

Cars going out of a parking lot: You enter a parking lot which is

quite full (UCI), you see a car coming : you think ah… now there is a space (vacated), OR… there is no space and this guy is looking and leaving to another parking lot. What other clues can we have?

Robot gets out at a wrong level: A robot goes down the elevator. stops at 2nd floor instead of ground floor. It steps out and should immediately recognize not being in the right level, and go back inside.

Turing quotes

If machines will not be allowed to be fallible they cannot be intelligent

(Mathematicians are wrong from time to time so a machine should also be allowed)

dechter, class3 276-18

Page 5: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Why/What/How Uncertainty?

Why Uncertainty?

Answer: It is abandant

What formalism to use?

Answer: Probability theory

How to overcome exponential representation?

Answer: Graphs, graphs, graphs… to

capture irrelevance, independencedechter, class3 276-18

Page 6: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Why Uncertainty?

AI goal: to have a declarative, model-based, framework that allows computer system to reason.

People reason with partial information

Sources of uncertainty: Limitation in observing the world: e.g., a physician see symptoms and not

exactly what goes in the body when he performs diagnosis. Observations are noisy (test results are inaccurate)

Limitation in modeling the world,

maybe the world is not deterministic.

dechter, class3 276-18

Page 7: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 8: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 9: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 10: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 11: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 12: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 13: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 14: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Alpha and beta are events

dechter, class3 276-18

Page 15: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 16: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Burglary is independent of Earthquake

dechter, class3 276-18

Page 17: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Earthquake is independent of burglary

dechter, class3 276-18

Page 18: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 19: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 20: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 21: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 22: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 23: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 24: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 25: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 26: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 27: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Example

P(B,E,A,J,M)=?

dechter, class3 276-18

Page 28: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 29: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 30: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 31: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 32: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Bayesian Networks: Representation

= P(S) P(C|S) P(B|S) P(X|C,S) P(D|C,B)

lung Cancer

Smoking

X-ray

Bronchitis

DyspnoeaP(D|C,B)

P(B|S)

P(S)

P(X|C,S)

P(C|S)

P(S, C, B, X, D)

Conditional Independencies Efficient Representation

Θ) (G,BN

CPD:

C B D=0 D=10 0 0.1 0.90 1 0.7 0.31 0 0.8 0.21 1 0.9 0.1

dechter, class3 276-18

Page 33: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Outline

Basics of probability theory

DAGS, Markov(G), Bayesian networks

Graphoids: axioms of for inferring conditional independence (CI)

D-separation: Inferring CIs in graphs

(Darwiche chapter 4)

dechter, class3 276-18

Page 34: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

The causal interpretation

dechter, class3 276-18

Page 35: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 36: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 37: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 38: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 39: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 40: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 41: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 42: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 43: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 44: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Outline

Basics of probability theory

DAGS, Markov(G), Bayesian networks

Graphoids: axioms of for inferring conditional independence (CI)

D-separation: Inferring CIs in graphs

dechter, class3 276-18

Page 45: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

R and C are independent given A

This independence follows from the Markov assumption

dechter, class3 276-18

Page 46: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Properties of Probabilistic independence

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)

dechter, class3 276-18

Page 47: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 48: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Pearl language:If two pieces of information are irrelevant to X then each one is irrelevant to X

dechter, class3 276-18

Page 49: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Example: Two coins and a bell

dechter, class3 276-18

Page 50: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 51: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 52: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 53: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 54: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

When there are no constraints

dechter, class3 276-18

Page 55: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 56: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 57: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Properties of Probabilistic independence

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)

Graphoid axioms:Symmetry, decompositionWeak union and contraction

Positive graphoid:+intersection

In Pearl: the 5 axioms are called Graphids, the 4, semi-graphois

dechter, class3 276-18

Page 58: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Outline

Basics of probability theory

DAGS, Markov(G), Bayesian networks

Graphoids: axioms of for inferring conditional independence (CI)

D-separation: Inferring CIs in graphs

I-maps, D-maps, perfect maps

Markov boundary and blanket

Markov networksdechter, class3 276-18

Page 59: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 60: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

d-speration

To test whether X and Y are d-separated by Z in dag G, we need to consider every path between a node in X and a node in Y, and then ensure that the path is blocked by Z.

A path is blocked by Z if at least one valve (node) on the path is ‘closed’ given Z.

A divergent valve or a sequential valve is closed if it is in Z

A convergent valve is closed if it is not on Z nor any of its descendants are in Z.

dechter, class3 276-18

Page 61: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 62: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 63: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 64: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

No path Is active =Every path isblocked

dechter, class3 276-18

Page 65: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Bayesian Networks as i-maps

E: Employment

V: Investment

H: Health

W: Wealth

C: Charitable contributions

P: Happiness

EEE

C

E V

W

C P

H

Are C and V d-separated give E and P?Are C and H d-separated?

dechter, class3 276-18

Page 66: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

d-Seperation Using Ancestral Graph

X is d-separated from Y given Z (<X,Z,Y>d) iff:

Take the ancestral graph that contains X,Y,Z and their ancestral subsets.

Moralized the obtained subgraph

Apply regular undirected graph separation

Check: (E,{},V),(E,P,H),(C,EW,P),(C,E,HP)?

EEE

C

E V

W

C P

H

dechter, class3 276-18

Page 67: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Idsep(R,EC,B)?

dechter, class3 276-18

Page 68: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 69: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 70: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 71: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Idsep(C,S,B)=?

dechter, class3 276-18

Page 72: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 73: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 74: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 75: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Outline

Basics of probability theory

DAGS, Markov(G), Bayesian networks

Graphoids: axioms of for inferring conditional independence (CI)

D-separation: Inferring CIs in graphs

Soundness, completeness of d-seperation

I-maps, D-maps, perfect maps

Construction a minimal I-map of a distribution

Markov boundary and blanket

dechter, class3 276-18

Page 76: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 77: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

It is not a d-map

dechter, class3 276-18

Page 78: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Outline

Basics of probability theory

DAGS, Markov(G), Bayesian networks

Graphoids: axioms of for inferring conditional independence (CI)

D-separation: Inferring CIs in graphs

Soundness, completeness of d-seperation

I-maps, D-maps, perfect maps

Construction a minimal I-map of a distribution

Markov boundary and blanket

dechter, class3 276-18

Page 79: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 80: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 81: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Outline

Basics of probability theory

DAGS, Markov(G), Bayesian networks

Graphoids: axioms of for inferring conditional independence (CI)

D-separation: Inferring CIs in graphs

Soundness, completeness of d-seperation

I-maps, D-maps, perfect maps

Construction a minimal I-map of a distribution

Markov boundary and blanket

dechter, class3 276-18

Page 82: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 83: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 84: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 85: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 86: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Outline

Basics of probability theory

DAGS, Markov(G), Bayesian networks

Graphoids: axioms of for inferring conditional independence (CI)

D-separation: Inferring CIs in graphs

Soundness, completeness of d-seperation

I-maps, D-maps, perfect maps

Construction a minimal I-map of a distribution

Markov boundary and blanket

dechter, class3 276-18

Page 87: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 88: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Blanket Examples

dechter, class3 276-18

Page 89: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Blanket Examples

dechter, class3 276-18

Page 90: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Bayesian Networks as Knowledge-Bases

Given any distribution, P, and an ordering we can construct a minimal i-map.

The conditional probabilities of x given its parents is all we need.

In practice we go in the opposite direction: the parents must be identified by human expert… they

can be viewed as direct causes, or direct influences.

dechter, class3 276-18

Page 91: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 92: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 93: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Markov Networks and Markov Random Fields (MRF)

Can we also capture conditional independence by undirected graphs?

Yes: using simple graph separation

dechter, class3 276-18

Page 94: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Undirected Graphs as I-maps of Distributions

dechter, class3 276-18

Page 95: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Axiomatic Characterization of Graphs

Graph separation satisfies:

Symmetry: I(X,Z,Y) I(Y,Z,X)

Decomposition: I(X,Z,YW) I(X,Z,Y) and I(X,Z,Y)

Intersection: I(X,ZW,Y) and I(X,ZY,W)I(X,Z,YW)

Strong union: I(X,Z,Y) I(X,ZW, Y)

Transitivity: I(X,Z,Y) exists t s.t. I(X,Z,t) or I(t,Z,Y)

dechter, class3 276-18

Page 96: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Graphoids vs Undirected graphs

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)

Symmetry: I(X,Z,Y) I(Y,Z,X)

Decomposition: I(X,Z,YW) I(X,Z,Y) and

I(X,Z,Y)

Intersection: I(X,ZW,Y) and

I(X,ZY,W)I(X,Z,YW)

Strong union: I(X,Z,Y) I(X,ZW, Y)

Transitivity: I(X,Z,Y) exists t s.t. I(X,Z,t) or

I(t,Z,Y)

dechter, class3 276-18

Page 97: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Markov Networks

An undirected graph G which is a minimal I-map of a probability distribution Pr, namely deleting any edge destroys its i-mappness relative to (undirected) seperation, is called a Markov network of P.

dechter, class3 276-18

Page 98: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

dechter, class3 276-18

Page 99: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

The unusual edge (3,4)reflects the reasoning that if we fix the arrival time (5) the travel time (4) must depends on current time (3)

dechter, class3 276-18

Page 100: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

How can we construct a probabilityDistribution that will have all these independencies?

dechter, class3 276-18

Page 101: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

So, How do we learnMarkov networks From data?

Markov Random Field (MRF)

dechter, class3 276-18

Page 102: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Examples of Bayesian and and Markov Networks

dechter, class3 276-18

Page 103: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Markov Networks

dechter, class3 276-18

Page 104: Class3: Probabilistic Networks · 2018. 4. 19. · Class3: Probabilistic Networks Rina Dechter dechter, class3 276-18 Darwiche chapter 3,4, Pearl: chapters 3. Outline

Sample Applications for Graphical Models

dechter, class3 276-18