Trianam's notes
a blog about machine learning and artificial intelligence

Graphical Models

February 21, 2019

Stefano Martina



Probabilistic graphical models are a way to express probability models using graph. Each node represents a random variable, while an arc denotes probabilistic relationship. The graph denomination changes if the graph is directed or not:

  • Bayesian networks are directed graphical models;
  • Markov random fields are undirected graphical models.

Bayesian Networks

To introduce Bayesan networks, consider the probability chain rule where the joint distribution over variables is decomposed as product of conditioned probabilities:

The corresponding graphical model of the rightest term of \eqref{eq:chain} is depicted in Fig 1 .

Bayesian network of joint probability
distribution over three variables.
Fig 1: Bayesian network of joint probability distribution over three variables.

The arcs represents conditional probabilities, e.g. the random variable $c$ has two incoming arcs because is conditioned by the other two random variables. Note that the ordering of the random variables in the leftmost term of \eqref{eq:chain} is irrelevant, thus we can choose different graphic representation for the same model.

Bayesian networks are only directed acyclic graphs, thus they are oriented graph. For each node $n$, the other nodes that have an outgoing edge to $n$ are denoted as $parents$.

For a generic graph with $K$ nodes , the joint distribution is given by:

where $\vec{x}$ is and $pa_k$ is the set of parents of $x_k$.

Polynomial regression



References

[Bishop2006] Bishop, Christopher M. (2006). Pattern Recognition and Machine Learning. Springer, 359-422. link



Footnotes