SlideShare une entreprise Scribd logo
1  sur  26
Télécharger pour lire hors ligne
Reasoning with Uncertain
Information
Chapter 19.
Page 2===
Outline
 Review of Probability Theory
 Probabilistic Inference
 Bayes Networks
 Patterns of Inference in Bayes Networks
 Uncertain Evidence
 D-Separation
 Probabilistic Inference in Polytrees
Page 3===
19.1 Review of Probability Theory
 Random variables
 Joint probability
(B (BAT_OK), M (MOVES) , L (LIFTABLE), G
(GUAGE))
Joint
Probability
(True, True, True, True) 0.5686
(True, True, True, False) 0.0299
(True, True, False, True) 0.0135
(True, True, False, False) 0.0007
„ „
Ex.
Page 4===
19.1 Review of Probability Theory
 Marginal probability
 Conditional probability
–Ex. The probability that the battery is charged given that
the arm does not move
Ex.
Page 5===
19.1 Review of Probability Theory
Page 6===
19.1 Review of Probability Theory
 Chain rule
 Bayes’ rule

–Abbreviation for
where
Page 7===
19.2 Probabilistic Inference
 The probability some variable Vi has value vi given the evidence
 =e.
p(P,Q,R) 0.3
p(P,Q,¬R) 0.2
p(P, ¬Q,R) 0.2
p(P, ¬Q,¬R) 0.1
p(¬P,Q,R) 0.05
p(¬P, Q, ¬R) 0.1
p(¬P, ¬Q,R) 0.05
p(¬P, ¬Q,¬R) 0.0
   
 
   
 
 
   RpRp
Rp
RQPpRQPp
Rp
RQp
RQp











3.01.02.0
,,),,,
|
   
 
   
 
 
   RpRp
Rp
RQPpRQPp
Rp
RQp
RQp











1.00.01.0
,,),,,
|
 
    1||
75.0|


RQpRQP
RQp

  ?RQp |
Page 8===
Statistical Independence
 Conditional independence
 Mutually conditional independence
 Unconditional independence
Page 9===
19.3 Bayes Networks
 Directed, acyclic graph (DAG) whose nodes are
labeled by random variables.
 Characteristics of Bayesian networks
