A probabilistic inference is the task in which we wish to answer probabilistic queries of the form formula_24, given a graphical model for formula_5, where formula_26 (the 'target' variables) formula_27 (the 'input' variables) are disjoint subsets of formula_5.