Referring to my Problem introduced above:What if k = 0?. If N<=0, then P=0. Otherwise, P=1, since if we flip the coin, we’re guaranteed to have at least 0 tails. The boundary conditions should thus be
- P(N,k) = 0 if N<k or N<=0.
- P(N,k) = 1 if k<=0.
- P(k,k) = q^k if k>0.
For the dice problem of caffeine_overdose, a multinomial distribution is exactly what we’re looking for (as has been worked out above). If you’re going to deal with dice (or anything with more than a binary outcome) multinomials work great.