Resources:
The conditional probability in a Bayesian network is given by its parents
Inference in a Bayesian Network
Doing it naively means calculating the same values multiple times, leading to a runtime of .
Variable Elimination
We eliminate variables that are neither:
- Part of the query (what you’re trying to find out)
- Evidence variables (what you already know or observe)
The eliminated variables are often called hidden variables, and eliminating them simplifies the computation.
Example: We want to find given
We sum out all possible variations of everything except
By setting , and we get
Which can be visualized as a Bayesian network like this: