Inference by Enumeration

Inference by Enumeration Algorithm - Intuition

answering probabilistic queries often involves the summation/marginalization of full joint probabilities

for example, given a full joint probability 𝐏(𝑎, 𝑏, 𝑐) the computation of a probabilistic query 𝐏(𝑎|𝑏) is as follows

  • 𝐏(𝑎|𝑏) = 𝐏(𝑎,𝑏) / 𝐏(𝑏) # because bayes rule
  • 𝐏(𝑎|𝑏) = [ 𝛴𝑐∊𝐶 𝐏(𝑎,𝑏,𝑐) ] / [ 𝛴𝑎∊𝐴𝛴𝑐∊𝐶𝐏(𝑎,𝑏,𝑐) ] # because marginal probability rule

however, storing a full joint probability in table-formis not practical because it takes 𝑂(𝑘𝑛) space, where:

  • 𝑛 is the number of variables
  • 𝑘 is the max cardinality of each variable

to solve this problem, we often encode the full joint probability in a probabilistic graphical model. They require much less space but still retain the ability to represent the full joint probability. The only downside of is that it requires an extra step to obtain the value of the full joint probability

acquiring these values depends on the probabilistic graphical model:

order to solve this query 𝐏(𝑎|𝑏we need to know the value of the full joint probability 𝐏(𝑎,𝑏,𝑐)

Once the probability value is acquired we plug it into the equation, then we continue to enumerate through each summation 𝛴 and each time we calculate the full joint probability value based on the probabilistic graphical model

  • 𝐏(𝑎|𝑏) = [ 𝛴𝑐∊𝐶 𝐏(𝑎,𝑏,𝑐) ] / [ 𝛴𝑎∊𝐴𝛴𝑐∊𝐶𝐏(𝑎,𝑏,𝑐) ]

the Inference by Enumeration algorithm simply enumerates through each summation 𝛴

Inference by Enumeration in Specific Probabilistic Graphical Models