Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Bayesian Networks

Similar presentations


Presentation on theme: "Introduction to Bayesian Networks"— Presentation transcript:

1 Introduction to Bayesian Networks

2 Joint Probability Distribution
Representation: What is the joint probability distribution P(B, E, R, A, N) over five binary variables? How many states in total? How many free parameters do we need? How many table entries should we sum over to get P(R=r)?

3 Joint Probability Distribution
Full joint distribution is sufficient to represent the complete domain and to do any type of probabilistic inferences Problems: n - number of random variables, d – number of values Space complexity. A full joint distribution requires to remember O(dn) numbers Inference complexity. Computing queries requires O(dn) steps Acquisition problem. Who is going to define all the probabilities?

4 Joint Probability Distribution

5 Joint Probability Distribution

6 Joint Probability Distribution
VS

7 Bayesian networks A Bayesian Network is a graph in which: P(E) P(B)
A set of random variables makes up the nodes in the network. A set of directed links or arrows connects pairs of nodes. Each node has a conditional probability table that quantifies the effects the parents have on the node. Directed, acyclic graph (DAG), i.e. no directed cycles. P(E) P(B) A Bayesian network modeling the joint probability distribution P(B, E, R, A, N) P(A|B,E) P(R|E) P(N|A)

8 Bayesian Networks Conditional probability tables (CPT): P(B) P(E)
P(A|B,E) P(R|E) P(N|A)

9 Independences in BNs Three basic independence structures:

10 Independences in BNs Indirect cause: Burglary is independent of NeighborCall given Alarm P(N|A, B) = P(N|A) P(N, B|A) = P(N|A)P(B|A)

11 Independences in BNs Common cause: Alarm is independent of RadioAnnounce given Earthquake P(A|E, R) = P(A|E) P(A, R|E) = P(A|E)P(R|E)

12 Independences in BNs Common effect:
Burglary is independent of Earthquake when Alarm is not known Burglary and Earthquake become dependent given Alarm!!!

13 Path blocking With linear substructure With common cause structure
With common effect structure X Y C in Z X Y C in Z X Y C or any of its descendants not in Z

14 Independences in BNs Earthquake ┴ Burglary | NeighborCall?
Burglary ┴ RadioAnnounce | Earthquake? Burglary ┴ RadioAnnounce | NeighborCall?

15 Markov Assumption Each variable is independent on its non-descendants, given its parents in Bayesian networks N ┴ B, E, R | A R ┴ B, A, N | E

16 Full Joint Distribution in BNs
) , ( N R A E B P ) ( , | B P E A R N =

17 Chain Rule

18 Types of Inference Tasks
Compute the probability or most likely state of a set of query variables given observed values of some other variables Belief updating Most probable explanation (MPE) queries Maximum A Posteriori (MAP) queries

19 Inference Direction Types of inference by reasoning direction

20 Examples Diagnostic inferences: from effect to causes.
Causal Inferences: from causes to effects. Intercausal Inferences: Mixed Inference:

21 Influence diagram Add action nodes and utility nodes to Bayesian networks to enable rational decision making Algorithm: For each value of action node compute expected value of utility node given action, evidence Return MEU action

22 Value of information Idea: compute value of acquiring each possible piece of evidence Can be done directly from influence diagram Example: buying oil drilling rights Two blocks A and B, exactly one has oil, worth k Prior probabilities 0.5 each, mutually exclusive Current price of each block is k/2 “Consultant” offers accurate survey of A. Fair price? Solution: compute expected value of information = expected value of best action given the information minus expected value of best action without information Survey may say “oil in A” or “no oil in A”, prob. 0.5 each (given!) = [0.5 * value of “buy A” given “oil in A” + 0.5 * value of “buy B” given “no oil in A”] - 0 = (0.5 * k/2) + (0.5 * k/2) - 0 = k/2 Survey Oil Buy U


Download ppt "Introduction to Bayesian Networks"

Similar presentations


Ads by Google