re reas ason onin ing g un unde der un uncerta tain inty
play

Re Reas ason onin ing g Un Unde der Un Uncerta tain inty - PowerPoint PPT Presentation

Re Reas ason onin ing g Un Unde der Un Uncerta tain inty ty: B Belie lief f Netw Ne twor orks ks Com omputer Science c cpsc sc322, Lecture 2 27 (Te Text xtboo ook k Chpt 6.3) June, 1 15, 2 2017 CPSC 322, Lecture 27


  1. Re Reas ason onin ing g Un Unde der Un Uncerta tain inty ty: B Belie lief f Netw Ne twor orks ks Com omputer Science c cpsc sc322, Lecture 2 27 (Te Text xtboo ook k Chpt 6.3) June, 1 15, 2 2017 CPSC 322, Lecture 27 Slide 1

  2. Bi Big g Pi Pict ctur ure: e: R&R &R sy syst stem ems Environ onment Stochastic Deterministic Prob oblem Arc Consistency Search Constraint Vars + Satisfaction Constraints SLS Static Belief Nets Logics Query Var. Elimination Search Decision Nets Sequential STRIPS Var. Elimination Planning Search Markov Processes Representation Value Iteration Reasoning CPSC 322, Lecture 27 Slide 2 Technique

  3. Ke Key y poi oints ts Recap ap • We model the environment as a set of …. • Why the joint is not an adequate representation ? “Representation, reasoning and learning” are “exponential” in ….. Solu lutio ion: Exploit marginal&con ondition onal independence But how does independence allow us to simplify the joint? CPSC 322, Lecture 27 Slide 3

  4. Lectu ture re Ov Overv rvie iew • Be Beli lief f Ne Netw twor orks • Buil ild d sam ampl ple BN • Intro Inference, Compactness, Semantics • More Examples CPSC 322, Lecture 27 Slide 4

  5. Be Beli lief f Ne Nets ts: Bu Burg rgla lary ry Exa xamp mple le There might be a burglar ar in my house The an anti ti-burglar ar al alar arm in my house may go off I have an agreement with two of my neighbors, John and Mar ary, that they cal all me if they hear the alarm go off when I am at work Minor ear arth thquak akes may occur and sometimes the set off the alarm. Var ariab ables: Joint has entries/probs CPSC 322, Lecture 27 Slide 5

  6. Be Beli lief f Ne Nets ts: Si Simp mpli lify fy th the joi oint • Typically order vars to reflect causal knowledge (i.e., causes before effects) • A burglar (B) can set the alarm (A) off • An earthquake (E) can set the alarm (A) off • The alarm can cause Mary to call (M) • The alarm can cause John to call (J) • Apply Chain Rule • Simplify according to marginal&conditional independence CPSC 322, Lecture 27 Slide 6

  7. Be Beli lief f Ne Nets ts: Str Structu ture re + Pro robs • Express remaining dependencies as a network • Each var is a node • For each var, the conditioning vars are its parents • Associate to each node corresponding conditional probabilities • Directed Acyclic Graph (DAG) CPSC 322, Lecture 27 Slide 7

  8. Burg rgla lary ry: com omple lete te BN P(B=T) P(B=F ) P(E=T) P(E=F ) .001 .999 .002 .998 B E P(A=T | B,E) P(A=F | B,E) T T .95 .05 T F .94 .06 F T .29 .71 F F .001 .999 A P(M=T | A) P(M=F | A) A P(J=T | A) P(J=F | A) T .70 .30 T .90 .10 F .01 .99 F .05 .95 CPSC 322, Lecture 27 Slide 8

  9. Lectu ture re Ov Overv rvie iew • Be Beli lief f Ne Netw twor orks • Buil ild d sam ampl ple BN • Intro Infe ference, e, Co Compa pactness, Se , Seman antic ics • More Examples CPSC 322, Lecture 27 Slide 9

  10. Bu Burg rgla lary ry E Exa xamp mple le: Bn Bnets ts in infe fere rence Our BN BN can answ swer any prob obabilist stic query that can b be answ swered by proc ocess ssing g the j joi oint! (Ex1) I'm at work , • neighbor John calls to say my alarm is ringing, • neighbor Mary doesn't call. • No news of any earthquakes. • Is there a burglar? (Ex2) I'm at work , • Receive message that neighbor John called , • News of minor earthquakes. • Is there a burglar? Set digital places to monitor to 5 CPSC 322, Lecture 27 Slide 10

  11. Bu Burg rgla lary ry E Exa xamp mple le: Bn Bnets ts in infe fere rence Our BN BN can answ swer any prob obabilist stic query that can b be answ swered by proc ocess ssing g the j joi oint! (Ex1) I'm at work , • neighbor John calls to say my alarm is ringing, • neighbor Mary doesn't call. • No n news of an any e y ear arth thquak akes. • Is there a burglar? The probability of Burglar will: A. Go down B. Remain the same C. Go up CPSC 322, Lecture 27 Slide 1 1

  12. Ba Baye yesi sian an Ne Netw twor orks ks – Infe fere rence Typ ypes Predi dictiv ive Intercau ausal al Dia iagnostic ic Mix ixed Burglary P(E) = 1.0 Burglary Earthquake Earthquake P(B) = 1.0 P(B) = 0.001 P(  E) = 1.0 0.016 Alarm Burglary Alarm Alarm P(A) = 0.003 P(B) = 0.001 0.033 0.003 Alarm JohnCalls JohnCalls JohnCalls P(A) = 1.0 P(M) = 1.0 P(J) = 0.01 1 P(J) = 1.0 0.66 CPSC 322, Lecture 27 Slide 12

  13. BN BNnets ts: Co Comp mpac actn tness ss P(B=T) P(B=F ) P(E=T) P(E=F ) .001 .999 .002 .998 B E P(A=T | B,E) P(A=F | B,E) T T .95 .05 T F .94 .06 F T .29 .71 F F .001 .999 A P(M=T | A) P(M=F | A) A P(J=T | A) P(J=F | A) T .70 .30 F .01 .99 T .90 .10 F .05 .95 CPSC 322, Lecture 27 Slide 13

  14. BN BNet ets: s: Co Comp mpac actn tnes ess In In Ge General: A CPT for boolean X i with k boolean parents has rows for the combinations of parent values Eac ach row requires one n number p i for X i = true (the number for X i = false is just 1-p i ) If eac ach va variab able has no more than k par arents ts, the complete network requires O( ) numbers For k<< n , this is a substantial improvement, • the numbers required grow linearly with n , vs. O(2 n ) for the full joint distribution CPSC 322, Lecture 27 Slide 14

  15. BN BNets ts: Co Const stru ructi tion on Genera ral l Se Sema manti tics The full joint distribution can be defined as the product of conditional distributions: n P (X 1 , … , X n ) = π i = 1 P(X i | X 1 , … ,X i-1 ) (chain rule) P Simplify according to marginal&conditional independence • Express remaining dependencies as a network • Each var is a node • For each var, the conditioning vars are its parents • Associate to each node corresponding conditional probabilities n P (X 1 , … , X n ) = π i = 1 P (X i | Parents(X i )) P CPSC 322, Lecture 27 Slide 15

  16. BN BNet ets: s: Co Cons nstru truct ctio ion n Ge Gene nera ral l Se Sema mant ntic ics s (cont’) n P (X 1 , … , X n ) = π i = 1 P (X i | Parents(X i )) P • Every node is independent from its non-descendants given it parents CPSC 322, Lecture 27 Slide 16

  17. Lectu ture re Ov Overv rvie iew • Be Beli lief f Ne Netw twor orks • Buil ild d sam ampl ple BN • Intro Inference, Compactness, Semantics • Mo More Ex Exam ampl ples CPSC 322, Lecture 27 Slide 17

  18. Ot Othe her r Exa xamp mple les: s: Fi Fire re Dia iagn gnos osis is (te (text xtboo ook k Ex. x. 6.10) Suppose you want to diagnose whether there is a fire in a building • you receive a noisy report about whether everyone is leaving the building. • if everyone is leaving, this may have been caused by a fire alarm. • if there is a fire alarm, it may have been caused by a fire or by tampering • if there is a fire, there may be smoke raising from the bldg. CPSC 322, Lecture 27 Slide 18

  19. Other Examples (cont’) • Make sure you explore and understand the Fi Fire Diagn gnos osis s example (we’ll expand on it to study Decision Networks) • Electrical Circuit example (textbook ex 6.11) • Patient’s wheezing and coughing example (ex. 6.14) • Several other examples on CPSC 322, Lecture 27 Slide 19

  20. Rea eali list stic ic BN BNet et: Liv iver er D Dia iagn gnos osis is Source: O Onisko et al al., 1 1999 CPSC 322, Lecture 27 Slide 20

  21. Rea eali list stic ic BN BNet et: Liv iver er D Dia iagn gnos osis is Source: O Onisko et al al., 1 1999 CPSC 322, Lecture 27 Slide 21

  22. Rea eali list stic ic BN BNet et: Liv iver r Dia iagn gnos osis is Source: Onisko et al al., 1 1999 Assuming there are ~60 nodes in this Bnet with max number of parents =4; and assuming all nodes are binary, how many numbers are required for the JPD vs BNet JPD BNet BN A ~10 18 ~10 3 B ~10 30 ~10 18 C ~10 13 ~10 14 D ~10 ~10 3 CPSC 322, Lecture 27 Slide 22

  23. Answerin ing Query u y unde der Un Uncertai ainty Probability Theory Dynamic Bayesian Network Sta tati tic B Belief Netw twork & Variable Elimination Hidden Markov Models Monitoring Student Tracing in (e.g credit cards) tutoring Systems Natural Language Processing Diagnostic Systems (e.g., medicine) Email spam filters CPSC 322, Lecture 27 Slide 23

  24. Learning Goals for today’s class Yo You c can an: Build a Belief Network for a simple domain Classify the types of inference Compute the representational saving in terms on number of probabilities required CPSC 322, Lecture 27 Slide 24

  25. Next xt Cla lass ss (W (Wednesd sday!) Bayesian Networks Representation • Ad Addition onal Dependencies s encoded by BNets • More com ompact represe sentation ons s for CPT • Very simple but extremely useful Bnet (Ba Bayes Class ssifier) CPSC 322, Lecture 27 Slide 25

  26. Beli lief f netw twor ork k su summar ary • A belief network is a directed acyclic graph (DAG) that effectively expresses independence assertions among random variables. • The parents of a node X are those variables on which X directly depends. • Consideration of causal dependencies among variables typically help in constructing a Bnet CPSC 322, Lecture 27 Slide 26

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend