MAP using variable elimination

Let's start with a very basic example of a network A -> B, as shown in the following figure:

MAP using variable elimination

Fig 3.13: Basic Bayesian network with two variables

For MAP, we want to compute the following:

MAP using variable elimination

If we consider any particular assignment a for the variable A, we have the following:

MAP using variable elimination

So, for any given assignment of A, we have to select the assignment of B for which P(b|a) is at maximum. We also have to select the maximum assignment of ...

Get Mastering Probabilistic Graphical Models Using Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.