dependent_distributions

CorrelatedDistribution.dependent_distributions()

Returns a set of linked, single-variable distributions.

When draw() is called on one of these distributions, values for all correlated variables are drawn, but only one variable is returned: the one corresponding to the Distribution on which draw() was called. Afterwards, calling draw() for the other distributions in the set will return the other drawn values.

If draw() is called a second time on one of the distributions in a set before it has been called on all of the other distributions in the set, then previously drawn values will be cleared, this call to draw() will be treated as if it were the first, and a warning will be given.

Similarly, if draw() is called with a different value of size for two distributions in a set, then previously drawn values will be cleared, and the most recent call to draw() will be treated as if it were the first, and a warning will be given.