Bayesian Networks
Bayesian Networks
Material used
– Halpern: Reasoning about Uncertainty. Chapter 4
– Stuart Russell and Peter Norvig: Artificial Intelligence: A Modern
Approach
1 Random variables
2 Probabilistic independence
3 Belief networks
4 Global and local semantics
5 Constructing belief networks
6 Inference in belief networks
1 Random variables
• Suppose that a coin is tossed five times. What is the total
number of heads?
• Intuitively, it is a variable because its value varies, and it is
random because its value is unpredictable in a certain sense
• Formally, a random variable is neither random nor a variable
n binary nodes,
n binary nodes
fully connected
each node max. 3 parents
less than 23 n
2n -1 independent numbers
independent numbers
The earthquake example
I´m at work,
John calls to say
my alarm is
ringing, Mary
doesn´t call. Is
there a burglary?
5 Variables
network topol-
ogy reflects
causal
knowledge
4 Global and local semantics
• Global semantics (corresponding to Halpern´s quantitative
Bayesian network) defines the full joint distribution as the
product of the local conditional distributions
• For defining this product, a linear ordering of the nodes of the
network has to be given: X1 … Xn
MaryCalls
JohnCalls
Alarm
Burglary
Earthquake
(J|M) = (J) ? No
(A|J,M) = (A|J) ? (A|J,M) = (A) ? No
(B|A,J,M) = (B|A) ? Yes
(B|A,J,M) = (B) ? No
(E|B, A,J,M) = (E|A) ? No
(E|B,A,J,M) = (E|A,B) ? Yes
6 Inference in belief networks
Types of inference:
Q quary variable, E evidence variable
Kinds of inference