joint multinomial distribution