Docsity

Graphical Models: Probability, Rules, and Undirected vs Directed Models, Study notes of Computer Science

Partial preview of the text

Download Graphical Models: Probability, Rules, and Undirected vs Directed Models and more Study notes Computer Science in PDF only on Docsity!

Chapter 8 of Bishop's Book: “Graphical Models”

Review of Probability

● Probability density over possible values of x ● Used to find probability of x falling in some range ● For continuous variables, the probability of a single value is technically 0! ● For discrete values, called probability mass

Two important rules

● Sum Rule: ● p(x) is marginal probability, obtained by marginalizing out y ● Product Rule

Graphical Models

● Consider the distribution ● Can be rewritten as ● Which can be rewritten as

What's the distribution for this

graph?

What do you do with distributions?

● Draw Samples ● Infer marginal distributions over variables

Ancestral Sampling

  1. Start at the low numbered nodes and draw samples 2.Work your through the graph, sampling from conditional distributions

Example of a Generative Model of

Images (of Objects)

(From Sudderth, Torralba, Freeman, and Willsky - NIPS05)

Undirected Models

● Directed models are useful, but have some complicating limitations

  • (^) Determining conditional independence can be hard ● Not all relationships can be expressed causally ● We can drop the arrows to make an undirected model ● Also called Markov Network or Markov Random Field

Conditional Independence

or

Conditional Independence in an

MRF

● Conditioned on its neighbors a node is conditionally independent from the rest of the nodes in the graph

Converting a directed model to an

undirected model

● You “moralize” the graph ● Marry the parents ● Can then use inference techniques for undirected graphs

Inference in Graphical Models

● Let's say that I've analyzed the problem ● Have designed a graphical model that relates the observations to quantities that I would like to estimate ● Get my observations ● How do estimate the hidden, or latent, quantities?