Docsity

Prob. Mass Functions & Bayesian Networks: Reasoning on Variable Relationships, Slides of Java Programming

Partial preview of the text

Download Prob. Mass Functions & Bayesian Networks: Reasoning on Variable Relationships and more Slides Java Programming in PDF only on Docsity!

Joint PMFs

  • Joint probability mass functions are useful because they let us reason about relationships between random variables

Joint PMFs

  • Joint probability mass functions are useful because they let us reason about relationships between random variables Let X indicate whether or not someone has a disease Let Y indicate whether or not his test results are positive

The Problem with Joint PMFs

The real world is much more complicated than this

The Problem with Joint PMFs

The real world is much more complicated than this

  • Which of two diseases is most likely given that the patient has stomach pains, skin irritation, loss of appetite, negative results on test 1, positive results on tests 2 and 3, and has not yet been given test 4?

The Problem with Joint PMFs

The real world is much more complicated than this

  • Which of two diseases is most likely given that the patient has stomach pains, skin irritation, loss of appetite, negative results on test 1, positive results on tests 2 and 3, and has not yet been given test 4? n binary variables → 2 n probabilities we need to learn As computer scientists, we are interested in finding efficient ways to reason about complex scenarios

Efficient Representations

  • We’ve already seen one example of an assumption that led to a more efficient representation…

Efficient Representations

  • We’ve already seen one example of an assumption that led to a more efficient representation… the Naive Bayes independence assumption
  • Graphical models such as Bayesian networks allow us to take advantage of more complex independence relationships between variables

Bayesian Network

  • The first component of a Bayesian network is a directed acyclic graph (or DAG)

Bayesian Network

  • The first component of a Bayesian network is a directed acyclic graph (or DAG)
    • Nodes represents a random variables X 1 X 3 X 2 X 5 X 4 X 6

Bayesian Network

  • The first component of a Bayesian network is a directed acyclic graph (or DAG)
    • Nodes represents a random variables
    • Edges represent dependencies X 1 X 3 X 2 X 5 X 4 X 6

Bayesian Network

For now, you can think of edges as representing causal effects… Let X indicate whether or not someone has a disease Let Y indicate whether or not his test results are positive X Y

Bayesian Network

Key Advantage: If dependencies are represented accurately, the joint distribution factors in a nice way

Bayesian Network

Key Advantage: If dependencies are represented accurately, the joint distribution factors in a nice way Don’t need to learn or store the whole joint PMF! Can instead learn a small conditional probability table for each random variable. € P ( X 1 = x 1 ,..., X n = x n ) = P i = 1 n

∏ ( Xi =^ xi |^ Pa ( Xi )^ =^ pa ( Xi ))

Bayesian Network

  • The second component of a Bayesian network is a conditional probability table for each node