Marginal Independence and Conditional Independence

Slides:



Advertisements
Similar presentations
Probability: Review The state of the world is described using random variables Probabilities are defined over events –Sets of world states characterized.
Advertisements

Bayes Rule The product rule gives us two ways to factor a joint probability: Therefore, Why is this useful? –Can get diagnostic probability P(Cavity |
Reasoning under Uncertainty: Marginalization, Conditional Prob., and Bayes Computer Science cpsc322, Lecture 25 (Textbook Chpt ) Nov, 6, 2013.
PROBABILITY. Uncertainty  Let action A t = leave for airport t minutes before flight from Logan Airport  Will A t get me there on time ? Problems :
Where are we in CS 440? Now leaving: sequential, deterministic reasoning Entering: probabilistic reasoning and machine learning.
Reasoning under Uncertainty: Conditional Prob., Bayes and Independence Computer Science cpsc322, Lecture 25 (Textbook Chpt ) March, 17, 2010.
Marginal Independence and Conditional Independence Computer Science cpsc322, Lecture 26 (Textbook Chpt 6.1-2) March, 19, 2010.
CPSC 422 Review Of Probability Theory.
Probability.
Uncertainty Chapter 13. Uncertainty Let action A t = leave for airport t minutes before flight Will A t get me there on time? Problems: 1.partial observability.
KI2 - 2 Kunstmatige Intelligentie / RuG Probabilities Revisited AIMA, Chapter 13.
Ai in game programming it university of copenhagen Welcome to... the Crash Course Probability Theory Marco Loog.
CPSC 322, Lecture 24Slide 1 Reasoning under Uncertainty: Intro to Probability Computer Science cpsc322, Lecture 24 (Textbook Chpt 6.1, 6.1.1) March, 15,
Uncertainty Chapter 13.
Uncertainty Chapter 13.
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Feb 28 and March 13-15, 2012.
Handling Uncertainty. Uncertain knowledge Typical example: Diagnosis. Consider:  x Symptom(x, Toothache)  Disease(x, Cavity). The problem is that this.
Uncertainty Chapter 13. Uncertainty Let action A t = leave for airport t minutes before flight Will A t get me there on time? Problems: 1.partial observability.
Bayes Nets and Probabilities
An Introduction to Artificial Intelligence Chapter 13 & : Uncertainty & Bayesian Networks Ramin Halavati
Computer Science CPSC 322 Lecture 26 Uncertainty and Probability (Ch. 6.1, 6.1.1, 6.1.3)
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes March 15and20, 2012.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes March 13, 2012.
Uncertainty Chapter 13. Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
1 Chapter 13 Uncertainty. 2 Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes March 20, 2012.
An Introduction to Artificial Intelligence Chapter 13 & : Uncertainty & Bayesian Networks Ramin Halavati
Reasoning Under Uncertainty: Conditioning, Bayes Rule & the Chain Rule Jim Little Uncertainty 2 Nov 3, 2014 Textbook §6.1.3.
Uncertainty. Assumptions Inherent in Deductive Logic-based Systems All the assertions we wish to make and use are universally true. Observations of the.
Reasoning under Uncertainty: Conditional Prob., Bayes and Independence Computer Science cpsc322, Lecture 25 (Textbook Chpt ) Nov, 5, 2012.
Uncertainty Chapter 13. Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
Uncertainty Chapter 13. Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
Computer Science CPSC 322 Lecture 27 Conditioning Ch Slide 1.
Finish Probability Theory + Bayesian Networks Computer Science cpsc322, Lecture 9 (Textbook Chpt ) June, 5, CPSC 322, Lecture 9.
Uncertainty Let action A t = leave for airport t minutes before flight Will A t get me there on time? Problems: 1.partial observability (road state, other.
CSE 473 Uncertainty. © UW CSE AI Faculty 2 Many Techniques Developed Fuzzy Logic Certainty Factors Non-monotonic logic Probability Only one has stood.
Uncertainty Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
CPSC 322, Lecture 26Slide 1 Reasoning Under Uncertainty: Belief Networks Computer Science cpsc322, Lecture 27 (Textbook Chpt 6.3) Nov, 13, 2013.
Outline [AIMA Ch 13] 1 Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
Computer Science cpsc322, Lecture 25
Pattern Recognition Probability Review
Reasoning Under Uncertainty: Belief Networks
CS 188: Artificial Intelligence Spring 2007
Finish Logics… Reasoning under Uncertainty: Intro to Probability
Bayesian networks Chapter 14 Section 1 – 2.
Bayesian networks (1) Lirong Xia Spring Bayesian networks (1) Lirong Xia Spring 2017.
Where are we in CS 440? Now leaving: sequential, deterministic reasoning Entering: probabilistic reasoning and machine learning.
Uncertainty Chapter 13.
Reasoning Under Uncertainty: Conditioning, Bayes Rule & Chain Rule
Where are we in CS 440? Now leaving: sequential, deterministic reasoning Entering: probabilistic reasoning and machine learning.
CS 4/527: Artificial Intelligence
Uncertainty.
Uncertainty in Environments
CS 188: Artificial Intelligence
Reasoning Under Uncertainty: Bnet Inference
CS 188: Artificial Intelligence Fall 2008
CS 188: Artificial Intelligence Fall 2007
Reasoning Under Uncertainty: Bnet Inference
CS 188: Artificial Intelligence Fall 2007
CS 188: Artificial Intelligence Fall 2008
CAP 5636 – Advanced Artificial Intelligence
Class #21 – Monday, November 10
Uncertainty Chapter 13.
Probabilistic Reasoning
Uncertainty Chapter 13.
Uncertainty Chapter 13.
Bayesian Networks CSE 573.
Bayesian networks (1) Lirong Xia. Bayesian networks (1) Lirong Xia.
Uncertainty Chapter 13.
Presentation transcript:

Marginal Independence and Conditional Independence Computer Science cpsc322, Lecture 26 (Textbook Chpt 6.1-2) June 13, 2017

Lecture Overview Recap with Example Bayes' Rule Marginal Independence Marginalization Conditional Probability Chain Rule Bayes' Rule Marginal Independence Conditional Independence our most basic and robust form of knowledge about uncertain environments.

Recap Joint Distribution 3 binary random variables: P(H,S,F) H dom(H)={h, h} has heart disease, does not have… S dom(S)={s, s} smokes, does not smoke F dom(F)={f, f} high fat diet, low fat diet When there are multiple random variables, their joint distribution is a probability distribution over the variables' Cartesian product E.g., P(X; Y;Z) means P(hX; Y;Zi). Think of a joint distribution over n variables as an n-dimensional table Each entry, indexed by X1 = x1; : : : ;Xn = xn, corresponds to P(X1 = x1 ^ : : : ^ Xn = xn). The sum of entries across the whole table is 1.

Recap Joint Distribution 3 binary random variables: P(H,S,F) H dom(H)={h, h} has heart disease, does not have… S dom(S)={s, s} smokes, does not smoke F dom(F)={f, f} high fat diet, low fat diet f  f s  s s  s When there are multiple random variables, their joint distribution is a probability distribution over the variables' Cartesian product E.g., P(X; Y;Z) means P(hX; Y;Zi). Think of a joint distribution over n variables as an n-dimensional table Each entry, indexed by X1 = x1; : : : ;Xn = xn, corresponds to P(X1 = x1 ^ : : : ^ Xn = xn). The sum of entries across the whole table is 1. .015 .007 .21 .51 .005 .003 .07 .18 h  h

Recap Marginalization f  f s  s s  s .015 .007 .21 .51 .005 .003 .07 .18 h  h P(H,S)? Given the joint distribution, we can compute distributions over smaller sets of variables through marginalization: E.g., P(X; Y ) = Pz2dom(Z) P(X; Y;Z = z). This corresponds to summing out a dimension in the table. The new table still sums to 1. .02 .01 .28 .69 P(H)? P(S)?

Recap Conditional Probability P(H,S) P(H) s  s .02 .01 .28 .69 .03 h .97  h .30 .70 P(S) P(S|H) s  s .666.. .333 .29 .71 P(H|S) .666 .333 .29 .71 h  h

Recap Conditional Probability (cont.) Two key points we covered in the previous lecture We derived this equality from a possible world semantics of probability It is not a probability distributions but….. .666.. .333 .29 .71 One for each configuration of the conditioning var(s)

Recap Chain Rule Bayes Theorem .666.. .333 .29 .71

Lecture Overview Recap with Example and Bayes Theorem Marginal Independence Conditional Independence

Do you always need to revise your beliefs? …… when your knowledge of Y’s value doesn’t affect your belief in the value of X DEF. Random variable X is marginal independent of random variable Y if, for all xi  dom(X), yk  dom(Y), P( X= xi | Y= yk) = P(X= xi ) Consequence: P( X= xi , Y= yk) = P( X= xi | Y= yk) P( Y= yk) = P(X= xi ) P( Y= yk)

Marginal Independence: Example X and Y are independent iff: P(X|Y) = P(X) or P(Y|X) = P(Y) or P(X, Y) = P(X) P(Y) That is new evidence Y(or X) does not affect current belief in X (or Y) Ex: P(Toothache, Catch, Cavity, Weather) = P(Toothache, Catch, Cavity. JPD requiring entries is reduced to two smaller ones ( and ) A and B can be sets of random variables Weather sunny cloudy rainy snowy

In our example are Smoking and Heart Disease marginally Independent ? What our probabilities are telling us….? P(H,S) P(H) s  s .02 .01 .28 .69 .03 h .97  h .30 .70 P(S) P(S|H) s  s .666 .334 .29 .71 h  h

Lecture Overview Recap with Example Marginal Independence Conditional Independence

Conditional Independence With marg. Independence, for n independent random vars, O(2n) → Absolute independence is powerful but when you model a particular domain, it is ………. Dentistry is a large field with hundreds of variables, few of which are independent (e.g.,Cavity, Heart-disease). What to do? Ex toothache and catch are not ind. Probability of pain killer side effects may depend on whether patient suffers from heart-disease

Look for weaker form of independence P(Toothache, Cavity, Catch) Are Toothache and Catch marginally independent? BUT If I have a cavity, does the probability that the probe catches depend on whether I have a toothache? P(catch | toothache, cavity) = What if I haven't got a cavity? (2) P(catch | toothache,cavity) = has 23 – 1 = 7 independent entries Each is directly caused by the cavity, but neither has a direct effect on the other: Toothache depends on the state of the nerves in the tooth, whereas the probe accuracy depends on the dentist’s skill Each is directly caused by the cavity, but neither has a direct effect on the other

Conditional independence In general, Catch is conditionally independent of Toothache given Cavity: P(Catch | Toothache,Cavity) = P(Catch | Cavity) Equivalent statements: P(Toothache | Catch, Cavity) = P(Toothache | Cavity) P(Toothache, Catch | Cavity) = P(Toothache | Cavity) P(Catch | Cavity) In general i.e for probability distributions

Proof of equivalent statements

Conditional Independence: Formal Def. Sometimes, two variables might not be marginally independent. However, they become independent after we observe some third variable DEF. Random variable X is conditionally independent of random variable Y given random variable Z if, for all xi  dom(X), yk  dom(Y), zm  dom(Z) P( X= xi | Y= yk , Z= zm ) = P(X= xi | Z= zm ) That is, knowledge of Y’s value doesn’t affect your belief in the value of X, given a value of Z

Conditional independence: Use Write out full joint distribution using chain rule: P(Cavity, Catch, Toothache) = P(Toothache | Catch, Cavity) P(Catch | Cavity) P(Cavity) = P(Toothache | ) P(Catch | Cavity) P(Cavity) how many probabilities? The use of conditional independence often reduces the size of the representation of the joint distribution from exponential in n to linear in n. What is n? Conditional independence is our most basic and robust form of knowledge about uncertain environments. Much more commonly available than absolute independent assertions

Conditional Independence Example 2 Given whether there is/isn’t power in wire w0, is whether light l1 is lit or not, independent of the position of switch s2? two random variables that are not marginally independent can still be conditionally independent

Conditional Independence Example 3 Is every other variable in the system independent of whether light l1 is lit, given whether there is power in wire w0 ? two random variables that are not marginally independent can still be conditionally independent

Learning Goals for today’s class You can: Derive the Bayes Rule Define and use Marginal Independence Define and use Conditional Independence CPSC 322, Lecture 4

Where are we? (Summary) Probability is a rigorous formalism for uncertain knowledge Joint probability distribution specifies probability of every possible world Queries can be answered by summing over possible worlds For nontrivial domains, we must find a way to reduce the joint distribution size Independence (rare) and conditional independence (frequent) provide the tools

Start working on assignments3 ! Next Class Bayesian Networks (Chpt 6.3) Start working on assignments3 !