Inference is Bayesian networks answers 2 types of questions :
- Diagnosis : , e.g. .
- Prediction: , e.g. . Applications of inference in Bayesian networks :
- Classification : .
- Decision making :
Three categories of variables
For inference purposes, we distinguish 3 categories of variables (nodes) in a Bayes net :
- Evidence variables (known)
- Query variables (wanted)
- Non-evidence variables (neither known nor wanted, but must deal with) The complete set of variables (nodes) of a Bayesian network is the union of these: .
Inference in Bayesian Networks
Inference (aka. Query): Answering questions about the underlying probability distribution.
- Unconditional or conditional probability inference :
- What is the probability of a given value assignment for a subset of variables in ? Example:
- What is the probability of different value assignments for query variables given evidence about variables : Compute . Example:
- Maximum a posteriori (MAP) inference :
- Given evidence , find the most likely assignment of values to the query variables :
Exact Inference in Bayesian Networks
Exact inference computes the posterior probability distribution :
where
Bayesian inference algorithms that calculate the exact value of probability .
Inference by Enumeration :
- We infer a posterior probability by marginalization of the joint distribution.
- That is, we compute the exact value of probability .
Computation Complexity :
- The number of terms in the sum is exponential in the number of non-evidence random variables: The complexity is , where:
- is the number of non-evidence variables.
- is the number of values each variable can take.
Example
In the βWet Grassβ problem, if we do not cancel , the full calculation requires summing 4 terms, each involving 4 multiplications.