concept joint distribution in category probabilistic programming

appears as: joint distribution, joint distributions
Practical Probabilistic Programming

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

The next state is an element over the pair of seated and waiting values. It defines a joint distribution over the seated and waiting variables at the new time step. In the transition function, this element is constructed by using Figaro’s ^^ constructor, which creates elements over pairs (or larger tuples) from individual elements. In this transition function, these are the elements allSeated and newWaiting. You’ll see in a moment how these are generated.

But what if you wanted to query the joint distribution over multiple variables? Why would you want to do that? Because the joint distribution contains information that the individual marginal distributions don’t. For example, you might be interested to know the probability that the sales of two product lines would simultaneously be low, because that would be particularly bad for your business. Here are some possibilities for the joint distribution: