concept operation in category probabilistic programming

appears as: n operation, operations, The operation, operation, operations
Practical Probabilistic Programming

This is an excerpt from Manning's book Practical Probabilistic Programming.

Figure 6.4. A Figaro collection contains elements, which define probability distributions over values. Figaro collections let you apply operations to these values, which can be used to produce new elements and new collections.

Figaro collections are special because they know that the things they contain are elements, which define probability distributions over values. They let you reach inside the elements and work with operations on the values. Figure 6.4 illustrates how this works.

Figure 6.4. A Figaro collection contains elements, which define probability distributions over values. Figaro collections let you apply operations to these values, which can be used to produce new elements and new collections.

The operation you’ve performed goes by two common names. One is the factor sum. Don’t be confused: sum doesn’t mean that you’re adding two factors, but that you’re adding numbers in rows of a single factor to produce a new, simpler factor. When you perform the sum operation, you remove some of the variables from the resulting factor; in our example, you’ve removed Subject and Size. You say that you’re summing over these variables. The other name you’ll see sometimes is marginalization. The resulting probability distribution over Brightness is called the marginal probability, as opposed to the joint distribution you started with. I’ll avoid using the term marginalization, but the concept of factor sum will be an important one as we go forward with factored inference.