Docsity

Understanding Probabilistic Graphical Models: Probabilities & Dependencies - Prof. Amol V., Study notes of Database Management Systems (DBMS)

Partial preview of the text

Download Understanding Probabilistic Graphical Models: Probabilities & Dependencies - Prof. Amol V. and more Study notes Database Management Systems (DBMS) in PDF only on Docsity!

CMSC 724: Probabilistic Graphical

Models (1)

Amol Deshpande

University of Maryland, College Park

October 18, 2007

Probabilistic graphical models

Very widely used in a many domains

Sometimes confusing literature, terminology

Concepts developed independently in different areas The way they are used may be fundamentally different

Underlying theory and abstractions quite simple

Essentially “probability theory + graphs”

We will cover very basic ideas at a high level

Random variable, X ; size of the domain (values it can

take) denoted by |X |

Probability distribution, p(X )

Discrete: Σp(x) = 1 Typically represented using tables or lists (for large, sparse domains) Continuous:

−∞ p(x) =^1 Typically represented using a density function E.g. Gaussian (very common.. easy to operate on), Poisson etc.

Random variable, X ; size of the domain (values it can

take) denoted by |X |

Probability distribution, p(X )

Discrete: Σp(x) = 1 Typically represented using tables or lists (for large, sparse domains) Continuous:

−∞ p(x) =^1 Typically represented using a density function E.g. Gaussian (very common.. easy to operate on), Poisson etc.

Joint probability distributions: p(X 1 , · · · , Xn)

Conditional probability distributions: p(X |Y )

Discrete: Σp(x|Y = y) = 1 Think of it as |Y | different probability distributions

“Conditioning”- How to compute conditional probabilities

Given p(A, B) Asked to compute p(A = a|B = b) Since we are “given” that B = b (in other words, we know that B = b)

p(A = a|B = b) = p(A^ =^ a,^ B^ =^ b) p(B = b) Doing this for all values of A and B, we can get p(A|B)

Marginalization (“summing out” a variable)

Say we are given a distribution p(X 1 , X 2 , X 3 ) Asked to compute probability p(X 1 = x 1 , X 2 = x 2 ) p(X 1 = x 1 , X 2 = x 2 ) = Σx 3 p(X 1 = x 1 , X 2 = x 2 , X 3 = x 3 ) Doing this for all values of X 1 and X 2 , we get p(X 1 , X 2 )

Entropy: A measure of uncertainty of a random variable

Mathematically: H(X ) = Σ − p(x) log p(x) (base 2) Highest when X is uniformly distributed (log |X |) Low entropy → we have a lot of information about the variable High entropy → we have little information about the variable

Entropy: A measure of uncertainty of a random variable

Mathematically: H(X ) = Σ − p(x) log p(x) (base 2) Highest when X is uniformly distributed (log |X |) Low entropy → we have a lot of information about the variable High entropy → we have little information about the variable

Comes from physics

Also called “Shannon entropy” or “information entropy”

Minimum expected number of bits needed to communicate the value of X to someone else Huffman coding

Chain rule:

p(A, B, C) = p(A|B, C) × p(B|C) × p(C)

Bayes rule:

Using chain rule: p(A, B) = p(A|B) × p(B) = p(B|A) × p(A), so ...

Chain rule:

p(A, B, C) = p(A|B, C) × p(B|C) × p(C)

Bayes rule:

Using chain rule: p(A, B) = p(A|B) × p(B) = p(B|A) × p(A), so ...

p(A|B) = p(B|A p)(^ B×)^ p(A)

Entropy rules:

H(A, B) = H(A) + H(B|A)

If A and B are independent, H(A, B) = H(A) + H(B) ie. H(B|A) = H(B) if B does not depend on A

Entropy rules:

H(A, B) = H(A) + H(B|A)

If A and B are independent, H(A, B) = H(A) + H(B) ie. H(B|A) = H(B) if B does not depend on A H(B|A) ≤ H(B) (with equality if they are independent) Intuitively, the uncertainty about B cannot increase given additional knowledge For a specific value of A, the uncertainty might increase ie., for some a ∈ domain(A), H(B|A = a) may be > H(B) But over all values of A, the uncertainty can only decrease or remain constant

Probabilistic Graphical Models

Goal: Capturing the interactions between a set of

variables

E.g. the attributes of a relation; attributes associated with entities (people)

Why?

To represent the knowledge in a succint form Understanding how things work

Probabilistic Graphical Models

Goal: Capturing the interactions between a set of

variables

E.g. the attributes of a relation; attributes associated with entities (people)

Why?

To represent the knowledge in a succint form Understanding how things work Make predictions/fill in missing values Based on knowledge gained from a set of entities, predict for another entity "learning"