Book Image

Building Probabilistic Graphical Models with Python

By : Kiran R Karkera
Book Image

Building Probabilistic Graphical Models with Python

By: Kiran R Karkera

Overview of this book

<p>With the increasing prominence in machine learning and data science applications, probabilistic graphical models are a new tool that machine learning users can use to discover and analyze structures in complex problems. The variety of tools and algorithms under the PGM framework extend to many domains such as natural language processing, speech processing, image processing, and disease diagnosis.</p> <p>You've probably heard of graphical models before, and you're keen to try out new landscapes in the machine learning area. This book gives you enough background information to get started on graphical models, while keeping the math to a minimum.</p>
Table of Contents (15 chapters)
Building Probabilistic Graphical Models with Python
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The Bayes network


A Bayes network is a structure that can be represented as a directed acyclic graph, and the data it contains can be seen from the following two points of view:

  • It allows a compact and modular representation of the joint distribution using the chain rule for Bayes network

  • It allows the conditional independence assumptions between vertices to be observed

We shall explore the two ideas in the job interview example that we have seen so far (which is a Bayesian network, by the way).

The modular structure of the Bayes network is the set of local probability models that represent the nature of the dependence of each variable on its parents (Koller et al 3.2.1.1). One probability distribution each exists for Experience and Grades, and a conditional probability distribution (CPD) each exists for Interview and Offer. A CPD specifies a distribution over a random variable, given all the combinations of assignments to its parents. Thus, the modular representation for a given Bayes network...