Binomial Distribution and Multinomial Distribution¶
This is useful when calculating the probability of drawing 5 cards out of 52 with 10 independent trials. Use the Binomial Distribution if there are only 2 possible outcomes (Bernoulli trials) in each trial (success and failure), e.g., if we want all 5 cards to be hearts. Use the Multinomial Distribution if there are more than 2 possible outcomes, e.g., if we want 3 hearts, 1 spade, and 1 diamond, which involve 3 possible outcomes (hearts, spades, and diamonds).
The Binomial¶
For a recall, to calculate the number of samples r
out of n
when order doesn't matter and w/o replacement we use \(\binom {n}{r}\), which is the Binomial Coefficient. Binomial coefficent is calculated using the following equation:
To expand the expression of \(n\)-th order polynomial function, we use Binomial Theorem:
This leads us to Pascal's Triangle:
We can notice that as \(n\) increases in the Binomial Theorem, it starts to converge to the normal distribution.
In Binomial Distribution, we model the probability of the number of event successes in a fixed number of independent trials with identical probability distributions (IID) for each trial. The probability of \(k\) successes out of \(n\) trials is given by :
where \(p\) and \(1-p\) are probabilities of success and failure in a single trial, respectively.
The Multinomial¶
Whereas the Binomial Distribution handles only 2 possible outcomes, the Multinomial Distribution handles more than 2 possible outcomes, or categorical outcomes. Therefore, the multinomial distribution is a generalization of the binomial distribution. In the multinomial case, we divide our samples into \(m\) groups, whereas in the binomial case, there are only 2 groups. The following equation gives us the Multinomial Coefficient.
with constraint \(n_1 + n_2 + n_3 + \cdots + n_m = n\)
Proof
Fun Fact
Steve Bruton said, "it's pretty simple" when he explain the proof, that's why I love his videos 😂
The Binomial Theorem handles only 2 variables \(x\) and \(y\), whereas the Multinomial Theorem handles more than 2 variables \(x_1, x_2, x_3, \cdots, x_m\). To expand the polynomial with more than 2 variables \(>2\), we can use Multinomial Theorem. The equation is quite similar to the Binomial Theorem, with a sum over all the \(n_m\) terms and products \(x_i \in \mathbb{Z}^{+}\) and \(n\in\mathbb{Z}^{0+}\) , using multinomial coefficient.
The probability of multinomial samples works on the same principle as the binomial case, involving a sequence of \(n\) independent trials with identical probability distributions (IID). The probability is given by:
where \(\sum_{i=1}^m n_i=n\)