The generalized multinomial distribution : a Bayesian analysis and applications