–Node Vi is conditionally independent of any subset of nodes
that are not descendents of Vi.
   )(|)(),(| iiiii VPVpVPVAVp 
graphin theofparentsimmediatethe)(
ofsdescendent
notaregraph thatin thenodesofsetany)(
ii
i
i
VVP
V
VA


Page 10===
Bayes Networks
 Prior probability
 Conditional probability table (CPT)
   

k
i
iik VPVpVVVp
1
21 )(|,...,,
Page 11===
19.3 Bayes Networks
Page 12===
Inference in Bayes Networks
 Causal or top-down inference
– Ex. The probability that the arm moves given that the block is
liftable
     
       
       BpLBMpBpLBMp
LBpLBMpLBpLBMp
LBMpLBMpLMp



,|,|
|,||,|
|,|,|
  855.0| LMp
Page 13===
Inference in Bayes Networks
 Diagnostic or bottom-up inference
–Using an effect (or symptom) to infer a cause
–Ex. The probability that the block is not liftable given
that the arm does not move.
  9525.0|  LMp (using a causal reasoning)
(Bayes’ rule)( M| L) ( L|) 0.9525*0.3 0.28575
( L| M)=
( M) ( M) ( M)
 

  
  
   
  
( M|L) (L|) 0.0595*0.7 0.03665
(L| M)=
( M) ( M) ( M)
 

  

  
  
( L| M)=0.88632  
Page 14===
Inference in Bayes Networks
 Explaining away(辩解)
–¬B explains ¬M, making ¬L less
– certain
     
 
     
 
     
 
88632.0030.0
,
,|
,
|,|
,
|,
,|










MBp
LpBpLBMp
MBp
LpLBpLBMp
MBp
LpLBMp
MBLp (Bayes’ rule)
(def. of conditional prob.)
(structure of the Bayes network)
Page 15===
19.5 Uncertain Evidence
 We must be certain about the truth or falsity of the
propositions they represent.
–Each uncertain evidence node should have a child node,
about which we can be certain.
–Ex. Suppose the robot is not certain that its arm did
not move.
• Introducing M’ : “The arm sensor says that the arm moved”
• We can be certain that that proposition is either true or false.
• p(¬L| ¬B, ¬M’) instead of p(¬L| ¬B, ¬M)
–Ex. Suppose we are uncertain about whether or not the
battery is charged.
• Introducing G : “Battery guage”
• p(¬L| ¬G, ¬M’) instead of p(¬L| ¬B, ¬M’)
Page 16===
19.6 D-Separation
  d-separates Vi and Vj if for every
undirected path in the Bayes network
between Vi and Vj, there is some
node, Vb, on the path having one of
the following three properties.
–Vb is in , and both arcs on the
path lead out of Vb
–Vb is in , and one arc on the path
leads in to Vb and one arc leads
out.
–Neither Vb nor any descendant of Vb
is in , and both arcs on the path
lead in to Vb.
Page 17===
19.6 D-Separation
•I(G,L|B)
•I(G,L)
•I(B,L)
Page 18===
Inference in Polytrees
 Polytree
–A DAG for which there is just one path, along arcs in either
direction, between any two nodes in the DAG.
Page 19===
 A node is above Q
–The node is connected to Q only through Q’s parents
 A node is below Q
–The node is connected to Q only through Q’s immediate
successors.
 Three types of evidence.
–All evidence nodes are above Q.
–All evidence nodes are below Q.
–There are evidence nodes both above and below Q.
Inference in Polytrees
Page 20===
Evidence Above (1)
 Bottom-up recursive algorithm
 Ex. p(Q|P5, P4)
   
   
   
     
     









7,6
7,6
7,6
7,6
7,6
4|75|67,6|
4,5|74,5|67,6|
4,5|7,67,6|
4,5|7,64,5,7,6|
4,5|7,6,4,5|
PP
PP
PP
PP
PP
PPpPPpPPQp
PPPpPPPpPPQp
PPPPpPPQp
PPPPpPPPPQp
PPPPQpPPQp
(Structure of
The Bayes network)
(d-separation)
(d-separation)
Page 21===
Evidence Above (2)
 Calculating p(P7|P4) and p(P6|P5)
 Calculating p(P5|P1)
–Evidence is “below”
–Here, we use Bayes’ rule
         
       
 


2,1
3 3
25|12,1|65|6
34,3|74|34,3|74|7
PP
P P
PpPPpPPPpPPp
PpPPPpPPpPPPpPPp
     
 5
11|5
5|1
Pp
PpPPp
PPp 
Page 22===
Evidence Below (1)
Top-down recursive algorithm
     
 
   
     QpQPPpQPPkp
QpQPPPPkp
PPPPp
QpQPPPPp
PPPPQp
|11,14|13,12
|11,14,13,12
11,14,13,12
|11,14,13,12
11,14,13,12|



     
   



9
9
|99|13,12
|9,9|13,12|13,12
P
P
QPpPPPp
QppQPPPpQPPp
     
8
8,8|9|9
P
PpQPPpQPp      9|139|129|13,12 PPpPPpPPPp 
Page 23===
Evidence Below (2)
     
     



10
10
|1010|1110|14
|1010|11,14|11,14
P
P
QPpPPpPPp
QPpPPPpQPPp
     
     
     
 
   
         1011,10|1511|1011,10|1511|10,15
1111|10,15
10,15
1111|10,15
10,15|11
1111,10|1510|15
10|1510,15|1110|11
1
11
15
PpPPPpPPpPPPpPPPp
PpPPPpk
PPp
PpPPPp
PPPp
PpPPPpPPp
PPpPPPpPPp
P
P








Page 24===
Evidence Above and Below
     
 
   
   












||
|,|
|
|,|
,|
2
2
QpQpk
QpQpk
p
QpQp
Qp
 }11,14,13,12{},4,5{| PPPPPPQp
+ -
Page 25===
A Numerical Example (1)
     QpQUkpUQp || 
     
       
80.099.08.001.095.0
,|,|
,||


 
RpQRPpRpQRPp
RpQRPpQPp
R
     
       
019.099.001.001.090.0
,|,|
,||


 
RpQRPpRpQRPp
RpQRPpQPp
R
•Diagnostic reasoning
Page 26===
A Numerical Example (2)
 Other techniques
– Bucket elimination
– Monte Carlo method
– Clustering
     
60.02.02.08.07.0
2.0|8.0||

 PUpPUpQUp
     
21.098.02.0019.07.0
98.0|019.0||

 PUpPUpQUp
 
 
  13.003.035.4|,35.4
20.095.021.0|
03.005.06.0|



UQpk
kkUQp
kkUQp

Contenu connexe

Similaire à 19 uncertain evidence

Learning LWF Chain Graphs: A Markov Blanket Discovery Approach
Learning LWF Chain Graphs: A Markov Blanket Discovery ApproachLearning LWF Chain Graphs: A Markov Blanket Discovery Approach
Learning LWF Chain Graphs: A Markov Blanket Discovery Approach
Pooyan Jamshidi
 
Stratified Monte Carlo and bootstrapping for approximate Bayesian computation
Stratified Monte Carlo and bootstrapping for approximate Bayesian computationStratified Monte Carlo and bootstrapping for approximate Bayesian computation
Stratified Monte Carlo and bootstrapping for approximate Bayesian computation
Umberto Picchini
 
Backpropagation And Gradient Descent In Neural Networks | Neural Network Tuto...
Backpropagation And Gradient Descent In Neural Networks | Neural Network Tuto...Backpropagation And Gradient Descent In Neural Networks | Neural Network Tuto...
Backpropagation And Gradient Descent In Neural Networks | Neural Network Tuto...
Simplilearn
 

Similaire à 19 uncertain evidence (9)

UDSLF
UDSLFUDSLF
UDSLF
 
Linear Regression Modeling
Linear Regression ModelingLinear Regression Modeling
Linear Regression Modeling
 
GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...
GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...
GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...
 
Variational Inference in Python
Variational Inference in PythonVariational Inference in Python
Variational Inference in Python
 
Learning LWF Chain Graphs: A Markov Blanket Discovery Approach
Learning LWF Chain Graphs: A Markov Blanket Discovery ApproachLearning LWF Chain Graphs: A Markov Blanket Discovery Approach
Learning LWF Chain Graphs: A Markov Blanket Discovery Approach
 
Stratified Monte Carlo and bootstrapping for approximate Bayesian computation
Stratified Monte Carlo and bootstrapping for approximate Bayesian computationStratified Monte Carlo and bootstrapping for approximate Bayesian computation
Stratified Monte Carlo and bootstrapping for approximate Bayesian computation
 
More on randomization semi-definite programming and derandomization
More on randomization semi-definite programming and derandomizationMore on randomization semi-definite programming and derandomization
More on randomization semi-definite programming and derandomization
 
A nonlinear approximation of the Bayesian Update formula
A nonlinear approximation of the Bayesian Update formulaA nonlinear approximation of the Bayesian Update formula
A nonlinear approximation of the Bayesian Update formula
 
Backpropagation And Gradient Descent In Neural Networks | Neural Network Tuto...
Backpropagation And Gradient Descent In Neural Networks | Neural Network Tuto...Backpropagation And Gradient Descent In Neural Networks | Neural Network Tuto...
Backpropagation And Gradient Descent In Neural Networks | Neural Network Tuto...
 

Plus de Tianlu Wang

Plus de Tianlu Wang (20)

L7 er2
L7 er2L7 er2
L7 er2
 
L8 design1
L8 design1L8 design1
L8 design1
 
L9 design2
L9 design2L9 design2
L9 design2
 
14 pro resolution
14 pro resolution14 pro resolution
14 pro resolution
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculus
 
12 adversal search
12 adversal search12 adversal search
12 adversal search
 
11 alternative search
11 alternative search11 alternative search
11 alternative search
 
10 2 sum
10 2 sum10 2 sum
10 2 sum
 
22 planning
22 planning22 planning
22 planning
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculus
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learning
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledge
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systems
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based system
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolution
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolution
 
15 predicate
15 predicate15 predicate
15 predicate
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed search
 
07 plan agent
07 plan agent07 plan agent
07 plan agent
 

Dernier

Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call GirlsCall Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
parisharma5056
 
Dubai Call Girls # 00971528860074 # 24/7 Call Girls In Dubai || (UAE)
Dubai Call Girls # 00971528860074 # 24/7 Call Girls In Dubai || (UAE)Dubai Call Girls # 00971528860074 # 24/7 Call Girls In Dubai || (UAE)
Dubai Call Girls # 00971528860074 # 24/7 Call Girls In Dubai || (UAE)
Business Bay Call Girls || 0529877582 || Call Girls Service in Business Bay Dubai
 
FULL NIGHT — 9999894380 Call Girls In Saket | Delhi
FULL NIGHT — 9999894380 Call Girls In Saket | DelhiFULL NIGHT — 9999894380 Call Girls In Saket | Delhi
FULL NIGHT — 9999894380 Call Girls In Saket | Delhi
SaketCallGirlsCallUs
 
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call Girl
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call GirlAdmirable # 00971529501107 # Call Girls at dubai by Dubai Call Girl
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call Girl
home
 
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
delhimunirka444
 
Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)
Business Bay Call Girls || 0529877582 || Call Girls Service in Business Bay Dubai
 
