Conditional composition of two independent binomial counts

ID: conditional-composition-of-two-independent-binomial-counts

Let and be independent random variables with binomial distributions and . Conditional on having positive probability, the possible values of satisfy . Their probabilities are
where the denominator sums over that feasible integer range. The formula follows by multiplying independent binomial probabilities and dividing by the probability of the disjoint union of all feasible count pairs.
For , common factors cancel and the weights are proportional to , where . If , this reduces to the hypergeometric distribution, with probabilities . At parameter endpoints, use the original probability weights and check that the conditioning event has positive probability before dividing.

New to topics? Read the docs here!