The multinomial distribution is a probability distribution that describes the probability of obtaining a specific number of counts for k different outcomes, when each outcome has a fixed probability of occurring.
In R, we can use the
rmultinom()function to simulate random samples from a multinomial distribution, and the
dmultinom()function to calculate the probability of a specific outcome.
Click through to see how you can build a multinomial distribution and what the difference is between