FULL NIGHT — 9999894380 Call Girls In Delhi | Delhi
FULL NIGHT — 9999894380 Call Girls In Delhi | DelhiFULL NIGHT — 9999894380 Call Girls In Delhi | Delhi
FULL NIGHT — 9999894380 Call Girls In Delhi | Delhi
SaketCallGirlsCallUs
 
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
Business Bay Call Girls || 0529877582 || Call Girls Service in Business Bay Dubai
 
❤️Call girls in Chandigarh ☎️8264406502☎️ Call Girl service in Chandigarh☎️ C...
❤️Call girls in Chandigarh ☎️8264406502☎️ Call Girl service in Chandigarh☎️ C...❤️Call girls in Chandigarh ☎️8264406502☎️ Call Girl service in Chandigarh☎️ C...
❤️Call girls in Chandigarh ☎️8264406502☎️ Call Girl service in Chandigarh☎️ C...
Sheetaleventcompany
 
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...
home
 

Dernier (20)

Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call GirlsCall Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
 
VIP Ramnagar Call Girls, Ramnagar escorts Girls 📞 8617697112
VIP Ramnagar Call Girls, Ramnagar escorts Girls 📞 8617697112VIP Ramnagar Call Girls, Ramnagar escorts Girls 📞 8617697112
VIP Ramnagar Call Girls, Ramnagar escorts Girls 📞 8617697112
 
