Trang 1
Machine Reasoning using Bayesian Network Ching-Yung Lin, Ph.D. Columbia University and Graphen, Inc. February 24, 2023
Đang tạo bản xem trước...
Machine Reasoning using Bayesian Network Ching-Yung Lin, Ph.D. Columbia University and Graphen, Inc. February 24, 2023
Outline • Introduction • Probability Review • Bayesian Network • Inference Methods • Network Structure Learning
Evolution of Intelligence Direction of Evolution recognition perception reasoning sensors strategy representation memory 3
Introduction Suppose the doctor is trying to determine if a patient has inhalational anthrax. She observes the following symptoms: •The patient has a cough •The patient has difficulty in breathing •The patient has a fever 4
Introduction Dealing with uncertainty: You would like to determine how likely the patient is infected with inhalational anthrax given that the patient has a cough, a fever, and difficulty breathing 5
Introduction New evidence: X-ray image shows that the patient has a wide mediastinum. Belief update: your belief that the patient is infected with inhalational anthrax is now much higher now. 6
Introduction • In the previous slides, what you observed affected your belief that the patient is infected with anthrax • This is called reasoning with uncertainty • Wouldn’t it be nice if we had some tools for reasoning with uncertainty? In fact, we do… 7
Bayesian Network Has Anthrax Cough Fever Difficulty Breathing Wide Mediastinum • Need a representation and reasoning system that is based on conditional independence • Compact yet expressive representation • Efficient reasoning procedures Thomas Bayes • Bayesian Network is such a representation • Named after Thomas Bayes (ca. 1702 –1761) • Term coined in 1985 by Judea Pearl (1936 – ) , 2011 winner of the ACM Turing Award • Many applications, e.g., spam filtering, speech recognition, robotics, diagnostic systems and even syndromic surveillance Judea Pearl 8
Outline • Introduction • Probability Review • Bayesian Network • Inference methods • Network Structure Learning
Probabilities We will write P(A = true) to mean the probability that A = true. One definition of probability: the relative frequency with which an outcome would be obtained if the process were repeated a large number of times under similar conditions The sum of the red and blue areas is 1 P(A = true) P(A = false) 11
Conditional Probability • P(A = true | B = true) : Out of all the outcomes in which B is true, how many also have A equal to true • Read as: “Probability of A given B” F = “Have a fever” C = “Coming down with cold” P(F = true) P(F = true) = 1/10 P(C = true) = 1/15 P(F = true | C = true) = 1/2 “Fever are rare and cold is rarer, but if P(C = true) you’re coming down with cold there’s a 50-50 chance you’ll have a headache.” 12
The Joint Probability Distribution • P(A = true, B = true) :“the probability of A = true and B = true” • Notice that: P(F=true|C=true) P(F = true) P(C = true) 13
The Joint Probability Distribution A B C P(A,B,C) • Joint probabilities can be between any false false false 0.1 number of variables false false true 0.2 e.g. P(A = true, B = true, C = true) false true false 0.05 • For each combination of variables, we false true true 0.05 need to say how probable that true false false 0.3 combination is true false true 0.1 true true false 0.05 true true true 0.15 Sums to 1 14
The Joint Probability Distribution A B C P(A,B,C) • Once you have the joint probability false false false 0.1 distribution, you can calculate any false false true 0.2 probability involving A, B, and C false true false 0.05 • Note: May need to use false true true 0.05 marginalization and Bayes rule, true false false 0.3 true false true 0.1 true true false 0.05 Examples of things you can compute: true true true 0.15 • P(A=true) = sum of P(A,B,C) in rows with A=true • P(A=true, B = true | C=true) = P(A = true, B = true, C = true) / P(C = true) 15
Independence Variables A and B are independent if any of the following hold: • P(A,B) = P(A) P(B) • P(A | B) = P(A) • P(B | A) = P(B) 16
Independence How is independence useful? • Suppose you have n coin flips and you want to calculate the joint distribution P(C1, …, Cn) • If the coin flips are not independent, you need 2n values in the table • If the coin flips are independent, then 17
Conditional Independence • C and A are conditionally independent given B if the following holds: P(C | A, B) = P(C | B) • Example: “Cancer is a common cause of the two symptoms: a positive X-ray and dyspnoea” Lung B cancer dyspnoea X-ray A C • Joint distribution: P(A,B,C)=P(C/A,B)P(A,B)=P(C/B)P(A,B)=P(C/B)P(A/B)P(B) 18
A Bayesian Network A Bayesian network is made up of: 1. A Directed Acyclic Graph A B C D 2. A set of tables for each node in the graph: conditional probability table A P(A) A B P(B|A) B D P(D|B) B C P(C|B) false 0.4 false false 0.03 false false 0.01 false false 0.3 true 0.6 false true 0.97 false true 0.99 false true 0.7 true false 0.6 true false 0.04 true false 0.8 true true 0.4 true true 0.96 true true 0.2
Hiển thị 20 trang đầu. Tải tài liệu để xem đầy đủ.
Chưa có bình luận nào. Hãy là người đầu tiên!
Bình luận (0)
Chưa có bình luận nào. Hãy là người đầu tiên!