A factor
Factors are used to construct probability distributions involving random variables, but the factor itself doesnโt have any constraintsโit doesnโt need to sum to one. In fact, constructing a probability distribution from factors often gives us an unnormalized distribution that must be normalized to be a valid distribution.
Operations
We can perform multiple operations on factors:
- Factor summation adds the corresponding pairs of outputs for a given input. For example, if our two scopes are
and , then
- Factor product combines the scope of two factors
and so that the output of a specific input is the product of the outputs of the two factors. For example, using the same setup as above,
- Factor marginalization reduces the scope of a factor by marginalizing over one of the random variables. For example, if we marginalize
out of the scope , then
- Factor reduction removes a random variable from the scope by only considering outputs where the random variable is a specific value. For example, if our original scope is
and we assume a constant value for , then
- Factor maximization removes the random variable by choosing the largest output that the random variable can give for the rest of the inputs. For example, using the same scope as above,