













































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














































Sridhar Mahadevan [email protected] University of Massachusetts
CMPSCI 689 – p.1/
CMPSCI 689 – p.2/
Given a sample space
and an associated
σ
-algebra
, we can define a
probability
function on
as follows:
for every
(note that
must be in every
σ
-algebra).
If
1
n
is a collection of
pairwise-disjoint
subsets, then
Ai
) =i
i^
)i
CMPSCI 689 – p.4/
Given two events
and
in some sample space
, the
conditional probability
P
( A
∩
B
)
P
( B
)
Example: Let
denote the event of getting an even roll, and let
denote the
event of getting a
1636
1 3
Note that
This immediately gives us the celebrated
Bayes rule
CMPSCI 689 – p.5/
random variable
is a function from a sample space
into the real numbers
We denote the value of the variable by
(s
for element
s
of the sample
space.
A random variable
induces a probability function
X
where
is the
range of
X
x
) =i
s j^
(s
j^
x
}i
Examples of random variables: Number of heads in an experiment where a coin istossed
times, number of times the word “student” appeared in an email
document etc.
CMPSCI 689 – p.7/
graph
G is a pair
where
is a set of
vertices
or
nodes
, and
is a set of
edges
If the graph is
directed
, the edges are a set of ordered pairs of vertices.
If the graph is
undirected
, the edges are a set of unordered pairs of vertices.
We want to define probability distributions on graphs, and we will do this informally(for the moment).
CMPSCI 689 – p.8/
The joint distribution over this graph factorizes as
φ
A,B
φ
B,C
Here
is a normalization constant, and
φ
A
and
φ
B
are arbitrary
real-valued
potential functions of the form
φ
(x
exp
−
H
(x
)
If the graph is undirected, the probability distribution is called a
random field
CMPSCI 689 – p.10/
CMPSCI 689 – p.11/
A set of nodes
is said to be
d-separated
from another set of nodes
, given a
conditioning set
, if and only if the following is true of of
every
undirected path
from a node in
to a node in
The path includes a diverging or serial node
, and
The path includes a converging node
, and neither
nor any of its
descendants
The
Markov blanket
of a node is the set of all its parents, its children, and the
parents of its children.
A node is d-separated from all other nodes in a graph given its Markov blanket.
CMPSCI 689 – p.13/
H
C
E
G
A
D
B F
What is the Markov blanket of node D?
Assume the immediate neighbors of node E are observed. Is E d-separated fromB? How about A?
CMPSCI 689 – p.14/
Spark Plugs
Fuel
Gauge
Start
Gauge
|F uel
Fuel = yes
Gauge = full
Gauge = half
Gauge = empty
Starts
yes
|F uel, SparkP lugs
Fuel = yes
Fuel = no
Spark Plugs = yes
Spark Plugs = no
CMPSCI 689 – p.16/
Spark Plugs
Fuel
Gauge
Start
F uel
Fuel = yes
SparkP lugs
Spark Plugs = yes
CMPSCI 689 – p.17/
0.
+
+
+
*****^
*****^
*****^
*****^
P(SP = No)
P(SP=Yes)
0.
0.
0.
P(F=yes)
P(G=empty|F=yes)
P(G=full|F=yes)
P(G=empty|F=yes)
P(G=full|F=yes)
P(G=1/2|F=yes)
P(G=1/2|F=yes)
P(S=Yes|F=yes, SP=No)
P(S=Yes|F=yes, SP=No)
P(S=Yes|F=yes, SP=No)
P(S=Yes|F=yes,SP=yes)
P(S=Yes|F=yes,SP=yes)
P(S=Yes|F=yes,SP=yes)
0.
0.
0.
0.
0.
0.
0.
0.
0.
0.
0.
(0.98)({[(0.01)(0.01) + (0.6)(0.01) + (0.39)(0.01)]}(0.04)
+
{(0.39)(0.99) + (0.6)(0.99) + (0.01)(0.99)}(0.96)})
=0.
CMPSCI 689 – p.19/
Inference by enumeration is an exponential
n
algorithm.
If we examine the steps carefully, we notice there are many redundant or repeatedcalculations in the calculation
yes
yes
Starts
yes
yes, SP
In particular, with some thought, we can reorder the computation of the numeratoras
yes
Starts
yes
yes, SP
G
yes
We can simplify even further, by noting that the sum over
, giving us
yes
Starts
yes
yes, SP
CMPSCI 689 – p.20/