(INDIRA) Call Girl Dehradun Call Now 8617697112 Dehradun Escorts 24x7
(INDIRA) Call Girl Dehradun Call Now 8617697112 Dehradun Escorts 24x7(INDIRA) Call Girl Dehradun Call Now 8617697112 Dehradun Escorts 24x7
(INDIRA) Call Girl Dehradun Call Now 8617697112 Dehradun Escorts 24x7
 
Dubai Call Girls # 00971528860074 # 24/7 Call Girls In Dubai || (UAE)
Dubai Call Girls # 00971528860074 # 24/7 Call Girls In Dubai || (UAE)Dubai Call Girls # 00971528860074 # 24/7 Call Girls In Dubai || (UAE)
Dubai Call Girls # 00971528860074 # 24/7 Call Girls In Dubai || (UAE)
 
FULL NIGHT — 9999894380 Call Girls In Saket | Delhi
FULL NIGHT — 9999894380 Call Girls In Saket | DelhiFULL NIGHT — 9999894380 Call Girls In Saket | Delhi
FULL NIGHT — 9999894380 Call Girls In Saket | Delhi
 
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call Girl
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call GirlAdmirable # 00971529501107 # Call Girls at dubai by Dubai Call Girl
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call Girl
 
Jeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around EuropeJeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around Europe
 
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
 
Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)
 
FULL NIGHT — 9999894380 Call Girls In Delhi | Delhi
FULL NIGHT — 9999894380 Call Girls In Delhi | DelhiFULL NIGHT — 9999894380 Call Girls In Delhi | Delhi
FULL NIGHT — 9999894380 Call Girls In Delhi | Delhi
 
(INDIRA) Call Girl Jammu Call Now 8617697112 Jammu Escorts 24x7
(INDIRA) Call Girl Jammu Call Now 8617697112 Jammu Escorts 24x7(INDIRA) Call Girl Jammu Call Now 8617697112 Jammu Escorts 24x7
(INDIRA) Call Girl Jammu Call Now 8617697112 Jammu Escorts 24x7
 
Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024
 
Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...
Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...
Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...
 
Young⚡Call Girls in Tughlakabad Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Tughlakabad Delhi >༒9667401043 Escort ServiceYoung⚡Call Girls in Tughlakabad Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Tughlakabad Delhi >༒9667401043 Escort Service
 
Completed Event Presentation for Huma 1305
Completed Event Presentation for Huma 1305Completed Event Presentation for Huma 1305
Completed Event Presentation for Huma 1305
 
Jeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel ThrowingJeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel Throwing
 
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
 
❤️Call girls in Chandigarh ☎️8264406502☎️ Call Girl service in Chandigarh☎️ C...
❤️Call girls in Chandigarh ☎️8264406502☎️ Call Girl service in Chandigarh☎️ C...❤️Call girls in Chandigarh ☎️8264406502☎️ Call Girl service in Chandigarh☎️ C...
❤️Call girls in Chandigarh ☎️8264406502☎️ Call Girl service in Chandigarh☎️ C...
 
Storyboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to SingStoryboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to Sing
 
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...
 

19 uncertain evidence

  • 2. Page 2=== Outline  Review of Probability Theory  Probabilistic Inference  Bayes Networks  Patterns of Inference in Bayes Networks  Uncertain Evidence  D-Separation  Probabilistic Inference in Polytrees
  • 3. Page 3=== 19.1 Review of Probability Theory  Random variables  Joint probability (B (BAT_OK), M (MOVES) , L (LIFTABLE), G (GUAGE)) Joint Probability (True, True, True, True) 0.5686 (True, True, True, False) 0.0299 (True, True, False, True) 0.0135 (True, True, False, False) 0.0007 „ „ Ex.
  • 4. Page 4=== 19.1 Review of Probability Theory  Marginal probability  Conditional probability –Ex. The probability that the battery is charged given that the arm does not move Ex.
  • 5. Page 5=== 19.1 Review of Probability Theory
  • 6. Page 6=== 19.1 Review of Probability Theory  Chain rule  Bayes’ rule  –Abbreviation for where
  • 7. Page 7=== 19.2 Probabilistic Inference  The probability some variable Vi has value vi given the evidence  =e. p(P,Q,R) 0.3 p(P,Q,¬R) 0.2 p(P, ¬Q,R) 0.2 p(P, ¬Q,¬R) 0.1 p(¬P,Q,R) 0.05 p(¬P, Q, ¬R) 0.1 p(¬P, ¬Q,R) 0.05 p(¬P, ¬Q,¬R) 0.0                  RpRp Rp RQPpRQPp Rp RQp RQp            3.01.02.0 ,,),,, |                  RpRp Rp RQPpRQPp Rp RQp RQp            1.00.01.0 ,,),,, |       1|| 75.0|   RQpRQP RQp    ?RQp |
  • 8. Page 8=== Statistical Independence  Conditional independence  Mutually conditional independence  Unconditional independence
  • 9. Page 9=== 19.3 Bayes Networks  Directed, acyclic graph (DAG) whose nodes are labeled by random variables.  Characteristics of Bayesian networks –Node Vi is conditionally independent of any subset of nodes that are not descendents of Vi.    )(|)(),(| iiiii VPVpVPVAVp  graphin theofparentsimmediatethe)( ofsdescendent notaregraph thatin thenodesofsetany)( ii i i VVP V VA  
  • 10. Page 10=== Bayes Networks  Prior probability  Conditional probability table (CPT)      k i iik VPVpVVVp 1 21 )(|,...,,
  • 12. Page 12=== Inference in Bayes Networks  Causal or top-down inference – Ex. The probability that the arm moves given that the block is liftable                      BpLBMpBpLBMp LBpLBMpLBpLBMp LBMpLBMpLMp    ,|,| |,||,| |,|,|   855.0| LMp
  • 13. Page 13=== Inference in Bayes Networks  Diagnostic or bottom-up inference –Using an effect (or symptom) to infer a cause –Ex. The probability that the block is not liftable given that the arm does not move.   9525.0|  LMp (using a causal reasoning) (Bayes’ rule)( M| L) ( L|) 0.9525*0.3 0.28575 ( L| M)= ( M) ( M) ( M)                 ( M|L) (L|) 0.0595*0.7 0.03665 (L| M)= ( M) ( M) ( M)              ( L| M)=0.88632  
  • 14. Page 14=== Inference in Bayes Networks  Explaining away(辩解) –¬B explains ¬M, making ¬L less – certain                         88632.0030.0 , ,| , |,| , |, ,|           MBp LpBpLBMp MBp LpLBpLBMp MBp LpLBMp MBLp (Bayes’ rule) (def. of conditional prob.) (structure of the Bayes network)
  • 15. Page 15=== 19.5 Uncertain Evidence  We must be certain about the truth or falsity of the propositions they represent. –Each uncertain evidence node should have a child node, about which we can be certain. –Ex. Suppose the robot is not certain that its arm did not move. • Introducing M’ : “The arm sensor says that the arm moved” • We can be certain that that proposition is either true or false. • p(¬L| ¬B, ¬M’) instead of p(¬L| ¬B, ¬M) –Ex. Suppose we are uncertain about whether or not the battery is charged. • Introducing G : “Battery guage” • p(¬L| ¬G, ¬M’) instead of p(¬L| ¬B, ¬M’)
  • 16. Page 16=== 19.6 D-Separation   d-separates Vi and Vj if for every undirected path in the Bayes network between Vi and Vj, there is some node, Vb, on the path having one of the following three properties. –Vb is in , and both arcs on the path lead out of Vb –Vb is in , and one arc on the path leads in to Vb and one arc leads out. –Neither Vb nor any descendant of Vb is in , and both arcs on the path lead in to Vb.
  • 18. Page 18=== Inference in Polytrees  Polytree –A DAG for which there is just one path, along arcs in either direction, between any two nodes in the DAG.
  • 19. Page 19===  A node is above Q –The node is connected to Q only through Q’s parents  A node is below Q –The node is connected to Q only through Q’s immediate successors.  Three types of evidence. –All evidence nodes are above Q. –All evidence nodes are below Q. –There are evidence nodes both above and below Q. Inference in Polytrees
  • 20. Page 20=== Evidence Above (1)  Bottom-up recursive algorithm  Ex. p(Q|P5, P4)                                  7,6 7,6 7,6 7,6 7,6 4|75|67,6| 4,5|74,5|67,6| 4,5|7,67,6| 4,5|7,64,5,7,6| 4,5|7,6,4,5| PP PP PP PP PP PPpPPpPPQp PPPpPPPpPPQp PPPPpPPQp PPPPpPPPPQp PPPPQpPPQp (Structure of The Bayes network) (d-separation) (d-separation)
  • 21. Page 21=== Evidence Above (2)  Calculating p(P7|P4) and p(P6|P5)  Calculating p(P5|P1) –Evidence is “below” –Here, we use Bayes’ rule                       2,1 3 3 25|12,1|65|6 34,3|74|34,3|74|7 PP P P PpPPpPPPpPPp PpPPPpPPpPPPpPPp        5 11|5 5|1 Pp PpPPp PPp 
  • 22. Page 22=== Evidence Below (1) Top-down recursive algorithm                  QpQPPpQPPkp QpQPPPPkp PPPPp QpQPPPPp PPPPQp |11,14|13,12 |11,14,13,12 11,14,13,12 |11,14,13,12 11,14,13,12|                 9 9 |99|13,12 |9,9|13,12|13,12 P P QPpPPPp QppQPPPpQPPp       8 8,8|9|9 P PpQPPpQPp      9|139|129|13,12 PPpPPpPPPp 
  • 23. Page 23=== Evidence Below (2)                10 10 |1010|1110|14 |1010|11,14|11,14 P P QPpPPpPPp QPpPPPpQPPp                                  1011,10|1511|1011,10|1511|10,15 1111|10,15 10,15 1111|10,15 10,15|11 1111,10|1510|15 10|1510,15|1110|11 1 11 15 PpPPPpPPpPPPpPPPp PpPPPpk PPp PpPPPp PPPp PpPPPpPPp PPpPPPpPPp P P        
  • 24. Page 24=== Evidence Above and Below                             || |,| | |,| ,| 2 2 QpQpk QpQpk p QpQp Qp  }11,14,13,12{},4,5{| PPPPPPQp + -
  • 25. Page 25=== A Numerical Example (1)      QpQUkpUQp ||                80.099.08.001.095.0 ,|,| ,||     RpQRPpRpQRPp RpQRPpQPp R               019.099.001.001.090.0 ,|,| ,||     RpQRPpRpQRPp RpQRPpQPp R •Diagnostic reasoning
  • 26. Page 26=== A Numerical Example (2)  Other techniques – Bucket elimination – Monte Carlo method – Clustering       60.02.02.08.07.0 2.0|8.0||   PUpPUpQUp       21.098.02.0019.07.0 98.0|019.0||   PUpPUpQUp       13.003.035.4|,35.4 20.095.021.0| 03.005.06.0|    UQpk kkUQp kkUQp