How would I calculate the sums of two (or more) hypergeometric distributions. If, using a standard deck of cards, I want to determine the probability of draw 2 red cards and one Black Queen. I cannot just change my "good card" size and use one formula cause that wouldn't tell me what I need.
So, given 52 cards, 26 of which are red and given a draw of 4 cards, the hypergeometric probability of drawing 2 red cards is 0.32. With Black Queens, there are 2 "successes" in the population and I want to draw 1, the probability is 0.17.
In Python using Scipy I can use the hypergeom function
[M,n,N] = [52,26,5] # M=Population,n=Successes,N=drawn
rv = hypergeom(M,n,N)
pR = rv.pmf(2) # probability of two reds in a hand of 5
n1 = 2
rv = hypergeom(M,n1,N)
pBQ = rv.pmf(1) # probability of 1 Black Queen in a hand a 5
How do I then calculate the probability that out of a 5 card draw I get 2 reds and 1 black Queen?