I am currently working on a problem where the distribution applied to a variable depends on the value sampled from another variable. Specifically, I need to sample from one distribution and then, based on that sampled value, choose from among several other distributions for the next sampling step.
For example:
If X falls within a specific range, say [a, b], then Y should be sampled from distribution D_Y1.
If X is outside the range [a, b], then Y should be sampled from a completely different distribution D_Y2.